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

Remote Desktop crashes SDL 2.0.22 during SDL_PollEvent #5867

Closed
superfury opened this issue Jun 30, 2022 · 2 comments
Closed

Remote Desktop crashes SDL 2.0.22 during SDL_PollEvent #5867

superfury opened this issue Jun 30, 2022 · 2 comments
Assignees
Milestone

Comments

@superfury
Copy link

This happens where SDL_PollEvent calls WIN_CheckICMPProfileChanged somewhere in it's execution path.
This triggers the Visual Studio debugger somehow (don't know what causes it, it looks like something during a RDP disconnect after the app is started without RDP if I see it happening correctly).
So far crashed my app twice already in the long runs of running it (performing a long testing process of an slow OS installation inside it).

@slouken slouken self-assigned this Jun 30, 2022
@slouken slouken added this to the 2.24.0 milestone Jun 30, 2022
@slouken slouken closed this as completed in cb107be Aug 1, 2022
@slouken
Copy link
Collaborator

slouken commented Aug 1, 2022

I think this is fixed, can you verify and reopen if it's not fixed by cb107be?

sezero pushed a commit to sezero/SDL that referenced this issue Sep 21, 2022
PJB3005 pushed a commit to PJB3005/SDL that referenced this issue Oct 5, 2022
@superfury
Copy link
Author

superfury commented Nov 14, 2022

Somehow, this prevents crashing the SDL2 app, but after disconnecting RDP screen updates fail (as in screen not updating changed pixels rendered by the app) if RDP is connected again without the local machine (non-RDP or other remote control software) logging on the machine.
If after disconnecting RDP another connection is made without logging back into the user (it's at the lock screen because of the first RDP connect) either from the real machine inputs(mouse/keyboard) or other remote control software (non-RDP), the RDP that's starting won't render updates to the window anymore.

Steps to reproduce:

  1. Run app from non-RDP and connect RDP, or connect RDP and run the app.
  2. Disconnect RDP.
  3. Log back in without RDP.
  4. Connect RDP.

If step 3 isn't done, after step 4 the window fails to update changes to it's pixels by SDL2.

This continues(steps 2-4) until step 3 is performed. After step 4, step 2-4 still applies until the app/window is closed (which restarts from step 1 when relaunching etc.).

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