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

League won't launch #148

Closed OffensiveIdiom closed 3 years ago

OffensiveIdiom commented 3 years ago

after the update a couple days ago League won't launch. I installed the snap pack and updated the wine staging and runtime. the installer runs, but after it patches it crashes and won't run anymore

Meliot-cpu commented 3 years ago

Same here

SesisnandoLRNeto commented 3 years ago

Same situation here

smooth-jgb commented 3 years ago

Same here

glevv commented 3 years ago

Same after nvidia drivers update with old snap. New snap isn't working either. Tried both standard and Nvidia Optimus version

mmtrt commented 3 years ago

Pushed changes so please update all three snaps leagueoflegends - wine-platform-5-staging - wine-platform-runtime and make sure use fresh wineprefix (see #7 for how to create it) as wine version is bump to staging 5.6 could cause issues if not following it.

ParkerdeWaal commented 3 years ago

Just performed a fresh install with the following steps:

snap remove leagueoflegends --purge
snap remove wine-platform-runtime --purge
snap remove wine-platform-5-staging --purge

snap install --edge leagueoflegends --devmode
snap refresh --candidate wine-platform-runtime
snap refresh --candidate wine-platform-5-staging

The game installs, opens, downloads all updates and is playable. However, upon restarting the client, the game no longer starts. Here is the relevent output:

$ leagueoflegends
000b:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -r" (2).
000000.001|   OKAY| Running from cwd 'C:\Riot Games\League of Legends'.
000000.001| ALWAYS| Application Version:10.19.336.497 - CL:3360497 - Build Date:Sep 15 2020 - Build Time:20:14:07
000000.001|   OKAY| Initial working directory: "C:\Riot Games\League of Legends"
000000.001|   OKAY| Current process: "C:\Riot Games\League of Legends\LeagueClient.exe"
000000.001|   OKAY| Command line arguments:
000000.003|   OKAY| Enabling Data API Dradis collection with endpoint: https://ekg.riotgames.com/messages
000000.006| ALWAYS| The following message is prepared to be sent to dradis:
Event Name: riot__rclient__event
common.os_platform: Windows
common.application_name: LeagueClient
common.application_version: 10.19.336.497
common.cef_version: 74.1.19+gb62bacf+chromium-74.0.3729.157
common.installation_id: 6hXqBw==
common.locale: en_US
common.os_version_major: 10
common.machine_id: P1tVi1Aaq0O+iRqQ9yOuhw==
common.os_edition: Ultimate N, x64
common.os_version_minor: 
common.region: NA
common.session_id: 59a1f88c-8e5a-cf48-a32e-74322a3a319e
event_name: startup
crash_reporter: crashpad
000000.006| ALWAYS| Queued Dradis event to be sent.
000000.006| ALWAYS| Direct Launch enabled for league_of_legends.live in environment 'live' for app path 'C:\Riot Games\League of Legends\LeagueClient.exe' and install dir 'C:\Riot Games\League of Legends'
000000.007| ALWAYS| Found associated Riot Client install (c:/Riot Games/Riot Client/RiotClientServices.exe)
000000.019|   OKAY| Launched Riot Client with process 56
000000.020| ALWAYS| Riot Client started. Exiting with the expectation of being restarted (ExitForDirectLaunch).
0064:err:rpc:I_RpcGetBuffer no binding
000005.437|   OKAY| EventCollector: 0 events remaining after thread join
000005.437|   OKAY| Shut down EventCollector in 431 milliseconds
0126:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
0068:err:ole:CoUninitialize Mismatched CoUninitialize
glevv commented 3 years ago

Yep. Tried just updating leagueoflegends wine and wine-runtime with prefix refresh - got the same result as described above: client starts, starts to download big patch, demanding restart to be able to play and after restart won't launch. Complete reinstall yield the same results.

mmtrt commented 3 years ago

Try deleting dirs /home/$USER/snap/leagueoflegends/common/.wine/drive_c/users/$USER/Local Settings/Application Data/Riot Games && /home/$USER/snap/leagueoflegends/common/.wine/drive_c/Riot Games/Riot Client then do initiate full repair from launcher to update.

ParkerdeWaal commented 3 years ago

Following these instructions https://github.com/mmtrt/leagueoflegends/issues/148#issuecomment-698548699 the game successfully repaired and launched. However upon exiting the client is still unable to restart and I am prompted with the following image which always fails with the following image

ParkerdeWaal commented 3 years ago

The following may be important:

$ snap run leagueoflegends.winecfg
Gtk-Message: 16:18:55.865: Failed to load module "canberra-gtk-module"
Gtk-Message: 16:18:55.878: Failed to load module "canberra-gtk-module"
000b:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -r" (2).
000b:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -r" (2).

I am unfamiliar with wine, but this error is new with the most recent updates.

Also additional errors that are seen

00ac:err:rpc:I_RpcGetBuffer no binding
0138:err:module:load_so_dll failed to load .so lib "/snap/leagueoflegends/79/wine-platform/wine-staging/bin/../lib/wine/xaudio2_2.dll.so": libFAudio.so.0: cannot open shared object file: No such file or directory
Kruxk commented 3 years ago

Well same issues over here, update doesn't fix it. But when i delete the client folder in /home/$USER/snap/leagueoflegends/common/.wine/drive_c/Riot Games/Riot Client, it does start up the old client directly and the game is playable. But sadly enough there is no chat or anything in the old client.

So there seems to be a disconnect between the new login client and the old league client.

bogdanalov commented 3 years ago

I guess we will have to go back to Windows again. :/

eughcus commented 3 years ago

not working for me either.

$ leagueoflegends
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
000d:err:module:__wine_process_init L"C:\\windows\\system32\\winemenubuilder.exe" not found
000b:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -r" (126).
0009:err:module:LdrInitializeThunk "kernelbase.dll" failed to initialize, aborting
0009:err:module:LdrInitializeThunk Initializing dlls for L"C:\\Riot Games\\League of Legends\\LeagueClient.exe" failed, status c0000005

UPD: Sorry I missed the part where you've explicitly said that WINEPREFIX needs a refresh after the installation. I've reinstalled the game but realized I needed to refresh the prefix just now. Which I did and I think it did the trick, I got the launcher working.

Let's see if it works, I'll keep you guys updated.

UPD2: Well it all got me to the same outcome ParkerdeWaal and Kruxk have. The game works if I remove this directory:

/home/$USER/snap/leagueoflegends/common/.wine/drive_c/Riot Games/Riot Client

This gets it working, but with certain limitation.

dechunwang commented 3 years ago

Try deleting dirs /home/$USER/snap/leagueoflegends/common/.wine/drive_c/users/$USER/Local Settings/Application Data/Riot Games && /home/$USER/snap/leagueoflegends/common/.wine/drive_c/Riot Games/Riot Client then do initiate full repair from launcher to update.

After deleting the file, I can launch the old client. However, after i close and restart the game, the game did an update and won't open at all. `000000.182| ALWAYS| Queued Dradis event to be sent. 000000.182| ALWAYS| Riot Client started. Exiting with the expectation of being restarted (ExitForInstallation). Fontconfig warning: "/etc/fonts/conf.avail/53-monospace-lcd-filter.conf", line 10: Having multiple values in isn't supported and may not work as expected 000005.658| OKAY| EventCollector: 0 events remaining after thread join 000005.660| OKAY| Shut down EventCollector in 653 milliseconds Fontconfig warning: "/etc/fonts/conf.avail/53-monospace-lcd-filter.conf", line 10: Having multiple values in isn't supported and may not work as expected 00e9:err:rpc:I_RpcGetBuffer no binding Fontconfig warning: "/etc/fonts/conf.avail/53-monospace-lcd-filter.conf", line 10: Having multiple values in isn't supported and may not work as expected 0055:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work. 00f4:err:ole:CoUninitialize Mismatched CoUninitialize

`

glevv commented 3 years ago

Almost the same crash report. I think client is trying to restart to install the patch, but can't do it

000000.063| ALWAYS| Riot Client started. Exiting with the expectation of being restarted (ExitForDirectLaunch). 0067:err:rpc:I_RpcGetBuffer no binding

After that LeagueClient is trying to start but exits with

006a:err:ole:CoUninitialize Mismatched CoUninitialize

SeanSanker commented 3 years ago

I'm also experiencing the same issue as @GLevV.

jdiegosierra commented 3 years ago

At least we have the the Worlds 2020

ParkerdeWaal commented 3 years ago

Reading through the latest wine release notes (released today!) it appears that there are two fixes related to LOL https://www.winehq.org/announce/5.18

lucaslez commented 3 years ago

Hello, someone would be so kind to help me, I need someone who can explain how to install the new version of wine 5.18 I would appreciate it very much, or is it not available yet I do not know where to install it or how, any help will help me

SeanSanker commented 3 years ago

@lucaslez, it seems that winehq-devel installs 5.18 currently.

I've tried running 5.18, but this is what I get out lol

0294:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
029c:fixme:file:NtLockFile I/O completion on lock not implemented yet
029c:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
02a4:fixme:file:NtLockFile I/O completion on lock not implemented yet
02a4:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
02ac:fixme:file:NtLockFile I/O completion on lock not implemented yet
02ac:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
majooneez commented 3 years ago

Did someone get this working? I installed wine 5.18 (dev version) but nothing changed.

glevv commented 3 years ago

If I'm not mistaking, only installing wine is not enough. You should also make LoL snap use it, so we need to wait for new version of snap. Moreover it could not fix the problem at all.

mmtrt commented 3 years ago

Use script from here to get it working for now,

https://www.reddit.com/r/leagueoflinux/comments/j07yrg/starting_the_client_script/

Screenshot_20200927_180603

ParkerdeWaal commented 3 years ago

Hi @mmtrt,

Thank you for your hard work on this snap!

From the reddit post how were you able to add the following arguments to the .exe call:

EDIT: To clarify, this script is for the new client, which you start through Riot Games/Riot Client/RiotClientServices.exe --launch-product=league_of_legends --launch-patchline=live

Also does anyone know if this will work for Ubuntu?

mmtrt commented 3 years ago

No need for that just use this modified version of script before login then wait for launcher to bootup.

``` #!/bin/bash process=LeagueClientUx.exe uxpid=$(timeout 2m /bin/bash -c "until pidof ${process}; do sleep 1; done") if [[ ! -n $uxpid ]]; then echo "Could not find process ${process}" exit 1 fi echo "LeagueClientUx pid: ${uxpid}" port=$(xargs -0 < /proc/${uxpid}/cmdline \ | sed -n 's/.*--app-port=\([[:digit:]]*\).*/\1/p') if [[ ! -n $port ]]; then echo "Could not find port" exit 1 fi echo "Waiting for port ${port}" kill -STOP ${uxpid} timeout 5m /bin/bash -c " until openssl s_client -connect :${port} <<< Q > /dev/null 2>&1; do sleep 1 done" kill -CONT ${uxpid} ```
ParkerdeWaal commented 3 years ago

Unsure if related, but the game now launches and play but I am unable to use in game voice.

slrv commented 3 years ago

@mmtrt Hi, would you add this script to your snap?

ERossatto commented 3 years ago

Hi @mmtrt i run the script and at firts time client open but dont enter in queue to game. After that client dont run anymore.

mmtrt commented 3 years ago

You need to use script every time before client login.

averta-omid commented 3 years ago

Hi @mmtrt , Script is warn me "Could not find process LeagueClientUx.exe" with launcher after sign in window getting closed please advice.

mmtrt commented 3 years ago

@averta-omid try login account wait for few secs then start script see if it finds exe.

averta-omid commented 3 years ago

Works! but it's on 1366 Reslution, I can not change it via lol video settings only I can choose 1366

mmtrt commented 3 years ago

Try windowed mode instead of full screen in game

averta-omid commented 3 years ago

No luck :( Can I change it via wincnf ?

mmtrt commented 3 years ago

Yes, leagueoflegends.winecfg

Meliot-cpu commented 3 years ago

I have this error :( I am really sorry is like one week that i try to play and i have always new troubles..

000b:err:wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -r" (2). 0009:err:module:__wine_process_init failed to load L"C:\Riot Games\Riot Client\RiotClientServices.exe", error c0000022

huskyhoochu commented 3 years ago

I have this error :( I am really sorry is like one week that i try to play and i have always new troubles..

000b:err:wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -r" (2). 0009:err:module:__wine_process_init failed to load L"C:\Riot Games\Riot Client\RiotClientServices.exe", error c0000022

Me too.

ParkerdeWaal commented 3 years ago

@huskyhoochu @Meliot-cpu,

I believe that the wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -r" (2). error is expected as it is disabled in the wine-platform-5-staging snap here: https://github.com/mmtrt/wine-platform-5-staging/blob/b66ac0ab189bbfb71677f752373476e326671cd4/snap/snapcraft.yaml#L62

Are you running the following script before running leagueoflegends?

#!/bin/bash
process=LeagueClientUx.exe
uxpid=$(timeout 2m /bin/bash -c "until pidof ${process}; do sleep 1; done")
if [[ ! -n $uxpid ]]; then
  echo "Could not find process ${process}"
  exit 1
fi
echo "LeagueClientUx pid: ${uxpid}"
port=$(xargs -0 < /proc/${uxpid}/cmdline \
  | sed -n 's/.*--app-port=\([[:digit:]]*\).*/\1/p')
if [[ ! -n $port ]]; then
  echo "Could not find port"
  exit 1
fi
echo "Waiting for port ${port}"

kill -STOP ${uxpid}
timeout 5m /bin/bash -c "
until openssl s_client -connect :${port} <<< Q > /dev/null 2>&1; do
  sleep 1
done"
kill -CONT ${uxpid}

Also if you haven't already, do a fresh install. this may help.

@averta-omid

I had the same problem, you can manually set a screen size here: ~/snap/leagueoflegends/common/.wine/drive_c/'Riot Games'/'League of Legends'/Config/game.cfg specifically, edit the lines

[General]
...
Height=1200
Width=1920
...
huskyhoochu commented 3 years ago

I ran that script another shell, and execute 'leagueoflegends' the other shell, but nothing change. Same error happened again and closed immediately.

000b:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -r" (2).
0009:err:module:__wine_process_init failed to load L"C:\\Riot Games\\Riot Client\\RiotClientServices.exe", error c0000022

Finally The Script prints error Could not find process LeagueClientUx.exe after LOL execution failed.

artyfowl commented 3 years ago

New to linux, probably ignorant and missing something. Ive tried googling the error but found nothing to repair. this is what my log looks like when i try launching league.

$ leagueoflegends
000b:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -r" (2).
0053:err:rpc:I_RpcGetBuffer no binding
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
mmtrt commented 3 years ago

@artyfowl which gpu you have, you need to install drivers of i386 amd64,

See this doc

https://github.com/lutris/docs/blob/master/InstallingDrivers.md

johnnyy commented 3 years ago

@ParkerdeWaal I set the screen resolution manually, however, when I put it in fullscreen the screen is 1024x726. My monitor is 1920x1080. I do not know what to do.

lisboaa commented 3 years ago

@huskyhoochu @Meliot-cpu,

I believe that the wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -r" (2). error is expected as it is disabled in the wine-platform-5-staging snap here: https://github.com/mmtrt/wine-platform-5-staging/blob/b66ac0ab189bbfb71677f752373476e326671cd4/snap/snapcraft.yaml#L62

Are you running the following script before running leagueoflegends?

#!/bin/bash
process=LeagueClientUx.exe
uxpid=$(timeout 2m /bin/bash -c "until pidof ${process}; do sleep 1; done")
if [[ ! -n $uxpid ]]; then
  echo "Could not find process ${process}"
  exit 1
fi
echo "LeagueClientUx pid: ${uxpid}"
port=$(xargs -0 < /proc/${uxpid}/cmdline \
  | sed -n 's/.*--app-port=\([[:digit:]]*\).*/\1/p')
if [[ ! -n $port ]]; then
  echo "Could not find port"
  exit 1
fi
echo "Waiting for port ${port}"

kill -STOP ${uxpid}
timeout 5m /bin/bash -c "
until openssl s_client -connect :${port} <<< Q > /dev/null 2>&1; do
  sleep 1
done"
kill -CONT ${uxpid}

Also if you haven't already, do a fresh install. this may help.

@averta-omid

I had the same problem, you can manually set a screen size here: ~/snap/leagueoflegends/common/.wine/drive_c/'Riot Games'/'League of Legends'/Config/game.cfg specifically, edit the lines

[General]
...
Height=1200
Width=1920
...

Using this script it worked, I opened the game and ran normal

nakedonstreet commented 3 years ago

how do you guys use script or how to create it...

ardarandir commented 3 years ago

@sthenofors: in console, I do nano script, then paste the code in there with middle click, save the file with ctrl+o, then close nano with ctrl+x, then make the script file executable with chmod +x script, then execute it with ./script

@mmtrt: thanks for your great work! it would be really great to have League reliably run on linux.

unfortuneately, after setting up snap install --edge --devmode leagueoflegends on my machine, running leagueoflegends only gets me until this point:

live.euw.exe(00000009): ALWAYS| Successfully transitioned to new screen (draggable). live.euw.exe(00000009): ALWAYS| Setting focus to window. live.euw.exe(00000009): ALWAYS| Received NativeScreenManager::Quit. Reason: NativeAppControls.CloseButton live.euw.exe(00000009): ALWAYS| Install intro screen quit. live.euw.exe(00000009): ALWAYS| Finished waiting for launcher threads. live.euw.exe(00000009): ALWAYS| UxLoop complete. live.euw.exe(00000009): ALWAYS| InstallRemotingServer: stopping remoting server live.euw.exe(00000009): ALWAYS| Stopping agent live.euw.exe(00000009): ALWAYS| Success! Exiting /snap/leagueoflegends/82/bin/sommelier: line 431: [: =: unary operator expected 000b:err:wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -r" (2). 0009:err:module:__wine_process_init L"C:\windows\system32\.exe" not found

nothing popping up anymore and i cant seem to find a way to successfully run the riot client again to resume the install/update and start the game client. the process seems stuck at:

jomi@homebase:~$ leagueoflegends 000b:err:wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -r" (2). [8:9:20201016,221648.669:ERROR registration_protocol_win.cc:103] CreateFile: File not found. (2) [65:66:20201016,221648.781:FATAL exception_handler_server.cc:277] GetFileInformationByHandleEx: Invalid handle. (6) wine: Unhandled exception 0x80000003 in thread 42 at address 004955AE (thread 0042), starting debugger... 0050:err:rpc:I_RpcGetBuffer no binding

after waiting for up to 30 minutes, i got impatient. killing the processes in htop returns:

jomi@homebase:~$ 0060:err:module:DelayLoadFailureHook failed to delay load uxtheme.dll.IsThemeActive wine: Call from 0x7b031d25 to unimplemented function uxtheme.dll.IsThemeActive, aborting 0060:err:module:DelayLoadFailureHook failed to delay load comctl32.dll.InitCommonControlsEx wine: Call from 0x7b031d25 to unimplemented function comctl32.dll.InitCommonControlsEx, aborting winedbg: Internal crash at 0x7b031d25

using snap install leagueoflegends --edge --jailmode interestingly got me further - i could actually log into the league client and update the game. but league client as well as bugreport app did not run well at all, lots of error messages. what about that?

any suggestions from anyone? so far tried everything i could find here on this github and some more. thanks in advance!

dhkim0225 commented 3 years ago

New to linux, probably ignorant and missing something. Ive tried googling the error but found nothing to repair. this is what my log looks like when i try launching league.

$ leagueoflegends
000b:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -r" (2).
0053:err:rpc:I_RpcGetBuffer no binding
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192

I have exactly same issue. My environment is following.

OS: Ubuntu 20.04
CPU: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
GPU: 1080 TI
Driver: 455.32.00
CUDA: 11.1

dh@dh-desktop:~ $ snap --version
snap    2.47.1+git924.g2390b5c
snapd   2.47.1+git924.g2390b5c
series  16
ubuntu  20.04
kernel  5.4.0-52-generic

dh@dh-desktop:~ $ gcc --version
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Maybe this issue is related to this issue

Alekc89 commented 3 years ago

No need for that just use this modified version of script before login then wait for launcher to bootup.

#!/bin/bash
process=LeagueClientUx.exe
uxpid=$(timeout 2m /bin/bash -c "until pidof ${process}; do sleep 1; done")
if [[ ! -n $uxpid ]]; then
  echo "Could not find process ${process}"
  exit 1
fi
echo "LeagueClientUx pid: ${uxpid}"
port=$(xargs -0 < /proc/${uxpid}/cmdline \
  | sed -n 's/.*--app-port=\([[:digit:]]*\).*/\1/p')
if [[ ! -n $port ]]; then
  echo "Could not find port"
  exit 1
fi
echo "Waiting for port ${port}"

kill -STOP ${uxpid}
timeout 5m /bin/bash -c "
until openssl s_client -connect :${port} <<< Q > /dev/null 2>&1; do
  sleep 1
done"
kill -CONT ${uxpid}

Could you maybe include the script as an executable in the snap?

p1x1 commented 3 years ago

New to linux, probably ignorant and missing something. Ive tried googling the error but found nothing to repair. this is what my log looks like when i try launching league.

$ leagueoflegends
000b:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -r" (2).
0053:err:rpc:I_RpcGetBuffer no binding
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error:  GLXBadContext
  Request Major code 151 (GLX)
  Request Minor code 6 ()
  Error Serial #193
  Current Serial #192

I have exactly same issue. My environment is following.

OS: Ubuntu 20.04
CPU: Intel(R) Core(TM) i5-7500 CPU @ 3.40GHz
GPU: 1080 TI
Driver: 455.32.00
CUDA: 11.1

dh@dh-desktop:~ $ snap --version
snap    2.47.1+git924.g2390b5c
snapd   2.47.1+git924.g2390b5c
series  16
ubuntu  20.04
kernel  5.4.0-52-generic

dh@dh-desktop:~ $ gcc --version
gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Maybe this issue is related to this issue

same

youssefe1 commented 3 years ago

HI any help ??

000b:err:wineboot:process_run_key Error running cmd L"C:\windows\system32\winemenubuilder.exe -r" (2). 0009:err:module:import_dll Library MSVCP140.dll (which is needed by L"C:\Riot Games\League of Legends\LeagueClient.exe") not found 0009:err:module:import_dll Library vivoxsdk.dll (which is needed by L"C:\Riot Games\League of Legends\LeagueClient.exe") not found 0009:err:module:LdrInitializeThunk Importing dlls for L"C:\Riot Games\League of Legends\LeagueClient.exe" failed, status c0000135

tomazcunha commented 2 years ago

I solved the problem by updating wine and some packages.

Debian - WineHQ Wiki

https://wiki.winehq.org/Debian

sudo dpkg --add-architecture i386

wget -nc https://dl.winehq.org/wine-builds/winehq.key

sudo mv winehq.key /usr/share/keyrings/winehq-archive.key

wget -nc https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources

sudo mv winehq-bookworm.sources /etc/apt/sources.list.d/

sudo apt update

sudo apt install --install-recommends winehq-stable

libcurl3-gnutls:i386 libgdbm-compat4:i386 libgdbm6:i386 libglu1-mesa:i386 libieee1284-3:i386 liblcms2-2:i386 libldap-2.4-2:i386 libnspr4:i386 libnss3:i386 libodbc1 libodbc1:i386 libodbccr2 libodbccr2:i386 libopengl0:i386 libpci3:i386 libperl5.34:i386 libpoppler-glib8:i386 libpoppler118:i386 libsane1:i386 libsnmp40:i386 sane-airscan:i386 wine-stable wine-stable-amd64 wine-stable-i386:i386 winehq-stable