ProjectPhysX / FluidX3D

The fastest and most memory efficient lattice Boltzmann CFD software, running on all GPUs via OpenCL. Free for non-commercial use.
https://youtube.com/@ProjectPhysX
Other
3.48k stars 281 forks source link

Code fails in interactive mode sending "xcb_xlib_threads_sequence_lost". #174

Closed RusGB closed 2 months ago

RusGB commented 2 months ago

Version 2.15 fails in Ubuntu 22.04.4 while testing Lid cavity problem in interactive mode.

The following error is dumped:

[xcb] Unknown sequence number while processing queue [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. FluidX3D: ../../src/xcb_io.c:278: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed. ./make.sh: line 33: 21612 Aborted (core dumped) bin/FluidX3D "$@"

The solution was to include a call for XInitThreads(); in graphics.cpp in main() just before "_x11display = XOpenDisplay(0);" (line 686). This seems to work, yet have not tested with other problems.

ProjectPhysX commented 2 months ago

Hi @RusGB,

thanks for reporting this bug! I've fixed it!

Kind regards, Moritz