QSocketNotifier: Can only be used with threads started with QThread

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
joaocouto
Posts: 31
Joined: Thu Feb 23, 2023 8:57 pm

Re: QSocketNotifier: Can only be used with threads started with QThread

Post by joaocouto »

I just compiled on ubuntu 23 and these messages appear. How do I resolve. I didn't understand where to add the line. Base::Console().Message("%s\n", context.category);
Captura de tela de 2023-07-23 09-34-57.png
Captura de tela de 2023-07-23 09-34-57.png (25.83 KiB) Viewed 574 times
chrisb
Veteran
Posts: 53930
Joined: Tue Mar 17, 2015 9:14 am

Re: QSocketNotifier: Can only be used with threads started with QThread

Post by chrisb »

joaocouto wrote: Sun Jul 23, 2023 1:41 pm I just compiled on ubuntu 23 and these messages appear. How do I resolve. I didn't understand where to add the line. Base::Console().Message("%s\n", context.category);
This is apparently a different message and thus may deserve a separate topic.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
wmayer
Founder
Posts: 20243
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: QSocketNotifier: Can only be used with threads started with QThread

Post by wmayer »

Here is a PR how to print the context of Qt warnings: https://github.com/FreeCAD/FreeCAD/pull/9648
funny0facer
Posts: 15
Joined: Sun Apr 10, 2022 8:52 pm
Location: Germany

Re: QSocketNotifier: Can only be used with threads started with QThread

Post by funny0facer »

Maybe this helps finding the error. I get the same message:
Screenshot_20230803_191344.png
Screenshot_20230803_191344.png (19.23 KiB) Viewed 391 times
I am using this: (native package)

Code: Select all

OS: Arch Linux (KDE/plasmawayland)
Word size of FreeCAD: 64-bit
Version: 0.21.0.33675 (Git)
Build type: Release
Branch: makepkg
Hash: 41b058e2087de60dc8fef3d3e68c7d0129e13abf
Python 3.11.3, Qt 5.15.10, Coin 4.0.1, Vtk 9.2.6, OCC 7.6.3
Locale: German/Germany (de_DE)
The error does not appear with this: (AppImage)

Code: Select all

OS: Arch Linux (KDE/plasmawayland)
Word size of FreeCAD: 64-bit
Version: 0.21.0.33675 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.21.0)
Hash: 41b058e2087de60dc8fef3d3e68c7d0129e13abf
Python 3.10.12, Qt 5.15.8, Coin 4.0.0, Vtk 9.2.5, OCC 7.6.3
Locale: German/Germany (de_DE)
for searchability:
QOpenGLFunctions created with non-current context
(qt.qpa.wayland) Wayland does not support QWindow::requestActivate()
Post Reply