Bug 356887 - crash during auto conversion of valid (previous version) project
Summary: crash during auto conversion of valid (previous version) project
Status: CLOSED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Video Display & Export (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-18 22:36 UTC by Alex Kern
Modified: 2018-01-10 14:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
gdb logging file (18.96 KB, text/plain)
2015-12-18 22:40 UTC, Alex Kern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Kern 2015-12-18 22:36:20 UTC
openSUSE Leap 42.1 kdenlive 15.12
crash on clipitem.cpp:762 caused by fact that for all my projects in line 755
m_binClip->audioFrameCache is empty!

Reproducible: Always

Steps to Reproduce:
1. have an older version project
2. open it with new 15.12 version
3. after a long period of time kdenlive window just disappears

Actual Results:  
Backup file is created but useless. The original project file is not really converted.

Expected Results:  
The project is converted and can be edited with new version

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff13b7f36 in QVariant::toDouble(bool*) const () from /usr/lib64/libQt5Core.so.5

(gdb) backtrace
#0  0x00007ffff13b7f36 in QVariant::toDouble(bool*) const () at /usr/lib64/libQt5Core.so.5
#1  0x00000000005081fc in ClipItem::paint(QPainter*, QStyleOptionGraphicsItem const*, QWidget*) (this=
    0x5874e60, painter=0x7fffffffb580, option=<optimized out>) at /usr/src/debug/kdenlive-15.12.0/src/timeline/clipitem.cpp:762
#2  0x00007ffff2ba58a3 in  () at /usr/lib64/libQt5Widgets.so.5
#3  0x00007ffff2ba69d2 in  () at /usr/lib64/libQt5Widgets.so.5
#4  0x00007ffff2ba6ebd in  () at /usr/lib64/libQt5Widgets.so.5
#5  0x00007ffff2bc8a8d in QGraphicsView::paintEvent(QPaintEvent*) () at /usr/lib64/libQt5Widgets.so.5

(gdb) up
#1  0x00000000005081fc in ClipItem::paint (this=0x5874e60, painter=0x7fffffffb580, option=<optimized out>)
    at /usr/src/debug/kdenlive-15.12.0/src/timeline/clipitem.cpp:762
762                     double value = m_binClip->audioFrameCache.at(qMin(i * channels, audioLevelCount)).toDouble() / 256;
(gdb) display audioLevelCount
1: audioLevelCount = -1
(gdb) display channels
2: channels = 2
(gdb) display i
3: i = 0

I cannot explain why a cache is empty. What is strange, that conversion process prints almost endless sequence of ...

"Creating audio thumbnails (25/92)"
[mpegts @ 0x7fff7c5e0e80] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fff8590a940] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fff8829ad20] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fff844ba360] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fffac00ed80] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fff8883b120] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fff85910060] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fffac007240] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fff7ca3ff80] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
"Creating audio thumbnails (26/92)"
[mpegts @ 0x7fff7c613440] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fffac0088c0] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fff889899a0] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fff7c613440] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fff84e8b140] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options                                                  
[mpegts @ 0x7fffac0117e0] Could not find codec parameters for stream 2 (Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)): unspecified size                                                                                                                  
Consider increasing the value for the 'analyzeduration' and 'probesize' options
...
etc.

What is scary,  the message box about creation backup and segmentation is not synchronized with conversion process. As the crash happens, the last printed message talks something about "Creating audio thumbnails (27/92)".

Probably cache creation process is not complete and object does not reference the cache at all?
Comment 1 Alex Kern 2015-12-18 22:40:26 UTC
Created attachment 96195 [details]
gdb logging file
Comment 2 Jean-Baptiste Mardelle 2015-12-21 20:32:54 UTC
Git commit a5560c935c59d0f81c4a13347209b51dbb1769ce by Jean-Baptiste Mardelle.
Committed on 21/12/2015 at 20:32.
Pushed by mardelle into branch 'master'.

Fix possible crash on audio thumb display

M  +1    -1    src/timeline/clipitem.cpp

http://commits.kde.org/kdenlive/a5560c935c59d0f81c4a13347209b51dbb1769ce
Comment 3 Jean-Baptiste Mardelle 2015-12-21 20:34:38 UTC
Hi,
Thanks for your report. Crash somehow happens when trying to display the audio thumbs in timeline. I just commited a change in git master that might prevent it, but not sure.

Can you disable audio thumbnails in Kdenlive, then try to open you project file to see if it still crashes ?
Comment 4 Jean-Baptiste Mardelle 2015-12-22 15:04:06 UTC
Git commit ad0f3e58e28651872554678f4b11ab83b04faf62 by Jean-Baptiste Mardelle.
Committed on 22/12/2015 at 15:02.
Pushed by mardelle into branch 'Applications/15.12'.

Fix possible crash on audio thumb display

M  +1    -1    src/timeline/clipitem.cpp

http://commits.kde.org/kdenlive/ad0f3e58e28651872554678f4b11ab83b04faf62
Comment 5 Alex Kern 2015-12-22 22:14:04 UTC
Hi. Thanks for suggestion.
Conversion works with deactivated "audio thumbnails preview ". But crashes as soon as I try to activate it again. It seems that audio thumbnails creation do not work in my projects at all ;-)

Will live without preview.
Comment 6 Alex Kern 2016-01-11 19:54:34 UTC
openSUSE Leap 42.1 kdenlive 15.12.1

does not crashes anymore