Long filenames (might be) crashing SC

Hi There!

I might have hit a bug… please advise.

Shutcut instantly crashes (segmentation fault) when trying to add some particular files to the playlist with not project started. Apparently it has something to do with filenames like “formacionpm.3.m%c3%b3dulo-i—encuentro1 on 2022-07-08 19-15.mp4”
In the context of an open project, instead of crashing, the “open file” dialog closes but no file is added to the playlist.

Renaming the aforementioned file to “shortn~1.mp4” makes everything work smoothly (adding media, editing, exporting).

Otherwise, Shotcut works like a charm!! Many thanks developers/community :slight_smile:

Vol format: AFS, not encrypted, not case sensitive. (macFUSE installed)
Version: 22.06 (22.06.23)
Code Type: ARM-64 (Native) (Rosetta installed)
OS Version: macOS 12.5 (21G72)
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11

Try it without the % symbol in the filename and see if that works. The percent sign has been a problem in the past, IIRC.

Hi Austin,

Your advice was spot-on. Changing from “formacionpm.3.m%c3%b3dulo-i—encuentro1 on 2022-07-08 19-15.mp4” to “formacionpm.3.m_c3_b3dulo-i—encuentro1 on 2022-07-08 19-15.mp4”, served as a workaround.

Although, percent sign is very common in filenames due to URL-enconding upon downloads, is nice to know the cause.

Thanks!

It was URL-decoding the file name. Your file name was being converted to
formacionpm.3.módulo-i—encuentro1 on 2022-07-08 19-15.mp4

This is fixed for the next version: both the crash and accepting the file with percent sign in its name.

3 Likes

Hi Dan,

Good to know, thanks a bunch!