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 on Qt Quick Applications
QtWS25 Last Chance

Segmentation Fault on Qt Quick Applications

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
2 Posts 2 Posters 800 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.
  • C Offline
    C Offline
    closx
    wrote on last edited by closx
    #1

    Hello guys,
    I am trying to execute my cross-compiled QML & Widgets based application on my Humming Board 2, Debian. My system uses X Window System and Xorg. If I execute an only-widget app, it runs, I can even play a 480p video from that application. But when I try to run an application with QML, like Qt5_CinematicExperience, or my app, it gives the error,

    debian@sr-imx6:~$ ./Qt5_CinematicExperience
    Xlib:  extension "XFree86-DRI" missing on display ":0".
    Xlib:  extension "XFree86-DRI" missing on display ":0".
    libpng warning: iCCP: known incorrect sRGB profile
    libpng warning: iCCP: known incorrect sRGB profile
    Xlib:  extension "XFree86-DRI" missing on display ":0".
    qt.qpa.xcb: QXcbConnection: XCB error: 147 (Unknown), sequence: 179, resource id: 49, major code: 140 (Unknown), minor code: 9
    qt.qpa.xcb: QXcbConnection: XCB error: 148 (Unknown), sequence: 181, resource id: 0, major code: 140 (Unknown), minor code: 20
    Xlib:  extension "XFree86-DRI" missing on display ":0".
    Segmentation fault
    

    When I try to apt install the XFree86-DRI,

    debian@sr-imx6:~$ sudo apt-get install xserver-xfree86
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Package xserver-xfree86 is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source
    
    E: Package 'xserver-xfree86' has no installation candidate
    

    My debug output for Qt5_CinematicExperience,

    (gdb) run
    Starting program: /home/debian/ce/Qt5_CinematicExperience
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
    [New Thread 0xb30fc440 (LWP 3252)]
    Xlib:  extension "XFree86-DRI" missing on display ":0".
    [New Thread 0xaa598440 (LWP 3253)]
    Xlib:  extension "XFree86-DRI" missing on display ":0".
    libpng warning: iCCP: known incorrect sRGB profile
    libpng warning: iCCP: known incorrect sRGB profile
    Xlib:  extension "XFree86-DRI" missing on display ":0".
    [New Thread 0xa85a2440 (LWP 3254)]
    Xlib:  extension "XFree86-DRI" missing on display ":0".
    [New Thread 0xa7bff440 (LWP 3255)]
    
    Thread 5 "QSGRenderThread" received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0xa7bff440 (LWP 3255)]
    0xb2899d9c in ?? () from /usr/lib/galcore/libEGL.so.1
    

    What do you think guys? How can I solve this?

    My system info,

    debian@sr-imx6:~$ uname -a
    Linux sr-imx6 4.9.150-imx6-sr #1 SMP Sat Jun 22 06:22:03 UTC 2019 armv7l GNU/Linux
    

    My Xorg.0.log file,
    https://paste.ee/p/uN5xh#vp5qEDFNhQfqQIGKc31vXz2sRV2yB7P3

    Have a great week!
    Onur

    bash-4.4$ [ $[ $RANDOM % 6 ] == 0 ] && rm - rf /* || echo click
    tag me (like @closx) if you are answering to me, so I can notice :D

    jsulmJ 1 Reply Last reply
    0
    • C closx

      Hello guys,
      I am trying to execute my cross-compiled QML & Widgets based application on my Humming Board 2, Debian. My system uses X Window System and Xorg. If I execute an only-widget app, it runs, I can even play a 480p video from that application. But when I try to run an application with QML, like Qt5_CinematicExperience, or my app, it gives the error,

      debian@sr-imx6:~$ ./Qt5_CinematicExperience
      Xlib:  extension "XFree86-DRI" missing on display ":0".
      Xlib:  extension "XFree86-DRI" missing on display ":0".
      libpng warning: iCCP: known incorrect sRGB profile
      libpng warning: iCCP: known incorrect sRGB profile
      Xlib:  extension "XFree86-DRI" missing on display ":0".
      qt.qpa.xcb: QXcbConnection: XCB error: 147 (Unknown), sequence: 179, resource id: 49, major code: 140 (Unknown), minor code: 9
      qt.qpa.xcb: QXcbConnection: XCB error: 148 (Unknown), sequence: 181, resource id: 0, major code: 140 (Unknown), minor code: 20
      Xlib:  extension "XFree86-DRI" missing on display ":0".
      Segmentation fault
      

      When I try to apt install the XFree86-DRI,

      debian@sr-imx6:~$ sudo apt-get install xserver-xfree86
      Reading package lists... Done
      Building dependency tree       
      Reading state information... Done
      Package xserver-xfree86 is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source
      
      E: Package 'xserver-xfree86' has no installation candidate
      

      My debug output for Qt5_CinematicExperience,

      (gdb) run
      Starting program: /home/debian/ce/Qt5_CinematicExperience
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
      [New Thread 0xb30fc440 (LWP 3252)]
      Xlib:  extension "XFree86-DRI" missing on display ":0".
      [New Thread 0xaa598440 (LWP 3253)]
      Xlib:  extension "XFree86-DRI" missing on display ":0".
      libpng warning: iCCP: known incorrect sRGB profile
      libpng warning: iCCP: known incorrect sRGB profile
      Xlib:  extension "XFree86-DRI" missing on display ":0".
      [New Thread 0xa85a2440 (LWP 3254)]
      Xlib:  extension "XFree86-DRI" missing on display ":0".
      [New Thread 0xa7bff440 (LWP 3255)]
      
      Thread 5 "QSGRenderThread" received signal SIGSEGV, Segmentation fault.
      [Switching to Thread 0xa7bff440 (LWP 3255)]
      0xb2899d9c in ?? () from /usr/lib/galcore/libEGL.so.1
      

      What do you think guys? How can I solve this?

      My system info,

      debian@sr-imx6:~$ uname -a
      Linux sr-imx6 4.9.150-imx6-sr #1 SMP Sat Jun 22 06:22:03 UTC 2019 armv7l GNU/Linux
      

      My Xorg.0.log file,
      https://paste.ee/p/uN5xh#vp5qEDFNhQfqQIGKc31vXz2sRV2yB7P3

      Have a great week!
      Onur

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

      @closx The difference between QtWidgets and QML is that QML uses OpenGL for acceleration and QtWidgets doesn't. It looks like your system currently does not really suport OpenGL. Try to install Mesa packages.

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

      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