Sometimes when attempting subsequent inline renames of files or folders, while a folder is grouped by a scripted column, dopus crashes and suggests restarting itself. Unfortunately it doesn't generate a crash dump when it does, and it doesn't happen frequently enough and as such cannot be reliably reproduced.
Related to that might also be that sometimes after prolonged operation it stops grouping or ordering the files in those views altogether - even when forcing refreshes - which is fixed by restarting dopus.
I suspect it's some sort of racing condition with the refreshes made after observing filename changes. It occurs also when creating folders or adding new files by moving/copying to folders with that view as well. No script errors are ever logged by the interpreter.
My script is a customized version of one by wowbagger found on these very forums and I've attached it whole below. If there is anything in it that could be causing the crash or that could be optimized I'm open to suggestions.
Columns.rar (2.3 KB)
In Columns.js I define a (hopefully) reusable reg-ex object:
audioRegEx = /(24bit|32bit|FLAC|256k|320k|VBR|MP3)/i;
Define group names:
groupNames: {
"24bit": "24bit",
"32bit": "32bit",
"MP3": "MP3",
"320k": "MP3",
"256k": "MP3",
"FLAC": "FLAC",
"flac": "FLAC",
"WAV": "WAV",
"VBR": "MP3"
}
Force them in order:
groupOrder: "32bit;24bit;FLAC;MP3"
The actual column is hidden even though the view is grouped by it.
Crash affects: ALL dopus versions since 12.00 including latest 12.3.3 beta.
I was hoping to figure out the reason or pattern behind it but had no luck until now so theres no other choice for me but to report what I have on it so far.
Custom columns and the ability to group and sort on them is an essential part of my opus experience so I need it to be flawless when using them. The way it is now - I crash out ~2-5 times a day depending on usage and grouping sorting on them fails a bit less often than that.