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

Snap crashes directly to riot bug report tool on startup #3

Closed Just1Number closed 5 years ago

Just1Number commented 6 years ago

Every time I run the snap, it crashes with the error:

...
LeagueClient.exe(00000009): ALWAYS| Queued Dradis event to be sent.
LeagueClient.exe(00000033):  ERROR|                    patcher| Assertion failed!

Expression: ALE-E9CBC7CB

Description: Failed to get the deploy path: Cannot get executable directory of a partial installation..

Full output of first start: https://pastebin.com/vqwEqcYF Full output of every start since: https://pastebin.com/T3StcQ2J On the first start I also got some GTK errors, but I'm pretty sure they're irrelevant: https://pastebin.com/4mKBvjrp

$ snap version
snap    2.35.2
snapd   2.35.2
series  16
ubuntu  18.04
kernel  4.15.0-36-generic
$ snap info core
name:      core
summary:   snapd runtime environment
publisher: Canonical✓
contact:   snaps@canonical.com
license:   unset
description: |
  The core runtime environment for snapd
type:         core
snap-id:      99T7MUlRhtI3U0QFgl5mXXESAiSwt776
tracking:     stable
refresh-date: 3 days ago, at 21:09 CEST
channels:                                            
  stable:    16-2.35.2                   (5548) 92MB -
  candidate: 16-2.35.2                   (5548) 92MB -
  beta:      16-2.35.4                   (5662) 92MB -
  edge:      16-2.36~pre1+git955.2443152 (5645) 92MB -
installed:   16-2.35.2                   (5548) 92MB core
# snap refresh
All snaps up to date.

I'm on NVIDIA Driver 396.54 with a GTX 660.

That error sounds like a simple permission problem, but I don't know a lot about snaps, especially when it comes to permissions.

mmtrt commented 6 years ago

This issue is known and I could not fix it maybe game does not like snaps at all or could be snapped wine issue IDK how to fix this though this is only proof of concept that game does run via snap so my intentions were when league had performance issue in lutris I had to do something about it so created this snap for workaround those issues so game was working great anyway I did copied over lutris game installed to snap so at time I did not test this snap thoroughly to encounter this issue.

Temporary workaround maybe fix this issue for you.

freefri commented 6 years ago

I was playing the weekend normally. Today I've tried to play again and the game crashes directly to riot bug report tool on startup of the client. I guess this is again coming from some change made by Riot.

I tried to run league from the command line and no error is displayed this time, but before Bugsplat appears I get a new line in the terminal to write (so the whole process is not being output anymore):

$ leagueoflegends LeagueClient.exe(00000009): ALWAYS| Application Version:8.20.248.1315 - CL:2481315 - Build Date:Oct 03 2018 - Build Time:16:54:54

I've tried to delete the language folder from LeagueofLegends/RADS/projects and the game started the repair tool automatically restoring that folder.

JuniorMamari commented 6 years ago

I'm having a problem in league of legends, every time the match starts, it gives an error message and returns to the reconnect screen and never reconnects.

mmtrt commented 6 years ago

it seems like game corrupts the files still it could not fix even with full repair from the launcher I don't know why this happens but I had similar issue so fixing it was coping game folder Riot Games from windows partition to /home/$USER/snap/leagueoflegends/common/.wine/drive_c/ then tried game worked fine with no issues.

Also check game logs for identifying any other issue logged there.

freefri commented 6 years ago

For some reason, now the snap ask me to connect this snap to the wine-platform-i386 snap. But running the command does not fix this problem.

snap connect leagueoflegends:wine-platform-plug wine-platform-i386:wine-base-staging

mmtrt commented 6 years ago

@freefri try disconnecting then connecting it.

snap disconnect leagueoflegends:wine-platform-plug snap connect leagueoflegends:wine-platform-plug wine-platform-i386:wine-base-staging

freefri commented 6 years ago

Ok, disconnecting and connecting did the job. For any reason LOL client is now working again. But when I'm trying to go into the game a system error appears.

I still cannot get any log in the console. Any idea how to debug this? I belive this week, nvidia drivers got updated in Ubuntu 18.04. I'm using driver v390.77 now.

image

mmtrt commented 6 years ago

@freefri try this,

https://github.com/mmtrt/leagueoflegends/issues/5#issuecomment-430102738

freefri commented 6 years ago

This was working for me https://github.com/mmtrt/leagueoflegends/issues/5#issuecomment-430102738 :

ranfdev commented 5 years ago

i tried copying the folder from the windows partition and it didn't work. Then i followed the above procedure (#5 ) and it worked fine