Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segmentation fault (core dumped) when file names contain weird characters #87

Closed
Resend1298 opened this issue Dec 6, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Resend1298
Copy link

Got [1] 167480 segmentation fault (core dumped) video-compare
when running video-compare ♥.mp4 a.mp4 .
(I believe it's U+2665 ?)

I'm using 20241124-nuuk on Arch Linux from AUR.

@jonfryd jonfryd added bug Something isn't working os: linux Linux labels Dec 7, 2024
@jonfryd jonfryd closed this as completed in 0de1a0b Dec 7, 2024
@jonfryd
Copy link
Member

jonfryd commented Dec 7, 2024

Thank you for reporting this, @Resend1298. The issue was indeed caused by that Unicode character, which the SDL TTF rendering engine couldn’t handle in high-quality "blended mode", leading to the segfault. I’ve implemented a fallback to a more robust rendering method (TTF_RenderUTF8_Solid) to handle such cases. While the output quality might not be as good, the tool will at least function correctly.

@jonfryd
Copy link
Member

jonfryd commented Dec 7, 2024

Screenshot 2024-12-07 at 09 20 57

@jonfryd jonfryd removed the os: linux Linux label Dec 7, 2024
@Resend1298
Copy link
Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants