Created attachment 154278 [details] backtrace after interruption of application SUMMARY kdenlive hangs forever on 'quit' STEPS TO REPRODUCE 1. start kdenlive 2. quit the application OBSERVED RESULT Application never finishes EXPECTED RESULT Application should terminate SOFTWARE/OS VERSIONS Kdenlive: 22.08.3 Package Type: Unknown/Default MLT: 7.12.0 Qt: 5.15.3 (built against 5.15.3 x86_64-little_endian-lp64) Frameworks: 5.92.0 System: Ubuntu 22.04.1 LTS Kernel: linux 5.15.0-30-generic CPU: x86_64 Windowing System: xcb Movit (GPU): disabled Track Compositing: frei0r.cairoblend ADDITIONAL INFORMATION The problem occurs both with the AppImage as well as the Ubuntu PPA version. However, it only occurs on one of my computers. I observe a similar (?) problem when performing other operations within kdenlive. For example, when loading an existing project, "loading clips" never completes (the status stops at "99%"). I did look for debug symbols to run kdenlive from dbg, but these were not available in the ubuntu ppa. Nevertheless, running kdenlive from gdb, I get: (No debugging symbols found in kdenlive) (gdb) run Starting program: /usr/bin/kdenlive [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff0209640 (LWP 15984)] [New Thread 0x7fffef89f640 (LWP 15985)] [New Thread 0x7fffed15a640 (LWP 15987)] [New Thread 0x7fffec925640 (LWP 15988)] Could not detect package type, probably default? App dir is "/usr/bin" === /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER profilePath from KdenliveSetting::mltPath: "/usr/share/mlt-7/profiles" meltPath from KdenliveSetting::rendererPath: "/usr/bin/melt-7" [New Thread 0x7fffc9f0a640 (LWP 15989)] Empty metadata for "audiochannels" Empty metadata for "audioconvert" Empty metadata for "imageconvert" Empty metadata for "avcolour_space" Empty metadata for "avcolor_space" Empty metadata for "avdeinterlace" Empty metadata for "swscale" Empty metadata for "swresample" Empty metadata for "glsl.manager" Empty metadata for "movit.convert" Empty metadata for "movit.crop" Empty metadata for "movit.resample" Empty metadata for "movit.resize" Empty metadata for "telecide" Empty metadata for "deinterlace" plugin not available: "avfilter.acompressor" plugin not available: "avfilter.aecho" plugin not available: "avfilter.agate" plugin not available: "avfilter.atadenoise" plugin not available: "avfilter.bwdif" plugin not available: "avfilter.deblock" plugin not available: "avfilter.dedot" plugin not available: "avfilter.deflate" plugin not available: "avfilter.derain" plugin not available: "avfilter.doubleweave" plugin not available: "avfilter.field" plugin not available: "avfilter.framestep" plugin not available: "avfilter.fspp" plugin not available: "avfilter.graphmonitor" plugin not available: "avfilter.hqdn3d" plugin not available: "avfilter.inflate" plugin not available: "avfilter.lagfun" plugin not available: "avfilter.loudnorm" plugin not available: "avfilter.random" plugin not available: "avfilter.removegrain" plugin not available: "avfilter.separatefields" plugin not available: "avfilter.shuffleplanes" plugin not available: "avfilter.sr" plugin not available: "avfilter.tmix" plugin not available: "avfilter.w3fdif" plugin not available: "avfilter.weave" plugin not available: "avfilter.yadif" plugin not available: "frei0r.baltan" plugin not available: "frei0r.bgsubtract0r" plugin not available: "frei0r.bigsh0t_eq_mask" plugin not available: "frei0r.bigsh0t_eq_to_rect" plugin not available: "frei0r.bigsh0t_eq_to_stereo" plugin not available: "frei0r.bigsh0t_hemi_to_eq" plugin not available: "frei0r.bigsh0t_rect_to_eq" plugin not available: "frei0r.bigsh0t_stabilize_360" plugin not available: "frei0r.bigsh0t_transform_360" plugin not available: "frei0r.delay0r" plugin not available: "frei0r.delaygrab" plugin not available: "frei0r.facebl0r" plugin not available: "frei0r.facedetect" plugin not available: "frei0r.lightgraffiti" plugin not available: "frei0r.lightgraffiti" plugin not available: "frei0r.tehRoxx0r" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa.9354877" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "movit.unsharp_mask" plugin not available: "region" plugin not available: "timewarp" plugin not available: "opencv.tracker" plugin not available: "region" [New Thread 0x7fffc9709640 (LWP 15990)] [New Thread 0x7fffc399c640 (LWP 15991)] QQmlEngine::setContextForObject(): Object already has a QQmlContext [New Thread 0x7fffc274a640 (LWP 15992)] [New Thread 0x7fffc1509640 (LWP 15993)] [Detaching after fork from child process 15994] [Detaching after fork from child process 15996] [Detaching after fork from child process 15998] [New Thread 0x7fffc0b6d640 (LWP 16000)] [New Thread 0x7fffaf7bf640 (LWP 16001)] [New Thread 0x7fffaef40640 (LWP 16002)] [New Thread 0x7fffadcff640 (LWP 16003)] [New Thread 0x7fffad480640 (LWP 16004)] [New Thread 0x7fffacc77640 (LWP 16005)] [New Thread 0x7fff93fff640 (LWP 16006)] [New Thread 0x7fff9357e640 (LWP 16007)] [New Thread 0x7fff92b15640 (LWP 16008)] [Thread 0x7fff92b15640 (LWP 16008) exited] [New Thread 0x7fff92b15640 (LWP 16009)] [New Thread 0x7fff922cf640 (LWP 16010)] [New Thread 0x7fff919ba640 (LWP 16011)] [New Thread 0x7fff90f65640 (LWP 16012)] [New Thread 0x7fff7bfff640 (LWP 16013)] [New Thread 0x7fff7b7fe640 (LWP 16014)] QQmlEngine::setContextForObject(): Object already has a QQmlContext [New Thread 0x7fff7a676640 (LWP 16015)] [New Thread 0x7fff7a635640 (LWP 16016)] [New Thread 0x7fff79e34640 (LWP 16017)] [New Thread 0x7fff7961e640 (LWP 16018)] [New Thread 0x7fff78ad0640 (LWP 16019)] [New Thread 0x7fff3f59f640 (LWP 16020)] (--- at this stage, the GUI is visible and I just quit kdenlive ---) [Thread 0x7fffc9f0a640 (LWP 15989) exited] qrc:/qml/timeline.qml:1643: TypeError: Cannot read property 'isSubtitleTrack' of null qrc:/qml/timeline.qml:977: TypeError: Cannot read property 'isSubtitleTrack' of null [Thread 0x7fffc274a640 (LWP 15992) exited] [Thread 0x7fff7b7fe640 (LWP 16014) exited] [Thread 0x7fff78ad0640 (LWP 16019) exited] [Thread 0x7fff7a635640 (LWP 16016) exited] (--- then kdenlive hangs, and I interrupt the application with CTRL-C ---) Thread 1 "kdenlive" received signal SIGINT, Interrupt. __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=16018, futex_word=0x7fff7961e910) at ./nptl/futex-internal.c:57 57 ./nptl/futex-internal.c: No such file or directory. (gdb) The backtrace of all threads is attached
Addition: the problem also does not always occur. When playing around, I sometimes (but rarely) was able to quit kdenlive without it hanging.
I now compiled kdenlive (master branch with debug symbols). The program sometimes terminates normally, but sometimes hangs, as did the version from the Ubuntu PPA. I attach the gdb backtrace to this update. Let me know if I can help with further tests/information.
Created attachment 154304 [details] gdb backtrace, kdenlive compiled from master branch with debug symbols
Thanks for the very helpful backtrace. Looks like something weird is happening when the MLT consumer is stopped when the clip/project monitor is closed during application exit. I'm guessing this hang will never happen if you close Kdenlive when the project is empty? Is there anything different about the desktop environments, GPU drivers, or GPU driver versions between your two computers? There were some bugs related to MLT multiprocessing that were fixed in 22.12. If you can still reproduce this problem with Kdenlive 22.12, can you try also getting a backtrace with additional debugging symbols? You should be able to do something like: $ export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com" $ gdb path/to/kdenlive It should ask you "Enable debuginfod for this session?" which should additionally add symbols to your backtrace for the libraries you installed via apt. (Instructions from: https://ubuntu.com/server/docs/service-debuginfod )
(In reply to erjiang from comment #4) > Thanks for the very helpful backtrace. Looks like something weird is > happening when the MLT consumer is stopped when the clip/project monitor is > closed during application exit. I'm guessing this hang will never happen if > you close Kdenlive when the project is empty? It did also with the empty project. > Is there anything different about the desktop environments, GPU drivers, or > GPU driver versions between your two computers? Not that I would know of. The one with the problem just is an older, slower machine. > There were some bugs related to MLT multiprocessing that were fixed in > 22.12. If you can still reproduce this problem with Kdenlive 22.12, can you > try also getting a backtrace with additional debugging symbols? > > You should be able to do something like: > > $ export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com" > $ gdb path/to/kdenlive > > It should ask you "Enable debuginfod for this session?" which should > additionally add symbols to your backtrace for the libraries you installed > via apt. (Instructions from: > https://ubuntu.com/server/docs/service-debuginfod ) I just did, and it seems that kdenlive still sometimes hangs when exiting. Just now, for example, I got this output: (gdb) run Starting program: /usr/local/bin/kdenlive [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff01fd640 (LWP 27603)] [New Thread 0x7fffef893640 (LWP 27604)] [New Thread 0x7fffed14d640 (LWP 27606)] [New Thread 0x7fffec918640 (LWP 27607)] Could not detect package type, probably default? App dir is "/usr/local/bin" profilePath from KdenliveSetting::mltPath: "/usr/share/mlt-7/profiles" meltPath from KdenliveSetting::rendererPath: "/usr/bin/melt-7" [New Thread 0x7fffc9f47640 (LWP 27608)] Empty metadata for "audiochannels" Empty metadata for "audioconvert" Empty metadata for "imageconvert" Empty metadata for "avcolour_space" Empty metadata for "avcolor_space" Empty metadata for "avdeinterlace" Empty metadata for "swscale" Empty metadata for "swresample" Empty metadata for "glsl.manager" Empty metadata for "movit.convert" Empty metadata for "movit.crop" Empty metadata for "movit.resample" Empty metadata for "movit.resize" Empty metadata for "telecide" Empty metadata for "deinterlace" plugin not available: "avfilter.acompressor" plugin not available: "avfilter.aecho" plugin not available: "avfilter.agate" plugin not available: "avfilter.atadenoise" plugin not available: "avfilter.bwdif" plugin not available: "avfilter.deblock" plugin not available: "avfilter.dedot" plugin not available: "avfilter.deflate" plugin not available: "avfilter.derain" plugin not available: "avfilter.doubleweave" plugin not available: "avfilter.field" plugin not available: "avfilter.framestep" plugin not available: "avfilter.fspp" plugin not available: "avfilter.graphmonitor" plugin not available: "avfilter.hqdn3d" plugin not available: "avfilter.inflate" plugin not available: "avfilter.lagfun" plugin not available: "avfilter.loudnorm" plugin not available: "avfilter.random" plugin not available: "avfilter.removegrain" plugin not available: "avfilter.separatefields" plugin not available: "avfilter.shuffleplanes" plugin not available: "avfilter.sr" plugin not available: "avfilter.tmix" plugin not available: "avfilter.w3fdif" plugin not available: "avfilter.weave" plugin not available: "avfilter.yadif" plugin not available: "frei0r.baltan" plugin not available: "frei0r.bgsubtract0r" plugin not available: "frei0r.bigsh0t_eq_mask" plugin not available: "frei0r.bigsh0t_eq_to_rect" plugin not available: "frei0r.bigsh0t_eq_to_stereo" plugin not available: "frei0r.bigsh0t_hemi_to_eq" plugin not available: "frei0r.bigsh0t_rect_to_eq" plugin not available: "frei0r.bigsh0t_stabilize_360" plugin not available: "frei0r.bigsh0t_transform_360" plugin not available: "frei0r.delay0r" plugin not available: "frei0r.delaygrab" plugin not available: "frei0r.facebl0r" plugin not available: "frei0r.facedetect" plugin not available: "frei0r.lightgraffiti" plugin not available: "frei0r.lightgraffiti" plugin not available: "frei0r.tehRoxx0r" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa.9354877" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "ladspa" plugin not available: "movit.unsharp_mask" plugin not available: "timewarp" plugin not available: "opencv.tracker" plugin not available: "frei0r.sleid0r_push-down" plugin not available: "frei0r.sleid0r_push-left" plugin not available: "frei0r.sleid0r_push-right" plugin not available: "frei0r.sleid0r_push-up" plugin not available: "frei0r.sleid0r_slide-down" plugin not available: "frei0r.sleid0r_slide-left" plugin not available: "frei0r.sleid0r_slide-up" plugin not available: "frei0r.sleid0r_slide-right" plugin not available: "frei0r.sleid0r_wipe-barn-door-h" plugin not available: "frei0r.sleid0r_wipe-barn-door-v" plugin not available: "frei0r.sleid0r_wipe-circle" plugin not available: "frei0r.sleid0r_wipe-down" plugin not available: "frei0r.sleid0r_wipe-left" plugin not available: "frei0r.sleid0r_wipe-rect" plugin not available: "frei0r.sleid0r_wipe-right" plugin not available: "frei0r.sleid0r_wipe-up" plugin not available: "region" === /// CANNOT ACCESS SPEECH DICTIONARIES FOLDER [New Thread 0x7fffc96fb640 (LWP 27609)] [New Thread 0x7fffc398f640 (LWP 27630)] QQmlEngine::setContextForObject(): Object already has a QQmlContext [New Thread 0x7fffc273d640 (LWP 27631)] [New Thread 0x7fffc14fc640 (LWP 27632)] [Detaching after fork from child process 27633] [Detaching after fork from child process 27635] [Detaching after fork from child process 27637] [New Thread 0x7fffc0b5f640 (LWP 27639)] [New Thread 0x7fffaffff640 (LWP 27640)] Hspell: can't open /usr/share/hspell/hebrew.wgz.sizes. kf.sonnet.clients.hspell: HSpellDict::HSpellDict: Init failed QQmlEngine::setContextForObject(): Object already has a QQmlContext [New Thread 0x7fffaeb0d640 (LWP 27641)] [New Thread 0x7fffae28e640 (LWP 27642)] QQmlEngine::setContextForObject(): Object already has a QQmlContext QQmlEngine::setContextForObject(): Object already has a QQmlContext [New Thread 0x7fffad04d640 (LWP 27643)] [New Thread 0x7fff9bfff640 (LWP 27644)] [New Thread 0x7fff9b7fe640 (LWP 27645)] [New Thread 0x7fff9affd640 (LWP 27646)] [New Thread 0x7fff9a7fc640 (LWP 27647)] [New Thread 0x7fff99dbb640 (LWP 27648)] [Thread 0x7fff99dbb640 (LWP 27648) exited] [New Thread 0x7fff99dbb640 (LWP 27649)] [New Thread 0x7fff995ba640 (LWP 27650)] [New Thread 0x7fff98cb9640 (LWP 27651)] [New Thread 0x7fff77fff640 (LWP 27652)] [New Thread 0x7fff777fe640 (LWP 27653)] [New Thread 0x7fff76ffd640 (LWP 27654)] :::: USING TRACK COMPOSITING: "frei0r.cairoblend" QQmlEngine::setContextForObject(): Object already has a QQmlContext :::: USING TRACK COMPOSITING: "frei0r.cairoblend" [New Thread 0x7fff75976640 (LWP 27655)] [New Thread 0x7fff75935640 (LWP 27656)] [New Thread 0x7fff75134640 (LWP 27657)] :::: USING TRACK COMPOSITING: "frei0r.cairoblend" :::: USING TRACK COMPOSITING: "frei0r.cairoblend" [New Thread 0x7fff7491c640 (LWP 27658)] [New Thread 0x7fff37d5f640 (LWP 27659)] [New Thread 0x7fff36881640 (LWP 27660)] [Thread 0x7fffc273d640 (LWP 27631) exited] [Thread 0x7fff76ffd640 (LWP 27654) exited] [Thread 0x7fff37d5f640 (LWP 27659) exited] [Thread 0x7fff75935640 (LWP 27656) exited] [Thread 0x7fffc9f47640 (LWP 27608) exited] ^C Thread 1 "kdenlive" received signal SIGINT, Interrupt. __futex_abstimed_wait_common64 (private=128, cancel=true, abstime=0x0, op=265, expected=27658, futex_word=0x7fff7491c910) at ./nptl/futex-internal.c:57 Download failed: Invalid argument. Continuing without source file ./nptl/./nptl/futex-internal.c. 57 ./nptl/futex-internal.c: No such file or directory. (gdb) cont Continuing. (above, I hit CTRL-C after several minutes of inactivity).
Created attachment 155367 [details] backtrace after interruption during stuck quit operation backtrace, kdenlive compiled from latest master branch: Version 23.03.70 (rev. 230736067)