Flatten Folder Failure

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 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.

: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:
armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: Flatten Folder Failure

Post by armsys »

Hi Papoulka,
You got it.
Attachments
My Daily Test Folders
My Daily Test Folders
XY07.jpg (10.87 KiB) Viewed 3411 times

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: Flatten Folder Failure

Post by armsys »

The Flatten Folder's performance is random and inconsistent.
An hour ago it worked, but now failed.
Attachments
Error msg when Flatten Folder fails.
Error msg when Flatten Folder fails.
XY08.jpg (7.1 KiB) Viewed 3411 times

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Flatten Folder Failure

Post by Papoulka »

armsys - what Windows are you running? I'm on Win7 32-bit. There may be some relevant difference between 7 and later.

Also, try a "::fresh" instance of XY (type that without the quotes in the address bar). In a ::fresh instance I find no failures of the menu "Flatten folder" command. And if my personal XY has just been restarted, it too works reliably.

But if my personal XY has been running for a while, the menu "Flatten folder" command always fails. This is on both the C: drive and other drives. "Fails" means no changes are made, no messages etc - just nothing happens.

My only use of Flatten is the script version where I've never had such a problem.

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: Flatten Folder Failure

Post by armsys »

Papoulka wrote:But if my personal XY has been running for a while, the menu "Flatten folder" command always fails. This is on both the C: drive and other drives. "Fails" means no changes are made, no messages etc - just nothing happens.
That's exactly the core issue. It happens to my XY.
OS: Windows 7 Ultimate (Service Pack 1), 64-bit (6.1)
I don't like ::fresh because it loses all my charming XY settings.

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Flatten Folder Failure

Post by Papoulka »

No, ::fresh does not affect your settings. And it's the only way for everyone to be on the same sheet of music.

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

Re: Flatten Folder Failure

Post by admin »

I could fix the "only empty folders" issue. I could not repro anything else.

xman
Posts: 133
Joined: 28 Nov 2009 22:57

Re: Flatten Folder Failure

Post by xman »

The error described by OP appeared again, but this time with different message:
"folder was flat already"

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: Flatten Folder Failure

Post by armsys »

xman wrote:The error described by OP appeared again, but this time with different message:
"folder was flat already"
Excuse me, what's 'OP'?

xman
Posts: 133
Joined: 28 Nov 2009 22:57

Re: Flatten Folder Failure

Post by xman »

Original Poster, ie you. :lol:

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Reproducible Cause of Flatten Folder Bug

Post by armsys »

I've just re-tested the Flatten Folder (right-click context menu command) and confirm it still fails. That's, no folders are flattened but it still shows a faulty status report.
After existing and re-starting XY, the Flatten Folder works as expected.

On the other hand, this time I discover a repeatable/reproducible cause of the Flatten Folder failure:
After stopping 'getting folder size" by pressing ESC, the Flatten Folder will fail.

Correction 2015.09.18 Fri 03:52:24 PM HKT
After exiting and re-starting XY, the Flatten Folder works as expected.
Attachments
Faulty Status Report
Faulty Status Report
XY12.jpg (5.79 KiB) Viewed 3346 times
Last edited by armsys on 18 Sep 2015 09:53, edited 2 times in total.

xman
Posts: 133
Joined: 28 Nov 2009 22:57

Re: Flatten Folder Failure

Post by xman »

Good job figuring it out :appl:.

I just tried content search, cancelled it using escape and got the same message. And it worked before the search, I tried.

xman
Posts: 133
Joined: 28 Nov 2009 22:57

Re: Flatten Folder Failure

Post by xman »

In fact, just pressing the escape without running a search or doing anything else triggers this bug. And I tried in ::fresh and it works there too.

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: Flatten Folder Failure

Post by armsys »

xman wrote:In fact, just pressing the escape without running a search or doing anything else triggers this bug. And I tried in ::fresh and it works there too.
In my case, the ::fresh creates a new instance of XY, which forgets all my own settings c:\ArmSys.ini. I hate it. :naughty: :twisted:
::fresh; will force the data path to %appdata%\xyplorer\fresh.
Above all, ::fresh; is hardly a charming solution.
An anomaly is an anomaly.

Online
RalphM
Posts: 2049
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: Flatten Folder Failure

Post by RalphM »

armsys wrote:In my case, the ::fresh creates a new instance of XY, which forgets all my own settings c:\ArmSys.ini. I hate it. :naughty: :twisted:
::fresh; will force the data path to %appdata%\xyplorer\fresh.
Above all, ::fresh; is hardly a charming solution.
An anomaly is an anomaly.
You seem to have misunderstood the use of ::fresh.
It's use is solely to eliminate the influence of your settings in making a bug possible or show its ugly face, which is why it creates an environment with factory defaults without any user customized settings (in all cases not just yours).
It is not intended to use this fresh instance instead of your customized one for your daily XYing.
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: Flatten Folder Failure

Post by armsys »

Oh! Thanks RalphM for explaining the original purpose of ::fresh.

Post Reply