-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoSuchMethodError: The method 'onActionConfirmed' was called on null. #38
Comments
Ok. I found the problem. |
... Can you share what's the reason? I met the same issue. |
@jhomlala Hey could you look at this issue? I have to modify the codes:
to
to continue the work. |
Hi @rockingdice ! Can you provide example app with this bug? I think that your idea to solve this problem may be only temp fix for some deep bug. I would prefer debug it more deeply to understand the root of the problem. Please provide example app. Thank you. |
When I encountered this problem, I created a manual error for the test. The reason I received an error was because I wrote this before the "return MaterialApp" line of the error I created. This problem was corrected when we moved the error test to another location. |
I agree that fix is a temp solution. I'm pretty sure that the exception is thrown during the initialization of Catcher (my situation is building the App). I'll see if I can make a repro when I'm free. |
I also have similar error from time to time: Error:
Stack trace:
catcher version: I think it is also related to manually reported error: |
This error seems to be connected with your Catcher configuration. Did you tried to use Catcher before it was initalized? This error stack trace shows that there was no report handler configured. This may happend once you use Catcher.reportCheckedError before Catcher setup. |
I think it is not the problem with configuration. I have something like that:
and the call is much later. The problem occurs when my internet connection is very poor. First I'm getting |
I'm using a slack handler. Normal error message comes with such an error. What could be the reason?
Error:
NoSuchMethodError: The method 'onActionConfirmed' was called on null.
Receiver: null
Tried calling: onActionConfirmed(Instance of 'Report')
Stack trace:
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:50:5)
#1 ReportMode.onActionConfirmed (package:catcher/model/report_mode.dart:19:23)
#2 SilentReportMode.requestAction (package:catcher/mode/silent_report_mode.dart:9:11)
#3 Catcher._reportError (package:catcher/core/catcher.dart:294:18)
#4 Catcher.reportCheckedError (package:catcher/core/catcher.dart:271:15)
#5 DijitalBasinApp.build (package:dijital_basin_app/main.dart:67:15)
#6 StatelessElement.build (package:flutter/src/widgets/framework.dart:3974:28)
#7 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3924:15)
#8 Element.rebuild (package:flutter/src/widgets/framework.dart:3721:5)
#9 ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:3907:5)
#10 ComponentElement.mount (package:flutter/src/widgets/framework.dart:3902:5)
#11 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3084:14)
#12 Element.updateChild (package:flutter/src/widgets/framework.dart:2887:12)
#13 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:939:16)
#14 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:910:5)
#15 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:856:17)
#16 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2320:19)
#17 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:855:13)
#18 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&SemanticsBinding&RendererBinding&WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:736:7)
#19 runApp (package:flutter/src/widgets/binding.dart:786:7)
#20 Catcher._setupErrorHooks. (package:catcher/core/catcher.dart:129:7)
#21 _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:49:6)
#22 Catcher._setupErrorHooks. (package:catcher/core/catcher.dart:128:14)
#23 _rootRun (dart:async/zone.dart:1124:13)
#24 _CustomZone.run (dart:async/zone.dart:1021:19)
#25 _runZoned (dart:async/zone.dart:1516:10)
#26 runZoned (dart:async/zone.dart:1500:12)
#27 Catcher._setupErrorHooks (package:catcher/core/catcher.dart:128:5)
#28 Catcher._configure (package:catcher/core/catcher.dart:55:5)
#29 new Catcher (package:catcher/core/catcher.dart:48:5)
#30 main (package:dijital_basin_app/main.dart:54:3)
#31 _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:49:6)
#32 main (package:dijital_basin_app/main.dart:21:12)
#33 _runMainZoned.. (dart:ui/hooks.dart:216:25)
#34 _rootRun (dart:async/zone.dart:1124:13)
#35 _CustomZone.run (dart:async/zone.dart:1021:19)
#36 _runZoned (dart:async/zone.dart:1516:10)
#37 runZoned (dart:async/zone.dart:1500:12)
#38 _runMainZoned. (dart:ui/hooks.dart:208:5)
#39 _startIsolate. (dart:isolate-patch/isolate_patch.dart:301:19)
#40 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
The text was updated successfully, but these errors were encountered: