Kazam crashes silently while recording (depending on audio source)

Bug #1038282 reported by Bugsbane
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kazam (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When recording with Kazam, every time after a small amount of time (between 10 seconds to 10 minutes) it just disappears without Ubuntu's crash reporter even noticing. When I run it in the terminal, I get the following output:

user@mycomputer:/home/user$ kazam
/usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' failed
  import gobject._gobject
/usr/lib/python2.7/dist-packages/kazam/backend/gstreamer.py:156: Warning: value "7" of type `guint' is invalid or out of range for property `threads' of type `guint'
  self.videnc.set_property("threads", self.cores)
INFO Indicator - Recording started.
mmap() failed: Cannot allocate memory
Assertion 'b' failed at pulsecore/memblock.c:454, function pa_memblock_acquire(). Aborting.
Aborted (core dumped)

If I watch it in the system monitor, ram usage goes up to about 394mb just before it crashes (I have 16gig in this box, most of which is unused).

System: Ubuntu 12.04.1 LTS + Nvidia GTX 550 with post-release updates + 16gig ram + many gig free on the HDD

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: kazam 1.0.6-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-29.46-generic-pae 3.2.24
Uname: Linux 3.2.0-29-generic-pae i686
NonfreeKernelModules: nvidia
ApportVersion: 2.0.1-0ubuntu12
Architecture: i386
Date: Fri Aug 17 17:20:45 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423)
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_CA:en
 TERM=xterm
 PATH=(custom, no username)
 LANG=en_CA.UTF-8
 SHELL=/bin/bash
SourcePackage: kazam
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Bugsbane (bugsbane) wrote :
Revision history for this message
Bugsbane (bugsbane) wrote :
Download full text (9.8 KiB)

I ran about 10 more experiments using different options and noticed one interesting thing.

I found that I only seem to get the crash if I have the internal audio monitor selected as an audio source. Internal audio (but not the monitor) didn't crash in recordings over 20 minutes (normally it crashes within seconds). As such, this is very well likely a duplicate of:
https://bugs.launchpad.net/ubuntu/+source/kazam/+bug/1037538
https://bugs.launchpad.net/ubuntu/+source/kazam/+bug/1011918

(although unlike the first bug there, my interface doesn't just "stop", it crashes and disappears altogether)

I also ran Kazam with --debug. It didn't give much more enlightening information, but for the record, output was:

DEBUG Kazam - Starting ...
DEBUG Main - Setting variables.
DEBUG PulseAudio - PA - Starting mainloop.
DEBUG PulseAudio - PA - Getting API.
DEBUG PulseAudio - PA - Setting context.
DEBUG PulseAudio - PA - Set state callback.
DEBUG PulseAudio - PA - Connecting to server.
DEBUG PulseAudio - PA - Start mainloop.
DEBUG PulseAudio - PA - Connected.
DEBUG Main - Connecting indicator signals.
DEBUG Main - Main Window UI setup.
DEBUG Main - Getting Audio sources.
DEBUG PulseAudio - PA - get_audio_sources() called.
DEBUG PulseAudio - PA - pa_sourcelist_cb()
DEBUG PulseAudio - - IDX: 0
DEBUG PulseAudio - - Name: alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor
DEBUG PulseAudio - - Desc: Monitor of GF110 High Definition Audio Controller Digital Stereo (HDMI)
DEBUG PulseAudio - PA - pa_sourcelist_cb()
DEBUG PulseAudio - - IDX: 1
DEBUG PulseAudio - - Name: alsa_input.usb-046d_HD_Webcam_C525_ABD5D0D0-00-C525.analog-mono
DEBUG PulseAudio - - Desc: HD Webcam C525 Analog Mono
DEBUG PulseAudio - PA - pa_sourcelist_cb()
DEBUG PulseAudio - - IDX: 2
DEBUG PulseAudio - - Name: alsa_output.pci-0000_00_14.2.analog-stereo.monitor
DEBUG PulseAudio - - Desc: Monitor of Built-in Audio Analog Stereo
DEBUG PulseAudio - PA - pa_sourcelist_cb()
DEBUG PulseAudio - - IDX: 3
DEBUG PulseAudio - - Name: alsa_input.pci-0000_00_14.2.analog-stereo
DEBUG PulseAudio - - Desc: Built-in Audio Analog Stereo
DEBUG PulseAudio - PA - pa_sourcelist_cb() -- finished
DEBUG Main - Device found:
DEBUG Main - - 0
DEBUG Main - - alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor
DEBUG Main - - Monitor of GF110 High Definition Audio Controller Digital Stereo (HDMI)
DEBUG Main - Device found:
DEBUG Main - - 1
DEBUG Main - - alsa_input.usb-046d_HD_Webcam_C525_ABD5D0D0-00-C525.analog-mono
DEBUG Main - - HD Webcam C525 Analog Mono
DEBUG Main - Device found:
DEBUG Main - - 2
DEBUG Main - - alsa_output.pci-0000_00_14.2.analog-stereo.monitor
DEBUG Main - - Monitor of Built-in Audio Analog Stereo
DEBUG Main - Device found:
DEBUG Main - - 3
DEBUG Main - - alsa_input.pci-0000_00_14.2.analog-stereo
DEBUG Main - - Built-in Audio Analog Stereo
DEBUG Main - Getting Video sources.
DEBUG Main - Found 1 monitors.
DEBUG Main - Monitor 0 - X: 0, Y: 0, W: 1920, H: 1080
DEBUG Main - Video Toggled.
DEBUG Main ...

Read more...

Revision history for this message
Bugsbane (bugsbane) wrote :

Just found out that it also crashes if I have my webcam's audio (and no other audio channel) selected, unlike the bug that says it only crashes with internal audio selected.

Changed in kazam (Ubuntu):
status: New → Confirmed
tags: added: amd64
summary: - Kazam crashes silently while recording ( mmap() failed: Cannot allocate
- memory )
+ Kazam crashes silently while recording (depending on audio source)
Revision history for this message
William Ranvaud (wiranvaud) wrote :

It's apparently related to audio options, I just edited the title.

Revision history for this message
turbolad (turbolad995) wrote :

Kazam worked fine in Ubuntu 13.04 and now in Ubuntu 13.10 it does not work at all.

Revision history for this message
Yannick Warnier (ywarnier) wrote :
Download full text (5.8 KiB)

I have the silent hanging problem in Ubuntu 13.10, with 2 different sound sources.
Actually, it doesn't hang: it continues to work and record things (both audio and video). The problem is the window disappears and you cannot stop it. Key shortcuts (found on http://www.webupd8.org/2012/10/kazam-screencaster-132-gets-new-ui.html) do not work either.
If you kill the process by hand (killall -9 kazam), the videos are available wherever you configured them to be in "Preferences" with a ".movie" extension, but as you selected the format, you can quite easily rename them to ".webm" for example and have your video, but apparently the movie index is not correct, so you don't have a clear "total time" for the video (so not perfect, although it can probably be fixed by mplayer, ffmpeg or something like that).

This is really annoying. Kazam was the most reliable desktop recording tool I had found for Ubuntu.

When launching with --debug, I get the following output.

$ kazam --debug
DEBUG Kazam - Starting ...
DEBUG Kazam - Running on: Ubuntu 13.10
DEBUG Kazam - Kazam version: 1.4.3-0ubuntu1 NCC-2000
DEBUG Kazam - Starting new instance ...
DEBUG Constants - Getting hardware specs
DEBUG Constants - Getting Video sources.
DEBUG Constants - Found 3 monitor(s).
DEBUG Constants - Monitor 0 - X: 0, Y: 0, W: 1920, H: 1080
DEBUG Constants - Monitor 1 - X: 1920, Y: 0, W: 1920, H: 1080
DEBUG Constants - Monitor 2 - X: 3840, Y: 0, W: 1680, H: 1050
DEBUG Constants - Combined screen - X: 0, Y: 0, W: 5520, H: 1080
DEBUG Prefs - XDG_PICTURES is a directory and accessible
DEBUG Main - Gstreamer version detected: 1.2.0.0
DEBUG Main - Setting variables.
DEBUG PulseAudio - Starting mainloop.
DEBUG PulseAudio - Getting API.
DEBUG PulseAudio - Setting context.
DEBUG PulseAudio - Set state callback.
DEBUG PulseAudio - Connecting to server.
DEBUG PulseAudio - Start mainloop.
DEBUG PulseAudio - State connected.
DEBUG Main - Connecting indicator signals.
DEBUG Main - Starting in silent mode: False
DEBUG Indicator - Indicatior silent: False
DEBUG Indicator - Trying to bind hotkeys.
DEBUG Main - Main Window UI setup.
DEBUG Main - Unable to get name for '<Adjustment object at 0x7f4f6c1bd050 (GtkAdjustment at 0x24d59c0)>'

(kazam:1079): Gtk-WARNING **: Can't set a parent on widget which has a parent

(kazam:1079): Gtk-WARNING **: Can't set a parent on widget which has a parent

DEBUG Prefs - Getting Audio sources.
DEBUG PulseAudio - get_audio_sources() called.
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio - IDX: 0
DEBUG PulseAudio - Name: b'alsa_output.pci-0000_00_1b.0.analog-stereo.monitor'
DEBUG PulseAudio - Desc: b'Monitor of Audio interne St\xc3\xa9r\xc3\xa9o analogique'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio - IDX: 1
DEBUG PulseAudio - Name: b'alsa_input.pci-0000_00_1b.0.analog-stereo'
DEBUG PulseAudio - Desc: b'Audio interne St\xc3\xa9r\xc3\xa9o analogique'
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio - IDX: 4
DEBUG PulseAudio - Name: b'alsa_input.usb-BEHRINGER_C-1U-00-C1U.analog-stereo'
DEBUG PulseAudio - Desc: b'C-1U St\xc3\xa9r\xc3\xa9o analogique'
DEBUG PulseAudio - pa_sourcelist_cb() -- fini...

Read more...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.