crash in VSGQt #1614
Replies: 2 comments 2 replies
-
|
i use of qt 6.7.0 and 6.7.2 |
Beta Was this translation helpful? Give feedback.
-
|
No one else has reported vsgQt/Qt suddenly stopping working. Something must have changed on your system, a driver, VSG, Qt update? I have just tried VSG, vsgXchange, vsgQt master and ran vsgqtviewer, vsgqtmdi and vsgqtwindows and all 3 run correctly. I tried building against both Qt5 ( 5.15.13) and Qt6 (6.4.2) on Kubuntu 22.04 system and saw no differences in behavior in the vsgqt examples. To configure the build with Qt5 and Qt6 respectively I used the QT_PACKAGE_NAME cmake var: cmake . -DQT_PACKAGE_NAME=Qt5
make
vsgqtviewer models/teapot.vsgt
vsgqtwindows models/lz.vsgt
vsgqtmdi models/openstreetmap.vsgt
cmake . -DQT_PACKAGE_NAME=Qt6
make
vsgqtviewer models/teapot.vsgt
vsgqtwindows models/lz.vsgt
vsgqtmdi models/openstreetmap.vsgtI have a Geforce 2060 and NVidia drivers installed. As I can't reproduce any issues I can't do anything more at my end. I'm not a Qt/user developer so don't have a deep under understanding of the ins and outs of Qt so will likely have to defer to others to help you further. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project where I'm using VSGQt, and everything was working fine until a few days ago. Today, when I tried to run it again, the application suddenly started crashing.
After debugging, I traced the issue to this section of code:
The crash happens specifically when I try to create a QWidget from the VSG window:
QWidget *widget = QWidget::createWindowContainer(window, this);After more investigation, I found that the crash actually happens earlier, when calling:
window->initializeWindow();Inside
initializeWindow(), this section is executed:On my system, this line is executed:
And that’s exactly what causes the crash.
If I comment out this line, the test version of the app runs without crashing (but of course nothing is rendered).
However, in my main project, the program freezes at:
inside
initializeWindow().What’s strange is that this exact code worked perfectly until 3 days ago, and I haven’t changed anything in the project. Now suddenly it crashes or freezes.
Please help me figure out what is causing this and how to fix it.
callstack
Beta Was this translation helpful? Give feedback.
All reactions