terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = haruna path = /usr/bin pid = 18533 KCrash: Arguments: /usr/bin/haruna Sans.titre.mkv KCrash: Attempting to start /usr/lib64/libexec/drkonqi STEPS TO REPRODUCE 1. compile haruna 0.10.0 2. CLI : haruna video.mkv SOFTWARE/OS VERSIONS Linux/KDE Plasma: 5.26.4 KDE Plasma Version: KDE Frameworks Version: 5.101 Qt Version: 5.15.7
Clear your cache. Also relative paths are not supported.
Sorry, but I don't understand what "clear your cache" means ditto for "relative path" I build haruna since the first release, without any issue But I don't know how to proceed with your advice
(In reply to marav from comment #2) > Sorry, but I don't understand what "clear your cache" means Delete/rename `/home/username/.cache/KDE/haruna` and try again. > ditto for "relative path" https://linuxhandbook.com/absolute-vs-relative-path/
Thanks, cache cleared Yes, I know what is absolute/relative path But in this case, what you called "relative path" ? note: I observed the same behavior after cleaning the cache and launching the video via Dolphin
Are you on Arch?
(In reply to george fb from comment #5) > Are you on Arch? nope Slackware
the return to 0.9.3 works without any issue
Don't know, try the flatpak maybe. Else try to find which commit broke things with `git bisect`.
This is the last commit that works https://invent.kde.org/multimedia/haruna/-/commit/6e576bf49480e972d9014c1bb0215af3a87f2ea2 The next one fails https://invent.kde.org/multimedia/haruna/-/commit/d3badf5fb210b94ff22da396d961e24f801e99f2 Same error: terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc KCrash: crashing... crashRecursionCounter = 2 KCrash: Application Name = haruna path = /usr/bin pid = 5882 KCrash: Arguments: /usr/bin/haruna /home/marav/Vidéos/Sans.titre.mkv
Created attachment 154967 [details] krash report Attch. crash report
hope this helps
Hi George haruna 0.10.0 is running fine on Slackware Stable 15.0 As I use the development version (current), there are many differences especially: 15.0: - glibc 2.33 - glib2 2.70.3 current: - glibc 2.36 - glib2 2.74.4 Today, the error looks like this: malloc(): invalid size (unsorted) [1] 13264 alarm haruna /home/marav/Vidéos/Sans.titre.mkv
Don't know, it doesn't look like a Haruna issue. Do other qml apps (Elisa, NeoChat) work?
(In reply to george fb from comment #13) > Don't know, it doesn't look like a Haruna issue. > It seems, indeed > Do other qml apps (Elisa, NeoChat) work? Yep, Elisa works fine As long as it works on Stable, it's ok for me (I maintain the pkg build only for stable anyway) There are probably too many factors to review to find the culprit Thanks for your support !
This problem happens when opening a video with "Maximum recent files" in Haruna set to "0". When it's set to 0, and I try to play a video, Haruna crashes. When it's set to 1 or above, it works fine.
(In reply to p d from comment #15) > This problem happens when opening a video with "Maximum recent files" in > Haruna set to "0". When it's set to 0, and I try to play a video, Haruna > crashes. When it's set to 1 or above, it works fine. Awesome! That also explains why Youtube Video was working Thank you very much!
Git commit 928c81d326ec2b9529e183cc1816484252703357 by George Florea Bănuș. Committed on 06/01/2023 at 11:46. Pushed by georgefb into branch 'master'. recentfilesmodel: don't try to add files if option was disabled (MaxRecentFiles = 0) M +4 -0 src/models/recentfilesmodel.cpp https://invent.kde.org/multimedia/haruna/commit/928c81d326ec2b9529e183cc1816484252703357