XY Beta 8.80.0027 wipes configuration completely

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

: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: Use Your Profile Or Signature
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: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

XY Beta 8.80.0027 wipes configuration completely

Post by Mesh »

For XY Beta 8.80.0027, if you go into the Configuration, under "Startup & Exit", and check "Keep pane data private", click "OK", and then hit "Cancel" to not copy pane data - then restart XY, you will discover that XY has completely wiped the Configuration, and XY is starting up with factory defaults - including the fact that it will be starting up windowed, instead of maximized.

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

Re: XY Beta 8.80.0027 wipes configuration completely

Post by admin »

I'm not sure how this could happen. There is no code here to wipe any part of the configuration. Either it is updated or left alone as it is.

The "Keep pane data private" setting just concerns the tabs, and has nothing to do with any other part of the configuration (INI file, DAT files).

Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Re: XY Beta 8.80.0027 wipes configuration completely

Post by Mesh »

admin wrote:
I'm not sure how this could happen. There is no code here to wipe any part of the configuration. Either it is updated or left alone as it is.

The "Keep pane data private" setting just concerns the tabs, and has nothing to do with any other part of the configuration (INI file, DAT files).

I had the same thought, but I'm not privy to the source.

Were you able to recreate the issue?

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: XY Beta 8.80.0027 wipes configuration completely

Post by nas8e9 »

Two quick questions:
1. Do you have Configuration > Startup & Exit > Save settings on exit enabled?
2. How do you restart? Closing XYplorer with Alt+F4 or equivalent or by selecting Restart with saving? Dumb question probably, but just in case...

With Save settings on exit disabled and with closing XYplorer with Alt+F4 and then restarting, I can't reproduce the issue.

XYplorer 8.80.0027 beta
Windows 7 RTM x86.

Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Re: XY Beta 8.80.0027 wipes configuration completely

Post by Mesh »

nas8e9 wrote:
Two quick questions:
1. Do you have Configuration > Startup & Exit > Save settings on exit enabled?
2. How do you restart? Closing XYplorer with Alt+F4 or equivalent or by selecting Restart with saving? Dumb question probably, but just in case...

With Save settings on exit disabled and with closing XYplorer with Alt+F4 and then restarting, I can't reproduce the issue.

XYplorer 8.80.0027 beta
Windows 7 RTM x86.

I definitely have Save settings on exit *enabled*. As for closing XY, I've done it both ways - I don't remember which methods I used when I encountered this issue.

However, I tried it about four times - each time with a brand new (not upgrade) extract of XY. It happened every time.

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: XY Beta 8.80.0027 wipes configuration completely

Post by nas8e9 »

Mesh wrote:
nas8e9 wrote:
Two quick questions:
1. Do you have Configuration > Startup & Exit > Save settings on exit enabled?
2. How do you restart? Closing XYplorer with Alt+F4 or equivalent or by selecting Restart with saving? Dumb question probably, but just in case...

With Save settings on exit disabled and with closing XYplorer with Alt+F4 and then restarting, I can't reproduce the issue.

XYplorer 8.80.0027 beta
Windows 7 RTM x86.

I definitely have Save settings on exit *enabled*. As for closing XY, I've done it both ways - I don't remember which methods I used when I encountered this issue.

However, I tried it about four times - each time with a brand new (not upgrade) extract of XY. It happened every time.
Confirmed with Save settings on exit enabled.

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

Re: XY Beta 8.80.0027 wipes configuration completely

Post by admin »

Cannot reproduce. By "wipe configuration" you mean all INI and DAT files are deleted?

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: XY Beta 8.80.0027 wipes configuration completely

Post by nas8e9 »

admin wrote:Cannot reproduce. By "wipe configuration" you mean all INI and DAT files are deleted?
Immediately after checking Keep pane data private and selecting not to copy pane data but before restarting XYplorer, XYplorer.ini gets changed with regard to the window settings:

Code: Select all

[General]
LastVer=8.80.0027
WinW=900
WinH=600
WinX=190
WinY=212
WinZ=39628
WinState=0
WinStatePrev=0
Previously, I had XYplorer maximized on a 1280x1024 screen. After restarting, XYplorer (in accordance with the above settings) has reverted to the factury configuration for window size.

After restarting, the <xydata>\Panes folder contains 4 folders (1, 2, XYplorer_1, XYplorer_2) instead of the original two (1, 2). The 1 and 2 folders contain a pane.ini file which has the original tab settings; the XYplorer_1 and XYplorer_2 folders seem to contain a new pane.ini file with none of the previous settings (number of tabs, location etc.). XYplorer_1 and XYplorer_2 seem to be used now instead of 1 and 2.

Thinking about it, the resetting of the pane data seems logical. The resetting of XYplorer's window setting however, doesn't seem to make sense to me.

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

Re: XY Beta 8.80.0027 wipes configuration completely

Post by admin »

nas8e9 wrote:
admin wrote:Cannot reproduce. By "wipe configuration" you mean all INI and DAT files are deleted?
Immediately after checking Keep pane data private and selecting not to copy pane data but before restarting XYplorer, XYplorer.ini gets changed with regard to the window settings:

Code: Select all

[General]
LastVer=8.80.0027
WinW=900
WinH=600
WinX=190
WinY=212
WinZ=39628
WinState=0
WinStatePrev=0
Previously, I had XYplorer maximized on a 1280x1024 screen. After restarting, XYplorer (in accordance with the above settings) has reverted to the factury configuration for window size.

After restarting, the <xydata>\Panes folder contains 4 folders (1, 2, XYplorer_1, XYplorer_2) instead of the original two (1, 2). The 1 and 2 folders contain a pane.ini file which has the original tab settings; the XYplorer_1 and XYplorer_2 folders seem to contain a new pane.ini file with none of the previous settings (number of tabs, location etc.). XYplorer_1 and XYplorer_2 seem to be used now instead of 1 and 2.

Thinking about it, the resetting of the pane data seems logical. The resetting of XYplorer's window setting however, doesn't seem to make sense to me.
XYplorer_1, XYplorer_2 are the folders that hold the history and tab data that are private to XYplorer that uses XYplorer.ini with Keep pane data private checked. 1, 2 are the folders that hold the shared history and tab data -- shared among all configuration with Keep pane data private unchecked. This looks all as expected.

I cannot see how this relates to resetting settings in XYplorer.ini. There must be another factor. :?

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: XY Beta 8.80.0027 wipes configuration completely

Post by nas8e9 »

admin wrote:XYplorer_1, XYplorer_2 are the folders that hold the history and tab data that are private to XYplorer that uses XYplorer.ini with Keep pane data private checked. 1, 2 are the folders that hold the shared history and tab data -- shared among all configuration with Keep pane data private unchecked. This looks all as expected.

I cannot see how this relates to resetting settings in XYplorer.ini. There must be another factor. :?
As far as I can see, the resetting of pane data is to be expected when selecting Keep pane data private and then electing not to copy the current settings. No problem there.

What probably freaked the OP was the resetting of the the window settings, which in combination with the resetting of the pane data gives the appearance of the entire XYplorer configuration having been reset. That is not the case: as far as I can see, only the window settings are reset.

In summary:
- Pane data is reset when selecting Keep pane data private and then not electing to copy the original settings. No problem there.
- In addition, XYplorer's window settings *and only these settings* are reset in XYplorer.ini immediately on selecting Keep pane data private and then electing not to copy the current settings. This does seem to be a problem.

Did you manage to reproduce the problem, by the way?

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

Re: XY Beta 8.80.0027 wipes configuration completely

Post by admin »

nas8e9 wrote:
admin wrote:XYplorer_1, XYplorer_2 are the folders that hold the history and tab data that are private to XYplorer that uses XYplorer.ini with Keep pane data private checked. 1, 2 are the folders that hold the shared history and tab data -- shared among all configuration with Keep pane data private unchecked. This looks all as expected.

I cannot see how this relates to resetting settings in XYplorer.ini. There must be another factor. :?
As far as I can see, the resetting of pane data is to be expected when selecting Keep pane data private and then electing not to copy the current settings. No problem there.

What probably freaked the OP was the resetting of the the window settings, which in combination with the resetting of the pane data gives the appearance of the entire XYplorer configuration having been reset. That is not the case: as far as I can see, only the window settings are reset.

In summary:
- Pane data is reset when selecting Keep pane data private and then not electing to copy the original settings. No problem there.
- In addition, XYplorer's window settings *and only these settings* are reset in XYplorer.ini immediately on selecting Keep pane data private and then electing not to copy the current settings. This does seem to be a problem.

Did you manage to reproduce the problem, by the way?
Thanks for the analysis! But I cannot reproduce that the window settings are reset. You really see XYplorer.ini is modified right after pressing Cancel on the "copy the current settings..." dialog? :o I mean, why should I write such weird code that just resets window settings? Very strange! :?

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: XY Beta 8.80.0027 wipes configuration completely

Post by nas8e9 »

admin wrote:Thanks for the analysis! But I cannot reproduce that the window settings are reset. You really see XYplorer.ini is modified right after pressing Cancel on the "copy the current settings..." dialog? :o I mean, why should I write such weird code that just resets window settings? Very strange! :?
Before:

Code: Select all

[General]
LastVer=8.80.0027
WinW=885
WinH=600
WinX=197
WinY=212
WinZ=39628
WinState=2
WinStatePrev=2
WinOnTray=0
After:

Code: Select all

[General]
LastVer=8.80.0027
WinW=900
WinH=600
WinX=190
WinY=212
WinZ=39628
WinState=0
WinStatePrev=0
WinOnTray=0
In terms of reproducing it: do you run XYplorer maximized or restored? The above results are with XYplorer maximized before making the configuration changes.

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: XY Beta 8.80.0027 wipes configuration completely

Post by nas8e9 »

After testing, the problem seems specific to the codepath of enabling Keep pane data private and then choosing *not* to copy the pane data. When choosing to *do* copy the pane data, the window settings in XYplorer.ini are not reset.

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

Re: XY Beta 8.80.0027 wipes configuration completely

Post by admin »

I could in fact find a way (that came with v8.80.0027) so that the configuration was reset to factory defaults, and fix it.

However, this did not exactly happen under the circumstances described here nor at the point of time. Anyway, the bug was there and should be gone now!

Thanks!

nas8e9
Posts: 2232
Joined: 21 Jun 2008 14:50

Re: XY Beta 8.80.0027 wipes configuration completely

Post by nas8e9 »

admin wrote:I could in fact find a way (that came with v8.80.0027) so that the configuration was reset to factory defaults, and fix it.

However, this did not exactly happen under the circumstances described here nor at the point of time. Anyway, the bug was there and should be gone now!

Thanks!
8.80.0028 beta indeed fixes the resetting of the window properties in XYplorer.ini. As to the difficulty reproducing it, the only two things I can think of are:
- running XYplorer maximized vs. restored during the configuration change;
- different XYdata-folder (in my case completely custom (D:\Config\XYplorer) vs. %ProgramFiles%\XYplorer\Appdata).

Regardless, thank you for the fix.

Post Reply