Page 1 of 2

XY Beta 8.80.0027 wipes configuration completely

Posted: 17 Jan 2010 17:38
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.

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 17 Jan 2010 18:43
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).

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 17 Jan 2010 19:02
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?

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 17 Jan 2010 19:59
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.

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 17 Jan 2010 20:51
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.

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 17 Jan 2010 20:57
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.

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 18 Jan 2010 10:25
by admin
Cannot reproduce. By "wipe configuration" you mean all INI and DAT files are deleted?

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 18 Jan 2010 10:46
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.

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 18 Jan 2010 12:09
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. :?

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 18 Jan 2010 12:20
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?

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 18 Jan 2010 12:30
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! :?

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 18 Jan 2010 12:55
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.

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 18 Jan 2010 13:17
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.

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 18 Jan 2010 13:58
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!

Re: XY Beta 8.80.0027 wipes configuration completely

Posted: 18 Jan 2010 15:35
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.