weify627 / 4D-Rotor-Gaussians

Apache License 2.0
79 stars 5 forks source link

Assistance Required for "qt.qpa.plugin: Could not load the Qt platform plugin 'xcb'" Error in COLMAP Feature Extraction #9

Closed SHIBOYA closed 1 day ago

SHIBOYA commented 2 months ago

Dear Fangyin,

I am currently using your project, and I have encountered a recurring issue while running the feature extraction step using COLMAP. The command I am running is as follows:

python scripts/n3v2blender.py /root/autodl-tmp/N3V/cut_roasted_beef

However, I repeatedly encounter the following error:

==== running: colmap feature_extractor --database_path /root/autodl-tmp/N3V/cut_roasted_beef/tmp/database.db --image_path /root/autodl-tmp/N3V/cut_roasted_beef/tmp/images
QObject::moveToThread: Current thread (0x559196bfcda0) is not the object's thread (0x559196c0c130).
Cannot move to target thread (0x559196bfcda0)

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/root/miniconda3/envs/4drotorgs/lib/python3.8/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, linuxfb, minimal, minimalegl, offscreen, vnc.

*** Aborted at 1720161704 (unix time) try "date -d @1720161704" if you are using GNU date ***
PC: @                0x0 (unknown)
*** SIGABRT (@0x39dc) received by PID 14812 (TID 0x7fbf78f36080) from PID 14812; stack trace: ***
    @     0x7fbf7eae5046 (unknown)
    @     0x7fbf7cd8c520 (unknown)
    @     0x7fbf7cde0a7c pthread_kill
    @     0x7fbf7cd8c476 raise
    @     0x7fbf7cd727f3 abort
    @     0x7fbf7d381ba3 QMessageLogger::fatal()
    @     0x7fbf7d988713 QGuiApplicationPrivate::createPlatformIntegration()
    @     0x7fbf7d988c08 QGuiApplicationPrivate::createEventDispatcher()
    @     0x7fbf7d5b1b17 QCoreApplicationPrivate::init()
    @     0x7fbf7d98bb70 QGuiApplicationPrivate::init()
    @     0x7fbf7e09fced QApplicationPrivate::init()
    @     0x5591954f93dd colmap::RunFeatureExtractor()
    @     0x5591954eb499 main
    @     0x7fbf7cd73d90 (unknown)
    @     0x7fbf7cd73e40 __libc_start_main
    @     0x5591954ee3e5 _start
Aborted (core dumped)
FATAL: command failed

I have attempted several solutions, including reinstalling the opencv-python-headless package and running COLMAP with xvfb-run, but the issue persists. I have also verified that the xcb plugin is present in the expected directory.

Could you kindly provide guidance on how to resolve this issue? Any insights or suggestions would be greatly appreciated.

Thank you for your time and assistance.

Best regards!

remmel commented 1 week ago

Hello,

You can try export QT_QPA_PLATFORM=offscreen and then run you command. if not working also check that normal opencv is not installed:

SHIBOYA commented 1 day ago

Thanks!