| Summary: | Message boxes crash on X11 if cursor is hidden | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Sik <sik.the.hedgehog> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | 2.0.0 | Keywords: | target-2.0.0 |
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: |
test program that doesn't trigger issue.
Test program that shows the behavior |
||
|
Description
Sik
2013-07-13 09:07:52 UTC
Taking this one. --ryan. Created attachment 1234 [details]
test program that doesn't trigger issue.
I can't reproduce this here. I've attached my simple test program. Do you have something that's a little more complex that triggers it?
--ryan.
Created attachment 1235 [details]
Test program that shows the behavior
Turns out to be more specific than I thought at first. One needs to call SDL_ShowCursor(SDL_FALSE) and then SDL_Quit() in order for it to trigger. Given this is one of the few functions supposed to work even when SDL isn't initialized (as one of its main purposes is to show error messages), this is probably a rather important bug.
This bug doesn't happen if the function is called without SDL having been ever initialized, nor if the cursor is visible when SDL is deinitialized.
Comment on attachment 1235 [details]
Test program that shows the behavior
Turns out to be more specific than I thought at first. One needs to call SDL_ShowCursor(SDL_FALSE) and then SDL_Quit() in order for it to trigger. Given this is one of the few functions supposed to work even when SDL isn't initialized (as one of its main purposes is to show error messages), this is probably a rather important bug.
This bug doesn't happen if the function is called without SDL having been ever initialized, nor if the cursor is visible when SDL is deinitialized.
Ok, Attachment #1235 [details] definitely crashes for me. Looking into this.
--ryan.
Fixed in http://hg.libsdl.org/SDL/rev/f2f794cf85c0 Thanks! --ryan. |