Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML C++ crash when dialog window is getting opened on pressing button in QT Application.
Servers for Qt installer are currently down

QML C++ crash when dialog window is getting opened on pressing button in QT Application.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlc++
8 Posts 2 Posters 755 Views 1 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.
  • R Offline
    R Offline
    rahul233343
    wrote on 10 Nov 2020, 11:12 last edited by rahul233343 11 Oct 2020, 11:16
    #1

    Below is the stack trace

    This is not reproducible on every click on button

    This stack trace do not include call from my code. So, i am not sure about how to proceed this.

    I am using version Qt5.9.0. and gcc 5.4.0-6

    Thread 1 "testGui" received signal SIGSEGV, Segmentation fault.
    0x00007ffff6b2789c in QApplication::topLevelWidgets() () from /home/user1/code/Qt5.9.0/5.9/gcc_64/lib/libQt5Widgets.so.5
    (gdb) bt
    #0 0x00007ffff6b2789c in QApplication::topLevelWidgets() () from /home/user1/code/Qt5.9.0/5.9/gcc_64/lib/libQt5Widgets.so.5
    #1 0x00007ffff6b27b5d in ?? () from /home/user1/code/Qt5.9.0/5.9/gcc_64/lib/libQt5Widgets.so.5
    #2 0x00007ffff6b2af28 in QApplicationPrivate::notifyActiveWindowChange(QWindow*) ()
    from /home/user1/code/Qt5.9.0/5.9/gcc_64/lib/libQt5Widgets.so.5
    #3 0x00007ffff5c1bbc5 in QGuiApplicationPrivate::processActivatedEvent(QWindowSystemInterfacePrivate::ActivatedWindowEvent*) ()
    from /home/user1/code/Qt5.9.0/5.9/gcc_64/lib/libQt5Gui.so.5
    #4 0x00007ffff5c1be6d in QGuiApplicationPrivate::eprocessWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) ()
    from /home/user1/code/Qt5.9.0/5.9/gcc_64/lib/libQt5Gui.so.5
    #5 0x00007ffff5bf7d7b in QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag) ()
    from /home/user1/code/Qt5.9.0/5.9/gcc_64/lib/libQt5Gui.so.5
    #6 0x00007fffee7edfa0 in ?? () from /home/user1/code/Qt5.9.0/5.9/gcc_64/lib/libQt5XcbQpa.so.5
    #7 0x00007ffff184d197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #8 0x00007ffff184d3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #9 0x00007ffff184d49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
    #10 0x00007ffff655d93f in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) ()
    from /home/user1/code/Qt5.9.0/5.9/gcc_64/lib/libQt5Core.so.5
    #11 0x00007ffff650a5ea in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) ()
    from /home/user1/code/Qt5.9.0/5.9/gcc_64/lib/libQt5Core.so.5
    #12 0x00007ffff6512a44 in QCoreApplication::exec() () from /home/user1/code/Qt5.9.0/5.9/gcc_64/lib/libQt5Core.so.5
    #13 0x0000000000445db7 in main (argc=5, argv=0x7fffffffe578) at /home/user9/code/test/main.cpp:1154

    1 Reply Last reply
    0
    • R Offline
      R Offline
      rahul233343
      wrote on 18 Dec 2020, 07:37 last edited by
      #2

      please look into this.

      J 1 Reply Last reply 18 Dec 2020, 07:39
      0
      • R rahul233343
        18 Dec 2020, 07:37

        please look into this.

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 18 Dec 2020, 07:39 last edited by
        #3

        @rahul233343 Did you try with a more recent Qt version to see whether it also crashes?

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

        1 Reply Last reply
        0
        • R Offline
          R Offline
          rahul233343
          wrote on 18 Dec 2020, 08:00 last edited by rahul233343
          #4

          @jsulm no, i haven't try the new version.
          I am not getting where i put logs in my code.

          J 1 Reply Last reply 18 Dec 2020, 08:02
          0
          • R rahul233343
            18 Dec 2020, 08:00

            @jsulm no, i haven't try the new version.
            I am not getting where i put logs in my code.

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 18 Dec 2020, 08:02 last edited by
            #5

            @rahul233343 Can you show the code where you open that dialog?

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

            1 Reply Last reply
            0
            • R Offline
              R Offline
              rahul233343
              wrote on 18 Dec 2020, 08:12 last edited by
              #6

              @jsulm no i can't.
              But i can give the procedure when it happens.
              1 Suppose you are running two instance of same binary. And when you shift from one binary to another. the first one crash with above stack trace.

              2 When you click on the spinbox widget to edit the value, then also it crash.

              J 1 Reply Last reply 18 Dec 2020, 08:29
              0
              • R rahul233343
                18 Dec 2020, 08:12

                @jsulm no i can't.
                But i can give the procedure when it happens.
                1 Suppose you are running two instance of same binary. And when you shift from one binary to another. the first one crash with above stack trace.

                2 When you click on the spinbox widget to edit the value, then also it crash.

                J Offline
                J Offline
                jsulm
                Lifetime Qt Champion
                wrote on 18 Dec 2020, 08:29 last edited by
                #7

                @rahul233343 Sorry, without code and knowing what these binaries doI can't tell you why it crashes (and it is unlikely that anybody else can).

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

                R 1 Reply Last reply 24 Dec 2020, 04:15
                1
                • J jsulm
                  18 Dec 2020, 08:29

                  @rahul233343 Sorry, without code and knowing what these binaries doI can't tell you why it crashes (and it is unlikely that anybody else can).

                  R Offline
                  R Offline
                  rahul233343
                  wrote on 24 Dec 2020, 04:15 last edited by
                  #8

                  @jsulm

                  1. Can you elaborate top level widget seq fault. what it seems to be from the stack trace so that i dig up that area.
                  2. Do you think it is an memory issue?
                  1 Reply Last reply
                  0

                  • Login

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