FiRMLAB-Pisa/pySynthMRI

QObject::moveToThread: Current thread (0x226f4c0) is not the object's thread (0x3085380). Cannot move to target thread (0x226f4c0)

Opened this issue · 1 comments

Hi, thanks a lot for your nice application which shows very nice work.

I just want to raise an issue about a problem I faced during the first use of the app and how I solved it, hoping to help anyone who meets the same issue or maybe get more information about it from the devs.

Btw, for the first execution of pySynthMRI.py, you need to move the script above scr folder in order to fit with the import implementation :)

Once it is done, running pySynthMRI.py leads to the following error :

QObject::moveToThread: Current thread (0x226f4c0) is not the object's thread (0x3085380).
Cannot move to target thread (0x226f4c0)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/legrisl/Environments/pysynth/lib/python3.11/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, minimal, minimalegl, offscreen, vnc, webgl.

Abandon (core dumped)

After losing myself on the Qt forum, trying to build it with make, trying to switch between platform (Xorg, wayland...) or installing missing libraries as suggested in a lot of discussions, I finally found a very simple solution here: NVlabs/instant-ngp#300 (comment)

It completely solves the problem and allows me to run the app.

Do you have an idea of why I've met this kind of issue? Have you ever experienced similar behavior?

Thank's a lot.

Thomas

It seems that the error could come from the graphic drivers of the machine and that using open-cv headless bypasses it.