Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unbuntu 22.04/WSL2 - qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch) Errors #205

Open
rwbaer opened this issue Jul 17, 2022 · 2 comments

Comments

@rwbaer
Copy link
Collaborator

rwbaer commented Jul 17, 2022

wsl info:

PS C:\Users\rbaer> wsl --version
WSL version: 0.61.8.0
Kernel version: 5.10.102.1
WSLg version: 1.0.39
MSRDC version: 1.2.3213
Direct3D version: 1.601.0
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.25158.1000

python3 --version

Python 3.8.10

MH from source in Ubuntu 22.04 on WSL2 :
sudo apt install python3-numpy python3-pyqt5 python3-pyqt5.qtopengl python3-pyqt5.qtsvg python3-opengl
git clone https://github.com/makehumancommunity/makehuman.git
cd ~/makehuman/makehuman
download_assets_git.py
git pull origin master
python3 makehuman

This produces multiple periodic errors as MH starts up. The interface opens but the human is not visibl in the center graphics windows. The form of the errors is:

qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 12884, resource id: 4195602, major code: 130 (Unknown), minor code: 3
where the sequence and resoource id change but major and minor codes stay constant.

This link (https://forum.qt.io/topic/67162/qxcbconnection-xcb-error-8-badmatch/18) "This means that the slot will be called in the context of the thread managed by QThread which is not the GUI thread thus you are doing GUI related stuff from another thread which is not allowed.", but I don't know if that helps with the issue I'm having here and the MH code.

Initializing default theme first.
Theme default version 1.2.0
Loaded theme data/themes/default.mht
Using Qt system style fusion
Loading human
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 1103, resource id: 4194374, major code: 130 (Unknown), minor code: 3
etc.
initTexture: 256, 256, False
Creating new texture for image /home/rwbaer/makehuman/makehuman/data/eyes/materials/brown_eye.png.
initTexture: 1024, 1024, False
Creating new texture for image /home/rwbaer/makehuman/makehuman/data/litspheres/skinmat_eye.png.
initTexture: 256, 256, False
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 2554, resource id: 4194413, major code: 130 (Unknown), minor code: 3
etc.
Creating new file metadata cache /home/rwbaer/makehuman/v1py3/cache/clothes_filecache.mhc
hiding category Geometries
showing category Materials
hiding task Clothes
showing task Material
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 5678, resource id: 4194413, major code: 130 (Unknown), minor code: 3
etc.
@Aranuvir
Copy link
Collaborator

Not sure if this is a Makehuman or a PyQt/WSL problem, with the latter not being fixable by us...

@rwbaer
Copy link
Collaborator Author

rwbaer commented Jul 19, 2022

You could well be right that this is s WSL-related problem and not a problem with Qt per se, but I don't recall seeing it before when I was messing with Ubuntu 20.04 under WSL2/WSLg. Either way, it would be nice if someone can at least tell me a little more about what the recurring qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch) Errors might imply. My attempts to google didn't help me much. I'll keep checking back with this as we push changes to master. I understand that it won't become a priority.

Also, we do seem to have uncovered some variable-typing and signal-processing errors with our recent changes to Qt objects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants