[Gambas-user] A Task Issue

Benoît Minisini g4mba5 at gmail.com
Wed Mar 7 13:50:11 CET 2018


Le 07/03/2018 à 13:35, Jorge Carrión a écrit :
> 
> Benoît:
> This seems the solution indeed. It was really that: I don't understand 
> that task doesn't run in same process.
> Another question:
> Can be more than one task simultaneously?

Of course.

> I've tried to do so and the program abort with code 6 and this message 
> on console:
> 
> "[xcb] Most likely this is a multi-threaded client and XInitThreads has 
> not been called
> [xcb] Aborting, sorry about that.
> gbx3: ../../src/xcb_io.c:274: poll_for_event: La declaración 
> `!xcb_xlib_threads_sequence_lost' no se cumple."
> 

Because you are in a GUI program, and GUI libraries do not like being 
forked at all.

Apparently the xcb library aborts as soon as you want to use the event 
loop inside a task (the Pop3Client uses it).

Try to put 'GB_X11_INIT_THREADS=1' in your environment to force the 
XInitThreads() X11 method to be called, and check if it works.

-- 
Benoît Minisini


More information about the User mailing list