shusaura85 / notparadoxlauncher

Alternative for Paradox Launcher
MIT License
154 stars 4 forks source link

Launcher doesn't exit cleanly on Linux #11

Closed LiamDawe closed 4 years ago

LiamDawe commented 4 years ago

On Manjaro Linux, the launcher doesn't seem to exit cleanly. I have to manually kill the left over process.

It works fine, installs fine and so on but it does give this:

[liam@liam-manjaro ~]$ /home/liam/Downloads/Linux.Not.Paradox.Launcher.v1.2.0.x64/launcher An unhandled exception occurred at $00007F9CC756942C: EAccessViolation: $00007F9CC756942C

If you need more info, let me know.

shusaura85 commented 4 years ago

Thanks for the report. Please let me know what edition and version of Manjaro you're using.
I'll set up a VM with Manjaro sometime this week to test it out and see what I can do to fix it.

LiamDawe commented 4 years ago

Wow, thanks! This is just KDE Manjaro.

shusaura85 commented 4 years ago

Just installed a copy of Manjaro KDE and can confirm the reported bug.
From initial investigation, it would appear to be a problem between the compiled code and the KDE shell.

Edit: Apparently the bug is triggered by the environment variable XDG_CURRENT_DESKTOP=KDE
Simply replacing the variable value with Plasma (XDG_CURRENT_DESKTOP=Plasma) no longer triggers the error.

Looking for solutions

shusaura85 commented 4 years ago

I've released version 1.2.2 that although doesn't fix the actual bug (as the root cause appears to be in KDE (kio core), the launcher will invoke the kill command on it's own process id to fully close.

The access violation will still appear but the launcher process will be properly terminated.

As an extra I also changed the options window info text color (so now you can actually read them)