Bug 364105 - git master - Freezing then crashing when adding video clip to Project Bin
Summary: git master - Freezing then crashing when adding video clip to Project Bin
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface & Miscellaneous (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-08 16:19 UTC by Unknown
Modified: 2016-06-27 19:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
backtrace data (34.13 KB, text/plain)
2016-06-10 18:59 UTC, Unknown
Details
Here's another backtrace log when I tried to add a different clip. (18.23 KB, text/plain)
2016-06-13 22:57 UTC, Unknown
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Unknown 2016-06-08 16:19:38 UTC
Kdenlive is crashing when I open the program, add a clip, then switch the profile to the suggested one while it's loading the audio thumbnails. Running from Terminal produces this:

"This is an untested development version. Always backup your data"
Removing cache at "/home/jesse/.cache/kdenlive-thumbs.kcache"
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: Phonon::createPath: Cannot connect  Phonon::MediaObject ( no objectName ) to  Phonon::AudioOutput ( no objectName ).
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
OpenGL vendor:  "NVIDIA Corporation"
OpenGL renderer:  "GeForce GTX 970M/PCIe/SSE2"
OpenGL ARG_SYNC:  true
OpenGL OpenGLES:  false
KServiceTypeTrader: serviceType "ThumbCreator" not found
KServiceTypeTrader: serviceType "ThumbCreator" not found
KSambaShare: Could not find smb.conf!
KServiceTypeTrader: serviceType "ThumbCreator" not found
KServiceTypeTrader: serviceType "ThumbCreator" not found
[swscaler @ 0x7efe9cf83bc0] Warning: data is not aligned! This can lead to a speedloss
"Creating audio thumbnails"
////////////////////  DISCARD AUIIO THUMBNS
Segmentation fault (core dumped)


Reproducible: Always

Steps to Reproduce:
1. Open Kdenlive
2. Click Add Clip in Project Bin
3. Select video file (could possibly be specific to the video file I'm using)
4. While Kdenlive is creating audio thumbnails, click "Switch Profile" to switch the project to the suggested profile.

Actual Results:  
System either freezes then crashes, or crashes immediately.

Expected Results:  
System not crash.

Bug discovered while using Kdenlive 16.07.70 from the ppa:kdenlive/kdenlive-master git master build.

Ubuntu GNOME 16.04 x64, GNOME 3.18.

KDE Frameworks 5.18.0
Qt 5.5.1 (built against 5.5.1)
Comment 1 Jean-Baptiste Mardelle 2016-06-08 23:28:55 UTC
I cannot reproduce. Can you post a gdb backtrace ?
https://kdenlive.org/node/872 (last paragraph)
Comment 2 Unknown 2016-06-09 05:10:19 UTC
You bet, ill get it and send off in the morning. 22:13 over here. :)
Comment 3 Unknown 2016-06-10 18:00:43 UTC
Ugh... of course it's an intermittent issue. When it comes up again, I'll get the backtrace and send it along. Running a few more tests to try and trigger it, now.
Comment 4 Unknown 2016-06-10 18:21:32 UTC
I got the bug to reoccur consistently, but trying to run "thread apply all bt full" in gdb gives this error: "thread apply all bt full". Any ideas how I can fix this to get the backtrace data? I tried both the backtrace technique from the link you gave me and from an e-mail Paul Konecny sent me a while back:


1. Install gdb (the GNU debugger)
2. open a terminal and run "gdb kdenlive"
3. wait till it says "reading symbols for kdenlive ... done"
4. the gdb shell (gdb) appears
5. tell it where to log with "set logging file /home/johndoe/janedoe.log"
6. Turn logging on with "set logging on"
7. type "run" to start the program
8. When the crash happened it will say so in the gdb shell
9. To run a backtrace type "thread apply all bt full" and keep hitting 
enter until you're back to the gdb shell
10. type quit and confirm to kill the inferior process.
11. Done. Now you can attach the log file to the bug report ;)
Comment 5 Unknown 2016-06-10 18:59:10 UTC
Restarting my PC fixed the backtrace issue. Including the data in an attachment.
Comment 6 Unknown 2016-06-10 18:59:45 UTC
Created attachment 99445 [details]
backtrace data
Comment 7 Unknown 2016-06-13 22:57:58 UTC
Created attachment 99484 [details]
Here's another backtrace log when I tried to add a different clip.

Keep in mind this crash only happens when you click "Switch profile" WHILE the audio thumbnails are being generated. Once the generating is done, clicking "Switch Profile" - I believe - doesn't cause the crash. I'll test more to confirm that completely.
Comment 8 Jean-Baptiste Mardelle 2016-06-19 20:33:39 UTC
Git commit 6d517d66be2acac9db952e0bc673edc97d582322 by Jean-Baptiste Mardelle.
Committed on 19/06/2016 at 20:33.
Pushed by mardelle into branch 'master'.

Make sure to abort audio thumb jobs before changing profile

M  +2    -1    src/doc/kdenlivedoc.cpp

http://commits.kde.org/kdenlive/6d517d66be2acac9db952e0bc673edc97d582322
Comment 9 Unknown 2016-06-27 19:05:02 UTC
Looks like this is fixed in the latest git master build. Thanks JB!