Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSqlTableModel::select crash
Forum Updated to NodeBB v4.3 + New Features

QSqlTableModel::select crash

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 393 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.
  • Q Offline
    Q Offline
    Qt.Jo.Ha
    wrote on last edited by
    #1

    Hello, My code crashes

    CallStack is This

    qsqlite.dll!columnName(sqlite3_stmt * pStmt, int N, const void ()(Mem *) xFunc, int useType)
    qsqlite.dll!QSQLiteResultPrivate::initColumns(bool emptyResultset)
    qsqlite.dll!QSQLiteResultPrivate::fetchNext(QVector<QVariant> & values, int idx, bool initialFetch)
    qsqlite.dll!QSQLiteResult::exec()
    Qt5Sql.dll!qInit(QSqlQuery * q, const QString & query, QSqlDatabase db)
    Qt5Sql.dll!QSqlQuery::QSqlQuery(const QString & query, QSqlDatabase db)
    Qt5Sql.dll!QSqlTableModel::select()

    I am not sure why the crash occurs. It cannot be reproduced, it is only recorded on the log.

    Please help me

    JonBJ 1 Reply Last reply
    0
    • Q Qt.Jo.Ha

      Hello, My code crashes

      CallStack is This

      qsqlite.dll!columnName(sqlite3_stmt * pStmt, int N, const void ()(Mem *) xFunc, int useType)
      qsqlite.dll!QSQLiteResultPrivate::initColumns(bool emptyResultset)
      qsqlite.dll!QSQLiteResultPrivate::fetchNext(QVector<QVariant> & values, int idx, bool initialFetch)
      qsqlite.dll!QSQLiteResult::exec()
      Qt5Sql.dll!qInit(QSqlQuery * q, const QString & query, QSqlDatabase db)
      Qt5Sql.dll!QSqlQuery::QSqlQuery(const QString & query, QSqlDatabase db)
      Qt5Sql.dll!QSqlTableModel::select()

      I am not sure why the crash occurs. It cannot be reproduced, it is only recorded on the log.

      Please help me

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @Qt-Jo-Ha
      Nobody can guess your line of code from this stack trace. Something wrong with a non-existent column name, or perhaps a bad query? You need to run your application under debugger to see your own call when it crashes, if you are unable to guess; otherwise look at all your QSqlTableModels' code.

      1 Reply Last reply
      1
      • Q Offline
        Q Offline
        Qt.Jo.Ha
        wrote on last edited by
        #3

        I really appreciate your response

        I am looking at the code in more detail

        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