Crash when run in Linux through Steam (uses ConsoleDriveWindows)
My Linux users run the following .sh file which, at the end, launches my C# Linux compiled PromptPlus application:
#!/bin/bash
script_dir=$(dirname "$(realpath "$0")")
if ! chmod +x "$script_dir/internals/launcher/ReforgedLauncher" ; then
echo "Could not set executable rights for the Reforged Launcher."
echo "From this folder, please execute 'chmod +x internals/launcher/ReforgedLauncher'."
read -p "Press enter to exit..."
exit 1
fi
if ! chmod +x "$script_dir/internals/modengine/bin/me3" ; then
echo "Could not set executable rights for me3."
echo "From this folder, please execute 'chmod +x internals/modengine/bin/me3'."
read -p "Press enter to exit..."
exit 1
fi
if ! chmod +x "$script_dir/mod/menu/deploy/Gideon" ; then
echo "Could not set executable rights for the Gideon program."
echo "From this folder, please execute 'chmod +x mod/menu/deploy/Gideon'."
read -p "Press enter to exit..."
exit 1
fi
"$script_dir/internals/launcher/ReforgedLauncher"
This works when executed through the console, but when run as a non-Steam game shortcut through Steam (a game launcher), the application never displays due to the following:
ERROR: ld.so: object '/home/shadowcube264/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/shadowcube264/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/home/shadowcube264/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/shadowcube264/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/shadowcube264/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/shadowcube264/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/shadowcube264/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/shadowcube264/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/shadowcube264/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Stack overflow.
Repeated 522958 times:
--------------------------------
at PromptPlusLibrary.ColorExtensions.ToConsoleColor(PromptPlusLibrary.Color)
--------------------------------
at PromptPlusLibrary.Drivers.ConsoleDriveWindows+<>c__DisplayClass13_0.<set_ForegroundColor>b__0()
at PromptPlusLibrary.Drivers.ConsoleDriveWindows.UniqueContext(System.Action)
at PromptPlusLibrary.Drivers.ConsoleDriveWindows.set_ForegroundColor(PromptPlusLibrary.Color)
at PromptPlusLibrary.Drivers.ConsoleDriveWindows.<ResetColor>b__89_0()
at PromptPlusLibrary.Drivers.ConsoleDriveWindows.UniqueContext(System.Action)
at PromptPlusLibrary.Drivers.ConsoleDriveWindows.ResetColor()
at PromptPlusLibrary.PromptPlus..cctor()
at Program.Main(System.String[])
/home/shadowcube264/ERR/3 - Launch ELDEN RING Reforged - Online (Linux).sh: line 27: 35623 Aborted (core dumped) "$script_dir/internals/launcher/ReforgedLauncher"
Hello @ividyon, looking at where the error occurs, I couldn't find a cause in the code. To better understand, could you clarify a few things?
-
Did this error occur in version v.4.2?
-
Which operating system is calling the shortcut?
-
Was a log file generated? If so, could you send me the file? It's located in {SpecialFolder.UserProfile}/PromptPlus.Log
-
What do I need to install to reproduce the error? (I'm using a machine with WIN11 + WSL2 for testing on Linux - Ubuntu 22.04.5)