"Not Responding" error dialog on Linux

I ported some old SDL1.x code to SDL2, using the SDL2 Renderer. On Linux
(Fedora 20, Gnome), the games launch, then about 3-5 seconds after launch, I get
an gnome/Xorg error dialog that says,

“[Window Title] is not responding.
You may choose to wait a short while for it to continue or force the application
to quit entirely.”

Has anyone seen this error dialog before?

The error is strange because the apps were, and are, running fine. If I click
"Wait", the error dialog disappears and the games continue with no other issues.
The SDL2 tests do not have this issue. My other SDL2 games do not have this
issue, but they do not use the renderer.

My guess is that I haven’t made the correct sequence of SDL2 calls during
initialization, and as a result, gnome thinks the app isn’t processing events.
The game is actually processing events just fine, before, during, and after the
error dialog.

Here’s the sequence of SDL calls:

SDL_LogSetAllPriority (SDL_LOG_PRIORITY_VERBOSE);
SDL_Init (SDL_INIT_VIDEO|SDL_INIT_AUDIO)
SDL_CreateWindowAndRenderer (w,h,SDL_WINDOW_SHOWN,…)

In the debugger, stepping over the call to SDL_CreateWindowAndRender() launches
the window, and 3 seconds later, I get the error dialog.

To clarify, is your debugger sitting on SDL_CreateWindowAndRenderer
for those three seconds?On Mon, Mar 3, 2014 at 1:42 PM, John wrote:

I ported some old SDL1.x code to SDL2, using the SDL2 Renderer. On Linux
(Fedora 20, Gnome), the games launch, then about 3-5 seconds after launch, I
get an gnome/Xorg error dialog that says,

“[Window Title] is not responding.
You may choose to wait a short while for it to continue or force the
application to quit entirely.”

Has anyone seen this error dialog before?

The error is strange because the apps were, and are, running fine. If I
click “Wait”, the error dialog disappears and the games continue with no
other issues. The SDL2 tests do not have this issue. My other SDL2 games do
not have this issue, but they do not use the renderer.

My guess is that I haven’t made the correct sequence of SDL2 calls during
initialization, and as a result, gnome thinks the app isn’t processing
events. The game is actually processing events just fine, before, during,
and after the error dialog.

Here’s the sequence of SDL calls:

SDL_LogSetAllPriority (SDL_LOG_PRIORITY_VERBOSE);
SDL_Init (SDL_INIT_VIDEO|SDL_INIT_AUDIO)
SDL_CreateWindowAndRenderer (w,h,SDL_WINDOW_SHOWN,…)

In the debugger, stepping over the call to SDL_CreateWindowAndRender()
launches the window, and 3 seconds later, I get the error dialog.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Yes, but the debugger pausing isn’t causing the issue. The error occurs without
the debugger. I mentioned the debugger to pinpoint the last SDL call that
triggers the issue.On 03/03/2014 01:45 PM, Andre D wrote:

To clarify, is your debugger sitting on SDL_CreateWindowAndRenderer
for those three seconds?

On Mon, Mar 3, 2014 at 1:42 PM, John <@John6> wrote:

I ported some old SDL1.x code to SDL2, using the SDL2 Renderer. On Linux
(Fedora 20, Gnome), the games launch, then about 3-5 seconds after launch, I
get an gnome/Xorg error dialog that says,

“[Window Title] is not responding.
You may choose to wait a short while for it to continue or force the
application to quit entirely.”

Has anyone seen this error dialog before?

The error is strange because the apps were, and are, running fine. If I
click “Wait”, the error dialog disappears and the games continue with no
other issues. The SDL2 tests do not have this issue. My other SDL2 games do
not have this issue, but they do not use the renderer.

My guess is that I haven’t made the correct sequence of SDL2 calls during
initialization, and as a result, gnome thinks the app isn’t processing
events. The game is actually processing events just fine, before, during,
and after the error dialog.

Here’s the sequence of SDL calls:

SDL_LogSetAllPriority (SDL_LOG_PRIORITY_VERBOSE);
SDL_Init (SDL_INIT_VIDEO|SDL_INIT_AUDIO)
SDL_CreateWindowAndRenderer (w,h,SDL_WINDOW_SHOWN,…)

In the debugger, stepping over the call to SDL_CreateWindowAndRender()
launches the window, and 3 seconds later, I get the error dialog.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Solved: The issue was caused by SDL_mixer or the audio subsystem thread. I had
called Mix_OpenAudio, but never called Mix_Init().On 03/03/2014 01:51 PM, John wrote:

Yes, but the debugger pausing isn’t causing the issue. The error occurs without
the debugger. I mentioned the debugger to pinpoint the last SDL call that
triggers the issue.

On 03/03/2014 01:45 PM, Andre D wrote:

To clarify, is your debugger sitting on SDL_CreateWindowAndRenderer
for those three seconds?

On Mon, Mar 3, 2014 at 1:42 PM, John <@John6> wrote:

I ported some old SDL1.x code to SDL2, using the SDL2 Renderer. On Linux
(Fedora 20, Gnome), the games launch, then about 3-5 seconds after launch, I
get an gnome/Xorg error dialog that says,

“[Window Title] is not responding.
You may choose to wait a short while for it to continue or force the
application to quit entirely.”

Has anyone seen this error dialog before?

The error is strange because the apps were, and are, running fine. If I
click “Wait”, the error dialog disappears and the games continue with no
other issues. The SDL2 tests do not have this issue. My other SDL2 games do
not have this issue, but they do not use the renderer.

My guess is that I haven’t made the correct sequence of SDL2 calls during
initialization, and as a result, gnome thinks the app isn’t processing
events. The game is actually processing events just fine, before, during,
and after the error dialog.

Here’s the sequence of SDL calls:

SDL_LogSetAllPriority (SDL_LOG_PRIORITY_VERBOSE);
SDL_Init (SDL_INIT_VIDEO|SDL_INIT_AUDIO)
SDL_CreateWindowAndRenderer (w,h,SDL_WINDOW_SHOWN,…)

In the debugger, stepping over the call to SDL_CreateWindowAndRender()
launches the window, and 3 seconds later, I get the error dialog.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org