Package: recordmydesktop Version: 0.3.8.1+svn602-1 Severity: important I tried using gtk-recordmydesktop to record a session with sound (checked the sound box in the GUI), but was told that recordmydesktop segfaulted. When I test on the command line, I get the same error. This is after I modified the default device from DEFAULT to pulse, to try to use the pulseaudio sound system as described on <URL: https://wiki.archlinux.org/index.php/RecordMyDesktop#No_sound_with_PulseAudio >.
Is it possible to record sound when using pulseaudio on Debian? Is there some other way to get audio recording working? Perhaps recordmydesktop should be changed to report an error instead of segfaulting? This is the output from valgrind. % valgrind recordmydesktop -o /tmp/out.ogv --fps 25 --channels 1 --freq 22050 --device pulse --v_quality 63 --s_quality 10 --workdir /tmp ==14123== Memcheck, a memory error detector ==14123== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==14123== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info ==14123== Command: recordmydesktop -o /tmp/out.ogv --fps 25 --channels 1 --freq 22050 --device pulse --v_quality 63 --s_quality 10 --workdir /tmp ==14123== Initial recording window is set to: X:0 Y:0 Width:1366 Height:768 Adjusted recording window is set to: X:6 Y:0 Width:1354 Height:768 Your window manager appears to be KWin Detected compositing window manager. Reverting to full screen capture at every frame. To disable this check run with --no-wm-check (though that is not advised, since it will probably produce faulty results). Initializing... Buffer size adjusted to 4096 from 4096 frames. Opened PCM device pulse Recording on device pulse is set to: 1 channels at 22050Hz X Error: BadAccess (attempt to access private resource denied) Bad Access on XGrabKey. Shortcut already assigned. X Error: BadAccess (attempt to access private resource denied) Bad Access on XGrabKey. Shortcut already assigned. X Error: BadAccess (attempt to access private resource denied) Bad Access on XGrabKey. Shortcut already assigned. X Error: BadAccess (attempt to access private resource denied) Bad Access on XGrabKey. Shortcut already assigned. Capturing! ==14123== Thread 5: ==14123== Invalid read of size 8 ==14123== at 0x4C2D940: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:915) ==14123== by 0xBC2E6F9: ??? (in /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so) ==14123== by 0x5630ABE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) ==14123== by 0x55F3F4A: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) ==14123== by 0x5631044: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) ==14123== by 0x406168: ??? (in /usr/bin/recordmydesktop) ==14123== by 0x589D0A3: start_thread (pthread_create.c:309) ==14123== by 0x766987C: clone (clone.S:111) ==14123== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==14123== ==14123== ==14123== Process terminating with default action of signal 11 (SIGSEGV) ==14123== Access not within mapped region at address 0x0 ==14123== at 0x4C2D940: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:915) ==14123== by 0xBC2E6F9: ??? (in /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so) ==14123== by 0x5630ABE: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) ==14123== by 0x55F3F4A: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) ==14123== by 0x5631044: ??? (in /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0) ==14123== by 0x406168: ??? (in /usr/bin/recordmydesktop) ==14123== by 0x589D0A3: start_thread (pthread_create.c:309) ==14123== by 0x766987C: clone (clone.S:111) ==14123== If you believe this happened as a result of a stack ==14123== overflow in your program's main thread (unlikely but ==14123== possible), you can try to increase the size of the ==14123== main thread stack using the --main-stacksize= flag. ==14123== The main thread stack size used in this run was 8388608. ==14123== ==14123== HEAP SUMMARY: ==14123== in use at exit: 1,893,766 bytes in 3,189 blocks ==14123== total heap usage: 6,261 allocs, 3,072 frees, 2,390,729 bytes allocated ==14123== ==14123== LEAK SUMMARY: ==14123== definitely lost: 34 bytes in 5 blocks ==14123== indirectly lost: 0 bytes in 0 blocks ==14123== possibly lost: 45,234 bytes in 1,326 blocks ==14123== still reachable: 1,848,498 bytes in 1,858 blocks ==14123== suppressed: 0 bytes in 0 blocks ==14123== Rerun with --leak-check=full to see details of leaked memory ==14123== ==14123== For counts of detected and suppressed errors, rerun with: -v ==14123== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0) Killed % -- Happy hacking Petter Reinholdtsen