| Anonymous | Login | Signup for a new account | 2013-05-20 07:34 CEST | ![]() |
| Main | My View | View Issues | Change Log | Roadmap |
| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
| 0001759 | Kdenlive | MLT | public | 2010-08-23 15:07 | 2010-10-09 15:30 | ||||||||
| Reporter | Granjow | ||||||||||||
| Assigned To | |||||||||||||
| Priority | normal | Severity | crash | Reproducibility | N/A | ||||||||
| Status | new | Resolution | open | ||||||||||
| Platform | OS | OS Version | |||||||||||
| Product Version | |||||||||||||
| Target Version | Fixed in Version | ||||||||||||
| Summary | 0001759: Segfault in utils.c when loading project | ||||||||||||
| Description | Crash on the last line here from utils.c. ic is 0x0. int av_find_stream_info(AVFormatContext *ic) { int i, count, ret, read_size, j; AVStream *st; AVPacket pkt1, *pkt; int64_t last_dts[MAX_STREAMS]; int64_t duration_gcd[MAX_STREAMS]={0}; int duration_count[MAX_STREAMS]={0}; double (*duration_error)[MAX_STD_TIMEBASES]; int64_t old_offset = url_ftell(ic->pb); Called from producer_avformat.c where context is 0x0: // Check if we're seekable (something funny about mpeg here :-/) if ( strncmp( file, "pipe:", 5 ) && strncmp( file, "/dev/", 5 ) && strncmp( file, "http:", 5 ) && strncmp( file, "udp:", 4 ) && strncmp( file, "tcp:", 4 ) && strncmp( file, "rtsp:", 5 ) && strncmp( file, "rtp:", 4 ) ) { this->seekable = av_seek_frame( context, -1, this->start_time, AVSEEK_FLAG_BACKWARD ) >= 0; mlt_properties_set_int( properties, "seekable", this->seekable ); this->dummy_context = context; av_open_input_file( &context, file, NULL, 0, NULL ); av_find_stream_info( context ); Called from producer_avformat.c where producer is not null: // Fetch the video format context AVFormatContext *context = this->video_format; // Get the video_index int index = mlt_properties_get_int( properties, "video_index" ); // Reopen the file if necessary if ( !context && index > -1 ) { mlt_events_block( properties, producer ); producer_open( this, mlt_service_profile( MLT_PRODUCER_SERVICE(producer) ), | ||||||||||||
| Additional Information | This crash does not happen every time. Perhaps every 2nd time I open a project in kdenlive. Only every 10th time when debugging. MLT commit 7b61770bec40c702f5688622c3036ec37c689574 | ||||||||||||
| Tags | No tags attached. | ||||||||||||
| Build/Install Method | Manual build from SVN | ||||||||||||
| Attached Files | |||||||||||||
Notes |
|
|
(0005659) Granjow (developer) 2010-08-23 15:24 |
Updated ffmpeg/mlt/kdenlive to current svn/git, still exists. |
|
(0005770) Granjow (developer) 2010-09-04 12:16 |
Happened again today. Kdenlive shows «(i) Loading Clips» at the bottom left, 45% in the progress bar. Backtrace: 75: 0 av_find_stream_info utils.c 2168 0x00007fffe3bd9dc4 1 producer_open producer_avformat.c 544 0x00007fffe3e14077 2 producer_set_up_video producer_avformat.c 1419 0x00007fffe3e151d8 3 producer_get_frame producer_avformat.c 2022 0x00007fffe3e151d8 4 producer_get_frame mlt_producer.c 578 0x00007ffff78b4c4f 5 mlt_service_get_frame mlt_service.c 457 0x00007ffff78b3405 6 Mlt::Service::get_frame(int) /usr/lib/libmlt++.so.3 0 0x00007ffff7698efd 7 MyThread::run kthumb.cpp 90 0x0000000000511440 8 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff421fe35 9 start_thread pthread_create.c 300 0x00007ffff25398ba 10 clone clone.S 112 0x00007ffff281e01d 11 ?? 0 0x0000000000000000 Backtrace of other threads: 86: 0 __lll_lock_wait lowlevellock.S 136 0x00007ffff2540be4 1 _L_lock_953 /lib/libpthread.so.0 0 0x00007ffff253c0e9 2 __pthread_mutex_lock pthread_mutex_lock.c 61 0x00007ffff253bf0b 3 mlt_cache_item_close mlt_cache.c 173 0x00007ffff78bd908 4 mlt_property_clear mlt_property.c 107 0x00007ffff78ae41a 5 mlt_property_close mlt_property.c 475 0x00007ffff78ae41a 6 mlt_properties_close mlt_properties.c 1161 0x00007ffff78aef34 7 mlt_frame_close mlt_frame.c 785 0x00007ffff78ab6d0 8 Mlt::Frame::~Frame() /usr/lib/libmlt++.so.3 0 0x00007ffff7691fad 9 MyThread::run kthumb.cpp 109 0x00000000005115cf 10 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff421fe35 11 start_thread pthread_create.c 300 0x00007ffff25398ba 12 clone clone.S 112 0x00007ffff281e01d 13 ?? 0 0x0000000000000000 85/82/79-76: 0 __lll_lock_wait lowlevellock.S 136 0x00007ffff2540be4 1 _L_lock_953 /lib/libpthread.so.0 0 0x00007ffff253c0e9 2 __pthread_mutex_lock pthread_mutex_lock.c 61 0x00007ffff253bf0b 3 mlt_cache_get mlt_cache.c 442 0x00007ffff78bd692 4 producer_get_frame producer_avformat.c 1989 0x00007fffe3e14bf0 5 producer_get_frame mlt_producer.c 578 0x00007ffff78b4c4f 6 mlt_service_get_frame mlt_service.c 481 0x00007ffff78b34d2 7 Mlt::Service::get_frame(int) /usr/lib/libmlt++.so.3 0 0x00007ffff7698efd 8 MyThread::run kthumb.cpp 90 0x0000000000511440 9 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff421fe35 10 start_thread pthread_create.c 300 0x00007ffff25398ba 11 clone clone.S 112 0x00007ffff281e01d 12 ?? 0 0x0000000000000000 84/83/80: 0 __lll_lock_wait lowlevellock.S 136 0x00007ffff2540be4 1 _L_lock_953 /lib/libpthread.so.0 0 0x00007ffff253c0e9 2 __pthread_mutex_lock pthread_mutex_lock.c 61 0x00007ffff253bf0b 3 mlt_cache_item_close mlt_cache.c 173 0x00007ffff78bd908 4 mlt_property_clear mlt_property.c 107 0x00007ffff78ae41a 5 mlt_property_close mlt_property.c 475 0x00007ffff78ae41a 6 mlt_properties_close mlt_properties.c 1161 0x00007ffff78aef34 7 mlt_frame_close mlt_frame.c 785 0x00007ffff78ab6d0 8 mlt_property_clear mlt_property.c 107 0x00007ffff78ae41a 9 mlt_property_close mlt_property.c 475 0x00007ffff78ae41a 10 mlt_properties_close mlt_properties.c 1161 0x00007ffff78aef34 11 mlt_frame_close mlt_frame.c 785 0x00007ffff78ab6d0 12 Mlt::Frame::~Frame() /usr/lib/libmlt++.so.3 0 0x00007ffff7691fad 13 MyThread::run kthumb.cpp 109 0x00000000005115cf 14 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff421fe35 15 start_thread pthread_create.c 300 0x00007ffff25398ba 16 clone clone.S 112 0x00007ffff281e01d 17 ?? 0 0x0000000000000000 81: 0 __lll_lock_wait lowlevellock.S 136 0x00007ffff2540be4 1 _L_lock_953 /lib/libpthread.so.0 0 0x00007ffff253c0e9 2 __pthread_mutex_lock pthread_mutex_lock.c 61 0x00007ffff253bf0b 3 video_codec_init producer_avformat.c 1349 0x00007fffe3e1543f 4 producer_set_up_video producer_avformat.c 1471 0x00007fffe3e1543f 5 producer_get_frame producer_avformat.c 2022 0x00007fffe3e1543f 6 producer_get_frame mlt_producer.c 578 0x00007ffff78b4c4f 7 mlt_service_get_frame mlt_service.c 457 0x00007ffff78b3405 8 Mlt::Service::get_frame(int) /usr/lib/libmlt++.so.3 0 0x00007ffff7698efd 9 MyThread::run kthumb.cpp 90 0x0000000000511440 10 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff421fe35 11 start_thread pthread_create.c 300 0x00007ffff25398ba 12 clone clone.S 112 0x00007ffff281e01d 13 ?? 0 0x0000000000000000 and so on. 19: 0 pthread_cond_wait@@GLIBC_2.3.2 pthread_cond_wait.S 162 0x00007ffff253e16c 1 consumer_thread consumer_sdl_preview.c 428 0x00007fffdecfa3d5 2 start_thread pthread_create.c 300 0x00007ffff25398ba 3 clone clone.S 112 0x00007ffff281e01d 4 ?? 0 0x0000000000000000 18: 0 pthread_cond_timedwait@@GLIBC_2.3.2 pthread_cond_timedwait.S 211 0x00007ffff253e4d9 1 mlt_consumer_get_frame mlt_consumer.c 502 0x00007ffff78b86ea 2 mlt_consumer_rt_frame mlt_consumer.c 900 0x00007ffff78b8825 3 consumer_thread consumer_sdl_still.c 563 0x00007fffdecfaa9c 4 start_thread pthread_create.c 300 0x00007ffff25398ba 5 clone clone.S 112 0x00007ffff281e01d 6 ?? 0 0x0000000000000000 11/10: 0 pthread_cond_timedwait@@GLIBC_2.3.2 pthread_cond_timedwait.S 211 0x00007ffff253e4d9 1 QWaitCondition::wait(QMutex*, unsigned long) /usr/lib/libQtCore.so.4 0 0x00007ffff4220df2 2 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff4215e21 3 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff421fe35 4 start_thread pthread_create.c 300 0x00007ffff25398ba 5 clone clone.S 112 0x00007ffff281e01d 6 ?? 0 0x0000000000000000 1: 0 __lll_lock_wait lowlevellock.S 136 0x00007ffff2540be4 1 _L_lock_953 /lib/libpthread.so.0 0 0x00007ffff253c0e9 2 __pthread_mutex_lock pthread_mutex_lock.c 61 0x00007ffff253bf0b 3 mlt_cache_put mlt_cache.c 362 0x00007ffff78bd98f 4 producer_avformat_init producer_avformat.c 223 0x00007fffe3e1470b 5 mlt_factory_producer mlt_factory.c 242 0x00007ffff78bba4a 6 create_from producer_loader.c 43 0x00007fffddd05545 7 create_producer producer_loader.c 94 0x00007fffddd05545 8 producer_loader_init producer_loader.c 168 0x00007fffddd05898 9 mlt_factory_producer mlt_factory.c 242 0x00007ffff78bba4a 10 Mlt::Producer::Producer(Mlt::Profile&, char const*, char const*) /usr/lib/libmlt++.so.3 0 0x00007ffff76958ae 11 Render::getFileProperties renderer.cpp 643 0x000000000049bd93 12 Render::qt_metacall renderer.moc 148 0x000000000049e625 13 QMetaObject::activate(QObject*, QMetaObject const*, int, void**) /usr/lib/libQtCore.so.4 0 0x00007ffff4322346 14 ProjectList::getFileProperties projectlist.moc 268 0x0000000000473f28 15 ProjectList::slotProcessNextClipInQueue projectlist.cpp 987 0x0000000000478e81 16 ProjectList::qt_metacall projectlist.moc 243 0x000000000047ddca 17 QMetaObject::activate(QObject*, QMetaObject const*, int, void**) /usr/lib/libQtCore.so.4 0 0x00007ffff4322346 18 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff432984f 19 QObject::event(QEvent*) /usr/lib/libQtCore.so.4 0 0x00007ffff431eba3 20 QApplicationPrivate::notify_helper(QObject*, QEvent*) /usr/lib/libQtGui.so.4 0 0x00007ffff345432c 21 QApplication::notify(QObject*, QEvent*) /usr/lib/libQtGui.so.4 0 0x00007ffff345a80b 22 KApplication::notify(QObject*, QEvent*) /usr/lib/libkdeui.so.5 0 0x00007ffff6fd9836 23 QCoreApplication::notifyInternal(QObject*, QEvent*) /usr/lib/libQtCore.so.4 0 0x00007ffff430f15c 24 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff433bed2 25 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff4338a48 26 g_main_context_dispatch /lib/libglib-2.0.so.0 0 0x00007fffeeb9f6c2 27 ?? /lib/libglib-2.0.so.0 0 0x00007fffeeba3538 28 g_main_context_iteration /lib/libglib-2.0.so.0 0 0x00007fffeeba36ec 29 QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /usr/lib/libQtCore.so.4 0 0x00007ffff4338713 30 ?? /usr/lib/libQtGui.so.4 0 0x00007ffff350414e 31 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) /usr/lib/libQtCore.so.4 0 0x00007ffff430da82 32 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) /usr/lib/libQtCore.so.4 0 0x00007ffff430de5c 33 QCoreApplication::exec() /usr/lib/libQtCore.so.4 0 0x00007ffff4312aeb 34 main main.cpp 88 0x000000000044fa74 |
|
(0005772) Granjow (developer) 2010-09-04 12:28 |
Actually I could just post the backtraces of all threads that are not locked: 88: 0 __lll_lock_wait lowlevellock.S 136 0x00007ffff2540be4 1 _L_lock_953 /lib/libpthread.so.0 0 0x00007ffff253c0e9 2 __pthread_mutex_lock pthread_mutex_lock.c 61 0x00007ffff253bf0b 3 producer_avformat_close producer_avformat.c 2038 0x00007fffe3e14740 4 cache_object_close mlt_cache.c 131 0x00007ffff78bd8cf 5 mlt_cache_item_close mlt_cache.c 174 0x00007ffff78bd918 6 mlt_property_clear mlt_property.c 107 0x00007ffff78ae41a 7 mlt_property_close mlt_property.c 475 0x00007ffff78ae41a 8 mlt_properties_close mlt_properties.c 1161 0x00007ffff78aef34 9 mlt_frame_close mlt_frame.c 785 0x00007ffff78ab6d0 10 mlt_property_clear mlt_property.c 107 0x00007ffff78ae41a 11 mlt_property_close mlt_property.c 475 0x00007ffff78ae41a 12 mlt_properties_close mlt_properties.c 1161 0x00007ffff78aef34 13 mlt_frame_close mlt_frame.c 785 0x00007ffff78ab6d0 14 Mlt::Frame::~Frame() /usr/lib/libmlt++.so.3 0 0x00007ffff7691fad 15 MyThread::run kthumb.cpp 109 0x00000000005115cf 16 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff421fe35 17 start_thread pthread_create.c 300 0x00007ffff25398ba 18 clone clone.S 112 0x00007ffff281e01d 19 ?? 0 0x0000000000000000 67: 0 decode_block mjpegdec.c 431 0x00007fffe30651f9 1 mjpeg_decode_scan mjpegdec.c 813 0x00007fffe30651f9 2 ff_mjpeg_decode_sos mjpegdec.c 998 0x00007fffe30651f9 3 ff_mjpeg_decode_frame mjpegdec.c 1465 0x00007fffe3066ed6 4 avcodec_decode_video2 utils.c 610 0x00007fffe319b9e0 5 try_decode_frame utils.c 2049 0x00007fffe3bda926 6 av_find_stream_info utils.c 2326 0x00007fffe3bda926 7 producer_open producer_avformat.c 507 0x00007fffe3e13b5d 8 producer_set_up_video producer_avformat.c 1419 0x00007fffe3e151d8 9 producer_get_frame producer_avformat.c 2022 0x00007fffe3e151d8 10 producer_get_frame mlt_producer.c 578 0x00007ffff78b4c4f 11 mlt_service_get_frame mlt_service.c 457 0x00007ffff78b3405 12 Mlt::Service::get_frame(int) /usr/lib/libmlt++.so.3 0 0x00007ffff7698efd 13 MyThread::run kthumb.cpp 90 0x0000000000511440 14 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff421fe35 15 start_thread pthread_create.c 300 0x00007ffff25398ba 16 clone clone.S 112 0x00007ffff281e01d 17 ?? 0 0x0000000000000000 58: (crash here) 0 mlt_properties_find mlt_properties.c 348 0x00007ffff78aecd6 1 mlt_properties_get_int mlt_properties.c 720 0x00007ffff78aecd6 2 producer_set_up_video producer_avformat.c 1413 0x00007fffe3e14c88 3 producer_get_frame producer_avformat.c 2022 0x00007fffe3e14c88 4 producer_get_frame mlt_producer.c 578 0x00007ffff78b4c4f 5 mlt_service_get_frame mlt_service.c 489 0x00007ffff78b34f7 6 Mlt::Service::get_frame(int) /usr/lib/libmlt++.so.3 0 0x00007ffff7698efd 7 MyThread::run kthumb.cpp 90 0x0000000000511440 8 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff421fe35 9 start_thread pthread_create.c 300 0x00007ffff25398ba 10 clone clone.S 112 0x00007ffff281e01d 11 ?? 0 0x0000000000000000 57: 0 __lll_lock_wait lowlevellock.S 136 0x00007ffff2540be4 1 _L_lock_953 /lib/libpthread.so.0 0 0x00007ffff253c0e9 2 __pthread_mutex_lock pthread_mutex_lock.c 61 0x00007ffff253bf0b 3 producer_set_up_video producer_avformat.c 1424 0x00007fffe3e151ef 4 producer_get_frame producer_avformat.c 2022 0x00007fffe3e151ef 5 producer_get_frame mlt_producer.c 578 0x00007ffff78b4c4f 6 mlt_service_get_frame mlt_service.c 481 0x00007ffff78b34d2 7 Mlt::Service::get_frame(int) /usr/lib/libmlt++.so.3 0 0x00007ffff7698efd 8 MyThread::run kthumb.cpp 90 0x0000000000511440 9 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff421fe35 10 start_thread pthread_create.c 300 0x00007ffff25398ba 11 clone clone.S 112 0x00007ffff281e01d 12 ?? 0 0x0000000000000000 39: 0 __lll_lock_wait lowlevellock.S 136 0x00007ffff2540be4 1 _L_lock_953 /lib/libpthread.so.0 0 0x00007ffff253c0e9 2 __pthread_mutex_lock pthread_mutex_lock.c 61 0x00007ffff253bf0b 3 producer_set_up_video producer_avformat.c 1424 0x00007fffe3e151ef 4 producer_get_frame producer_avformat.c 2022 0x00007fffe3e151ef 5 producer_get_frame mlt_producer.c 578 0x00007ffff78b4c4f 6 mlt_service_get_frame mlt_service.c 489 0x00007ffff78b34f7 7 Mlt::Service::get_frame(int) /usr/lib/libmlt++.so.3 0 0x00007ffff7698efd 8 MyThread::run kthumb.cpp 90 0x0000000000511440 9 ?? /usr/lib/libQtCore.so.4 0 0x00007ffff421fe35 10 start_thread pthread_create.c 300 0x00007ffff25398ba 11 clone clone.S 112 0x00007ffff281e01d 12 ?? 0 0x0000000000000000 |
|
(0005954) Granjow (developer) 2010-10-09 15:30 edited on: 2010-10-09 15:31 |
Got this error again when loading a project. thumbs/ directory cleaned before. ffmpeg/MLT/kdenlive all clean builds (make clean or rm -rf build/) from current svn. |
Issue History |
|||
| Date Modified | Username | Field | Change |
| 2010-08-23 15:07 | Granjow | New Issue | |
| 2010-08-23 15:24 | Granjow | Note Added: 0005659 | |
| 2010-08-23 15:27 | Granjow | Summary | Crash when loading project => Segfault in utils.c when loading project |
| 2010-09-04 12:16 | Granjow | Note Added: 0005770 | |
| 2010-09-04 12:28 | Granjow | Note Added: 0005772 | |
| 2010-10-09 15:30 | Granjow | Note Added: 0005954 | |
| 2010-10-09 15:31 | Granjow | Note Edited: 0005954 | View Revisions |
| Copyright © 2000 - 2013 MantisBT Team |