MaartenBaert / ssr

SimpleScreenRecorder, a screen recorder for Linux
http://www.maartenbaert.be/simplescreenrecorder/
GNU General Public License v3.0
2.58k stars 290 forks source link

Crash on Ubuntu 14.04 #217

Open J0nnyMak0 opened 10 years ago

J0nnyMak0 commented 10 years ago

I'm getting a crash when I hit the record button. It used to work perfectly before the latest update.

==================== SSR started ==================== SimpleScreenRecorder 0.3.0 Compiled with GCC 4.8.2 Qt: header 4.8.6, lib 4.8.6 libavformat: header 54.20.4, lib 54.63.104 libavcodec: header 54.35.0, lib 54.92.100 libavutil: header 52.3.0, lib 52.18.100 libswscale: header 2.1.1, lib 2.2.100 [ALSAInput::GetSourceList] Generating source list ... [ALSAInput::GetSourceList] Found plugin pulse = PulseAudio Sound Server. [ALSAInput::GetSourceList] Found card hw:0 = HDA Intel MID. [ALSAInput::GetSourceList] Found device hw:0,0 = CS4206 Analog. [ALSAInput::GetSourceList] Found device hw:0,1 = CS4206 Digital. [ALSAInput::GetSourceList] Found card hw:1 = HDA NVidia. [PulseAudioInput::GetSourceList] Generating source list ... [SourceNamesCallback] Got alsa_output.pci-0000_00_1b.0.analog-stereo.monitor = Monitor of Built-in Audio Analog Stereo. [SourceNamesCallback] Got alsa_input.pci-0000_00_1b.0.analog-stereo = Built-in Audio Analog Stereo. [DetectCPUFeatures] CPU features: mmx sse sse2 sse3 ssse3 sse4_1 sse4_2 "sni-qt/13076" WARN 11:41:56.592 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE [PageRecord::StartPage] Starting page ... [PageRecord::StartPage] Started page. [PageRecord::StartOutput] Starting output ... [Muxer::Init] Using format mp4 (MP4 (MPEG-4 Part 14)). [Muxer::AddStream] Using codec libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10). [libx264 @ 0x1ab7140] using SAR=1/1 Segmentation fault (core dumped)

MaartenBaert commented 10 years ago

I need more information. Please run gdb /usr/bin/simplescreenrecorder in a terminal, and then type run. Once SSR crashes, go back to the terminal and type t a a bt full. You probably have to press enter a few times to see the full output. Post the result here.

The line "sni-qt/13076" WARN 11:41:56.592 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE is suspicious. Which desktop environment are you using?

Tehmal commented 10 years ago

Hello, same problem Terminal: suore@suore-pc:~$ simplescreenrecorder ==================== SSR wystartował ==================== SimpleScreenRecorder 0.3.0 Compiled with GCC 4.8.2 Qt: header 4.8.6, lib 4.8.6 libavformat: header 54.20.4, lib 54.63.104 libavcodec: header 54.35.0, lib 54.92.100 libavutil: header 52.3.0, lib 52.18.100 libswscale: header 2.1.1, lib 2.2.100 [ALSAInput::GetSourceList] Generating source list ... [ALSAInput::GetSourceList] Found plugin pulse = PulseAudio Sound Server. [ALSAInput::GetSourceList] Found card hw:0 = HDA ATI SB. [ALSAInput::GetSourceList] Found device hw:0,0 = ALC889A Analog. [ALSAInput::GetSourceList] Found device hw:0,1 = ALC889A Digital. [ALSAInput::GetSourceList] Found device hw:0,2 = ALC889A Alt Analog. [PulseAudioInput::GetSourceList] Generating source list ... [SourceNamesCallback] Got alsa_output.pci-0000_00_14.2.analog-stereo.monitor = Monitor of Wbudowany dźwięk Analogowe stereo. [SourceNamesCallback] Got alsa_input.pci-0000_00_14.2.iec958-stereo = Wbudowany dźwięk Cyfrowe stereo (IEC958). [DetectCPUFeatures] Opcje procesora: mmx sse sse2 sse3 [PageRecord::StartPage] Uruchamianie strony ... [PageRecord::StartPage] Uruchomiono stronę. [PageRecord::StartOutput] Uruchamianie wyjścia ... [Muxer::Init] Użyto formatu matroska (Matroska). [Muxer::AddStream] Kodek libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10) został użyty. [libx264 @ 0x2911a20] using SAR=1/1 Naruszenie ochrony pamięci

GDB suore@suore-pc:~$ gdb /usr/bin/simplescreenrecorder GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/simplescreenrecorder...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/simplescreenrecorder [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". ==================== SSR wystartował ==================== SimpleScreenRecorder 0.3.0 Compiled with GCC 4.8.2 Qt: header 4.8.6, lib 4.8.6 libavformat: header 54.20.4, lib 54.63.104 libavcodec: header 54.35.0, lib 54.92.100 libavutil: header 52.3.0, lib 52.18.100 libswscale: header 2.1.1, lib 2.2.100 [ALSAInput::GetSourceList] Generating source list ... [ALSAInput::GetSourceList] Found plugin pulse = PulseAudio Sound Server. [ALSAInput::GetSourceList] Found card hw:0 = HDA ATI SB. [ALSAInput::GetSourceList] Found device hw:0,0 = ALC889A Analog. [ALSAInput::GetSourceList] Found device hw:0,1 = ALC889A Digital. [ALSAInput::GetSourceList] Found device hw:0,2 = ALC889A Alt Analog. [PulseAudioInput::GetSourceList] Generating source list ... [SourceNamesCallback] Got alsa_output.pci-0000_00_14.2.analog-stereo.monitor = Monitor of Wbudowany dźwięk Analogowe stereo. [SourceNamesCallback] Got alsa_input.pci-0000_00_14.2.iec958-stereo = Wbudowany dźwięk Cyfrowe stereo (IEC958). [DetectCPUFeatures] Opcje procesora: mmx sse sse2 sse3 [New Thread 0x7fffde47f700 (LWP 23168)] [PageRecord::StartPage] Uruchamianie strony ... [PageRecord::StartPage] Uruchomiono stronę. [PageRecord::StartOutput] Uruchamianie wyjścia ... [Muxer::Init] Użyto formatu matroska (Matroska). [Muxer::AddStream] Kodek libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10) został użyty. [libx264 @ 0xe10920] using SAR=1/1

Program received signal SIGSEGV, Segmentation fault. __memcmp_sse2 () at ../sysdeps/x86_64/multiarch/../memcmp.S:74 74 ../sysdeps/x86_64/multiarch/../memcmp.S: Nie ma takiego pliku ani katalogu. (gdb) t a a bt full

Thread 2 (Thread 0x7fffde47f700 (LWP 23168)):

0 0x00007ffff35dfc33 in select () at ../sysdeps/unix/syscall-template.S:81

No locals.

1 0x00007ffff6d9c171 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

No symbol table info available.

2 0x00007ffff6cbd32f in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4

No symbol table info available.

3 0x00007ffff38bb182 in start_thread (arg=0x7fffde47f700) at pthread_create.c:312

    **res = <optimized out>
    pd = 0x7fffde47f700
    now = <optimized out>
    unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736922646272, -1482947061594258058, 
            1, 0, 140736922646976, 140736922646272, 1482879510863349110, 
            1482920773901157750}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 
          0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
    not_first_call = <optimized out>
    pagesize_m1 = <optimized out>
    sp = <optimized out>
    freesize = <optimized out>
    __PRETTY_FUNCTION** = "start_thread"

4 0x00007ffff35e830d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

No locals.

Thread 1 (Thread 0x7ffff7fa27c0 (LWP 23163)):

0 __memcmp_sse2 () at ../sysdeps/x86_64/multiarch/../memcmp.S:74

No locals.

1 0x00007ffff0ffbdbe in x264_cqm_init () from /usr/lib/x86_64-linux-gnu/libx264.so.123

No symbol table info available.

2 0x00007ffff1066478 in x264_encoder_open_123 ()

from /usr/lib/x86_64-linux-gnu/libx264.so.123 No symbol table info available.

3 0x00007ffff58c0120 in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.54

No symbol table info available.

4 0x00007ffff5c88f58 in avcodec_open2 () from /usr/lib/x86_64-linux-gnu/libavcodec.so.54

No symbol table info available.

5 0x000000000043003d in ?? ()

No symbol table info available. ---Type to continue, or q to quit---

Im using KDE4 (Kwin)

Problem starts when click "record"

MaartenBaert commented 10 years ago

Looks like a problem in x264. Are you using 32-bit or 64-bit Ubuntu? Does x264 work in any other program (e.g. the ffmpeg/avconv command-line tool)?

Edit: I just noticed that your libav* libraries are newer than the headers. AFAIK those new versions aren't in Ubuntu 14.04 yet. Are you using some kind of PPA to get newer versions?

Tehmal commented 10 years ago

64-bit :>

x264 works with handbrake,but it need to install nighly builds. I used for newest ffmpeg for support of vp9 to test, later i remove repositority and i purged ffmpeg and reinstall it.

So propably now i need to reinstall libav :> I try to reinstall it

nah! libavutil52 cannot be redowloaded.... remove option want purge ober 250mb data xDDDDD ohh shit

MaartenBaert commented 10 years ago

I suspect there's something wrong with your x264 or libavcodec build. Can you reproduce the crash with the default packages?

Tehmal commented 10 years ago

suore@suore-pc:~$ gdb /usr/bin/simplescreenrecorder GNU gdb (Ubuntu 7.7-0ubuntu3.1) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/bin/simplescreenrecorder...(no debugging symbols found)...done. (gdb) run Starting program: /usr/bin/simplescreenrecorder [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". ==================== SSR wystartował ==================== SimpleScreenRecorder 0.3.0 Compiled with GCC 4.8.2 Qt: header 4.8.6, lib 4.8.6 libavformat: header 54.20.4, lib 54.63.104 libavcodec: header 54.35.0, lib 54.92.100 libavutil: header 52.3.0, lib 52.18.100 libswscale: header 2.1.1, lib 2.2.100 [ALSAInput::GetSourceList] Generating source list ... [ALSAInput::GetSourceList] Found plugin pulse = PulseAudio Sound Server. [ALSAInput::GetSourceList] Found card hw:0 = HDA ATI SB. [ALSAInput::GetSourceList] Found device hw:0,0 = ALC889A Analog. [ALSAInput::GetSourceList] Found device hw:0,1 = ALC889A Digital. [ALSAInput::GetSourceList] Found device hw:0,2 = ALC889A Alt Analog. [PulseAudioInput::GetSourceList] Generating source list ... [SourceNamesCallback] Got alsa_output.pci-0000_00_14.2.analog-stereo.monitor = Monitor of Wbudowany dźwięk Analogowe stereo. [SourceNamesCallback] Got alsa_input.pci-0000_00_14.2.analog-stereo = Wbudowany dźwięk Analogowe stereo. [DetectCPUFeatures] Opcje procesora: mmx sse sse2 sse3 [New Thread 0x7fffde34b700 (LWP 3117)] [PageRecord::StartPage] Uruchamianie strony ... [PageRecord::StartPage] Uruchomiono stronę. [PageRecord::StartOutput] Uruchamianie wyjścia ... [Muxer::Init] Użyto formatu matroska (Matroska). [Muxer::AddStream] Kodek libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10) został użyty. [libx264 @ 0xf1ea00] using SAR=1/1

Program received signal SIGSEGV, Segmentation fault. __memcmp_sse2 () at ../sysdeps/x86_64/multiarch/../memcmp.S:74 74 ../sysdeps/x86_64/multiarch/../memcmp.S: Nie ma takiego pliku ani katalogu. (gdb) t a a bt full

Thread 2 (Thread 0x7fffde34b700 (LWP 3117)):

0 0x00007ffff35dfc33 in select () at ../sysdeps/unix/syscall-template.S:81

No locals.

1 0x00007ffff6d9c171 in QProcessManager::run (

this=0x7ffff7126540 <processManager()::processManager>) at io/qprocess_unix.cpp:270
    readset = {fds_bits = {32, 0 <repeats 15 times>}}
    nselect = <optimized out>
    c = 0 '\000'

2 0x00007ffff6cbd32f in QThreadPrivate::start (

arg=0x7ffff7126540 <processManager()::processManager>) at thread/qthread_unix.cpp:349
    **clframe = {__cancel_routine = 0x7ffff6cbc300 QThreadPrivate::finish(void*), 
      __cancel_arg = 0x7ffff7126540 <processManager()::processManager>, __do_it = 1, 
      __cancel_type = <optimized out>}
    thr = 0x7ffff7126540 <processManager()::processManager>
    data = <optimized out>
    objectName = {static null = {<No data fields>}, static shared_null = {ref = {
          _q_value = 1}, alloc = 0, size = 0, data = 0x6e235a QString::shared_null+26, 
        clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
        reserved = 0, array = {0}}, static shared_empty = {ref = {_q_value = 24}, 
        alloc = 0, size = 0, data = 0x7ffff712591a QString::shared_empty+26, 
        clean = 0, simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, 
        reserved = 0, array = {0}}, d = 0x6e2340 QString::shared_null, 
      static codecForCStrings = 0x0}

3 0x00007ffff38bb182 in start_thread (arg=0x7fffde34b700) at pthread_create.c:312

    __res = <optimized out>
    pd = 0x7fffde34b700
    now = <optimized out>
    unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140736921384704, 8515279070689593871, 1, 
            0, 140736921385408, 140736921384704, -8515210288360486385, 
            -8515253401999668721}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 
          0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
    not_first_call = <optimized out>
    pagesize_m1 = <optimized out>
    sp = <optimized out>
    freesize = <optimized out>
    __PRETTY_FUNCTION** = "start_thread"

4 0x00007ffff35e830d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ffff7fa37c0 (LWP 3113)):

0 __memcmp_sse2 () at ../sysdeps/x86_64/multiarch/../memcmp.S:74

No locals.

1 0x00007ffff0ffbdbe in x264_cqm_init () from /usr/lib/x86_64-linux-gnu/libx264.so.123

No symbol table info available.

2 0x00007ffff1066478 in x264_encoder_open_123 ()

from /usr/lib/x86_64-linux-gnu/libx264.so.123 No symbol table info available.

3 0x00007ffff58c0120 in ?? () from /usr/lib/x86_64-linux-gnu/libavcodec.so.54

No symbol table info available.

4 0x00007ffff5c88f58 in avcodec_open2 () from /usr/lib/x86_64-linux-gnu/libavcodec.so.54

No symbol table info available.

5 0x000000000043003d in ?? ()

No symbol table info available.

6 0x000000000043044b in ?? ()

No symbol table info available.

7 0x000000000043a68e in ?? ()

No symbol table info available.

8 0x00000000004326cf in ?? ()

No symbol table info available.

9 0x00000000004335d9 in ?? ()

No symbol table info available.

10 0x0000000000433939 in ?? ()

No symbol table info available.

11 0x0000000000469341 in ?? ()

No symbol table info available.

12 0x000000000047b785 in ?? ()

No symbol table info available.

13 0x00007ffff6dd387a in QMetaObject::activate (sender=sender@entry=0xae16e0,

m=m@entry=0x7ffff7dc42a0 QAbstractButton::staticMetaObject, 
local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7fffffffca10)
at kernel/qobject.cpp:3539
    receiverInSameThread = true
    previousSender = 0x0
    callFunction = 0x47b6e0
    receiver = 0xae0d50

---Type to continue, or q to quit--- currentSender = {sender = 0xae16e0, signal = 29, ref = 1}
method_relative = 3
c = 0xae57a0
last = 0xae57a0
methodOffset =
signal_absolute_index = 29
empty_argv = {0x0}
locker = {val = 9676432}
connectionLists = 0xae5770
list = 0xae5850
signalOffset =
signal_index =
currentThreadId = 140737353758656

14 0x00007ffff793f0d2 in QAbstractButton::clicked (this=this@entry=0xae16e0, _t1=false)

at .moc/release-shared/moc_qabstractbutton.cpp:219  
    _a = {0x0, 0x7fffffffca0c}  

15 0x00007ffff76a29d3 in QAbstractButtonPrivate::emitClicked (this=this@entry=0xae1710)

at widgets/qabstractbutton.cpp:548  
    guard = {o = 0xae16e0}  

16 0x00007ffff76a3b43 in QAbstractButtonPrivate::click (this=this@entry=0xae1710)

at widgets/qabstractbutton.cpp:541  
    changeState = <optimized out>  
    guard = {o = 0xae16e0}  

17 0x00007ffff76a3c2c in QAbstractButton::mouseReleaseEvent (this=0xae16e0, e=

0x7fffffffcec0) at widgets/qabstractbutton.cpp:1123  
    d = 0xae1710  

18 0x00007ffff734050a in QWidget::event (this=0xae16e0, event=0x7fffffffcec0)

at kernel/qwidget.cpp:8376  

No locals.

19 0x00007ffff72f0e2c in QApplicationPrivate::notify_helper (this=this@entry=0x735930,

receiver=receiver@entry=0xae16e0, e=e@entry=0x7fffffffcec0)  
at kernel/qapplication.cpp:4567  
    consumed = <optimized out>

20 0x00007ffff72f75dd in QApplication::notify (this=, receiver=0xae16e0,

e=0x7fffffffcec0) at kernel/qapplication.cpp:4110
    me = {<QInputEvent> = {<QEvent> = {
          _vptr.QEvent = 0x7ffff7d9b790 <vtable for QMouseEvent+16>, 
          static staticMetaObject = {d = {superdata = 0x0, 

---Type to continue, or q to quit--- stringdata = 0x7ffff6eaf9c0 "QEvent", data = 0x7ffff6eb03c0 , extradata = 0x0}}, d = 0x0, t = 3, posted = 0, spont = 1, m_accept = 1, reserved = 17}, modState = { i = 0}}, p = {xp = 189, yp = 13}, g = {xp = 331, yp = 303}, b = Qt::LeftButton, mouseState = {i = 0}} w = 0xae16e0 mouse = 0x7fffffffcec0 eventAccepted = relpos = {xp = 189, yp = 13} pw = {o = 0xae16e0} d = 0x735930 res = false

21 0x00007ffff6dbf4dd in QCoreApplication::notifyInternal (this=0x7fffffffd9b0,

receiver=receiver@entry=0xae16e0, event=event@entry=0x7fffffffcec0)
at kernel/qcoreapplication.cpp:953
    threadData = 0x735b00
    returnValue = <optimized out>
    result = false
    cbdata = {0xae16e0, 0x7fffffffcec0, 0x7fffffffcd1f}
    d = <optimized out>

22 0x00007ffff72f6d93 in sendEvent (event=, receiver=)

at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231

No locals.

23 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0xae16e0,

event=event@entry=0x7fffffffcec0, alienWidget=alienWidget@entry=0xae16e0, 
nativeWidget=nativeWidget@entry=0x7fffffffd9d0, 
buttonDown=buttonDown@entry=0x7ffff7dd6318 <qt_button_down>, lastMouseReceiver=..., 
spontaneous=spontaneous@entry=true) at kernel/qapplication.cpp:3178
    alienGuard = {o = 0xae16e0}
    receiverGuard = {o = 0xae16e0}
    nativeGuard = {o = 0x7fffffffd9d0}
    activePopupWidget = {o = 0x0}
    wasLeaveAfterRelease = true
    result = <optimized out>

24 0x00007ffff736b9cb in QETWidget::translateMouseEvent (this=this@entry=0x7fffffffd9d0,

event=event@entry=0x7fffffffd240) at kernel/qapplication_x11.cpp:4634
    alienWidget = 0xae16e0
    widget = 0xae16e0

---Type to continue, or q to quit--- oldOpenPopupCount = e = { = { = { _vptr.QEvent = 0x7ffff7d9b790 <vtable for QMouseEvent+16>, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7ffff6eaf9c0 "QEvent", data = 0x7ffff6eb03c0 , extradata = 0x0}}, d = 0x0, t = 3, posted = 0, spont = 1, m_accept = 1, reserved = 8191}, modState = { i = 0}}, p = {xp = 189, yp = 13}, g = {xp = 331, yp = 303}, b = Qt::LeftButton, mouseState = {i = 0}} type = QEvent::MouseButtonRelease globalPos = {xp = 331, yp = 303} button = Qt::LeftButton buttons = nextEvent = {type = 4699872, xany = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968}, xkey = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, root = 11712160, subwindow = 11406672, time = 140737335081082, x = 7688976, y = 0, x_root = 32, y_root = 0, state = 1, keycode = 0, same_screen = 0}, xbutton = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, root = 11712160, subwindow = 11406672, time = 140737335081082, x = 7688976, y = 0, x_root = 32, y_root = 0, state = 1, button = 0, same_screen = 0}, xmotion = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, root = 11712160, subwindow = 11406672, time = 140737335081082, x = 7688976, y = 0, x_root = 32, y_root = 0, state = 1, is_hint = 0 '\000', same_screen = 0}, xcrossing = { type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, root = 11712160, subwindow = 11406672, time = 140737335081082, x = 7688976, y = 0, x_root = 32, y_root = 0, mode = 1, detail = 0, same_screen = 0, focus = 0, state = 1}, xfocus = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, mode = 11712160, detail = 0}, xexpose = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, x = 11712160, y = 0, width = 11406672, height = 0, count = -153274246}, xgraphicsexpose = { type = 4699872, serial = 7, send_event = 0, display = 0x47b705, drawable = 140737488343968, x = 11712160, y = 0, width = 11406672, height = 0, count = -153274246, major_code = 32767, minor_code = 7688976}, xnoexpose = { type = 4699872, serial = 7, send_event = 0, display = 0x47b705, drawable = 140737488343968, major_code = 11712160, minor_code = 0}, ---Type to continue, or q to quit--- xvisibility = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, state = 11712160}, xcreatewindow = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, parent = 140737488343968, window = 11712160, x = 11406672, y = 0, width = -153274246, height = 32767, border_width = 7688976, override_redirect = 0}, xdestroywindow = { type = 4699872, serial = 7, send_event = 0, display = 0x47b705, event = 140737488343968, window = 11712160}, xunmap = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, event = 140737488343968, window = 11712160, from_configure = 11406672}, xmap = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, event = 140737488343968, window = 11712160, override_redirect = 11406672}, xmaprequest = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, parent = 140737488343968, window = 11712160}, xreparent = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, event = 140737488343968, window = 11712160, parent = 11406672, x = -153274246, y = 32767, override_redirect = 7688976}, xconfigure = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, event = 140737488343968, window = 11712160, x = 11406672, y = 0, width = -153274246, height = 32767, border_width = 7688976, above = 32, override_redirect = 1}, xgravity = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, event = 140737488343968, window = 11712160, x = 11406672, y = 0}, xresizerequest = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, width = 11712160, height = 0}, xconfigurerequest = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, parent = 140737488343968, window = 11712160, x = 11406672, y = 0, width = -153274246, height = 32767, border_width = 7688976, above = 32, detail = 1, value_mask = 0}, xcirculate = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, event = 140737488343968, window = 11712160, place = 11406672}, xcirculaterequest = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, parent = 140737488343968, window = 11712160, place = 11406672}, xproperty = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, atom = 11712160, time = 11406672, state = -153274246}, xselectionclear = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, selection = 11712160, time = 11406672}, xselectionrequest = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, owner = 140737488343968, requestor = 11712160, selection = 11406672, target = 140737335081082, property = 7688976, time = 32}, xselection = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, requestor = 140737488343968, ---Type to continue, or q to quit--- selection = 11712160, target = 11406672, property = 140737335081082, time = 7688976}, xcolormap = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, colormap = 11712160, c_new = 11406672, state = 0}, xclient = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, message_type = 11712160, format = 11406672, data = { b = "z8\335\366\377\177\000\000\020Su\000\000\000\000\000 \000\000", s = { 14458, -2339, 32767, 0, 21264, 117, 0, 0, 32, 0}, l = {140737335081082, 7688976, 32, 1, 0}}}, xmapping = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, request = 11712160, first_keycode = 0, count = 11406672}, xerror = { type = 4699872, display = 0x7, resourceid = 0, serial = 4699909, error_code = 160 '\240', request_code = 211 '\323', minor_code = 255 '\377'}, xkeymap = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, window = 140737488343968, key_vector = "\240\266\262\000\000\000\000\000P\r\256\000\000\000\000\000z8\335\366\377\177\000\000\020Su\000\000\000\000"}, xgeneric = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, extension = -11360, evtype = 32767}, xcookie = {type = 4699872, serial = 7, send_event = 0, display = 0x47b705, extension = -11360, evtype = 32767, cookie = 11712160, data = 0xae0d50}, pad = { 4699872, 7, 0, 4699909, 140737488343968, 11712160, 11406672, 140737335081082, 7688976, 32, 1, 0, 1, 0, 140737488343008, 12332880, 140737353758656, 12334240, 21338350416, 140737488343056, 12334576, 140737488343040, 12334592, 12334592}} d = pos = {xp = 189, yp = 13} modifiers = {i = 0}

25 0x00007ffff736b269 in QApplication::x11ProcessEvent (this=0x7fffffffd9b0,

event=event@entry=0x7fffffffd240) at kernel/qapplication_x11.cpp:3627
    keywidget = <optimized out>
    grabbed = <optimized out>
    loopLevelCounter = {threadData = 0x735b00}
    isXI2Event = false
    widget = 0x7fffffffd9d0
    d = 0x735930
    instance = {display = 0x755310, cookie = 0x7fffffffd240}

26 0x00007ffff7392b02 in x11EventSourceDispatch (s=0x737110, callback=0x0, user_data=0x0)

at kernel/qguieventdispatcher_glib.cpp:146
    event = {type = 5, xany = {type = 5, serial = 1620, send_event = 0, 

---Type to continue, or q to quit--- display = 0x755310, window = 96468997}, xkey = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, root = 598, subwindow = 0, time = 394981, x = 200, y = 45, x_root = 331, y_root = 303, state = 256, keycode = 1, same_screen = 1}, xbutton = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, root = 598, subwindow = 0, time = 394981, x = 200, y = 45, x_root = 331, y_root = 303, state = 256, button = 1, same_screen = 1}, xmotion = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, root = 598, subwindow = 0, time = 394981, x = 200, y = 45, x_root = 331, y_root = 303, state = 256, is_hint = 1 '\001', same_screen = 1}, xcrossing = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, root = 598, subwindow = 0, time = 394981, x = 200, y = 45, x_root = 331, y_root = 303, mode = 256, detail = 1, same_screen = 1, focus = 0, state = 11600704}, xfocus = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, mode = 598, detail = 0}, xexpose = { type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, x = 598, y = 0, width = 0, height = 0, count = 394981}, xgraphicsexpose = { type = 5, serial = 1620, send_event = 0, display = 0x755310, drawable = 96468997, x = 598, y = 0, width = 0, height = 0, count = 394981, major_code = 0, minor_code = 200}, xnoexpose = {type = 5, serial = 1620, send_event = 0, display = 0x755310, drawable = 96468997, major_code = 598, minor_code = 0}, xvisibility = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, state = 598}, xcreatewindow = {type = 5, serial = 1620, send_event = 0, display = 0x755310, parent = 96468997, window = 598, x = 0, y = 0, width = 394981, height = 0, border_width = 200, override_redirect = 45}, xdestroywindow = {type = 5, serial = 1620, send_event = 0, display = 0x755310, event = 96468997, window = 598}, xunmap = { type = 5, serial = 1620, send_event = 0, display = 0x755310, event = 96468997, window = 598, from_configure = 0}, xmap = {type = 5, serial = 1620, send_event = 0, display = 0x755310, event = 96468997, window = 598, override_redirect = 0}, xmaprequest = {type = 5, serial = 1620, send_event = 0, display = 0x755310, parent = 96468997, window = 598}, xreparent = {type = 5, serial = 1620, send_event = 0, display = 0x755310, event = 96468997, window = 598, parent = 0, x = 394981, y = 0, override_redirect = 200}, xconfigure = {type = 5, serial = 1620, send_event = 0, display = 0x755310, event = 96468997, window = 598, x = 0, y = 0, width = 394981, height = 0, border_width = 200, above = 1301375091019, override_redirect = 256}, xgravity = { type = 5, serial = 1620, send_event = 0, display = 0x755310, event = 96468997, ---Type to continue, or q to quit--- window = 598, x = 0, y = 0}, xresizerequest = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, width = 598, height = 0}, xconfigurerequest = {type = 5, serial = 1620, send_event = 0, display = 0x755310, parent = 96468997, window = 598, x = 0, y = 0, width = 394981, height = 0, border_width = 200, above = 1301375091019, detail = 256, value_mask = 1}, xcirculate = {type = 5, serial = 1620, send_event = 0, display = 0x755310, event = 96468997, window = 598, place = 0}, xcirculaterequest = {type = 5, serial = 1620, send_event = 0, display = 0x755310, parent = 96468997, window = 598, place = 0}, xproperty = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, atom = 598, time = 0, state = 394981}, xselectionclear = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, selection = 598, time = 0}, xselectionrequest = {type = 5, serial = 1620, send_event = 0, display = 0x755310, owner = 96468997, requestor = 598, selection = 0, target = 394981, property = 193273528520, time = 1301375091019}, xselection = {type = 5, serial = 1620, send_event = 0, display = 0x755310, requestor = 96468997, selection = 598, target = 0, property = 394981, time = 193273528520}, xcolormap = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, colormap = 598, c_new = 0, state = 0}, xclient = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, message_type = 598, format = 0, data = { b = "\345\006\006\000\000\000\000\000\310\000\000\000-\000\000\000K\001\000", s = {1765, 6, 0, 0, 200, 0, 45, 0, 331, 0}, l = {394981, 193273528520, 1301375091019, 4294967552, 1}}}, xmapping = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, request = 598, first_keycode = 0, count = 0}, xerror = {type = 5, display = 0x654, resourceid = 7598247022973419520, serial = 7688976, error_code = 5 '\005', request_code = 0 '\000', minor_code = 192 '\300'}, xkeymap = {type = 5, serial = 1620, send_event = 0, display = 0x755310, window = 96468997, key_vector = "V\002", '\000' <repeats 14 times>, "\345\006\006\000\000\000\000\000\310\000\000\000-\000\000"}, xgeneric = {type = 5, serial = 1620, send_event = 0, display = 0x755310, extension = 96468997, evtype = 0}, xcookie = {type = 5, serial = 1620, send_event = 0, display = 0x755310, extension = 96468997, evtype = 0, cookie = 598, data = 0x0}, pad = {5, 1620, 7598247022973419520, 7688976, 96468997, 598, 0, 394981, 193273528520, 1301375091019, 4294967552, 1, 11600704, 21474836481, 549755813890, 48, 64, 12464304, 12471776, -4611685945412943865, 12471264, 140735340871680, 12464360, 208}} source = 0x737110 marker = 1621 ---Type to continue, or q to quit---

27 0x00007ffff2dd9e04 in g_main_context_dispatch ()

from /lib/x86_64-linux-gnu/libglib-2.0.so.0 No symbol table info available.

28 0x00007ffff2dda048 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0

No symbol table info available.

29 0x00007ffff2dda0ec in g_main_context_iteration ()

from /lib/x86_64-linux-gnu/libglib-2.0.so.0 No symbol table info available.

30 0x00007ffff6dec7a1 in QEventDispatcherGlib::processEvents (this=0x6f23c0, flags=...)

at kernel/qeventdispatcher_glib.cpp:434
    d = 0x736d10
    canWait = <optimized out>
    savedFlags = {i = 0}
    result = <optimized out>

31 0x00007ffff7392bb6 in QGuiEventDispatcherGlib::processEvents (this=,

flags=...) at kernel/qguieventdispatcher_glib.cpp:204
    d = 0x736d10
    saved_flags = {i = 0}
    returnValue = 64

32 0x00007ffff6dbe0af in QEventLoop::processEvents (this=this@entry=0x7fffffffd610,

flags=...) at kernel/qeventloop.cpp:149
    d = 0xb03c00

33 0x00007ffff6dbe3a5 in QEventLoop::exec (this=this@entry=0x7fffffffd610, flags=...)

at kernel/qeventloop.cpp:204
    d = 0xb03c00
    locker = {val = 7560264}

34 0x00007ffff6dc3b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225

    threadData = 0x735b00
    eventLoop = {<QObject> = {_vptr.QObject = 0x7ffff7123710 <vtable for QEventLoop+16>, 
        static staticMetaObject = {d = {superdata = 0x0, 
            stringdata = 0x7ffff6e9cca0 <qt_meta_stringdata_QObject> "QObject", 
            data = 0x7ffff6e9cd40 <qt_meta_data_QObject>, 
            extradata = 0x7ffff7120c60 QObject::staticMetaObjectExtraData}}, 
        static staticMetaObjectExtraData = {objects = 0x0, 
          static_metacall = 0x7ffff6dd8ae0 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}, d_ptr = {d = 0xb03c00}, static staticQtMetaObject = {d = {
            superdata = 0x0, stringdata = 0x7ffff6ea5be0 <qt_meta_stringdata_Qt> "Qt", 
            data = 0x7ffff6ea9500 <qt_meta_data_Qt>, extradata = 0x0}}}, 

---Type to continue, or q to quit--- static staticMetaObject = {d = {superdata = 0x6e2160 QObject::staticMetaObject, stringdata = 0x7ffff6eaf7c0 "QEventLoop", data = 0x7ffff6eaf7e0 , extradata = 0x7ffff71237a0 QEventLoop::staticMetaObjectExtraData}}, static staticMetaObjectExtraData = {objects = 0x0, static_metacall = 0x7ffff6e1ddf0 <QEventLoop::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>}} returnCode =

35 0x0000000000416b4d in ?? ()

No symbol table info available.

36 0x00007ffff350eec5 in __libc_start_main (main=0x415ed0, argc=1, argv=0x7fffffffdc28,

init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, 
stack_end=0x7fffffffdc18) at libc-start.c:287
    result = <optimized out>
    unwind_buf = {cancel_jmp_buf = {{jmp_buf = {0, 8515279070689593871, 4290703, 
            140737488346144, 0, 0, -8515279069462033905, -8515251831419467249}, 
          mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x4806e0, 0x7fffffffdc28}, 
        data = {prev = 0x0, cleanup = 0x0, canceltype = 4720352}}}
    not_first_call = <optimized out>

37 0x00000000004178b8 in ?? ()

No symbol table info available.

MaartenBaert commented 10 years ago

It's still a non-standard version of libavcodec, and the crash is happening inside x264. This doesn't look like an SSR bug. I'm not going to try to track this down unless it's reproducible with a standard build of libavcodec and x264.

Tehmal commented 10 years ago

Its standerd i reinstalled from repo :> Propably still any other packge is other... But is error of x265, beacaue other programs who require x264 works :> So dont track, for me problem is solve i found other x264 codeck video recorder.

MaartenBaert commented 10 years ago

All I can tell is that the version that SSR sees is not the one from the repo. Your bug in x264 sounds exactly like this one: https://bugs.launchpad.net/ubuntu/+source/x264/+bug/1241772 ... which was fixed almost a year ago. I even added a patched version of x264 to my PPA back then.

So I don't believe that this is an SSR bug. The standard libraries in Ubuntu 14.04 don't have this bug, I've verified that. You should find out where these unofficial libraries came from (maybe a PPA?) and uninstall them.

J0nnyMak0 commented 10 years ago

Just an update. I was able to get it to work by doing this:

sudo add-apt-repository ppa:jon-severinsson/ffmpeg
sudo apt-get update && sudo apt-get dist-upgrade

which I found on this post:

http://askubuntu.com/questions/460201/screen-recorders-force-close-in-14-04

Maybe this will narrow down the problem.

schorsch commented 10 years ago

i also have the same problem with a fresh install of Linux Mint 17 (ubuntu thrusty) with cinnamon desktop.

==================== SSR gestartet ====================
SimpleScreenRecorder 0.3.0
Compiled with GCC 4.8.2
Qt: header 4.8.6, lib 4.8.6
libavformat: header 54.20.4, lib 54.63.104
libavcodec: header 54.35.0, lib 54.92.100
libavutil: header 52.3.0, lib 52.18.100
libswscale: header 2.1.1, lib 2.2.100
[ALSAInput::GetSourceList] Generiere Quell-Liste...
[ALSAInput::GetSourceList] Plugin gefunden pulse = PulseAudio Sound Server.
[ALSAInput::GetSourceList] Karte gefunden hw:0 = HDA Intel HDMI. 
[ALSAInput::GetSourceList] Karte gefunden hw:1 = HDA Intel PCH. 
[ALSAInput::GetSourceList] Gerät gefunden hw:1,0 = ALC668 Analog.
[PulseAudioInput::GetSourceList] Generiere Quell-Liste...
[SourceNamesCallback] Erhielt alsa_output.pci-0000_00_1b.0.analog-stereo.monitor = Monitor of Internes Audio Analog Stereo.
[SourceNamesCallback] Erhielt alsa_input.pci-0000_00_1b.0.analog-stereo = Internes Audio Analog Stereo.
[SourceNamesCallback] Erhielt alsa_output.pci-0000_00_03.0.hdmi-stereo-extra1.monitor = Monitor of Internes Audio Digital Stereo (HDMI).
[DetectCPUFeatures] CPU Merkmale: mmx sse sse2 sse3 ssse3 sse4_1 sse4_2 avx avx2 bmi1 bmi2
"sni-qt/13100" WARN  13:16:04.642 void StatusNotifierItemFactory::connectToSnw() Invalid interface to SNW_SERVICE 
[PageRecord::StartPage] Start-Seite...
[PageRecord::StartPage] Seite gestartet.
[PageRecord::StartInput] Eingabe wird gestartet...
[X11Input::Init] Verwende X11 geteilten Speicher.
[X11Input::InputThread] Eingabe-Prozess gestartet.
[PageRecord::StartInput] Eingabe gestartet.
[PulseAudioInput::InputThread] Eingabe-Prozess gestartet.
[PageRecord::StopInput] Eingabe wird angehalten...
[X11Input::~X11Input] Stoppe Eingabe Prozess...
[X11Input::InputThread] Eingabe-Prozess angehalten.
[PulseAudioInput::~PulseAudioInput] Stopping input thread ...
[PulseAudioInput::InputThread] Eingabe-Prozess angehalten.
[PageRecord::StopInput] Eingabe angehalten.
[PageRecord::StartOutput] Ausgabe wird gestoppt...
[Muxer::Init] Verwende Format mp4 (MP4 (MPEG-4 Part 14)).
[Muxer::AddStream] Verwende Codec libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10).
[libx264 @ 0x29b4ec0] using SAR=1/1
[1]    13100 segmentation fault  simplescreenrecorder

As of my knowledge i have not installed any extra video player,ffmpg or editing software so far. So i dont know where the differing header and binary version(libavformat,..) come from. Still here is the output of the 'locate' search

➜  ~  locate libavcodec
/usr/lib/vlc/plugins/codec/libavcodec_plugin.so
/usr/lib/x86_64-linux-gnu/libavcodec.so.54
/usr/lib/x86_64-linux-gnu/libavcodec.so.54.92.100
/usr/share/doc/libavcodec54
/usr/share/doc/libavcodec54/README.Debian.gz
/usr/share/doc/libavcodec54/changelog.Debian.gz
/usr/share/doc/libavcodec54/changelog.gz
/usr/share/doc/libavcodec54/codecs-amd64.txt.gz
/usr/share/doc/libavcodec54/copyright
/usr/share/lintian/overrides/libavcodec54
/var/cache/apt/archives/libavcodec54_6%3a9.14-0ubuntu0.14.04.1_amd64.deb
/var/cache/apt/archives/libavcodec54_7%3a1.2.5-1~trusty1_amd64.deb
/var/lib/dpkg/info/libavcodec54:amd64.list
/var/lib/dpkg/info/libavcodec54:amd64.md5sums
/var/lib/dpkg/info/libavcodec54:amd64.postinst
/var/lib/dpkg/info/libavcodec54:amd64.postrm
/var/lib/dpkg/info/libavcodec54:amd64.shlibs

i can run ssr in debug mode if it helps. Btw webm and the preview in ssr works. I love ssr and its simple approach and would really like to use it. Thanks for building it!

MaartenBaert commented 10 years ago

I have no idea where you are getting those weird libavcodec versions. The official version is 54.35.0 as can be seen here: http://packages.ubuntu.com/trusty/amd64/libavcodec54/filelist My stock Ubuntu install does not have libavcodec 54.92 and is not affected by the bug. I can't do anything about this unless you can tell me where you got those unofficial libavcodec packages. Are you using some PPA?

It still sounds like a repeat of this old bug: https://bugs.launchpad.net/ubuntu/+source/x264/+bug/1241772