Closed
Description
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
Remote Config
Which platforms are affected?
Web
Description
I compiled an app to Wasm, but it crashes upon launch. I think, this is related to Firebase Remote Config (as this issue is similar to #12623) , but frankly, I'm a bit lost how to drill down the problem further, as switching to the latest master flutter version only helped for the issue mentioned in #12623 and then this one appears.
Reproducing the issue
I was able to reproduce it with the example app from firebase remote config.
the error appears as soon as i hit the "fetch activate" button.
Firebase Core version
2.31.1
Flutter Version
3.22.0-43.0.pre.9
Relevant Log Output
main.dart.wasm:0x24003a Uncaught RuntimeError: unreachable
at RemoteConfig.fetchAndActivate closure at file:///Users/name/.pub-cache/hosted/pub.dev/firebase_remote_config_web-1.6.6/lib/src/interop/firebase_remote_config.dart:104:13 (main.dart.wasm:0x24003a)
at closure wrapper at file:///Users/name/.pub-cache/hosted/pub.dev/firebase_remote_config_web-1.6.6/lib/src/interop/firebase_remote_config.dart:104:13 trampoline (main.dart.wasm:0x24012c)
at _RootZone.runUnary (main.dart.wasm:0x1de293)
at _Future._propagateToListeners (main.dart.wasm:0x1dde01)
at _Future._completeWithValue (main.dart.wasm:0x1dda00)
at _Future._asyncCompleteWithValue closure at org-dartlang-sdk:///dart-sdk/lib/async/future_impl.dart:735:29 (main.dart.wasm:0x1dd9ab)
at closure wrapper at org-dartlang-sdk:///dart-sdk/lib/async/future_impl.dart:735:29 trampoline (main.dart.wasm:0x1dd9d6)
at _startMicrotaskLoop (main.dart.wasm:0x1de7a6)
at _startMicrotaskLoop tear-off trampoline (main.dart.wasm:0x1de810)
at _invokeCallback (main.dart.wasm:0x1d8515)
Flutter dependencies
Expand Flutter dependencies
snippet
firebase_core: ^2.31.1
firebase_remote_config: ^4.4.6
Additional context and comments
that could be the function where the error occours:
(func $RemoteConfig.fetchAndActivate closure at file:///Users/user/.pub-cache/hosted/pub.dev/firebase_remote_config_web-1.6.6/lib/src/interop/firebase_remote_config.dart:104:13 (;5605;) (param $var0 (ref null $JSArrayBufferImpl_134))
block $label0 (result (ref $JSArrayBufferImpl_134))
local.get $var0
br_on_non_null $label0
call $StackTrace.current
call $_TypeError._throwNullCheckError
unreachable
end $label0
drop
unreachable
)