Skip to content

ArgumentError (Invalid argument(s): argument value for 'return_value' is null) #242

@mugikhan

Description

@mugikhan

I am getting an error in the latest version of Flutter (3.22.2) and sqlite3 (2.4.2). When checking for all exceptions, it seems to throw this exception ArgumentError (Invalid argument(s): argument value for 'return_value' is null) when closing the database connection. It also seems to occur on any query in the sqlite3_step function. The exception is not thrown in Flutter 3.19.6.

Any idea why the exception might be thrown despite the operations succeeding?

  int sqlite3_step(
    ffi.Pointer<sqlite3_stmt> pStmt,
  ) {
    return _sqlite3_step(
      pStmt,
    );
  }

  int sqlite3_close_v2(
    ffi.Pointer<sqlite3> db,
  ) {
    return _sqlite3_close_v2(
      db,
    );
  }

Flutter info

[✓] Flutter (Channel stable, 3.22.2, on macOS 14.5 23F79 darwin-arm64, locale en-ZA)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions