Closed yktoo closed 10 years ago
@qris what did you do when this happened?
It happens every time I choose Refresh from the applet menu.
Which version of Ubuntu do you run?
Also, could you uncomment the print
statement in the _log
method (in /usr/bin/indicator-sound-switcher
), reproduce the error and send me the output?
I'm running 12.04 LTS. I get this one on startup:
chris@lap-x201:~/Downloads$ /tmp/indicator-sound-switcher
Context connected
+ Source[1] addition: 'alsa_input.pci-0000_00_1b.0.analog-stereo'
+ Source port[0] added: 'analog-input-microphone-internal'; 'Internal Microphone'; 8900
+ Source port[1] added: 'analog-input-microphone-dock'; 'Dock Microphone'; 7800
+ Source port[2] added: 'analog-input-microphone'; 'Microphone'; 8700
+ Sink[0] addition: 'alsa_output.pci-0000_00_1b.0.analog-stereo'
+ Sink port[0] added: 'analog-output-speaker'; 'Speakers'; 10000
+ Sink port[1] added: 'analog-output-headphones'; 'Headphones'; 9000
+ Sink[2] addition: 'bluez_sink.00_02_3C_2A_02_28'
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 314, in 'calling callback function'
File "/tmp/indicator-sound-switcher", line 306, in pacb_sink_info
struct.contents.active_port)
File "/tmp/indicator-sound-switcher", line 373, in sink_info
sink.activate_port_by_name(active_port.contents.name)
ValueError: NULL pointer access
And this (looks the same) when I choose Refresh from the drop-down menu:
- Source[1] removed: 'alsa_input.pci-0000_00_1b.0.analog-stereo'
- Sink[0] removed: 'alsa_output.pci-0000_00_1b.0.analog-stereo'
- Sink[2] removed: 'bluez_sink.00_02_3C_2A_02_28'
+ Source[1] addition: 'alsa_input.pci-0000_00_1b.0.analog-stereo'
+ Source port[0] added: 'analog-input-microphone-internal'; 'Internal Microphone'; 8900
+ Source port[1] added: 'analog-input-microphone-dock'; 'Dock Microphone'; 7800
+ Source port[2] added: 'analog-input-microphone'; 'Microphone'; 8700
+ Sink[0] addition: 'alsa_output.pci-0000_00_1b.0.analog-stereo'
+ Sink port[0] added: 'analog-output-speaker'; 'Speakers'; 10000
+ Sink port[1] added: 'analog-output-headphones'; 'Headphones'; 9000
+ Sink[2] addition: 'bluez_sink.00_02_3C_2A_02_28'
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 314, in 'calling callback function'
File "/tmp/indicator-sound-switcher", line 306, in pacb_sink_info
struct.contents.active_port)
File "/tmp/indicator-sound-switcher", line 373, in sink_info
sink.activate_port_by_name(active_port.contents.name)
ValueError: NULL pointer access
Cheers, Chris.
Managed to reproduce it on 12.04, only seems to impact Bluetooth devices. Will continue to investigate.
Fix committed.
Reported by @qris
I get some assertion errors on the console: