Each time a Python script (scripted button) exits, I get a crash
Worked OK in 12.4, so I am rolling back for now.
Also, the dialog is not localized, and I believe it should be. The same goes for "Open in Directory Opus" context menu entry in Windows.
Please send us the crash dumps:
Apparently I had some issues with my system, but after clean reinstallation things are almost back to normal with 12.5 (including localisation).
Now the crash is only at the following line:
script_cmd_data.func.command.RunCommand('Rename FROM="{0}" TO="{1}"'.format(path, os.path.join(os.path.split(path)[0], target_name) ) )
which produces output like:
Rename FROM="D:\MP3\Metal\Różne\UFO" TO="D:\MP3\Metal\Różne\UFO [1975] Force It"
and is a part of a custom command defined as:
def OnSetDirNameFromTags(script_cmd_data):
and actually gets executed before the crash.
I will be emailing the dump asap.
Many thanks for the crash dump, and extra info.
From the crash dump, this is something a couple of other people have reported and that we're trying to track down but haven't found a way to reproduce yet.
For others it is fairly hard to (always) reproduce, as I understand things, as it only happens occasionally and not every time.
Is it the same for you, or something you can make happen easily?
So far it does not look like the script itself is involved, but it's possible the sequence of commands it runs may be a reliable trigger.
If you make a normal button which runs similar commands, does that trigger it for you? If there's a particular sequence of commands that trigger it, maybe we can use the same sequence to make it happen on our own machines.
Are you using any filter-labels in your file display to color things, or any unusual sort modes (e.g. multi-column sort)? Those are two areas I suspect may be involved, but don't know for sure yet. I've been going through recent changes for possible causes but it's possible I haven't looked in the right place yet.
To confirm, you've never seen the same thing with 12.4, only with 12.5, correct? That will narrow things down a lot for us.
Hah, yesterday it happened after each DO restart. Today I uncommented the line and whoa - it works.
The whole button is:
@runmode hide
cd {sourcepath$}
Rename FROM=*.mp3 PRESET=RenameMusFiles
SetDirNameFromTags DIR={sourcepath$}
Go REFRESH
where RenameMusFiles is Python-scripted rename.
It works now, but I will keep an eye on it.
[quote="Leo, post:4, topic:25769, full:true"]
Are you using any filter-labels in your file display to color things, or any unusual sort modes (e.g. multi-column sort)? [/quote]
No filter-labels, one-column sort mode.
I think I saw the issue yesterday with 12.4 when dabbling with my installation, and I just might not used the button with 12.4 (hard to say). I surely had no problem with 12.3. So no 100% answer.