Unsolved QFrame(this, Qt::Popup) freeze by settiing Breakpoint
-
Hallo
I'm using a QFrame for my Popup Menu. When i set a breakpoint while Debugging it will freeze my Desktop. I can do kill -9 ...
QT5.1 up to QT5.9
Linux Ubuntu 16.04 32/64 BitIt freeze only while debugging, without breakpoint and in release it works fine.
see code in attached zip.
Can you see why?lg Chris
[0_1511607164904_popuptest.zip](Uploading 100%) -
Ok, i do not have rights.
Here is a Link to the Zip popuptest.zip -
Hi
Sadly link is not working.
https://forum.qt.io/topic/85373/qframe-this-qt-popup-freeze-by-settiing-breakpoint/service.ckvsoft.at/test/popuptest.zip -
@mrjj said in QFrame(this, Qt::Popup) freeze by settiing Breakpoint:
Hi
Sadly link is not working.
https://forum.qt.io/topic/85373/qframe-this-qt-popup-freeze-by-settiing-breakpoint/service.ckvsoft.at/test/popuptest.zipTh, i fixed the link ;-)
http://service.ckvsoft.at/test/popuptest.zip -
Hi
I tried to put break points in various places but
nothing unusual happened.
Both win 10, and Linux MintI see nothing in the code that should be able to wreak havoc.
Have you tried debugging other things ? it could be bad debugger somehow.
-
Hi
I'm use qdb: GNU Debugger.
Its with all Qt5 versions . When i set the Braekpoint Anywhere without using a Button it works. When i set the breakpoint by m_menu->show or any code after it hangs.I can not Test it in Windows . But ubuntu 16.04 up to 17.10 Fresh Installation. Allwys the same.
When i do Away the windowflag its ok. But not the Style.
The Code is only a snipped but it freeze or block.
LG chris
-
Hi
Yes, i could get it to do freeze with some extra code afterIts either very bad to use a QFrame with Qt::Popup( cant see why) or some
bug in gdb. -
Hi
it seems to happen only with Qt::popup.
Docs says its means modal so using show() with is maybe the culprit.
Also also happens with QWidget so its not due to QFrame alone.But its crazy it kills whole desktop. I have to kill creator from other console.
So it looks like something that tried to go modal but it goes pretty wrong when using the debugger.
-
Hi
Its not only with qframe. Also its freeze with qwidget.Thx. Ill try an other debugger. Tomorrow or late Today.
Yes. You can kill the running code.
-
@ckvsoft
its seems only to happen when using Qt::popup alone.If using other flags and say framelesswindowshint , it works.
I doubt changing debugger will do anything.
Hmm. i cant get it to kill desktop in windows so maybe it is gdb related.
-
Ok. I think i must accept this issue :|
With lldb its the samethx
-
@ckvsoft said in QFrame(this, Qt::Popup) freeze by settiing Breakpoint:
I think i must accept this issue :|
No, you can file a bug here: https://bugreports.qt.io/secure/Dashboard.jspa
Or here for QtCreator: https://bugreports.qt.io/projects/QTCREATORBUG/summary