You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this issue was reported a few times here already, but they all were closed for lack of reproduction and I managed to write a reproduction project.
I'm not entirely sure about what triggers this, but by copying a repository class from another project that has this issue and keeping the bare minimum, I managed to reproduce this bug consistently. It can happen when both opening and closing database streams.
This bug only happens with firebase_database >=12.1.0. I tested the project with 12.0.4 and it's working properly.
Reproducing the issue
Run the reproduction project
Wait for it to sign in automatically
Keep clicking the "initialize" button until it crashes (can take from 1 to 8 clicks, but it's pretty quick)
The error will be printed to console and displayed in the on-screen label.
D/FirebaseDatabase(21522): 🔍 Kotlin: Setting up query observe for path=debug/system/node
D/FirebaseDatabase(21522): 🔍 Kotlin: Setting up query observe for path=debug/system/node
I/flutter (21522): ══╡ EXCEPTION CAUGHT BY SERVICES LIBRARY ╞══════════════════════════════════════════════════════════
I/flutter (21522): The following MissingPluginException was thrown while de-activating platform stream on channel
I/flutter (21522): firebase_database_query_1778091375886_594583590:
I/flutter (21522): MissingPluginException(No implementation found for method cancel on channel
I/flutter (21522): firebase_database_query_1778091375886_594583590)
I/flutter (21522):
I/flutter (21522): When the exception was thrown, this was the stack:
I/flutter (21522): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:364:7)
I/flutter (21522): <asynchronous suspension>
I/flutter (21522): #1 EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:726:11)
I/flutter (21522): <asynchronous suspension>
I/flutter (21522): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (21522): Another exception was thrown: MissingPluginException(No implementation found for method cancel on channel firebase_database_query_1778091375886_594583590)
Is there an existing issue for this?
Which plugins are affected?
Database
Which platforms are affected?
Android
Description
I know this issue was reported a few times here already, but they all were closed for lack of reproduction and I managed to write a reproduction project.
I'm not entirely sure about what triggers this, but by copying a repository class from another project that has this issue and keeping the bare minimum, I managed to reproduce this bug consistently. It can happen when both opening and closing database streams.
This bug only happens with firebase_database >=12.1.0. I tested the project with 12.0.4 and it's working properly.
Reproducing the issue
The error will be printed to console and displayed in the on-screen label.
rtdb_crash.zip
rtdb_crash.mp4
Firebase Core version
4.7.0
Flutter Version
3.41.4
Relevant Log Output
Flutter dependencies
Expand
Flutter dependenciessnippetAdditional context and comments
No response