Skip to content

Dart error: Object.noSuchMethod (dart:core-patch/object_patch.dart:51)  #261

Closed
@thebf

Description

@thebf

Output:

hover: Using engine from cache
hover: Cleaning the build directory
hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter.
hover: ⚠     It's advised to use the beta channel. ($ flutter channel beta)
hover: Bundling flutter app
hover: Upgrade 'go-flutter' to the latest release
go: finding github.com/go-gl/gl latest
go: finding github.com/go-gl/glfw latest
hover: 'go-flutter' is on version: v0.29.3-0.20190907120750-38ae8aa36334
hover: Compiling 'go-flutter' and plugins
hover: build finished, starting app...
hover: Running Bamboo in debug mode
go-flutter: calculated pixelRatio limited to a minimum of 1.0. metrics: {"dpi":94.14671814671813,"monitorWidthMm":518,"monitorWidthSc":1920,"mscpi":94.14671814671813,"pixelRatio":0.5884169884169883,"ppsc":1,"windowWidthPx":1280,"windowWidthSc":1280}
flutter: Observatory listening on http://127.0.0.1:50300/XX3zks5b0NA=/
go-flutter: no handler found for channel flutter/isolate
[ERROR:c:\b\s\w\ir\k\src\flutter\lib\ui\ui_dart_state.cc(148)] Unhandled Exception: NoSuchMethodError: The method 'subscribe' was called on null.
Receiver: null
Tried calling: subscribe(Instance of 'RootPageController')
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1      new RootPageController (package:Bamboo/presentation/root_page.dart:98:54)
#2      new App (package:Bamboo/main.dart:110:46)
#3      main (package:Bamboo/main_desktop.dart:9:10)
#4      _runMainZoned.<anonymous closure>.<anonymous closure> (dart:ui/hooks.dart:229:25)
#5      _rootRun (dart:async/zone.dart:1124:13)
#6      _CustomZone.run (dart:async/zone.dart:1021:19)
#7      _runZoned (dart:async/zone.dart:1516:10)
#8      runZoned (dart:async/zone.dart:1500:12)
#9      _runMainZoned.<anonymous closure> (dart:ui/hooks.dart:221:5)
#10     _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:305:19)
#11     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)

Syncing files to device Flutter test device...
 9 635ms (!)

🔥  To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
An Observatory debugger and profiler on Flutter test device is available at: http://127.0.0.1:50300/XX3zks5b0NA=/
For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".

go version go1.13 windows/amd64

The same project builds and runs fine on IOS, Android Web and Desktop Embedding though with some things not yet implemented that are listed as working in Hover.
Any tips on getting beyond this issue?
I've tried using the 3.3 branch without success.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs infoMore information is required from the reporterquestionUser questions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions