[SDL] (openGL repaint) thread problem

Johann Deneux johannd at DoCS.UU.SE
Wed Aug 8 07:37:03 PDT 2001


On Tue, 7 Aug 2001, Johannes Schmidt wrote:

> Hi,
> 
> I have some problems using threads.
> 
> If I try to do some drawing stuff in a thread created with SDL_CreateThread, 
> the application exits with
> Fatal signal: Segmentation Fault (SDL Parachute Deployed)
> Xlib: unexpected async reply (sequence 0x66)!
>

Your X server does not support multi-threading. You have to do all your
calls to the Xlib from one single thread. I guess you may even have to use
only the main thread.

> If I do the same drawing within the main thread, the application runs
as 
> expexted.

> [...] 

-- 
Johann Deneux
http://www.esil.univ-mrs.fr/~jdeneux/projects/





More information about the SDL mailing list