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. Why sqlite causes a crash?Not every time and only occurs when opening the app directly in dmg downloaded from the Internet.
Qt 6.11 is out! See what's new in the release blog

Why sqlite causes a crash?Not every time and only occurs when opening the app directly in dmg downloaded from the Internet.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 385 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.
  • S Offline
    S Offline
    senmx
    wrote on last edited by senmx
    #1

    Why sqlite causes a crash? Not every time and only occurs when opening the app directly in dmg downloaded from the Internet.

    Thread 2 Crashed:: QThread
    0   org.qt-project.QtCore           0x000000010c99ec24 QtPrivate::QStringList_contains(QStringList const*, QString const&, Qt::CaseSensitivity) + 20
    1   org.qt-project.QtCore           0x000000010cac4310 QCoreApplication::libraryPathsLocked() + 1328
    2   org.qt-project.QtCore           0x000000010cac063b QCoreApplication::libraryPaths() + 43
    3   org.qt-project.QtCore           0x000000010caaf2c4 QFactoryLoader::update() + 36
    4   org.qt-project.QtCore           0x000000010cab0bb0 QFactoryLoader::QFactoryLoader(char const*, QString const&, Qt::CaseSensitivity) + 224
    5   org.qt-project.QtSql            0x000000010c89b76e 0x10c895000 + 26478
    6   org.qt-project.QtSql            0x000000010c89c074 0x10c895000 + 28788
    7   org.qt-project.QtSql            0x000000010c89b2ff QSqlDatabase::addDatabase(QString const&, QString const&) + 111
    8   a.b.------               	    0x000000010b75ca68 SQLiteManager::openDB() + 264
    9   a.b.------               	    0x000000010b75cbf8 SQLiteManager::init() + 104
    10  a.b.------                      0x000000010b75e8e8 Async::run() + 392
    11  org.qt-project.QtCore           0x000000010c8edba9 0x10c8cb000 + 142249
    12  libsystem_pthread.dylib         0x00007fff7b6bb661 _pthread_body + 340
    13  libsystem_pthread.dylib         0x00007fff7b6bb50d _pthread_start + 377
    14  libsystem_pthread.dylib         0x00007fff7b6babf9 thread_start + 13
    
    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      My guess is that it's trying to write SQLite database file but DMG is a read-only image so it fails. But it very well might be something different. The stack trace rather suggests some plugin loading issue.

      (Z(:^

      1 Reply Last reply
      2
      • S Offline
        S Offline
        senmx
        wrote on last edited by
        #3

        Thank you, my default directory for writing data is home, not the current directory.

        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