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. F/libc : Fatal signal 11 (SIGSEGV) .... (qtMainLoopThrea)
Qt 6.11 is out! See what's new in the release blog

F/libc : Fatal signal 11 (SIGSEGV) .... (qtMainLoopThrea)

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 2.3k 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.
  • TuniDevT Offline
    TuniDevT Offline
    TuniDev
    wrote on last edited by
    #1

    By using Qt.quit() to exit from my Android Application, I got this error.

    I find the instruction who cause this error :
    dbCnx = QSqlDatabase::addDatabase(dbDriver);

    I try to close my database connexion by dbCnx.removeDatabase (dbDriver); before execute Qt.quit()
    ==> same error :: F/libc : Fatal signal 11 (SIGSEGV) .... (qtMainLoopThrea)

    If I disable my database connection, my application close properly.

    jsulmJ 1 Reply Last reply
    0
    • TuniDevT TuniDev

      By using Qt.quit() to exit from my Android Application, I got this error.

      I find the instruction who cause this error :
      dbCnx = QSqlDatabase::addDatabase(dbDriver);

      I try to close my database connexion by dbCnx.removeDatabase (dbDriver); before execute Qt.quit()
      ==> same error :: F/libc : Fatal signal 11 (SIGSEGV) .... (qtMainLoopThrea)

      If I disable my database connection, my application close properly.

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

      @TuniDev You should inspect the stack trace to see what exactly happens when your app crashes.

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

      1 Reply Last reply
      0
      • TuniDevT Offline
        TuniDevT Offline
        TuniDev
        wrote on last edited by
        #3

        I solved by closing my db connexion with this instruction :

        dbCnx.removeDatabase (dbCnx.connectionName ());

        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