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

segmentation fault (core dumped) #150

Closed aleksandar-babic closed 3 years ago

aleksandar-babic commented 3 years ago

Hi,

I've just did fresh re-install of the game with following command:

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

After trying to start the snap, I get a lot of seg fault (core dumped) errors:

 aleksandar@arch  ~  leagueoflegends                                                                                                                                                                                      130   08:26:00 
*** stack smashing detected ***: terminated
/snap/leagueoflegends/80/bin/sommelier: line 512:  4904 Aborted                 (core dumped) mkdir -p "$@"
*** stack smashing detected ***: terminated
/snap/leagueoflegends/80/bin/sommelier: line 512:  4909 Aborted                 (core dumped) mkdir -p "$@"
*** stack smashing detected ***: terminated
/snap/leagueoflegends/80/bin/sommelier: line 512:  4918 Aborted                 (core dumped) mkdir -p "$@"
*** stack smashing detected ***: terminated
/snap/leagueoflegends/80/bin/sommelier: line 512:  4926 Aborted                 (core dumped) mkdir -p "$@"
/snap/leagueoflegends/80/bin/sommelier: line 698:  4934 Segmentation fault      (core dumped) rm -rf $XDG_DATA_HOME/{fontconfig,fonts,fonts-*,themes,.themes}
*** stack smashing detected ***: terminated
/snap/leagueoflegends/80/bin/sommelier: line 512:  4942 Aborted                 (core dumped) mkdir -p "$@"
/snap/leagueoflegends/80/bin/sommelier: line 687: /home/aleksandar/snap/leagueoflegends/common/.config/fontconfig/fonts.conf: No such file or directory
/snap/leagueoflegends/80/bin/sommelier: line 698:  4952 Segmentation fault      (core dumped) ln -sf $SNAP/data-dir/themes $XDG_DATA_HOME
/snap/leagueoflegends/80/bin/sommelier: line 698:  4960 Segmentation fault      (core dumped) ln -sfn $SNAP/data-dir/themes $SNAP_USER_DATA/.themes
/snap/leagueoflegends/80/bin/sommelier: line 710:  4968 Segmentation fault      (core dumped) rm -rf $XDG_DATA_HOME/mime
/snap/leagueoflegends/80/bin/sommelier: line 720:  4976 Segmentation fault      (core dumped) rm -f $GDK_PIXBUF_MODULE_FILE
/snap/leagueoflegends/80/bin/sommelier: line 718: /home/aleksandar/snap/leagueoflegends/common/.cache/gdk-pixbuf-loaders.cache: No such file or directory
*** stack smashing detected ***: terminated
/snap/leagueoflegends/80/bin/sommelier: line 512:  4994 Aborted                 (core dumped) mkdir -p "$@"
/snap/leagueoflegends/80/bin/sommelier: line 725:  5002 Segmentation fault      (core dumped) ln -s $REALHOME/.config/$f $dest
*** stack smashing detected ***: terminated
/snap/leagueoflegends/80/bin/sommelier: line 512:  5018 Aborted                 (core dumped) mkdir -p "$@"
/snap/leagueoflegends/80/bin/sommelier: line 725:  5028 Segmentation fault      (core dumped) ln -s $REALHOME/.config/$f $dest
*** stack smashing detected ***: terminated
/snap/leagueoflegends/80/bin/sommelier: line 512:  5044 Aborted                 (core dumped) mkdir -p "$@"
/snap/leagueoflegends/80/bin/sommelier: line 725:  5052 Segmentation fault      (core dumped) ln -s $REALHOME/.config/$f $dest
*** stack smashing detected ***: terminated
/snap/leagueoflegends/80/bin/sommelier: line 512:  5060 Aborted                 (core dumped) mkdir -p "$@"
/snap/leagueoflegends/80/bin/sommelier: line 737:  5070 Segmentation fault      (core dumped) find /usr/share/fonts/ -type f \( -name "*.ttf" -o -name "*.ttc" \) -exec ln -vs "{}" $WINEPREFIX/drive_c/windows/Fonts/ \; &> /dev/null
/snap/leagueoflegends/80/bin/sommelier: line 771:  5078 Segmentation fault      (core dumped) cat > $progReg  <<'EOF'
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Wine\DllOverrides]
"msvcp140"="native"
EOF

/snap/leagueoflegends/80/bin/sommelier: line 771:  5086 Segmentation fault      (core dumped) env WINEARCH="${WINEARCH}" WINEPREFIX="${WINEPREFIX}" "${WINELOADER}" wineboot --init 2>&1
      5087                       (core dumped) | yad --progress --title="Preparing Windows environment" --width=400 --center --no-buttons --auto-close --auto-kill --on-top --pulsate
/snap/leagueoflegends/80/bin/sommelier: line 771:  5102 Segmentation fault      (core dumped) env WINEARCH="${WINEARCH}" WINEPREFIX="${WINEPREFIX}" "${WINELOADER}" start regedit ${progReg}
/snap/leagueoflegends/80/bin/sommelier: line 771:  5112 Segmentation fault      (core dumped) sleep 1
*** stack smashing detected ***: terminated
/snap/leagueoflegends/80/bin/sommelier: line 512:  5120 Aborted                 (core dumped) mkdir -p "$@"
/snap/leagueoflegends/80/bin/sommelier: line 766: /home/aleksandar/snap/leagueoflegends/common/.cache/winetricks/track_usage: No such file or directory
/snap/leagueoflegends/80/bin/sommelier: line 108:  5129 Segmentation fault      (core dumped) env WINEARCH="${WINEARCH}" WINEPREFIX="${WINEPREFIX}" "${WINETRICKS}" --unattended ${TRICK}

OS Info: Arch Linux x86_64

Kernel Info: 5.8.12-arch1-1

Any ideas?

thanks

slrv commented 3 years ago

Same problem Ubuntu 20.04.1 LTS 5.4.0-48-generic

Meliot-cpu commented 3 years ago

Same

mmtrt commented 3 years ago

Reverted league snap revision update snap should be fixed.

Meliot-cpu commented 3 years ago

can u put the command line code i am really noob with that @mmtrt

slrv commented 3 years ago

@Meliot-cpu 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

mmtrt commented 3 years ago

@Meliot-cpu snap refresh leagueoflegends --devmode --edge

Meliot-cpu commented 3 years ago

After this fix I have this error in the client "Unable to connect to the authentication server" but the server doesn't seems to have any issue.

mmtrt commented 3 years ago

@Meliot-cpu change upgrade-ready: false to true in file /home/$USER/snap/leagueoflegends/common/.wine/drive_c/Riot Games/League of Legends/Config/LeagueClientSettings.yaml then the launch game to update launcher to new, though I'm still fighting it to upgrade since its thronging errors at me like Process Already Running since I had same issue as you.

Meliot-cpu commented 3 years ago

i'm sorry but i'dont have any setting named like that in the file here u are

`install: crash_reporting: type: "crashpad" globals: locale: "it_IT" region: "EUW" lcu-settings: accountId: 0 modified: true timestamp: 0 npe-splash: enableNewPlayerSplash: true patcher: client_migrated: true client_patcher_available: true client_patcher_migrated_time: "2020-09-28T12:53:11Z" game_migrated: true game_patcher_available: true game_patcher_migrated_time: "2020-09-28T12:53:11Z" locales:

aleksandar-babic commented 3 years ago

@mmtrt

Reverted league snap revision update snap should be fixed.

That did fix segmentation faults indeed, but, game is now crashing after login (after login form submitted and League of Legends splash screen is shown).

Log

000000.002| ALWAYS| Application Version:10.19.336.497 - CL:3360497 - Build Date:Sep 15 2020 - Build Time:20:14:07
000000.004|   OKAY| Initial working directory: "C:\Riot Games\League of Legends"
000000.005|   OKAY| Current process: "C:\Riot Games\League of Legends\LeagueClient.exe"
000000.007|   OKAY| Command line arguments:
000000.009|   OKAY| Enabling Data API Dradis collection with endpoint: https://ekg.riotgames.com/messages
000000.013| 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: +ZfTlw==
common.locale: en_GB
common.os_version_major: 10
common.machine_id: VwDo+FhwnEmICK/PiLB1eg==
common.os_edition: Ultimate N, x64
common.os_version_minor: 
common.region: EUNE
common.session_id: efeea254-8a01-b14e-a0aa-bcabd8085db6
event_name: startup
crash_reporter: crashpad
000000.022| ALWAYS| Queued Dradis event to be sent.
000000.023| 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.026| ALWAYS| Found associated Riot Client install (c:/Riot Games/Riot Client/RiotClientServices.exe)
000000.060|   OKAY| Launched Riot Client with process 56
000000.063| ALWAYS| Riot Client started. Exiting with the expectation of being restarted (ExitForDirectLaunch).
Fontconfig warning: "/etc/fonts/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
0039:err:winediag:WS_getaddrinfo Failed to resolve your host name IP
Fontconfig warning: "/etc/fonts/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
0039:err:winediag:WS_getaddrinfo Failed to resolve your host name IP
0061:err:rpc:I_RpcGetBuffer no binding
000005.930|   OKAY| EventCollector: 0 events remaining after thread join
000005.931|   OKAY| Shut down EventCollector in 917 milliseconds
Fontconfig warning: "/etc/fonts/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"                                                                                              
Fontconfig warning: "/etc/fonts/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
0085:err:winediag:WS_getaddrinfo Failed to resolve your host name IP
Fontconfig warning: "/etc/fonts/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
Fontconfig warning: "/etc/fonts/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
/usr/share/libdrm/amdgpu.ids: No such file or directory
Fontconfig warning: "/etc/fonts/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
/usr/share/libdrm/amdgpu.ids: No such file or directory
ALSA lib conf.c:3816:(config_file_open) cannot access file /etc/alsa/conf.d/10-samplerate.conf
ALSA lib conf.c:3736:(snd_config_hooks_call) function snd_config_hook_load returned error: No such file or directory
ALSA lib conf.c:4190:(snd_config_update_r) hooks failed, removing configuration
013b:err:winediag:MIDIMAP_drvOpen No software synthesizer midi port found, Midi sound output probably won't work.
0066:err:ole:CoUninitialize Mismatched CoUninitialize

Any ideas?

Thanks