1
System / Re: Problem with threads on Linux
« on: July 24, 2017, 06:13:52 pm »
I have the same issue... but loading assets in a thread:
When do this:
Get this:
System Info
If i try to run the program several times.... some times it runs without any error. O_o
The same code (thread stuff) with "SFML 2.3v5" (version installable via apt-get) works fine... but with SFML 2.4.2 this bug appears :/
I also had to apply this patch to compile the library (SFML v2.4.2): https://en.sfml-dev.org/forums/index.php?topic=20638.0
When do this:
Code: [Select]
sf::Thread thread(&CAssetManager::load, m_pAssetManager);
thread.launch();
Get this:
Code: [Select]
[59761a92][CGame]: Initializing game...
[xcb] Unknown request in queue while dequeuing
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
cherryjam_d: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
System Info
Code: [Select]
- OS: Mint 18.2 sonya
- Kernel: x86_64 Linux 4.10.0-27-generic
- Resolution: 2944x1080
- DE: Cinnamon 3.4.4
- WM: Muffin
- CPU: Intel Core i7-3770 CPU @ 3.9GHz
- GPU: GeForce GTX 970
- RAM: 3364MiB / 11971MiB
If i try to run the program several times.... some times it runs without any error. O_o
The same code (thread stuff) with "SFML 2.3v5" (version installable via apt-get) works fine... but with SFML 2.4.2 this bug appears :/
I also had to apply this patch to compile the library (SFML v2.4.2): https://en.sfml-dev.org/forums/index.php?topic=20638.0