Bug 510273

Summary: Glaxnimate crashes when document.find_by_uuid() is used from the script console
Product: [Applications] glaxnimate Reporter: Martin Kampas <martin.kampas+kdebugs>
Component: scriptingAssignee: Mattia Basaglia <glax>
Status: REPORTED ---    
Severity: crash    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Backtrace (partial)

Description Martin Kampas 2025-10-05 17:55:18 UTC
Created attachment 185541 [details]
Backtrace (partial)

SUMMARY

Glaxnimate crashes when document.find_by_uuid() is used from the script console. Applies to other find_by_* functions as well.

STEPS TO REPRODUCE
1. Create a simple document
2. Display the scripting console
3. Type "document.find_by_uuid('...')" followed by Enter. (Crashes with arbitrary string passed - no valid uuid needed to reproduce.)

OBSERVED RESULT

Application crashes.

EXPECTED RESULT

Application does not crash. If the function is used with invalid arguments, an error is reported in the console.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.4.5
KDE Frameworks Version: 6.18.0
Qt Version: 6.9.2
Kernel Version: 6.16.8-arch3-1 (64-bit)
Graphics Platform: Wayland

Glaxnimate version: 0.5.4-7 (https://aur.archlinux.org/packages/glaxnimate)

ADDITIONAL INFORMATION

I tried various arguments, including a well formatted UUID string "{xxxx....}" and a uuid.UUID instance constructed beforehand, all with the same result. Only when I tried to pass it a QtUuid instance it did not crash and instead reported a conversion error in the console.