Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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
    

  • Moderators

    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.



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


Log in to reply