Bug 405831 - Crash with audio clips in Kdenlive Win 19.04beta-git2019
Summary: Crash with audio clips in Kdenlive Win 19.04beta-git2019
Status: RESOLVED MOVED
Alias: None
Product: kdenlive
Classification: Applications
Component: User Interface (show other bugs)
Version: 19.04.0
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-24 19:38 UTC by emohr
Modified: 2019-06-20 08:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
fritzibaby: Brainstorm+


Attachments
MP3 that was used in testing (1.52 MB, audio/mp3)
2019-03-25 00:08 UTC, Justin Irwin
Details
WAV that was used in testing (3.18 MB, audio/wav)
2019-03-25 00:22 UTC, Justin Irwin
Details
WAV file (3.62 MB, audio/wav)
2019-03-25 17:47 UTC, emohr
Details
MP3 file (224.61 KB, audio/mpeg)
2019-03-25 17:48 UTC, emohr
Details
librttr_core.dll (3.89 MB, application/x-msdownload)
2019-04-13 11:14 UTC, emohr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emohr 2019-03-24 19:38:07 UTC
SUMMARY
When I try to add an audio clip to the project, the application hangs for a moment and then exits. I tried several file both .wav and .mp3 files and all files caused this. I tried disabling audio thumbnails and waveform overlay but neither of those seemed to be the cause. Funny enough, audio already muxed in video seems to work fine, it's only when you add audio only clips/ 

STEPS TO REPRODUCE
1. add audio clip
2. crash
3. 


SOFTWARE/OS VERSIONS
Windows: Win10
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 emohr 2019-03-24 19:41:13 UTC
I tried on Win7 and Win10 with MP3 and WAV files. No crash.
Comment 2 Justin Irwin 2019-03-25 00:08:00 UTC
Created attachment 119014 [details]
MP3 that was used in testing
Comment 3 Justin Irwin 2019-03-25 00:22:57 UTC
Created attachment 119016 [details]
WAV that was used in testing

Cut down from original file with Audacity to meet file size limits.
Comment 4 emohr 2019-03-25 17:47:33 UTC
Created attachment 119028 [details]
WAV file

Confirmed. Only on Win10 your file leads to a crash of Kdenlive. On Win7 no crash.

Your wav file is a "PCM (Little/Signed)" -> Try with my uploaded "PCM (IEEE,Float)" wave file. 

Your MP3 file is a "(Joint stereo/MS Stereo)" -> Try with my uploaded MP3 file
Comment 5 emohr 2019-03-25 17:48:16 UTC
Created attachment 119029 [details]
MP3 file

And here the MP3 file
Comment 6 Justin Irwin 2019-03-25 22:54:16 UTC
Both still crash on my Windows 10. The crash also occurs on another Win10 PC I have so it is not just the one machine.
Comment 7 emohr 2019-03-26 19:45:34 UTC
Confirmed. Seems to be an Win10 issue only. 

I opend issue https://invent.kde.org/kde/kdenlive/issues/117
Comment 8 emohr 2019-03-28 17:21:48 UTC
Which version of Win10 do you have?

Type into the search field “winver” and you get i.e: “1803 build 17134” or “1809 build 17763”. 

Can you insert clips without crash?
Comment 9 Justin Irwin 2019-03-28 23:21:47 UTC
1803 build 17134.648
Comment 10 emohr 2019-03-30 19:25:17 UTC
Please try with the new uploaded version from 29.Mrz 19 here: https://files.kde.org/kdenlive/unstable/ . 

You can either use the EXE as installation version or the portable 7z file. In the 7z file Kdenlive.exe is in the “bin” folder
Comment 11 Justin Irwin 2019-03-31 15:29:18 UTC
The crash still occurs.
Comment 12 emohr 2019-03-31 15:55:29 UTC
Would be interesting to test if these files play with melt (MLT' command line application).

On your win10 PC, can you try from a terminal (win+r -> type “cmd”): 

melt.exe your_audio_file.mp3 -consumer sdl2_audio. 

Or with path if you have installed Kdenlive and the file is on the desktop: 

"C:\Program Files\kdenlive\bin\melt.exe" "c:\users\YourUserName\desktop\Audio_MP3_audio-ed-fade-none.mp3" -consumer sdl2_audio . 

And report what happens
Comment 13 Justin Irwin 2019-04-01 01:09:28 UTC
It plays the file. I get a warning "Estimating duration from bitrate, this may be inaccurate" which I think is fairly normal, and I get the normal Melt controls. Everything is pretty much what I would expect.
Comment 14 emohr 2019-04-01 15:33:47 UTC
Thank you for the feedback.

Do you run Win10 on an Intel or AMD machine?

All audio driver updated?
Comment 15 Justin Irwin 2019-04-01 17:24:06 UTC
All audio and video drivers are the latest available and both machines I have tested are Intel CPUs, I will test an AMD GPU if I can get my hands on one. I have tested on one machine with an Nvidia GPU and one with an AMD GPU if it matters.
Comment 16 emohr 2019-04-02 19:23:04 UTC
I can reproduce the crash on Win10 and Win7. 

If you start Kdenlive the first time and add a file (audio or video) Kdenlive crashes. 

To reproduce it: Win+r -> appdata -> local -> delete the “Kdenlive” folder and the “Kdenliverc” & “KDE…” file. Start Kdenlive import or drag/drop an audio or video file -> crash. If you start Kdenlive after the crash I can import audio or video files. Thank you reporting this bug.
Comment 17 Justin Irwin 2019-04-03 04:07:10 UTC
For me it only crashes on audio and no matter how many subsequent attempts I make, it always crashes.
Comment 18 emohr 2019-04-12 15:17:45 UTC
Uploaded today the actual refactoring version which should fix the MP3 issue. 

Can you test: https://files.kde.org/kdenlive/unstable/kdenlive-19.04beta-20190411_portable.exe 
Double click the self-extracting exe (not an installer, does not need admin rights to extract). To start Kdenlive double click Kdenlive.exe in the “bin” folder.
Comment 19 Justin Irwin 2019-04-12 15:53:49 UTC
Tee app does not even launch, I get the following error. 

"The code execution cannot proceed because librttr_core.dll was not found. Reinstalling the program may fix this problem."
Comment 20 emohr 2019-04-13 11:14:47 UTC
Created attachment 119396 [details]
librttr_core.dll

I tested it before. Take the uploaded “librttr_core.dll” (packed as selve extracting exe) and put it into the “bin” folder where Kdenlive.exe is.
Comment 21 Justin Irwin 2019-04-13 14:39:16 UTC
It runs now but I still get a crash adding audio.
Comment 22 Vincent PINON 2019-04-21 23:21:26 UTC
Hello,
With today's code, it doesn't crash anymore, just showing message it can't load the clip...
After program restart it does load the clips.
Still to do some progress.
Comment 23 emohr 2019-04-24 08:41:11 UTC
Hi Justin. Please try with the uploaded version 19.04.0-2. Either the install version or the portable version.
Comment 24 Justin Irwin 2019-04-24 14:48:56 UTC
It still crashes. I'm not sure if it's new behavior or I did not notice it before but it sounds like it attempts to play the audio clip before it crashes. I hear a brief blip of audio before it closes.
Comment 25 emohr 2019-04-24 16:12:29 UTC
Can you check if directX has some issue with the audio driver: https://support.microsoft.com/en-us/search?query=update%20directX%20in%20windows%2010

If yes please update: directX, audio driver.
Comment 26 emohr 2019-04-24 18:50:52 UTC
We have probably the same issue here under Linux: https://bugs.kde.org/show_bug.cgi?id=406843
Comment 27 Justin Irwin 2019-06-09 14:56:39 UTC
For me this appears to be fixed in the latest version, 19.0.4.2-2.
Comment 28 emohr 2019-06-10 10:28:05 UTC
Glad to hear it works now and thank you for the feedback and contribution. 

In the meantime I got a crash adding an MP3 with embedded picture on Windows as well. 

We close this bug as we track the issue further here: https://invent.kde.org/kde/kdenlive/issues/117
Comment 29 emohr 2019-06-20 08:10:03 UTC
If it occours again: Can you disable timeline thumbnails (audio and video) and check if the issue still happens?