Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QFrame(this, Qt::Popup) freeze by settiing Breakpoint
Forum Updated to NodeBB v4.3 + New Features

QFrame(this, Qt::Popup) freeze by settiing Breakpoint

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 3 Posters 3.6k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    ckvsoft
    wrote on last edited by
    #1

    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 Bit

    It 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%)

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ckvsoft
      wrote on last edited by ckvsoft
      #2

      Ok, i do not have rights.
      Here is a Link to the Zip popuptest.zip

      1 Reply Last reply
      0
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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

        C 1 Reply Last reply
        0
        • mrjjM mrjj

          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

          C Offline
          C Offline
          ckvsoft
          wrote on last edited by ckvsoft
          #4

          @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.zip

          Th, i fixed the link ;-)
          http://service.ckvsoft.at/test/popuptest.zip

          1 Reply Last reply
          0
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            I tried to put break points in various places but
            nothing unusual happened.
            Both win 10, and Linux Mint

            I see nothing in the code that should be able to wreak havoc.

            Have you tried debugging other things ? it could be bad debugger somehow.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              ckvsoft
              wrote on last edited by
              #6

              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

              mrjjM 1 Reply Last reply
              0
              • C ckvsoft

                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

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @ckvsoft

                Hi
                Yes, i could get it to do freeze with some extra code after

                alt text

                Its either very bad to use a QFrame with Qt::Popup( cant see why) or some
                bug in gdb.

                1 Reply Last reply
                0
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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.

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    ckvsoft
                    wrote on last edited by ckvsoft
                    #9

                    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.

                    mrjjM 1 Reply Last reply
                    0
                    • C ckvsoft

                      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.

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by mrjj
                      #10

                      @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.

                      1 Reply Last reply
                      0
                      • C Offline
                        C Offline
                        ckvsoft
                        wrote on last edited by
                        #11

                        Ok. I think i must accept this issue :|
                        With lldb its the same

                        thx

                        jsulmJ 1 Reply Last reply
                        0
                        • C ckvsoft

                          Ok. I think i must accept this issue :|
                          With lldb its the same

                          thx

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @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

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          1

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved