Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Segmentation fault in qqmltypewrapper.cpp after upgrading to Qt 5.10
Forum Update on Monday, May 27th 2025

Segmentation fault in qqmltypewrapper.cpp after upgrading to Qt 5.10

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 318 Views
  • 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.
  • M Offline
    M Offline
    Mike E
    wrote on last edited by
    #1

    We have code which has been running on our systems using Qt 5.4.3 on an ARM processor for several years. We now need to upgrade to Qt5.10 and the same software compiled on the new toolchain generates segmentation fault errors within the qt libraries. The qt libraries and toolchain are built from yocto. The segmentation error occurs within qqmltypewrapper.cpp.

    The crash occurs consistently with the same course of user interaction and seems to come immediately after a stackView.push command, which loads a sequence of qml files. Oddly, exactly the same code runs fine once, but crashes the second time it's run.

    Can anyone guide me how to find what's causing a crash within qt libraries?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      debian
      wrote on last edited by
      #2

      You can use gdb-server debug at host or you can load core-file to gdb.

      M 1 Reply Last reply
      1
      • D debian

        You can use gdb-server debug at host or you can load core-file to gdb.

        M Offline
        M Offline
        Mike E
        wrote on last edited by
        #3

        @debian I can run gdb, but that only tells me where in the Qt libraries it's crashing. It doesn't show what it is in the qml code that Qt doesn't like.

        JonBJ 1 Reply Last reply
        0
        • M Mike E

          @debian I can run gdb, but that only tells me where in the Qt libraries it's crashing. It doesn't show what it is in the qml code that Qt doesn't like.

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by
          #4

          @Mike-E True, but does the stack trace give you any clue at all?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mike E
            wrote on last edited by
            #5

            The stack trace leads back thrugh 40 calls within the Qt libraries to the CGuiApplication::exec() command which starts the qml application engine. I assume the problem must be in the qml code which the engine loads, but the stack trace doesn't show where. I can narrow down the qml files which are loaded when the crash occurs, but there is a lot of qml code and a lot of links back to properties and data objects in the C++ code, so identifying the source is like a needle in a haystack. Surely if there's a fault in the qml code, Qt should generate a fault, not just crash? I tried to attach a screenshot below showing the location of the crash and the call stack.

            ![alt text](/home/mike/Pictures/Screenshot from 2022-05-20 10-50-43.png)

            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