{"action":"opened","issue":{"url":"https://api.github.com/repos/wang-bin/QtAV/issues/374","labels_url":"https://api.github.com/repos/wang-bin/QtAV/issues/374/labels{/name}","comments_url":"https://api.github.com/repos/wang-bin/QtAV/issues/374/comments","events_url":"https://api.github.com/repos/wang-bin/QtAV/issues/374/events","html_url":"https://github.com/wang-bin/QtAV/issues/374","id":57769946,"number":374,"title":"segmentation fault - qmplayer","user":{"login":"saqebakhter","id":223961,"avatar_url":"https://avatars.githubusercontent.com/u/223961?v=3","gravatar_id":"","url":"https://api.github.com/users/saqebakhter","html_url":"https://github.com/saqebakhter","followers_url":"https://api.github.com/users/saqebakhter/followers","following_url":"https://api.github.com/users/saqebakhter/following{/other_user}","gists_url":"https://api.github.com/users/saqebakhter/gists{/gist_id}","starred_url":"https://api.github.com/users/saqebakhter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saqebakhter/subscriptions","organizations_url":"https://api.github.com/users/saqebakhter/orgs","repos_url":"https://api.github.com/users/saqebakhter/repos","events_url":"https://api.github.com/users/saqebakhter/events{/privacy}","received_events_url":"https://api.github.com/users/saqebakhter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-16T06:33:38Z","updated_at":"2015-02-16T06:33:38Z","closed_at":null,"body":"I keep getting a segmentation fault when i switch the video being played back : the log file shows the first file being loaded, and then the 2nd - and then the stack trace for the segfault. \r\n\r\n\r\nDebugging starts\r\n&\"warning: GDB: Failed to set controlling terminal: Inappropriate ioctl for device\\n\"\r\nQML debugging is enabled. Only use this in a safe environment.\r\nunknow option:  \"-qmljsdebugger=port:56677,block\"\r\n\"Options for QtAV players\r\ncommon options\r\n  -h [--help]                      print this\r\n  -gl value                        OpenGL backend for Qt>=5.4(windows). can be 'auto', 'desktop', 'angle' and 'software' (default: auto)\r\n  -x value                          (default: 0)\r\n  -fullscreen                      fullscreen\r\n  -height value                    height of player (default: 450)\r\n  -deocder value                   use a given decoder (default: FFmpeg)\r\n  -language value                  language on UI. can be 'system', 'none' and locale name e.g. zh_CN (default: system)\r\n  -width value                     width of player (default: 800)\r\n  -y value                         y (default: 0)\r\n  -vd [--decoders] value           decoder name list in priority order seperated by ';' (default: cuda;vaapi;vda;dxva;cedarv;ffmpeg)\r\n  -f [--file] value                file or url to play\r\nQMLPlayer options\r\n  -scale value                     scale of graphics context. 0: auto (default: 1)\"\r\nQML Debugger: Waiting for connection on port 56677...\r\n(\"/home/sakhter/source/build-QtAV-Desktop_Qt_5_4_0_GCC_64bit-Debug/bin\", \"/home/sakhter/Qt/5.4/gcc_64/qml\")\r\n>>>>>>>>devicePixelRatio: 1.000000\r\ndpi phy:  96.0252 , logical:  96 , dpr:  1 ; vis rect: QRect(0,0 1440x900)\r\ncapi::version: 0.0.2\r\nqml: init>>>>>screen density logical: 3.7795275590551185 pixel: 3.780520082048567\r\nScreenSaver::retrieveState\r\nScreenSaver::retrieveState timeout: 0, interval: 600, preferBlanking:1, allowExposures:1\r\nScreenSaver::enable 0, ret 1 timeout origin: 0\r\nSucceed to enable screen saver (0)\r\n\"QtAV 1.5.0(Feb 15 2015, 21:57:01)\r\nA media playing library base on Qt and FFmpeg.\r\nDistributed under the terms of LGPLv2.1 or later.\r\nCopyright (C) 2012-2015 Wang Bin (aka. Lucas Wang) wbsecg1@gmail.com\r\nShanghai University->S3 Graphics->Deepin, Shanghai, China\r\nDonate: http://www.qtav.org#donate\r\nSource: https://github.com/wang-bin/QtAV\r\nHome page: http://www.qtav.org\"\r\n\"Build with libavutil-54.7.100\"\r\n\"Build with libavcodec-56.1.100\"\r\n\"Build with libavformat-56.4.101\"\r\n\"Build with libavfilter-5.1.100\"\r\n\"Build with libavdevice-56.0.100\"\r\n\"Build with libavresample-2.1.0\"\r\n\"Build with libswresample-1.1.100\"\r\n\"Build with libswscale-3.0.100\"\r\nLoading  QVariant(QString, \"/run/user/1000/gvfs/smb-share:server=192.168.10.56,share=2tb2/Shares/TVShows/2 Broke Girls/Season 4/2 Broke Girls - S04E04 - And the Old Bike Yarn WEBDL-1080p.mkv\")  ...\r\n\"all closed and reseted\"\r\n\"avformat_open_input: d->format_ctx:'0x7fffa4004400', url:'/run/user/1000/gvfs/smb-share:server=192.168.10.56,share=2tb2/Shares/TVShows/2 Broke Girls/Season 4/2 Broke Girls - S04E04 - And the Old Bike Yarn WEBDL-1080p.mkv'...\"\r\n\"avformat_open_input: url:'/run/user/1000/gvfs/smb-share:server=192.168.10.56,share=2tb2/Shares/TVShows/2 Broke Girls/Season 4/2 Broke Girls - S04E04 - And the Old Bike Yarn WEBDL-1080p.mkv' ret:0\"\r\n\"[FFmpeg:h264] Increasing reorder buffer to 1\"\r\n\"has audio\"\r\n\"avcodec_register_all\"\r\n\"trying audio output 'OpenAL'\"\r\n\"audio output found.\"\r\n\"OpenAL audioFormatToAL error: \"\r\n\"OpenAL audio format: 0x1103 ch:2, sample format: s16\"\r\n\"ao audio format is changed. reopen ao\"\r\n\"OpenAL audioFormatToAL error: \"\r\n\"OpenAL audio format: 0x1103 ch:2, sample format: s16\"\r\n\"notify_interval: 500\"\r\n\"stream: 1, duration=-9223372036854775808 (-9223372036854775808 ms), time_base=0.001000\"\r\n\"codec: ac3(ATSC A/52A (AC-3))\"\r\n\"stream: 0, duration=-9223372036854775808 (-9223372036854775808 ms), time_base=0.001000\"\r\n\"codec: h264(H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10)\"\r\n\"OpenAL devices available: 1\"\r\n\"device 0: ES1371 / Creative Labs CT2518 [AudioPCI-97] (AudioPCI 64V/128 / Creative Sound Blaster CT4810) Analog Stereo\"\r\n\"AudioOutputOpenAL Opening default device: OpenAL Soft\"\r\n\"AudioOutputOpenAL creating context...\"\r\n\"OpenAL 1.1 ALSOFT 1.15.1 vendor: OpenAL Community; renderer: OpenAL Soft\"\r\n\"device: 0x12a9430, context: 0x126f600\"\r\n\"OpenAL audio format: 0x1103 ch:2, sample format: s16\"\r\n\"AudioOutputOpenAL open ok...\"\r\n\"swr speed=1.00\"\r\n\"out: {cl: 3, fmt: s16, freq: 48000}\"\r\n\"in {cl: 1551, fmt: fltp, freq: 48000}\"\r\n\"new audio thread\"\r\n\"demux thread setAudioThread\"\r\n\"output not changed: 0x817ef0\"\r\n\"set AVThread output\"\r\n\"**********trying video decoder: FFmpeg...\"\r\n\"**************Video decoder found\"\r\n\"setCapture 0x816ac0\"\r\n\"auto select clock: audio > external\"\r\n\"Using AudioClock\"\r\n\"Clock initial value: 0.000000\"\r\n\"Starting audio thread...\"\r\n\"Starting video thread...\"\r\n\"demux thread start running...2 avthreads\"\r\n\"get av queue a/v thread = 0x128ada0 0x817d30\"\r\n\"AVClock started!!!!!!!!\"\r\n\"AudioOutputOpenAL: !AL_PLAYING alSourcePlay\"\r\n\"no frame could be decompressed: Error number 859 occurred\"\r\ninvalid video frame from decoder\r\n\"setInSize => calculating aspect ratio from converted input data(1.780669)\"\r\n\"pixel format changed:  => yuv420p\"\r\n\"glGetUniformLocation(\"u_Texture0\") = 1\"\r\n\"glGetUniformLocation(\"u_Texture1\") = 2\"\r\n\"glGetUniformLocation(\"u_Texture2\") = 3\"\r\n\"glGetUniformLocation(\"u_MVP_matrix\") = 0\"\r\n\"glGetUniformLocation(\"u_colorMatrix\") = 5\"\r\n\"glGetUniformLocation(\"u_bpp\") = -1\"\r\n\"glGetUniformLocation(\"u_opacity\") = 4\"\r\n\"plane linesize 0: padded = 1920, effective = 1916\"\r\n\"plane width 1920: effective = 1916\"\r\n\"planeHeight 0 = 1076\"\r\n\"plane linesize 1: padded = 960, effective = 958\"\r\n\"plane width 960: effective = 958\"\r\n\"planeHeight 1 = 538\"\r\n\"plane linesize 2: padded = 960, effective = 958\"\r\n\"plane width 960: effective = 958\"\r\n\"planeHeight 2 = 538\"\r\n\"effective_tex_width_ratio=0.997917\"\r\n\"///////////bpp 2\"\r\n\"texture width: 1920 - 1916 = pad: 4. bpp(gl): 1\"\r\n\"texture width: 960 - 958 = pad: 2. bpp(gl): 1\"\r\n\"texture width: 960 - 958 = pad: 2. bpp(gl): 1\"\r\n\"delete 0 textures\"\r\n\"init textures...\"\r\n\"all closed and reseted\"\r\n\"avformat_open_input: d->format_ctx:'0x7fffc8021c60', url:'/run/user/1000/gvfs/smb-share:server=192.168.10.56,share=2tb2/Shares/TVShows/2 Broke Girls/Season 4/2 Broke Girls - S04E04 - And the Old Bike Yarn WEBDL-1080p.mkv'...\"\r\n\"avformat_open_input: url:'/run/user/1000/gvfs/smb-share:server=192.168.10.56,share=2tb2/Shares/TVShows/2 Broke Girls/Season 4/2 Broke Girls - S04E04 - And the Old Bike Yarn WEBDL-1080p.mkv' ret:0\"\r\n\"[FFmpeg:h264] Increasing reorder buffer to 1\"\r\n\"timer is not valid, start it\"\r\n\"avcodec option: skip_frame=>0\"\r\n\"no frame could be decompressed: Error number 224274 occurred\"\r\n\"got frame at 891.099000s, diff=18\"\r\n\"setInSize => calculating aspect ratio from converted input data(1.780669)\"\r\n\"pixel format changed:  => yuv420p\"\r\n\"plane linesize 0: padded = 1920, effective = 1916\"\r\n\"plane width 1920: effective = 1916\"\r\n\"planeHeight 0 = 1076\"\r\n\"plane linesize 1: padded = 960, effective = 958\"\r\n\"plane width 960: effective = 958\"\r\n\"planeHeight 1 = 538\"\r\n\"plane linesize 2: padded = 960, effective = 958\"\r\n\"plane width 960: effective = 958\"\r\n\"planeHeight 2 = 538\"\r\n\"effective_tex_width_ratio=0.997917\"\r\n\"///////////bpp 2\"\r\n\"texture width: 1920 - 1916 = pad: 4. bpp(gl): 1\"\r\n\"texture width: 960 - 958 = pad: 2. bpp(gl): 1\"\r\n\"texture width: 960 - 958 = pad: 2. bpp(gl): 1\"\r\n\"delete 0 textures\"\r\n\"init textures...\"\r\n\"avcodec option: skip_frame=>0\"\r\n\"avcodec option: skip_frame=>8\"\r\n\"no frame could be decompressed: Error number 26744 occurred\"\r\n\"no frame could be decompressed: Error number 24811 occurred\"\r\n\"no frame could be decompressed: Error number 22192 occurred\"\r\n\"no frame could be decompressed: Error number 21322 occurred\"\r\n\"no frame could be decompressed: Error number 19226 occurred\"\r\n\"no frame could be decompressed: Error number 20626 occurred\"\r\n\"no frame could be decompressed: Error number 20218 occurred\"\r\n\"no frame could be decompressed: Error number 20451 occurred\"\r\n\"no frame could be decompressed: Error number 21310 occurred\"\r\n\"no frame could be decompressed: Error number 21399 occurred\"\r\n\"no frame could be decompressed: Error number 18359 occurred\"\r\n\"no frame could be decompressed: Error number 16652 occurred\"\r\n\"avcodec option: skip_frame=>0\"\r\n\"got frame at 948.407000s, diff=5\"\r\n\"timer: 3, current thread: 0x621220, player thread: 0x621220\"\r\n\"stopping demuxer thread...\"\r\n\"stopping audio thread.......\"\r\n\"Audio thread stops running...\"\r\n\"stopping video thread.......\"\r\n\"setInSize => calculating aspect ratio from converted input data(1.000000)\"\r\n\"pixel format changed: yuv420p => \"\r\n\"Video thread stops running...\"\r\n\"all avthread finished. try to exit demux thread<<<<<<\"\r\n\"Demux thread stops running....\"\r\n\"all audio/video threads  stopped...\"\r\n\"closing d->format_ctx\"\r\n\"demuxer thread emit finished.\"\r\n\"avplayer emit stopped()\"\r\n\"setInSize => calculating aspect ratio from converted input data(1.000000)\"\r\n\"pixel format changed: yuv420p => \"\r\nLoading  QVariant(QString, \"/run/user/1000/gvfs/smb-share:server=192.168.10.56,share=2tb2/Shares/TVShows/2 Broke Girls/Season 4/2 Broke Girls - S04E02 - And the DJ Face WEBDL-1080p.mkv\")  ...\r\n\"all closed and reseted\"\r\n\"avformat_open_input: d->format_ctx:'0x7fffa40d00c0', url:'/run/user/1000/gvfs/smb-share:server=192.168.10.56,share=2tb2/Shares/TVShows/2 Broke Girls/Season 4/2 Broke Girls - S04E02 - And the DJ Face WEBDL-1080p.mkv'...\"\r\n\"closing d->format_ctx\"\r\n\"avformat_open_input: url:'/run/user/1000/gvfs/smb-share:server=192.168.10.56,share=2tb2/Shares/TVShows/2 Broke Girls/Season 4/2 Broke Girls - S04E02 - And the DJ Face WEBDL-1080p.mkv' ret:0\"\r\n\"[FFmpeg:h264] Increasing reorder buffer to 1\"\r\n\r\n\r\n\r\nstack trace:\r\n\r\n0\tQtAV::AVPlayer::Private::initCommonStatistics\tAVPlayerPrivate.cpp\t209\t0x7fffda273d27\t\r\n1\tQtAV::AVPlayer::Private::initAudioStatistics\tAVPlayerPrivate.cpp\t235\t0x7fffda2742fd\t\r\n2\tQtAV::AVPlayer::Private::setupAudioThread\tAVPlayerPrivate.cpp\t285\t0x7fffda274755\t\r\n3\tQtAV::AVPlayer::playInternal\tAVPlayer.cpp\t995\t0x7fffda26f77c\t\r\n4\tQtAV::AVPlayer::qt_static_metacall\tmoc_AVPlayer.cpp\t365\t0x7fffda2a3262\t\r\n5\tQMetaObject::activate(QObject*, int, int, void**)\t/home/sakhter/Qt/5.4/gcc_64/lib/libQt5Core.so.5\t\t0x7ffff6404e7a\t\r\n6\tQtAV::AVPlayer::loaded\tmoc_AVPlayer.cpp\t662\t0x7fffda2a3e3f\t\r\n7\tQtAV::AVPlayer::qt_static_metacall\tmoc_AVPlayer.cpp\t321\t0x7fffda2a2daa\t\r\n8\tQObject::event(QEvent*)\t/home/sakhter/Qt/5.4/gcc_64/lib/libQt5Core.so.5\t\t0x7ffff6407326\t\r\n9\tQCoreApplication::notify(QObject*, QEvent*)\t/home/sakhter/Qt/5.4/gcc_64/lib/libQt5Core.so.5\t\t0x7ffff63d2fdd\t\r\n10\tQCoreApplication::notifyInternal(QObject*, QEvent*)\t/home/sakhter/Qt/5.4/gcc_64/lib/libQt5Core.so.5\t\t0x7ffff63d2c84\t\r\n11\tQCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)\t/home/sakhter/Qt/5.4/gcc_64/lib/libQt5Core.so.5\t\t0x7ffff63d5868\t\r\n12\t??\t/home/sakhter/Qt/5.4/gcc_64/lib/libQt5Core.so.5\t\t0x7ffff642d123\t\r\n13\tg_main_context_dispatch\t/lib/x86_64-linux-gnu/libglib-2.0.so.0\t\t0x7ffff3c43c5d\t\r\n14\t??\t/lib/x86_64-linux-gnu/libglib-2.0.so.0\t\t0x7ffff3c43f48\t\r\n15\tg_main_context_iteration\t/lib/x86_64-linux-gnu/libglib-2.0.so.0\t\t0x7ffff3c43ffc\t\r\n16\tQEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)\t/home/sakhter/Qt/5.4/gcc_64/lib/libQt5Core.so.5\t\t0x7ffff642d5b3\t\r\n17\tQEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)\t/home/sakhter/Qt/5.4/gcc_64/lib/libQt5Core.so.5\t\t0x7ffff63d0eab\t\r\n18\tQCoreApplication::exec()\t/home/sakhter/Qt/5.4/gcc_64/lib/libQt5Core.so.5\t\t0x7ffff63d5dc5\t\r\n19\tmain\tmain.cpp\t132\t0x4077fb\t\r\n...\t<More>\t\t\t\t\r\n"}}