UltraStar-Deluxe / USDX

The free and open source karaoke singing game UltraStar Deluxe, inspired by Sony SingStar™
https://usdx.eu
GNU General Public License v2.0
812 stars 160 forks source link

Fresh compiled USDX not starting on KDE Neon #547

Open natrius opened 3 years ago

natrius commented 3 years ago

Actual behaviour

Installed with https://github.com/UltraStar-Deluxe/USDX#compiling-on-linuxbsd-using-make and tried to start

~/USDX/game$ ultrastardx 
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.CMI8786.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.CMI8786.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.CMI8786.pcm.modem.0:CARD=0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.CMI8786.pcm.modem.0:CARD=0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline:CARD=0,DEV=0
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.CMI8786.pcm.modem.0:CARD=0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM phoneline
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.CMI8786.pcm.modem.0:CARD=0'
ALSA lib conf.c:4693:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5181:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM phoneline
Expression 'alsa_snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &alsaBufferFrames )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 923
Expression 'alsa_snd_pcm_hw_params_set_buffer_size_near( pcm, hwParams, &alsaBufferFrames )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 923
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
An unhandled exception occurred at $00007F5204B67623:
EAccessViolation: Access violation
  $00007F5204B67623

Expected behaviour

Well, program starting.

Details

Provide some additional information:

s09bQ5 commented 3 years ago

configure --without-portaudio

I really need to find a way to reproduce this to be able to properly fix it.

natrius commented 3 years ago

Its starting, thank you. If i can help you somehow, tell me, could provide additional logs if you need anything. Closing this for now.

s09bQ5 commented 3 years ago

I managed to reproduce the problem by accidentally running ultrastardx as root: alsa-project/alsa-plugins#13

Grarie commented 3 years ago

I can add: it only happens to me when I add external (Singstar) Microphones which is pretty weird.

Although it seems to be inside the external library as @s09bQ5 pointed out, it would be still nice if the USDX homepage or README.md told the users about this issue. If you follow the instructions it should work on most systems and for me it crashes on mint and ubuntu, both being pretty prevalent distributions. Further it's pretty difficult for a normal user to find the workaround for this problem online. Even worse: if you start by double clicking you can't even see why USDX doesn't start. Just nothing happens.

So maybe add

  1. If the game doesn't start, try ./configure --without-portaudio in 5. (see this issue )

to README.md

speich commented 3 years ago

also @see https://github.com/UltraStar-Deluxe/USDX/issues/537

speich commented 3 years ago

I get the following error now with ./configure --without-portaudio

checking for portaudio-2.0... no configure: error:

Alternatively, you may set --with-portaudio=nocheck and the environment variables portaudio_[...] (see configure --help) to appropriate values to avoid the need to call pkg-config.

See the pkg-config man page for more details.

Any ideas/help ?

speich commented 3 years ago

When I switch from 2020.4.0 to 2020.4.1dev, the configure option works

SeniorWizard commented 3 years ago

I had the same problem. No matter which configure options I used it crashed with EAccessViolation. Then I noticed that I could run it just fine from the build-directory, but as soon as I installed it, it crashed. Then I removed my old ~/.ultrastardx and it works perfectly fine.

Info: old installation was linux mint 19 and ultrastardx installed from ppa, have made a distupgrade to linux mint 20 and compiled 2020.4.0 according to instructions.