Skip to content

Hot restart not working due to Google Maps Flutter issue #2097

@morebytes

Description

@morebytes
  • Pull from upstream to get the latest code
  • Checkout the feature branch
  • Compile and run the code
  • Reproduce the bug
  • Fix the bug
  • Test locally on a device
  • Create Pull Request

When doing a hot restart on Android, it will freeze up due to an issue with Google Maps Flutter library:

I/flutter ( 4550): ----------------FIREBASE CRASHLYTICS----------------
I/flutter ( 4550): PlatformException(Renderer already initialized, Renderer initialization called multiple times, null, null)
I/flutter ( 4550): #0      MapsInitializerApi.initializeWithPreferredRenderer (package:google_maps_flutter_android/src/messages.g.dart:2945:7)
I/flutter ( 4550): <asynchronous suspension>
I/flutter ( 4550): #1      GoogleMapsFlutterAndroid.initializeWithRenderer (package:google_maps_flutter_android/src/google_maps_flutter_android.dart:494:9)
I/flutter ( 4550): <asynchronous suspension>
I/flutter ( 4550): #2      main.<anonymous closure> (package:campus_mobile_experimental/main.dart:36:7)
I/flutter ( 4550): <asynchronous suspension>

Also suspected to not work on iOS. The package can currently be upgraded without any breaking changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions