Preview limit

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Preview limit

Post by jacky »

Hi,

Allright so it seems there's a limit of the area that the preview can handle, and if it tries to go over that limit XY crashes with a runtime error 480: Can't create AutoRedraw image

I'm not sure what the limit is (or if it's memory-dependant or something), but I'd say (for me) it's aroung 9 000 000 (which is what I use as max area in order to try avoiding crash)

For example, I can preview this one:

Code: Select all

Type: JPEG file (JFIF v1.2)
Size: 2491 x 3600
Colors: 16M RGB (24-bit)
Area: 8 967 600 pixels (35 870 400 bytes video mem)
File size: 331 151 bytes, loaded in 716 ms
Compression ratio: 1,23%
But this one will make XY crash:

Code: Select all

Type: JPEG file (JFIF v1.2)
Size: 2522 x 3600
Colors: 16M (24-bit)
Area: 9 079 200 pixels (36 316 800 bytes video mem)
File size: 328 840 bytes, loaded in 7 ms
Compression ratio: 1,21%
BTW: the 'Copy Original' crashes (out of memory) for smaller ones

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Preview limit

Post by admin »

So so... I thought I fixed this kind of stuff a while ago. :cry:

Please send me a crash pic. Maybe your pics are just bad... :wink:

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Preview limit

Post by jacky »

admin wrote:Please send me a crash pic. Maybe your pics are just bad... :wink:
Will do, but no my pics are fine 8)

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Preview limit

Post by admin »

jacky wrote:
admin wrote:Please send me a crash pic. Maybe your pics are just bad... :wink:
Will do, but no my pics are fine 8)
Ok, fine pic! I made it halfway: no more crash, but no preview either. The other half will come...

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Preview limit

Post by jacky »

admin wrote:Ok, fine pic! I made it halfway: no more crash, but no preview either. The other half will come...
Cool. No more crash is already a good thing.


This is quite unrelated but it reminded me, I understand that "Ok" in the Configuration window does not save the settings, but why did you disabled the "Save settings now" when "Save on exit" is checked?

Cause right now if I want to save the settings after I've done some customization or whatever (and to be sure), I have to uncheck it, save now, then check it again ; which is a bit annoying but also if XY crashes (or XP, or power shutdown, whatever) it means all my settings are saved BUT the save on exit one obviously. So if I don't think of putting it back on when I restart XY.....

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Preview limit

Post by admin »

jacky wrote:This is quite unrelated but it reminded me, I understand that "Ok" in the Configuration window does not save the settings, but why did you disabled the "Save settings now" when "Save on exit" is checked?

Cause right now if I want to save the settings after I've done some customization or whatever (and to be sure), I have to uncheck it, save now, then check it again ; which is a bit annoying but also if XY crashes (or XP, or power shutdown, whatever) it means all my settings are saved BUT the save on exit one obviously. So if I don't think of putting it back on when I restart XY.....
This is the reason:

Code: Select all

v4.00.0130 - 30.06.05 11:48
    * Button "Save Settings Now" (Configuration/General) again as before 
      v4.00.0128 (disabled while "Save Settings on Exit" is checked). To 
      have it always enabled was confusing because it lead users to think 
      they have to press it in order to activate and/or save configuration 
      changes.
      If you want to "save your settings now" (before exit) for some 
      reason you can always select menu File/Save Configuration As... 
      and overwrite your current INI file.
Not convinced? Maybe a clearer button caption would help...

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: Preview limit

Post by jacky »

admin wrote:To have it always enabled was confusing because it lead users to think they have to press it in order to activate and/or save configuration changes.
That's funny, I mean yes you have to press it to save config changes, this wasn't misleading or anything. You don't have to press it to activate the changes, but to save them you do, and that's what it says: "Save Settings Now"

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

Okay about that, you know what would be best then I think, a File/Save Config menuitem. Not "save as" which means choose a file & confirm, and could be seen as only good to create a new file, and people could not be sure what file they're using or something like that.
So a simple "Save Config" that would pretty much do it just like the Save Setting Now button does.

BTW, I don't really like the way the File menu is made. The order of the item doesn't seem so 'easy' to me, there's no restart (w/ saving) and I beleive that the common Windows standard is to have to Exit menu on the very last position of the menu.

Something like that would seem better to me: ;)
-
Goto app.path
Create shortcut
-
Load Config
Save Config
Save Config As
-
Restart app
Restart app without saving
Exit witout saving
Exit

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

jacky wrote:Something like that would seem better to me: ;)
-
Goto app.path
Create shortcut
-
Load Config
Save Config
Save Config As
-
Restart app
Restart app without saving
Exit witout saving
Exit
Goodygood! I would rather save one separator by moving "Goto app.path" to the goto menu and shift Create shortcut to Config section:

-
Load Config
Save Config
Save Config As
Create shortcut to this Config
-
Restart app without saving
Restart app
Exit witout saving
Exit

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

admin wrote:Goodygood! I would rather save one separator by moving "Goto app.path" to the goto menu and shift Create shortcut to Config section
works for me :)

admin
Site Admin
Posts: 66431
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

jacky wrote:
admin wrote:Goodygood! I would rather save one separator by moving "Goto app.path" to the goto menu and shift Create shortcut to Config section
works for me :)
Hey, the new menu is looking sharp! Thanks! :D

Post Reply