HGL
eastern-cyan

Empty string passed as argv[1] if no options provided, making Palia Launcher misbehave.

I'm trying to run Palia's launcher, a free-to-play game currently in open beta. The trouble is that Heroic tries to launch to launch it like that according to the log file:
Wine Command: /home/ionic/.config/heroic/tools/wine/lutris-GE-Proton8-13-x86_64/bin/wine /mnt/encrypted/Palia/GameData/Launcher/PaliaLauncher.exe

Game Log:
ERROR: ld.so: object '/opt/lib/libmediaclient.so' from /etc/ld.so.preload cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/opt/lib/libmediaclient.so' from /etc/ld.so.preload cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
002c:fixme:winediag:LdrInitializeThunk wine-staging 8.0 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
006c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
006c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
006c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
006c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:err:hid:udev_bus_init UDEV monitor creation failed
00c4:err:kerberos:kerberos_LsaApInitializePackage no Kerberos support, expect problems
0108:fixme:oleacc:find_class_data unhandled window class: L"#32769"
0108:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
0108:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
error: unrecognized subcommand ''

Usage: PaliaLauncher.exe [OPTIONS] [COMMAND]

For more information, try '--help'.
0108:fixme:uiautomation:msaa_fragment_get_FragmentRoot 00000000008F1FA8, 000000000021FAC0: stub!
Wine Command: /home/ionic/.config/heroic/tools/wine/lutris-GE-Proton8-13-x86_64/bin/wine /mnt/encrypted/Palia/GameData/Launcher/PaliaLauncher.exe

Game Log:
ERROR: ld.so: object '/opt/lib/libmediaclient.so' from /etc/ld.so.preload cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/opt/lib/libmediaclient.so' from /etc/ld.so.preload cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
002c:fixme:winediag:LdrInitializeThunk wine-staging 8.0 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
006c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
006c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
006c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
006c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:err:hid:udev_bus_init UDEV monitor creation failed
00c4:err:kerberos:kerberos_LsaApInitializePackage no Kerberos support, expect problems
0108:fixme:oleacc:find_class_data unhandled window class: L"#32769"
0108:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
0108:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
error: unrecognized subcommand ''

Usage: PaliaLauncher.exe [OPTIONS] [COMMAND]

For more information, try '--help'.
0108:fixme:uiautomation:msaa_fragment_get_FragmentRoot 00000000008F1FA8, 000000000021FAC0: stub!
Unfortunately, this application misinterprets an empty string as argv[1] as a command line parameter, tries to parse it as a command, and just exists. Sad trombone.
3 Replies
eastern-cyan
eastern-cyanOP2y ago
What part would I need to change to add a check if the additional arguments are empty and, if so, skip passing them at all?
eastern-cyan
eastern-cyanOP2y ago
Oh no, this seems to be happening in a typescript file, https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/blob/6592810f14b3014496c6d9d50ad540c6be5467a3/src/backend/launcher.ts#L651 and later, so no easy editing, other than rebuilding the whole thing...
GitHub
HeroicGamesLauncher/src/backend/launcher.ts at 6592810f14b3014496c6...
A Native GOG, Amazon and Epic Games Launcher for Linux, Windows and Mac. - Heroic-Games-Launcher/HeroicGamesLauncher
eastern-cyan
eastern-cyanOP2y ago
GitHub
[Tech] Skip empty arguments in wine command launcher by rdbrschf · ...
If the additional command line arguments are unset/set to an empty string, the wine command launcher will likewise pass an empty argument to the launched application. While that is usually harmless...

Did you find this page helpful?