Ubuntu

kazam crashed with ValueError in function(): %f not in range %f to %f

Reported by Chris Giltnane on 2012-04-17
84
This bug affects 14 people
Affects Status Importance Assigned to Milestone
Kazam Screencaster
Medium
David Klasinc
kazam (Ubuntu)
Medium
David Klasinc

Bug Description

Crashed on start 12.04 all current updates

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: kazam 1.0.6-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic i686
ApportVersion: 2.0.1-0ubuntu4
Architecture: i386
Date: Tue Apr 17 11:03:37 2012
ExecutablePath: /usr/bin/kazam
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta i386 (20110413)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/kazam
PythonArgs: ['/usr/bin/kazam']
SourcePackage: kazam
Title: kazam crashed with ValueError in function(): %f not in range %f to %f
UpgradeStatus: Upgraded to precise on 2011-12-22 (116 days ago)
UserGroups: adm admin cdrom dialout dip fax floppy fuse lpadmin plugdev sambashare tape tty users video

Related branches

Chris Giltnane (chris-giltnane) wrote :
tags: removed: need-duplicate-check
Chris Giltnane (chris-giltnane) wrote :

New version 1.3 came down last night but the same problem.
run in terminal give this

INFO Kazam - Logger intialized.
INFO Kazam - Running on: Ubuntu 12.04
Traceback (most recent call last):
  File "/usr/bin/kazam", line 94, in <module>
    appWindow = KazamApp(datadir, dist, args.debug, args.test, args.nosound)
  File "/usr/lib/python2.7/dist-packages/kazam/app.py", line 136, in __init__
    self.restore_state()
  File "/usr/lib/python2.7/dist-packages/kazam/app.py", line 580, in restore_state
    self.volumebutton_audio2.set_value(audio2_vol)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
ValueError: %f not in range %f to %f
chris@laptop:~$

visibility: private → public
David Klasinc (bigwhale) wrote :

Can you run kazam wih --debug option and attach the output?

Chris Giltnane (chris-giltnane) wrote :
Download full text (7.2 KiB)

kazam --chris@laptop:~$ kazam --debug
INFO Kazam - Logger intialized.
INFO Kazam - Running on: Ubuntu 12.04
DEBUG Kazam - Starting ...
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 - Main Window UI setup.
DEBUG Main - Unable to get name for '<Adjustment object at 0xb5fa8b1c (GtkAdjustment at 0x976af50)>'
DEBUG Main - Unable to get name for '<Adjustment object at 0xb5fa8c84 (GtkAdjustment at 0x976aed0)>'
DEBUG Main - Unable to get name for '<Adjustment object at 0xb5fa8cd4 (GtkAdjustment at 0x976af10)>'
DEBUG Main - Unable to get name for '<Adjustment object at 0xb5fa8cfc (GtkAdjustment at 0x976ae90)>'
DEBUG Main - Getting Audio sources.
DEBUG PulseAudio - get_audio_sources() called.
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio - IDX: 0
DEBUG PulseAudio - Name: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
DEBUG PulseAudio - Desc: Monitor of Built-in Audio Analogue Stereo
DEBUG PulseAudio - pa_sourcelist_cb()
DEBUG PulseAudio - IDX: 1
DEBUG PulseAudio - Name: alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG PulseAudio - Desc: Built-in Audio Analogue Stereo
DEBUG PulseAudio - pa_sourcelist_cb() -- finished
DEBUG Main - Device found:
DEBUG Main - - 0
DEBUG Main - - alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
DEBUG Main - - Monitor of Built-in Audio Analogue Stereo
DEBUG Main - Device found:
DEBUG Main - - 1
DEBUG Main - - alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG Main - - Built-in Audio Analogue Stereo
DEBUG Main - Getting Video sources.
DEBUG Main - Found 1 monitors.
DEBUG Main - Monitor 0 - X: 0, Y: 0, W: 1440, H: 900
DEBUG Main - Video ON.
DEBUG Main - Restoring state - sources: V (0), A_1 (0), A_2 (0)
DEBUG Main - Video changed.
DEBUG Main - New Video: {'y': 0, 'x': 0, 'height': 900, 'width': 1440}
DEBUG Main - Audio Changed.
DEBUG Main - - A_1 0
DEBUG Main - - A_2 -1
DEBUG Main - - PA Audio1 IDX: 0
DEBUG Main - - PA Audio2 IDX: 1
DEBUG PulseAudio - get_source_info_by_index() called. IDX: 0
DEBUG PulseAudio - pa_sourceinfo_cb()
DEBUG PulseAudio - IDX: 0
DEBUG PulseAudio - Name: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
DEBUG PulseAudio - Desc: Monitor of Built-in Audio Analogue Stereo
DEBUG PulseAudio - pa_sourceinfo_cb() -- finished
DEBUG PulseAudio - pa_sourceinfo_cb() -- Hit EOL
DEBUG PulseAudio - pa_sourceinfo_cb() -- EOL no data!
DEBUG PulseAudio - pa_sourceinfo_cb() -- finished
DEBUG PulseAudio - get_source_info_by_index() called. IDX: 1
DEBUG PulseAudio - pa_sourceinfo_cb()
DEBUG PulseAudio - IDX: 1
DEBUG PulseAudio - Name: alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG PulseAudio - Desc: Built-in Audio Analogue Stereo
DEBUG PulseAudio - pa_sourceinfo_cb() -- finished
DEBUG PulseAudio - pa_sourceinfo_cb() -- Hit EOL
DEBUG PulseAudio - pa_sourceinfo_cb() -- EOL no data!
DEBUG PulseAudio - pa_sourceinfo_cb() -- finished
DEBUG Main - New Audio1:
  Monitor of Bu...

Read more...

David Klasinc (bigwhale) on 2012-04-23
Changed in kazam (Ubuntu):
status: New → Confirmed
assignee: nobody → David Klasinc (bigwhale)
Changed in kazam:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → David Klasinc (bigwhale)
milestone: none → 1.3.1
status: Confirmed → Fix Committed
David Klasinc (bigwhale) wrote :

Thanks for the report! This should be fixed in stable and unstable branch. If you can test the stable branch and report your results back, I'd appreciate it. I can't duplicate this bug, so there is no way for me to test it.

Changed in kazam (Ubuntu):
status: Confirmed → Fix Committed
Chris Giltnane (chris-giltnane) wrote :

Will do as soon as I get the update
Thanks

David Klasinc (bigwhale) wrote :

Awesome. It would be most helpful if you can test this on new stable version - 1.0.7.

Chris Giltnane (chris-giltnane) wrote :

Have not been able to update yet but have found the cause of the problem. I had the input microphone volume for both the internal mic and the docking station mic ( which I have not got) in the sound preferences set to mute. As soon as I changed that to a low level but not 0 level kazam started with no issue, hope this ties in with your fix

Dion de Ville (diondeville) wrote :

I can confirm the bug still exists and the solution is the same as Chris mentioned, above. the input device streams do not need to be muted, just put to as low a level as possible.

Glad I found this solution because I uninstalled, purged, tried different PPAs... Chris, thank you for your solution. David, thank you for this software, it is awesome.

David Klasinc (bigwhale) on 2012-05-06
Changed in kazam (Ubuntu):
status: Fix Committed → In Progress
Changed in kazam:
status: Fix Committed → In Progress
David Klasinc (bigwhale) wrote :

Apparently this bug popped up in two different places in the code. I've tested it in stable and unstable branch and I can't reproduce it in the stable version. Which probably means that the intial solution fixed it for stable branch. Unstable branch is working with volumes a different way so another fix was required.

Thanks for all the info. I commited the fix and you can try the unstable branch again.

Changed in kazam:
status: In Progress → Fix Committed
Changed in kazam (Ubuntu):
status: In Progress → Fix Committed
David Klasinc (bigwhale) wrote :

Steps to reproduce this behavior:

- open pavucontrol
- set volume of all the input sources to the lowest level
- start kazam
- you should encounter a ValueError exception
- apply fix
- restart kazam to confirm there is no ValueError exception

Unstable now works for me. Thanks

David Klasinc (bigwhale) wrote :

Thanks! Awesome.

Changed in kazam (Ubuntu):
importance: Undecided → Medium

I encountered this issue after downloading Kazam from 12.04's default repo. Chris' solution fixed it.

Vadim Peretokin (vperetokin) wrote :

I ran into this problem while being subscribed to the stable PPA (I noticed it's mentioned that the unstable one does not work). Had to set the input mic to be above 0db as well:

DEBUG PulseAudio - PA - pa_sourceinfo_cb()
DEBUG PulseAudio - - IDX: 4
DEBUG PulseAudio - - Name: alsa_output.usb-Plantronics_Wireless_Audio_Plantronics_Wireless_Audio-00-Audio.analog-stereo.monitor
DEBUG PulseAudio - - Desc: Monitor of Plantronics Wireless Audio Analogue Stereo
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- finished
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- Hit EOL
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- EOL no data!
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- finished
DEBUG Main - Restoring state - volume: A_1 (-inf), A_2 (60.0)
Traceback (most recent call last):
  File "/usr/bin/kazam", line 74, in <module>
    appWindow = KazamApp(datadir, args.debug)
  File "/usr/lib/python2.7/dist-packages/kazam/app.py", line 238, in __init__
    self.restore_state()
  File "/usr/lib/python2.7/dist-packages/kazam/app.py", line 576, in restore_state
    self.volumebutton_audio.set_value(audio_vol)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
ValueError: %f not in range %f to %f

It's be nice to have a patch to the stable PPA fixing this, because PA will randomly set the input mic to muted for you, without your permission or will.

David Klasinc (bigwhale) on 2012-11-01
Changed in kazam:
status: Fix Committed → Fix Released
Jack Wearden (jackweirdy) wrote :

I'm still experiencing this bug, and Chris' solution of making the input volume non-zero fixes this for me

Benjamin (nailartcenter) wrote :
Download full text (7.4 KiB)

Hello, this occured still on Lubuntu 12.04 Desktop with all updates after installation:

cf@cf:~$ kazam --debug
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_00_1b.0.analog-stereo.monitor
DEBUG PulseAudio - - Desc: Monitor of Internes Audio Analog Stereo
DEBUG PulseAudio - PA - pa_sourcelist_cb()
DEBUG PulseAudio - - IDX: 1
DEBUG PulseAudio - - Name: alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG PulseAudio - - Desc: Internes Audio Analog Stereo
DEBUG PulseAudio - PA - pa_sourcelist_cb() -- finished
DEBUG Main - Device found:
DEBUG Main - - 0
DEBUG Main - - alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
DEBUG Main - - Monitor of Internes Audio Analog Stereo
DEBUG Main - Device found:
DEBUG Main - - 1
DEBUG Main - - alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG Main - - Internes Audio Analog Stereo
DEBUG Main - Getting Video sources.
DEBUG Main - Found 1 monitors.
DEBUG Main - Monitor 0 - X: 0, Y: 0, W: 1024, H: 768
DEBUG Main - Video Toggled.
DEBUG Main - Restoring state - sources: V (0), A_1 (0), A_2 (0)
DEBUG Main - Video changed.
DEBUG Main - New Video: {'y': 0, 'x': 0, 'height': 768, 'width': 1024}
DEBUG Main - Audio Changed.
DEBUG Main - - A_1 0
DEBUG Main - - A_2 -1
DEBUG Main - - PA Audio1 IDX: 0
DEBUG Main - - PA Audio2 IDX: 1
DEBUG PulseAudio - PA - get_source_info_by_index() called. IDX: 0
DEBUG PulseAudio - PA - pa_sourceinfo_cb()
DEBUG PulseAudio - - IDX: 0
DEBUG PulseAudio - - Name: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
DEBUG PulseAudio - - Desc: Monitor of Internes Audio Analog Stereo
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- finished
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- Hit EOL
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- EOL no data!
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- finished
DEBUG PulseAudio - PA - get_source_info_by_index() called. IDX: 1
DEBUG PulseAudio - PA - pa_sourceinfo_cb()
DEBUG PulseAudio - - IDX: 1
DEBUG PulseAudio - - Name: alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG PulseAudio - - Desc: Internes Audio Analog Stereo
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- finished
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- Hit EOL
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- EOL no data!
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- finished
DEBUG Main - New Audio1:
  Monitor of Internes Audio Analog Stereo
DEBUG Main - New Audio2:
  Internes Audio Analog Stereo
DEBUG Main - Audio Chang...

Read more...

Jack Wearden (jackweirdy) wrote :

Looks like on app.py line 578 audio2_vol is -infinity, I've fixed it locally by prepending with the line:

if audio2_vol < 0: audio2_vol = 0

Jack Wearden (jackweirdy) wrote :

After branching from lp:kazam, the code is different to what I get from running apt-get source kazam. I don't know enough about Ubuntu packaging to figure out where the repo is for the code being installed.

Download full text (5.9 KiB)

Output of command:
kazam --debug
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_00_1b.0.analog-stereo.monitor
DEBUG PulseAudio - - Desc: Monitor of Built-in Audio Analog Stereo
DEBUG PulseAudio - PA - pa_sourcelist_cb()
DEBUG PulseAudio - - IDX: 1
DEBUG PulseAudio - - Name: alsa_input.pci-0000_00_1b.0.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_00_1b.0.analog-stereo.monitor
DEBUG Main - - Monitor of Built-in Audio Analog Stereo
DEBUG Main - Device found:
DEBUG Main - - 1
DEBUG Main - - alsa_input.pci-0000_00_1b.0.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: 1366, H: 768
DEBUG Main - Video Toggled.
DEBUG Main - Restoring state - sources: V (0), A_1 (0), A_2 (1)
DEBUG Main - Video changed.
DEBUG Main - New Video: {'y': 0, 'x': 0, 'height': 768, 'width': 1366}
DEBUG Main - Audio Changed.
DEBUG Main - - A_1 0
DEBUG Main - - A_2 -1
DEBUG Main - - PA Audio1 IDX: 0
DEBUG Main - - PA Audio2 IDX: 1
DEBUG PulseAudio - PA - get_source_info_by_index() called. IDX: 0
DEBUG PulseAudio - PA - pa_sourceinfo_cb()
DEBUG PulseAudio - - IDX: 0
DEBUG PulseAudio - - Name: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
DEBUG PulseAudio - - Desc: Monitor of Built-in Audio Analog Stereo
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- finished
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- Hit EOL
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- EOL no data!
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- finished
DEBUG PulseAudio - PA - get_source_info_by_index() called. IDX: 1
DEBUG PulseAudio - PA - pa_sourceinfo_cb()
DEBUG PulseAudio - - IDX: 1
DEBUG PulseAudio - - Name: alsa_input.pci-0000_00_1b.0.analog-stereo
DEBUG PulseAudio - - Desc: Built-in Audio Analog Stereo
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- finished
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- Hit EOL
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- EOL no data!
DEBUG PulseAudio - PA - pa_sourceinfo_cb() -- finished
DEBUG Main - New Audio1:
  Monitor of Built-in Audio Analog Stereo
DEBUG Main - New Audio2:
  Built-in Audio Analog Stereo
DEBUG Main - Audio Changed.
DEBUG Main - - A_1 0
DEBUG Main - - A_2 1
DEBUG Main ...

Read more...

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

Other bug subscribers