mmtrt / leagueoflegends

Unofficial league of legends snap repo
https://snapcraft.io/leagueoflegends
GNU Lesser General Public License v2.1
220 stars 27 forks source link

black screen after starting game #191

Closed jagiella closed 4 months ago

jagiella commented 3 years ago

The client works. I can see the menu, enter the shop, start a game, etc.

But once I start a game (tutorial or pvp) the game goes full screen but stays black. I can see and move the mouse. Randomly clicking into the black screen will provoke a gnome notification window telling me "programm not responsive. Wait or terminate?"

The commandline output is the following:

$ leagueoflegends
01e4:err:rpc:I_RpcGetBuffer no binding
LeagueClientUx pid: 43168
Waiting for port 35929
03a8:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
03b0:err:alsa:get_alsa_name_by_guid No devices found in registry?
03b0:err:alsa:get_alsa_name_by_guid No devices found in registry?
03b0:err:alsa:get_alsa_name_by_guid No devices found in registry?
03b0:err:alsa:get_alsa_name_by_guid No devices found in registry?
03b0:err:alsa:get_alsa_name_by_guid No devices found in registry?
03b0:err:alsa:get_alsa_name_by_guid No devices found in registry?
03b0:err:alsa:get_alsa_name_by_guid No devices found in registry?
03b0:err:alsa:get_alsa_name_by_guid No devices found in registry?
03b0:err:alsa:get_alsa_name_by_guid No devices found in registry?
03b0:err:alsa:get_alsa_name_by_guid No devices found in registry?
ALSA lib conf.c:3909:(snd_config_hook_load) cannot stat file/directory /usr/share/alsa/cards/aliases.conf
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
041c:err:vulkan:X11DRV_vkCreateWin32SurfaceKHR Failed to allocate client window for hwnd=0x100de

System info:

$ inxi -Gxz
Graphics:  Device-1: Intel HD Graphics 630 vendor: CLEVO/KAPOK driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: CLEVO/KAPOK driver: nvidia v: 470.57.02 bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.11 driver: modesetting FAILED: nvidia unloaded: fbdev,nouveau,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: llvmpipe (LLVM 12.0.0 256 bits) v: 4.5 Mesa 21.0.3 direct render: Yes
$ uname -a
Linux machine 5.11.0-34-generic #36~20.04.1-Ubuntu SMP Fri Aug 27 08:06:32 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
$ apt list --installed | grep -e libdrm -e mesa

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libdrm-amdgpu1/focal-updates,now 2.4.105-3~20.04.1 amd64  [installiert]
libdrm-amdgpu1/focal-updates,now 2.4.105-3~20.04.1 i386  [Installiert,automatisch]
libdrm-common/focal-updates,focal-updates,now 2.4.105-3~20.04.1 all  [Installiert,automatisch]
libdrm-intel1/focal-updates,now 2.4.105-3~20.04.1 amd64  [installiert]
libdrm-intel1/focal-updates,now 2.4.105-3~20.04.1 i386  [Installiert,automatisch]
libdrm-nouveau2/focal-updates,now 2.4.105-3~20.04.1 amd64  [installiert]
libdrm-nouveau2/focal-updates,now 2.4.105-3~20.04.1 i386  [Installiert,automatisch]
libdrm-radeon1/focal-updates,now 2.4.105-3~20.04.1 amd64  [installiert]
libdrm-radeon1/focal-updates,now 2.4.105-3~20.04.1 i386  [Installiert,automatisch]
libdrm2/focal-updates,now 2.4.105-3~20.04.1 amd64  [installiert]
libdrm2/focal-updates,now 2.4.105-3~20.04.1 i386  [Installiert,automatisch]
libegl-mesa0/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [Installiert,automatisch]
libegl1-mesa-dev/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [Installiert,automatisch]
libegl1-mesa/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [installiert]
libgl1-mesa-dev/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [Installiert,automatisch]
libgl1-mesa-dri/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [installiert]
libgl1-mesa-dri/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 i386  [installiert]
libgl1-mesa-glx/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [installiert]
libglapi-mesa/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [installiert]
libglapi-mesa/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 i386  [Installiert,automatisch]
libgles2-mesa-dev/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [Installiert,automatisch]
libglu1-mesa/focal,now 9.0.1-1build1 amd64  [installiert]
libglx-mesa0/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [Installiert,automatisch]
libglx-mesa0/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 i386 [installiert,automatisch-entfernbar]
libosmesa6/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [Installiert,automatisch]
libosmesa6/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 i386  [Installiert,automatisch]
libwayland-egl1-mesa/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [installiert]
mesa-utils/focal,now 8.4.0-1build1 amd64  [installiert]
mesa-va-drivers/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [Installiert,automatisch]
mesa-va-drivers/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 i386  [Installiert,automatisch]
mesa-vdpau-drivers/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [Installiert,automatisch]
mesa-vdpau-drivers/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 i386  [Installiert,automatisch]
mesa-vulkan-drivers/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 amd64  [Installiert,automatisch]
mesa-vulkan-drivers/focal-updates,now 21.0.3-0ubuntu0.3~20.04.1 i386  [installiert]
jagiella commented 3 years ago

I also updated the wine runtime as suggested in related issues, but did not change the outcome. Still black screen.

$ snap refresh wine-platform-runtime --beta
wine-platform-runtime (beta) v1.0 von Taqi Raza (mmtrt) refreshed
mmtrt commented 3 years ago

Did you tried NVIDIA optimus launching? leagueoflegendsnv

From looks of system info Modesetting NVIDIA unloaded.

There is issue with nvidia drivers I think doesn't load nvidia.

jagiella commented 3 years ago

Did you tried NVIDIA optimus launching? leagueoflegendsnv

That command does not work: command not found. By the way I installed the leagueoflegends_1.0_amd64.snap.zip provided by you in issue #187.

From looks of system info Modesetting NVIDIA unloaded.

There is issue with nvidia drivers I think doesn't load nvidia.

I installed the most current NVidia drivers from the official NVidia repository. I am using them in combination with CUDA for machine learning stuff. So they definitely work. Do I need to install the open source nouveau drivers for wine / Windows applications to work?