Crash on very specific collapsed grouping + refresh

If you group by Location (Relative) [and maybe other similar groupings] and have individual groups of folders, and collapse one of those folders, and refresh, it will cause a full crash.

[Found this testing while testing for collapsed state on stored queries, but this happens on normal listers and has nothing to do with stored queries.]
[This even happens without File Displays / Options / Preserve group expansion state on refresh = OFF, so maybe doesn't even have anything to do with that, but I guess it might be semi-related at least.]
[A more normal scenario to use this kind of grouping is in a flat view with a lot of files, where is where I use it normally, but below scenario is enough to trigger the crash.]

Steps to reproduce:

  1. Open a folder that has at least one folder inside it.
  2. Open Folder Format > Grouping
  3. Group by: Name and Path > Location (Relative)
  4. Put folders in their own group: OFF
  5. Press OK

[You can of course group it outside this dialog of course, this is just the easiest way to also check that the Put folders in their own group options is off at the same time.]

Folder(s) should now be grouped in groups of 1 each probably.
[Quite useless groupings, I know, but still just for this crash purpose.]

  1. Trigger a refresh (Go REFRESH)
  2. Nothing bad happens.

Collapse one (or more) groups that consist of a folder.

  1. Trigger a refresh (Go REFRESH)
  2. Crash boom bang :sweat_smile::v:

Let me know if you can't reproduce this, and I'll try to reproduce it in a system environment that I'm comfortable with submitting crash logs from.

Can't reproduce sorry.

No worries, I can reproduce it on a fresh install, even non-beta, so I'll send a crash report from that machine later today :+1:

Two crash logs submitted, ID 682.

To help with reproducing, this is the lister view state you want to achieve:

And if you collapse that group, and then trigger a Go REFRESH it will crash.

Happens on both my systems without fail, one running 13.20.4 (Beta) and one running a fresh install of 13.20.

Thanks! Fixed in the next update.

Solved in 13.20.5 (Beta); grouping of folders seems more logical now when doing grouping by location, and I can't force a crash with collapse and refresh regardless how much I try :rofl: