argument value for 'return_value' is null

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      What happened?

      Realm operations will get ArgumentError exception in Flutter 3.22. The app does not crash in Profile/Release mode.

      This happens to both Android and iOS.

      This does not happen if we downgrade to Flutter 3.19.

      argument value for 'return_value' is null
      RealmLibrary.realm_scheduler_perform_work (d:\Users\zeezee\AppData\Local\Pub\Cache\hosted\pub.dev\realm_dart-2.2.1\lib\src\native\realm_bindings.dart:8685)
      _RealmCore.invokeScheduler (d:\Users\zeezee\AppData\Local\Pub\Cache\hosted\pub.dev\realm_dart-2.2.1\lib\src\native\realm_core.dart:654)
      new Scheduler._.<anonymous closure> (d:\Users\zeezee\AppData\Local\Pub\Cache\hosted\pub.dev\realm_dart-2.2.1\lib\src\scheduler.dart:32)
      _RawReceivePort._handleMessage (d:\Users\zeezee\fvm\versions\3.22.0\bin\cache\pkg\sky_engine\lib\_internal\vm\lib\isolate_patch.dart:184)
      

      Repro steps

      1. Update app to Flutter 3.22
      2. Run the app in debug mode (make sure "Uncaught Exceptions" is checked)
      3. The exception will be thrown whenever any Realm operations takes place

      Version

      3.22

      What Atlas Services are you using?

      Local Database only

      What type of application is this?

      Flutter Application

      Client OS and version

      Windows 11 and macOS Sonoma 14.1.1

      Code snippets

      No response

      Stacktrace of the exception/crash you're getting

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      argument value for 'return_value' is null
      RealmLibrary.realm_scheduler_perform_work (d:\Users\zeezee\AppData\Local\Pub\Cache\hosted\pub.dev\realm_dart-2.2.1\lib\src\native\realm_bindings.dart:8685)
      _RealmCore.invokeScheduler (d:\Users\zeezee\AppData\Local\Pub\Cache\hosted\pub.dev\realm_dart-2.2.1\lib\src\native\realm_core.dart:654)
      new Scheduler._.<anonymous closure> (d:\Users\zeezee\AppData\Local\Pub\Cache\hosted\pub.dev\realm_dart-2.2.1\lib\src\scheduler.dart:32)
      _RawReceivePort._handleMessage (d:\Users\zeezee\fvm\versions\3.22.0\bin\cache\pkg\sky_engine\lib\_internal\vm\lib\isolate_patch.dart:184)
      

      Relevant log output

      No response

              Assignee:
              Kasper Nielsen (Inactive)
              Reporter:
              Unito Sync Bot
              Archiver:
              Marc Greenfield

                Created:
                Updated:
                Archived: