We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1864

Summary: SDL spams "ERROR: Invalid window" on each frame
Product: SDL Reporter: Wouter van Oortmerssen <aardappel>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED ABANDONED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2 CC: icculus
Version: HG 2.0   
Hardware: x86   
OS: Windows 7   

Description Wouter van Oortmerssen 2013-05-22 22:01:21 UTC
It's hard to figure out what's causing this error since wether it appears differs from run to run, sometimes without even changing the code, i.e. it is something non-deterministic. The fact that this output interleaves in unpredictable ways with my own output makes me think it's coming from a separate thread?

Sofar, there appears to be a correlation with wether my program calls SDL_SetWindowGrab / SDL_ShowCursor / SDL_SetRelativeMouseMode or not, but because of the non-deterministic nature it is hard to be sure.
Comment 1 Ryan C. Gordon 2013-07-12 02:17:10 UTC
Can you set a breakpoint on SDL_SetError() when this is happening, and see what function is triggering it?

--ryan.
Comment 2 Wouter van Oortmerssen 2013-07-14 22:51:32 UTC
Will definitely try that when I see it again, but as by my description, it is hard to corner (last time I tried, I wasn't able to reproduce it while debugging).
Comment 3 Ryan C. Gordon 2018-08-06 21:20:19 UTC
Hello, and sorry if you're getting dozens of copies of this message by email.

We are closing out bugs that appear to be abandoned in some form. This can happen for lots of reasons: we couldn't reproduce it, conversation faded out, the bug was noted as fixed in a comment but we forgot to mark it resolved, the report is good but the fix is impractical, we fixed it a long time ago without realizing there was an associated report, etc.

Individually, any of these bugs might have a better resolution (such as WONTFIX or WORKSFORME or INVALID) but we've added a new resolution of ABANDONED to make this easily searchable and make it clear that it's not necessarily unreasonable to revive a given bug report.

So if this bug is still a going concern and you feel it should still be open: please feel free to reopen it! But unless you respond, we'd like to consider these bugs closed, as many of them are several years old and overwhelming our ability to prioritize recent issues.

(please note that hundred of bug reports were sorted through here, so we apologize for any human error. Just reopen the bug in that case!)

Thanks,
--ryan.