Camera settings drop-down boxes not updated when webcam attached or removed
Under Settings->Media, the drop-down boxes for Camera Settings, where resolution etc is selected, stays blank and disabled even when camera device has been attached.
To reproduce:
- Start dring and jami-gnome with no camera device attached to system.
- Attach webcam.
- Go to Settings->Media. The drop-down boxes remain empty and greyed-out even though live video preview is shown.
Also:
- Start dring and jami-gnome with webcam attached.
- Unplug webcam.
- Go to Settings->Media. The drop-down boxes shows old video device info.
System info:
$ /usr/lib/ring/dring --version Jami Daemon 9.1.0, by Savoir-faire Linux 2004-2019 https://jami.net/ [Video support enabled]
$ jami-gnome --version 74ef874e - unknown (About page says "Free as in Freedom" built on 2020-04-14 20:24:50 UTC)
OS: Xubuntu 18.04 with kernel 5.5.17
This is reproducible also on Xubuntu 20.04 beta with Jami Daemon 7.4.0/jami-gnome "Live Free or Die" built on 2020-03-23 06:24:58.
As an aside, I once got a dring segfault in relation to this, but unfortunately I cannot reproduce that bug. Just FYI, here's the log of that one occurrance (as much of it as I have):
[1587224157.967| 3071|video_input.cpp :493 ] MRL: 'camera:///dev/video0'
[1587224157.967| 3071|audio_input.cpp :53 ] Creating audio input with id: audiolayer_id
[1587224157.967|13310|sinkclient.cpp :195 ] ShmHolder[Jami Daemon_shm_3071_0]: new sizes: f=0, a=103
[1587224157.967|13310|sinkclient.cpp :161 ] ShmHolder: new holder 'Jami Daemon_shm_3071_0'
[1587224157.967|13310|video_input.cpp :165 ] VideoInput ready to capture
[1587224157.967| 3071|audio_input.cpp :260 ] Switching audio source to match 'camera:///dev/video0'
[1587224157.967|13310|media_decoder.cpp :129 ] Trying to open device /dev/video0 with format video4linux2, pixel format , size 640x480, rate 30.000000
[1587224157.967|13311|audio_input.cpp :77 ] Switching audio input to '/dev/video0'
[1587224157.967| 3071|audiolayer.cpp :123 ] Hardware audio format available : {s16, 2 channels, 44100Hz} 0
[1587224157.967| 3071|audiostream.cpp :49 ] Playback: trying to create stream with device (44100Hz, 2 channels)
[1587224157.967| 3071|audiostream.cpp :134 ] Stream is creating...
[1587224157.967| 3071|audiostream.cpp :49 ] Ringtone: trying to create stream with device (44100Hz, 2 channels)
[1587224157.967| 3071|audiostream.cpp :134 ] Stream is creating...
[1587224157.967| 3071|audiostream.cpp :49 ] Capture: trying to create stream with device alsa_input.pci-0000_00_1b.0.analog-stereo (44100Hz, 2 channels)
[1587224157.967| 3071|audiostream.cpp :134 ] Stream is creating...
[1587224157.968| 3071|audio_input.cpp :53 ] Creating audio input with id: audiolayer_id
[1587224158.015| 3091|audiostream.cpp :142 ] Stream successfully created, connected to alsa_output.usb-Binary_Audio_UAC1_DAC-01.analog-stereo
[1587224158.015| 3091|audiostream.cpp :142 ] Stream successfully created, connected to alsa_output.usb-Binary_Audio_UAC1_DAC-01.analog-stereo
[1587224158.015| 3091|audiostream.cpp :124 ] Stream 53 to alsa_output.usb-Binary_Audio_UAC1_DAC-01.analog-stereo.echo-cancel
[1587224158.015| 3091|audiostream.cpp :124 ] Stream 54 to alsa_output.usb-Binary_Audio_UAC1_DAC-01.analog-stereo.echo-cancel
[1587224158.015| 3091|audiostream.cpp :142 ] Stream successfully created, connected to alsa_input.pci-0000_00_1b.0.analog-stereo.echo-cancel
[1587224158.015| 3091|pulselayer.cpp :330 ] All streams ready, starting !
[1587224158.015| 3091|pulselayer.cpp :184 ] Updating PulseAudio source list
[1587224158.015| 3091|pulselayer.cpp :200 ] Updating PulseAudio server infos
[1587224158.015| 3091|pulselayer.cpp :168 ] Updating PulseAudio sink list
[1587224158.016| 3091|pulselayer.cpp :601 ] PulseAudio server info:
Server name: pulseaudio
Server version: 11.1
Default Sink alsa_output.usb-Binary_Audio_UAC1_DAC-01.analog-stereo.echo-cancel
Default Source alsa_input.pci-0000_00_1b.0.analog-stereo.echo-cancel
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
[1587224158.017|13313|pulselayer.cpp :578 ] Staying on
alsa_output.usb-Binary_Audio_UAC1_DAC-01.analog-stereo.echo-cancel
alsa_input.pci-0000_00_1b.0.analog-stereo.echo-cancel
[1587224159.740| 3071|video_input.cpp :493 ] MRL: ''
[1587224159.740| 3071|audio_input.cpp :260 ] Switching audio source to match ''
[1587224159.740|13312|audio_input.cpp :75 ] Switching to default audio input
[video4linux2,v4l2 @ 0x7fe3e00b7540] Cannot open video device /dev/video0: Device or resource busy
[1587224160.783|13310|media_decoder.cpp :139 ] avformat_open_input failed: Device or resource busy
[1587224160.784| 3073|video_device_monitor_impl.cpp:219 ] udev: removing /dev/video0
[1587224160.785| 3073|video_device_monitor_impl.cpp:219 ] udev: removing /dev/video1
Segmentation fault (core dumped)