Linux launcher hangs after disconnecting from server
Linux launcher v2.2.1 hangs after disconnecting from a server and pins a CPU core to 100%
[13/10/2024 00:06:10] [INFO] BeamMP Launcher v2.2.1
[13/10/2024 00:06:10] [INFO] Mod caching directory: ./Resources
[13/10/2024 00:06:12] [INFO] Launcher version is up to date
[13/10/2024 00:06:12] [INFO] IMPORTANT: You MUST keep this window open to play BeamMP!
[13/10/2024 00:06:12] [DEBUG] HTTP Proxy listening on port 37513
[13/10/2024 00:06:12] [INFO] Game Version : 0.33.3.0
[13/10/2024 00:06:12] [INFO] Game user path: /home/o1ler/.local/share/BeamNG.drive/0.33/
[13/10/2024 00:06:12] [DEBUG] Core Network on start! port: 4444
[13/10/2024 00:06:39] [INFO] Game Connected!
[13/10/2024 00:07:22] [INFO] Connecting to server
[13/10/2024 00:07:22] [DEBUG] MAIN LOOP OF GAME SERVER
[13/10/2024 00:07:22] [INFO] Connected!
[13/10/2024 00:07:22] [DEBUG] Failed to receive mod list: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - invalid literal; last read: 'R'
[13/10/2024 00:07:22] [ERROR] Failed to receive mod list!
[13/10/2024 00:07:24] [INFO] Checking Resources...
[13/10/2024 00:07:24] [INFO] Syncing...
[13/10/2024 00:07:24] [INFO] Done!
[13/10/2024 00:07:35] [DEBUG] (Proxy) Game Connected!
[13/10/2024 00:07:35] [DEBUG] Starting UDP receive loop
[13/10/2024 00:07:57] [DEBUG] Terminating UDP Socket: 15
[13/10/2024 00:07:57] [DEBUG] Terminating TCP Socket: 15
[13/10/2024 00:07:57] [DEBUG] Terminating GTCP Socket: 13
[13/10/2024 00:07:57] [DEBUG] (TCP) Connection closing... CheckBytes(16)
[13/10/2024 00:07:57] [DEBUG] Kill socket got -1 returning...
[13/10/2024 00:07:57] [DEBUG] (Proxy) Connection closing
[13/10/2024 00:07:57] [DEBUG] Waiting for client thread
[13/10/2024 00:07:57] [DEBUG] Client thread done
[13/10/2024 00:07:57] [DEBUG] Waiting for net main thread
The only further advancement can be made be closing the game
[13/10/2024 00:11:29] [DEBUG] (Core) Connection closing
[13/10/2024 00:11:29] [WARN] Game Reconnecting...
Suggesting that the application hangs at waiting for net main thread
This happens regardless of dev mode or not, and both on native and proton beamNG v0.33.3 and beamMP mod v4.13.5
The only way out of this is to kill the launcher and restart it
Wait how do you even run the beammp launcher natively on linux? (Without WINE of course) Do I have to build it?
EDIT: Found a pre-compiled binary in the github actions here. 👍
Issue persists with launcher 2.3.2 and mod 4.13.9
Wait how do you even run the beammp launcher natively on linux? (Without WINE of course) Do I have to build it?
EDIT: Found a pre-compiled binary in the github actions here. 👍
How did you get past the dependency issues?
kriss@cypher:~/Downloads$ ./BeamMP-Launcher
./BeamMP-Launcher: /lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.32' not found (required by ./BeamMP-Launcher)
./BeamMP-Launcher: /lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.31' not found (required by ./BeamMP-Launcher)
./BeamMP-Launcher: /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.38' not found (required by ./BeamMP-Launcher)
How did you get past the dependency issues?
Should be solved by using build-essential or development packages.
Our installation guide recommends to build the launcher yourself, so you also have the necessary dependencies to run it
https://docs.beammp.com/game/getting-started/#linux-installation
Our installation guide recommends to build the launcher yourself
Thank you for this! I didn't realise it was possible to compile a linux version myself. The current issue i am facing is this error. I have never compiled an application this way, so i am probably missing something.
kriss@cypher:~/Documents/Gitlab/beammp-source/BeamMP-Launcher$ cmake -DCMAKE_BUILD_TYPE=Release . -B bin -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-linux
CMake Error at /usr/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake:130 (message):
Could not find toolchain file: ~/vcpkg/scripts/buildsystems/vcpkg.cmake
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
kriss@cypher:~/Documents/Gitlab/beammp-source/BeamMP-Launcher$
Could not find toolchain file: ~/vcpkg/scripts/buildsystems/vcpkg.cmake
vcpkg.cmake does exist in the directory i specified. Though CMakeLists.txt:2 does not exist there.
@Kristoffeh just solved a similar issue when trying to build on SteamOS. The CMake errors at the end were only secondary errors for me, the real issue was it failed to build a package that was downloaded trough VCPKG due to missing libraries. Ive added the packages to the Docs, currently can be seen here: https://github.com/BeamMP/Docs/pull/155/files
Maybe this helps you
~~Seems to have been solved with https://github.com/BeamMP/BeamMP-Launcher/releases/tag/v2.4.0~~
Its not, i somehow built a version that fixed it, but i cant recreate that. Ill try to figure it out