ultrastares / ultrastar-worldparty

UltraStar WorldParty. A karaoke game inspired by SingStar™
https://ultrastar-es.org
GNU General Public License v3.0
134 stars 35 forks source link

No microphones on ubuntu 18.04 #50

Closed watho closed 3 years ago

watho commented 3 years ago

Hi, great news to have an updated snap. Unfortunately it does not work for me. I am using 2 usb-microphones which work fine for the ultrastar-deluxe-game. In ultrastar-worldparty the config screen is just empty.

Distro: Kubuntu 18.04 Installed as snap 21.02 2021-02-07

Commandline when running as debug

Testing for explicit PulseAudio choice...
Testing for ALSA permissions...
...defaulting to using PulseAudio.
[7-2-21 20:25:34] ERROR:  libavcodec header (58.91.100) and DLL (58.54.100) versions do not match.
[7-2-21 20:25:34] ERROR:  libavformat header (58.45.100) and DLL (58.29.100) versions do not match.
[7-2-21 20:25:34] ERROR:  libavutil header (56.51.100) and DLL (56.31.100) versions do not match.
[7-2-21 20:25:34] ERROR:  libswscale header (5.7.100) and DLL (5.5.100) versions do not match.
[7-2-21 20:25:34] ERROR:  Initialize failed, Removing - SDL (pulseaudio)
An unhandled exception occurred at $000000000041FFB7:
EAccessViolation: Access violation
  $000000000041FFB7
  $000000000041D031
  $000000000041DD4E

An unhandled exception occurred at $000000000041FFB7:
EAccessViolation: Access violation
  $000000000041FFB7
  $000000000041D031
  $000000000041DD4E
  $000000000041D031
  $000000000041DD4E

An unhandled exception occurred at $000000000041FF72:
EAccessViolation: Access violation
  $000000000041FF72
  $000000000041A6BF
  $000000000041DD4E
  $000000000041D031
  $000000000041DD4E
  $000000000041D031
  $000000000041DD4E

An unhandled exception occurred at $000000000041FFB7:
EAccessViolation: 
  $000000000041FFB7
  $000000000041D031
  $000000000041A6BF
  $000000000041DD4E
  $000000000041D031
  $000000000041DD4E
  $000000000041D031
  $000000000041DD4E

There are also some apparmor-warnings which might be the cause

kernel: [95716.110595] kauditd_printk_skb: 5 callbacks suppressed
kernel: [95716.110598] audit: type=1400 audit(1612725930.868:211): apparmor="DENIED" operation="connect" profile="snap.ultrastar-worldparty.ultrastar-worldparty-debug" pid=19348 comm="ultrastar-world" family="unix" sock_type="stream" protocol=0 requested_mask="send receive connect" denied_mask="send connect" addr=none peer_addr="@/tmp/dbus-a4QuRctyiK" peer="unconfined"
kernel: [95716.111276] audit: type=1400 audit(1612725930.868:212): apparmor="DENIED" operation="connect" profile="snap.ultrastar-worldparty.ultrastar-worldparty-debug" pid=19348 comm="ultrastar-world" family="unix" sock_type="stream" protocol=0 requested_mask="send receive connect" denied_mask="send connect" addr=none peer_addr="@/tmp/dbus-a4QuRctyiK" peer="unconfined"
kernel: [95716.137591] audit: type=1400 audit(1612725930.896:213): apparmor="DENIED" operation="open" profile="snap.ultrastar-worldparty.ultrastar-worldparty-debug" name="/home/schnetti/.cache/mesa_shader_cache/index" pid=19348 comm="ultrastar-world" requested_mask="wrc" denied_mask="wrc" fsuid=1000 ouid=1000
kernel: [95719.777562] audit: type=1326 audit(1612725934.530:214): auid=1000 uid=1000 gid=1000 ses=1 pid=19348 comm="PulseHotplug" exe="/snap/ultrastar-worldparty/15/usr/games/ultrastar-worldparty-debug" sig=0 arch=c000003e syscall=141 compat=0 ip=0x7fe0bb7a234b code=0x50000
kernel: [95719.785598] audit: type=1326 audit(1612725934.538:215): auid=1000 uid=1000 gid=1000 ses=1 pid=19348 comm="SDLAudioP1" exe="/snap/ultrastar-worldparty/15/usr/games/ultrastar-worldparty-debug" sig=0 arch=c000003e syscall=141 compat=0 ip=0x7fe0bb7a234b code=0x50000
kernel: [95719.876512] audit: type=1400 audit(1612725934.630:216): apparmor="DENIED" operation="open" profile="snap.ultrastar-worldparty.ultrastar-worldparty-debug" name="/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0D:00/input/input2/capabilities/ev" pid=19348 comm="ultrastar-world" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
kernel: [95719.884091] audit: type=1400 audit(1612725934.638:217): apparmor="DENIED" operation="open" profile="snap.ultrastar-worldparty.ultrastar-worldparty-debug" name="/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input21/capabilities/ev" pid=19348 comm="ultrastar-world" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
kernel: [95719.885424] audit: type=1400 audit(1612725934.638:218): apparmor="DENIED" operation="open" profile="snap.ultrastar-worldparty.ultrastar-worldparty-debug" name="/sys/devices/pci0000:00/0000:00:1b.0/sound/card0/input22/capabilities/ev" pid=19348 comm="ultrastar-world" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
kernel: [95719.888007] audit: type=1400 audit(1612725934.642:219): apparmor="DENIED" operation="open" profile="snap.ultrastar-worldparty.ultrastar-worldparty-debug" name="/sys/devices/platform/80860F41:00/i2c-0/i2c-SYN1B7D:01/0018:06CB:74D9.0001/input/input11/capabilities/ev" pid=19348 comm="ultrastar-world" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
kernel: [95719.889563] audit: type=1400 audit(1612725934.642:220): apparmor="DENIED" operation="open" profile="snap.ultrastar-worldparty.ultrastar-worldparty-debug" name="/sys/devices/platform/80860F41:00/i2c-0/i2c-SYN1B7D:01/0018:06CB:74D9.0001/input/input11/capabilities/ev" pid=19348 comm="ultrastar-world" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0

Please let me know if you need more information.

TeLiXj commented 3 years ago

It's occurs in some machines, try to delete de [Record] section in config.ini and start again. If don't work try to add snap interface connection manually. You can see current connections using snap connections ultrastar-worldparty in my case (Kubuntu 20.10) all works fine with only this 5 default slots added.

Interfaz           Enchufe                                 Ranura           Notas
alsa               ultrastar-worldparty:alsa               -                -
audio-playback     ultrastar-worldparty:audio-playback     :audio-playback  -
audio-record       ultrastar-worldparty:audio-record       -                -
bluetooth-control  ultrastar-worldparty:bluetooth-control  -                -
bluez              ultrastar-worldparty:bluez              -                -
camera             ultrastar-worldparty:camera             -                -
home               ultrastar-worldparty:home               :home            -
joystick           ultrastar-worldparty:joystick           -                -
network            ultrastar-worldparty:network            :network         -
opengl             ultrastar-worldparty:opengl             :opengl          -
pulseaudio         ultrastar-worldparty:pulseaudio         -                -
raw-usb            ultrastar-worldparty:raw-usb            -                -
removable-media    ultrastar-worldparty:removable-media    -                -
x11                ultrastar-worldparty:x11                :x11             -

In your case you can try to add raw-usb or audio-record using, for example:

sudo snap connect ultrastar-worldparty:raw-usb :raw-usb
sudo snap connect ultrastar-worldparty:audio-record :audio-record

I will request to snap admins to add all connections by default, but in some cases this will be necessary.

watho commented 3 years ago

Thanks for your answer. I tried both solutions and they did not work for me. The microphone settings page remains blank. Then i uninstalled the snap and installed the deb-package. After some fiddling with the ffmpeg libraries to get actual versions it works now as expected.

TeLiXj commented 3 years ago

then I close this issue :)