Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flex Launcher sometimes closes itself when PC comes out of sleep mode #71

Open
ricprd opened this issue Jan 29, 2025 · 3 comments
Open

Comments

@ricprd
Copy link

ricprd commented Jan 29, 2025

I noticed this intermittent issue: there are times when I wake my system and I see the desktop instead of Flex Launcher. However, Flex Launcher was open the last time I used it (most of the time I even activate sleep mode by using a shortcut added to Flex Launcher via ":sleep").

Is there a way to check why Flex Launcher might be quitting like this?

@complexlogic
Copy link
Owner

Is it quitting, or is it actually crashing? This might be related to #23.

Flex Launcher stores image data in the GPU memory for rendering. The problem is that sometimes (likely depending on hardware or driver), the GPU memory is not preserved after a sleep/suspend operation. So when the PC wakes from sleep, Flex Launcher is tries to access the old GPU memory addresses which are now invalid, and causes the crash. This is my current theory.

The problem is that I can't replicate this issue in my setup. As I said above, it likely varies depending on hardware and/or driver. Could you try the build here and let me know if you still get the quit/crash behavior after sleep? That build uses CPU rendering instead of GPU rendering, which is less efficient, but it should isolate the GPU memory issue. So, if you don't experience the crash/quit, that would confirm the volatile GPU memory is the cause.

If that's the case, I can refactor the Flex Launcher code to free the GPU memory before sleeping, and re-render the images after waking up. That should provide a permanent fix for the issue.

@ricprd
Copy link
Author

ricprd commented Jan 30, 2025

Is it quitting, or is it actually crashing? This might be related to #23.

I don't actually know. Is there a way to reliably check? The last time it happened, I checked the .log file but sadly it was blank.

The problem is that I can't replicate this issue in my setup. As I said above, it likely varies depending on hardware and/or driver. Could you try the build here and let me know if you still get the quit/crash behavior after sleep? That build uses CPU rendering instead of GPU rendering, which is less efficient, but it should isolate the GPU memory issue. So, if you don't experience the crash/quit, that would confirm the volatile GPU memory is the cause.

Thank you! I will check and report back :)

@ricprd
Copy link
Author

ricprd commented Jan 31, 2025

That was quick, I already have an update: the issue happens even with this suggested build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants