mmtrt / leagueoflegends

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

Riot Client black screen #187

Closed anonwins closed 2 months ago

anonwins commented 2 years ago

Hi, I have the black screen issue when running the riot client. The game download starts (I can see it in the network monitor) but the client remains black. Also my GPU doesn't support Vulkan. Is there some way to disable vulkan in the new update? Thanks

anonwins commented 2 years ago

The previous version worked perfectly. I had 70 fps constant. Then, a week ago, it stopped working. Now I see there's a new version and all. Can anyone help with this? Thanks :)

mmtrt commented 2 years ago

I have success client working without dxvk locally will update league snap and wine snap with new changes I'm working on it.

mmtrt commented 2 years ago

Pushed builds please update and test clean install would be great I don't have faster internet to test this.

snap refresh --beta wine-platform-5-staging snap refresh --edge --devmode leagueoflegends

Preferably clean install would be great if possible

snap remove --purge leagueoflegends

anonwins commented 2 years ago

You rock!!! I'll let you know of the results

mmtrt commented 2 years ago

If you still get black client then have to do following manually.

Delete this dir

~/snap/leagueoflegends/common/.wine/drive_c/Riot Games/Riot Client

Then make changes to file this file

~/snap/leagueoflegends/common/.wine/drive_c/Riot Games/League of Legends/Config/LeagueClientSettings.yaml

Change this false to true

upgrade-ready: false

Save file and then launch game it should download riot client if launcher shows up after install then close it wait for a minute then relaunch game and login your account as usual and play.

anonwins commented 2 years ago

Hi,

so, I did reinstall the snap, and this time it doesn't show anything. The riot client doesn't open window. There is only the systray icon. Pressing buttons on its menu does nothing. In the proccess monitor, I see the Rio UxRender launches but closes almost immediately, and relaunches, and again, etc.

Then I tried to edit the config file, but there's no upgrade-ready entry. Here's the file: Screenshot_20210901_140807

Thank you

mmtrt commented 2 years ago

That file entry wouldn't exist on new install as I had game install data from 2020 has it could be the reason.

Did tried this when installing game.

Fresh install snap make sure you have current version of snaps and follow these instructions after installing region of choice.

Wait for both downloads to finish. There are two downloads one after the other: the client download (~180MB) and the game download (~2.9GB).

Do NOT enter your login details and login or click play, instead just quit the launcher when the two downloads have finished. Then usually start game in login your account.

anonwins commented 2 years ago

I did all that, I left it downloading all night. Previously I didn't have wine-platform-5-staging but I installed it along with leagueoflegends.

When I start leagueoflegends from terminal, it prints this message every 1 second:

X Error:  GLXBadFBConfig
Request Major code 153 (GLX)
Request Minor code 0 ()
Error Serial #232
Current Serial #232

edit: I have a Gigabyte 6870 OC. It's an old one, like 10 years old, but it's a monster. It has 3 fans on it and stuff. Anyway, yeah, I'm not on Nvidia or newer AMD.

glx-info reports:

OpenGL core profile version string: 3.3 (Core Profile) Mesa 21.2.1 OpenGL version string: 3.1 Mesa 21.2.1 OpenGL ES profile version string: OpenGL ES 3.1 Mesa 21.2.1

mmtrt commented 2 years ago

Ah classic glx driver issue which gpu you have do you have i386 driver pkgs install for this gpu.

anonwins commented 2 years ago

I can't find how to do that..

I installed kisak-mesa packages yesterday but they broke my X & desktop and I had to remove them and re-install X and kde-desktop. It took me all day. Anyway, is there a command I could try? I'm on AMD Barts

VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Barts XT [Radeon HD 6870] Thank you very much

mmtrt commented 2 years ago

Try this before launch command leagueoflegends in terminal.

export MESA_GL_VERSION_OVERRIDE=4.5

EDIT: also post info of snap info wine-platform-runtime

anonwins commented 2 years ago

export MESA_GL_VERSION_OVERRIDE=4.5

After this, the riot client starts and has black screen. Also a message comes which says "the process unidentified crashed here is error report" backtrace.txt

also post info of snap info wine-platform-runtime

name:      wine-platform-runtime
summary:   wine platform runtime snap it provides WINE liberies for WINE
publisher: Taqi Raza (mmtrt)
store-url: https://snapcraft.io/wine-platform-runtime
license:   unset
description: |
  This snap provides a WINE runtime liberies via content sharing to be used by other snaps that are
  using WINE.
snap-id:      l4K2MbtPjiGgToWYH70ePXKaGQoF1VXF
tracking:     latest/candidate
refresh-date: today at 00:06 EEST
channels:
  latest/stable:    v1.0 2021-09-01 (240) 353MB -
  latest/candidate: v1.0 2021-08-28 (238) 476MB -
  latest/beta:      v1.0 2021-08-28 (237) 484MB -
  latest/edge:      v1.0 2021-09-01 (240) 353MB -
installed:          v1.0            (238) 476MB -
mmtrt commented 2 years ago

Try runtime from beta

anonwins commented 2 years ago

Man, you're a living god. Even if that doesn't succeed, I really appreciate your help. I'll let u know soon

anonwins commented 2 years ago

Ok I refreshed to beta. It still shows black riot client though, and the unhandled exception.

Here is the last output:

wine: Unhandled exception 0x80000003 in thread 3e4 at address 126FE566 (thread 03e4), starting debugger...
fixme:vkd3d_create_device: Unsupported feature level 0xc100.
fixme:vkd3d_create_device: Unsupported feature level 0xc000.
mmtrt commented 2 years ago

Try again with

export MESA_GL_VERSION_OVERRIDE=4.5

anonwins commented 2 years ago

Try again with

export MESA_GL_VERSION_OVERRIDE=4.5

Still same thing.

mmtrt commented 2 years ago

Ok so post info of apt list --installed | grep -e libdrm -e mesa

anonwins commented 2 years ago

Ok so post info of apt list --installed | grep -e libdrm -e mesa

libdrm-amdgpu1/hirsute,now 2.4.107-1ubuntu1~h~mesarc3 amd64 [installed]
libdrm-common/hirsute,now 2.4.107-1ubuntu1~h~mesarc3 all [installed,automatic]
libdrm-intel1/hirsute,now 2.4.107-1ubuntu1~h~mesarc3 amd64 [installed]
libdrm-nouveau2/hirsute,now 2.4.107-1ubuntu1~h~mesarc3 amd64 [installed]
libdrm-radeon1/hirsute,now 2.4.107-1ubuntu1~h~mesarc3 amd64 [installed]
libdrm2/hirsute,now 2.4.107-1ubuntu1~h~mesarc3 amd64 [installed]
libegl-mesa0/hirsute,now 21.2.1+git2108272159.a5abb4eba7f~h~mesarc5 amd64 [installed,automatic]
libgbm1/hirsute,now 21.2.1+git2108272159.a5abb4eba7f~h~mesarc5 amd64 [installed,automatic]
libgl1-mesa-dri/hirsute,now 21.2.1+git2108272159.a5abb4eba7f~h~mesarc5 amd64 [installed]
libglapi-mesa/hirsute,now 21.2.1+git2108272159.a5abb4eba7f~h~mesarc5 amd64 [installed]
libglu1-mesa/hirsute,now 9.0.1-1build1 amd64 [installed,automatic]
libglx-mesa0/hirsute,now 21.2.1+git2108272159.a5abb4eba7f~h~mesarc5 amd64 [installed,automatic]
libxatracker2/hirsute,now 21.2.1+git2108272159.a5abb4eba7f~h~mesarc5 amd64 [installed,automatic]
mesa-utils/hirsute,now 8.4.0-1build1 amd64 [installed,automatic]
mesa-vulkan-drivers/hirsute,now 21.2.1+git2108272159.a5abb4eba7f~h~mesarc5 amd64 [installed]
xserver-xorg-video-amdgpu/hirsute,now 21.0.0+git2108271336.6936552~h~mesarc0 amd64 [installed,automatic]
mmtrt commented 2 years ago

Looks like you don't have i386 of these pkgs.

anonwins commented 2 years ago

The previous snap (up until ~2 weeks ago) worked fine with my current packages.

But if it's nessecery, I guess I'll have to try installing i386. To do that I just need to type sudo dpkg --add-architecture i386 and then sudo apt-get dist-upgrade, right?

Thank you

mmtrt commented 2 years ago

Yeah but I think you have to manually install i386 pkgs.

libdrm-amdgpu1:i386
libdrm-radeon1:i386
libdrm2:i386
libegl-mesa0:i386 
libgbm1:i386 
libgl1-mesa-dri:i386 
libglapi-mesa:i386 
libglu1-mesa:i386 
libglx-mesa0:i386 
mesa-vulkan-drivers:i386
xserver-xorg-video-amdgpu:i386
libvulkan1:i386

If its still black then Install dxvk in wineprefix leagueoflegends.winetricks dxvk

anonwins commented 2 years ago

While installing dxvk in winprefix, this message was printed many times:

warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.

Although I just installed the i386 libs.

The problem still persists. Black screen + Program Error (backtrace.txt)

anonwins commented 2 years ago

Can you help me installing a 32bit WINEPREFIX? I found some guides on google but I don't know how to do it on a snap. Thanks

edit: Also when I installed the i386 packages, one wasn't available: xserver-xorg-video-amdgpu . Seems important . Indeed it doesn't exist in the repository. It only exists in the bionic channel (old version). I found it though in the hirsute's version @ debian repo. I await for your answer before trying. I think I need to resolve the Wineprefix thing.

mmtrt commented 2 years ago

From that backtrace it is failing in libcef.

You can override prefix arch though you have to use this envar everytime launching game or add to your linux environment for permanent override.

export WINEARCH=win32

You have to remove snap data before using this as 64bit prefix exist.

That pkg doesn't in hirsute could be for reason if installing from other os repo could cause issues b/c of different glibc requirements of pkg.

Also try this again with 4.6 reported work on other riot game.

export MESA_GL_VERSION_OVERRIDE=4.6

anonwins commented 2 years ago

export WINEARCH=win32

I re-installed the snap and ran this before starting leagueoflegends (32bit wineprefix) but I got the same program error and black screen eventually.

export MESA_GL_VERSION_OVERRIDE=4.6

This had no effect.

From that backtrace it is failing in libcef.

I tried copying libcef.dll from LeagueOfLegends folder to RiotClient folder but it auto-removed it on launch. :/ Same backtrace

mmtrt commented 2 years ago

Rename snap file remove .zip then install where file exists. I've added changes to snap now it launches client from riotservices lets see if this changes anything.

snap install ./leagueoflegends_1.0_amd64.snap --dangerous --devmode

leagueoflegends_1.0_amd64.snap.zip

jonashenrique90 commented 2 years ago

still not works @mmtrt

gonssal commented 2 years ago

Having the same issue. Tried everything in here and #187, always the black screen. Ubuntu 21.04 and Intel drivers.

What I get when running the game:

0254:err:module:__wine_process_init L"C:\\windows\\system32\\winemenubuilder.exe" not found
025c:err:module:__wine_process_init L"C:\\windows\\system32\\winemenubuilder.exe" not found
0380:err:rpc:I_RpcGetBuffer no binding
MESA-INTEL: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0

wine: Unhandled exception 0x80000003 in thread 6d4 at address 126FE566 (thread 06d4), starting debugger...

Then it exits and the black screen and tray icon stays until I use the Exit option in the tray icon. The other options (Settings, Sign In) do nothing.

The process is that you first run leagueoflegends.winetricks dxvk191 and then install the game normally, right?

Backrace: backtrace.txt