flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

🐛 [firebase_database] No implementation found for method cancel

Open deepak786 opened this issue 2 years ago • 33 comments

Firebase Crashlytics shows non-fatal issue

Non-fatal Exception: FlutterError
MissingPluginException(No implementation found for method cancel on channel clients/123456/-MSgn_H8m8_-IV05zNnC-[DEFAULT]-null-DatabaseEventType.value-[]#1). Error thrown Instance of 'faa'.

Non-fatal Exception: FlutterError
0  ???                            0x0 (null).    #00 abs 0 _kDartIsolateSnapshotInstructions+0x670cb
1  ???                            0x0 (null).    #01 abs 0 _kDartIsolateSnapshotInstructions+0x1f933b
Non-fatal Exception: FlutterError
MissingPluginException(No implementation found for method cancel on channel appointments/123456-[DEFAULT]-null-DatabaseEventType.value-[{type: orderBy, name: orderByChild, path: type_date}, {type: cursor, name: startAt, value: 0_}, {type: cursor, name: endAt, value: 0_202201042359}, {type: limit, name: limitToLast, limit: 1}]#1). Error thrown while de-activating platform stream on channel appointments/123456-[DEFAULT]-null-DatabaseEventType.value-[{type: orderBy, name: orderByChild, path: type_date}, {type: cursor, name: startAt, value: 0_}, {type: cursor, name: endAt, value: 0_202201042359}, {type: limit, name: limitToLast, limit: 1}]#1.

Non-fatal Exception: FlutterError
0  ???                            0x0 MethodChannel._invokeMethod + 165 (platform_channel.dart:165)
1  ???                            0x0 EventChannel.receiveBroadcastStream.<fn> + 518 (platform_channel.dart:518)

I don't know the steps to reproduce this issue.

deepak786 avatar Jan 05 '22 16:01 deepak786

I think this issue is similar to https://github.com/FirebaseExtended/flutterfire/issues/7618

deepak786 avatar Jan 05 '22 17:01 deepak786

@deepak786 Can you provide the entire crash log ? Also is there a way for you to symbolicate the log that'll be helpful to debug further, otherwise it would be a bit tough to verify the issue.

darshankawar avatar Jan 06 '22 11:01 darshankawar

@darshankawar Crashlytics shows only the above crash logs. There are no other logs.

In the above one crash log is from the released build and the other is from debugging build. I have also created a reproducible sample about the same https://github.com/FirebaseExtended/flutterfire/issues/7556#issuecomment-1006927425

deepak786 avatar Jan 10 '22 12:01 deepak786

Labeling it for further input from the team.

darshankawar avatar Jan 11 '22 11:01 darshankawar

@deepak786 just to be clear, is this happening on all platforms?

russellwheatley avatar Jan 11 '22 12:01 russellwheatley

@russellwheatley yes, it's happening on both android and ios. I haven't tested it on the web.

deepak786 avatar Jan 11 '22 12:01 deepak786

There is also another exception:

======== Exception caught by services library ======================================================
The following PlatformException was thrown while de-activating platform stream on channel clients/123456/-Mtbh5BnpmZzAmSr-EgZ-[DEFAULT]-null-DatabaseEventType.value-[]#3:
PlatformException(error, No active stream to cancel, null, null)
When the exception was thrown, this was the stack: 
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)
<asynchronous suspension>
#2      EventChannel.receiveBroadcastStream.<anonymous closure> (package:flutter/src/services/platform_channel.dart:518:9)
<asynchronous suspension>
====================================================================================================

With PR #7859, the above exception is also resolved.

deepak786 avatar Jan 17 '22 11:01 deepak786

I am having the same issue, apparently it is not yet fixed, I am using the latest firebase plugins, but still having random crashes. there is no reliable way to reproduce the issue.

sdk: '>=2.12.0 <3.0.0'

firebase_core: ^1.12.0 firebase_auth: ^3.3.6 firebase_database: ^9.0.6 firebase_storage: ^10.2.6 firebase_remote_config: ^2.0.0 firebase_analytics: ^9.1.0 firebase_crashlytics: ^2.5.0 firebase_app_check: ^0.0.6+5

======== Exception caught by services library ====================================================== The following MissingPluginException was thrown while de-activating platform stream on channel elements/German/tables/-MV_kxHs0GdvgoEWXK1--[DEFAULT]-null-DatabaseEventType.value-[]#35: MissingPluginException(No implementation found for method cancel on channel elements/German/tables/-MV_kxHs0GdvgoEWXK1--[DEFAULT]-null-DatabaseEventType.value-[]#35)

When the exception was thrown, this was the stack: #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175:7) #1 EventChannel.receiveBroadcastStream. (package:flutter/src/services/platform_channel.dart:528:9)

AlaaCherbib avatar Feb 03 '22 20:02 AlaaCherbib

Getting the same with firebase_performance:

No implementation found for method Trace#stop on channel plugins.flutter.io/firebase_performance
MissingPluginException (MissingPluginException(No implementation found for method Trace#stop on channel plugins.flutter.io/firebase_performance))

Any which version this issue was introduced in?

dsgriffin avatar Feb 10 '22 09:02 dsgriffin

@russellwheatley Still has the same issue. The Crashlytics shows the exception with firebase_database: 9.0.6

Non-fatal Exception: FlutterError
MissingPluginException(No implementation found for method cancel on channel jobs/123456/-MurQCirGd7FZcXCLvSL-[DEFAULT]-null-DatabaseEventType.value-[]#8). Error thrown Instance of 'Waa'.

Non-fatal Exception: FlutterError
0  ???                            0x0 (null).    #00 abs 0 _kDartIsolateSnapshotInstructions+0x68573
1  ???                            0x0 (null).    #01 abs 0 _kDartIsolateSnapshotInstructions+0x2d57c7

The above exception is from iOS.

Device
Model:iPhone 7
Orientation: Portrait
RAM free: 0 B
Disk free: 0 B

Operating System
Version:15.2.1
Orientation: Portrait
Jailbroken:No

deepak786 avatar Feb 11 '22 14:02 deepak786

Hey @deepak786, thanks for the report. Out of curiosity, does your app use firebase_database in any further isolates (i.e. other than the main isolate)?

russellwheatley avatar Feb 15 '22 10:02 russellwheatley

@russellwheatley no

deepak786 avatar Feb 15 '22 12:02 deepak786

@deepak786 Is the previous reproducible sample still able to reliably produce this bug?

russellwheatley avatar Feb 15 '22 13:02 russellwheatley

@russellwheatley no. I don't have the reproducible steps now. This issue just appeared in Crashlytics again.

deepak786 avatar Feb 15 '22 13:02 deepak786

@deepak786 Ok, if you are able to provide a reproducible sample, please post here and I'll be happy to look into it.

russellwheatley avatar Feb 15 '22 13:02 russellwheatley

sure

deepak786 avatar Feb 15 '22 13:02 deepak786

@russellwheatley please check the similar issue https://github.com/FirebaseExtended/flutterfire/issues/8015

deepak786 avatar Feb 21 '22 14:02 deepak786

Hey @deepak786. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Mar 03 '22 02:03 google-oss-bot

Facing the same issue.

MissingPluginException(No implementation found for method cancel on channel state-[DEFAULT]-null-DatabaseEventType.childChanged-[]#4)

hm122 avatar Mar 04 '22 18:03 hm122

Hey @deepak786. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Mar 15 '22 01:03 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@deepak786 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Mar 24 '22 01:03 google-oss-bot

The issue is not fixed yet.

deepak786 avatar Mar 24 '22 17:03 deepak786

@deepak786 - if you have a repro, that would be great! Thanks.

russellwheatley avatar Mar 24 '22 17:03 russellwheatley

Also still facing the issue. I have around 5% of users facing this issue.

hm122 avatar Mar 24 '22 19:03 hm122

Since there haven't been any recent updates here, I am going to close this issue.

@deepak786 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Mar 25 '22 01:03 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@deepak786 if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Mar 28 '22 01:03 google-oss-bot

is this issue fixed yet ?

anilthapa1939 avatar Apr 15 '22 05:04 anilthapa1939

Reopening this issue based on above couple of comments and also per this recent issue reported to reopen this as OP of that issue intermittently facing the same error as originally reported here.

There doesn't seem to be a concrete reproducible code sample to properly claim that issue is consistent.

/cc @russellwheatley

darshankawar avatar Jun 09 '22 09:06 darshankawar

I ran into this issue today on firebase_database: 9.0.18

BWhiteApps avatar Jul 12 '22 23:07 BWhiteApps

also on 9.0.19 - 9.0.20

robindijkhof avatar Jul 18 '22 13:07 robindijkhof