Skip to content

[BUG] getPixelBounds occasionally results in exception: Unsupported operation: Infinity or NaN toInt #1645

@greensopinion

Description

@greensopinion

What is the bug?

Exception at runtime:

#0      double.floor (third_party/dart/sdk/lib/_internal/vm/lib/double.dart)
#1      CustomPoint.floor (~/.pub-cache/hosted/pub.dev/flutter_map-5.0.0/lib/src/misc/point.dart:58:31)
#2      FlutterMapState.getPixelBounds (~/.pub-cache/hosted/pub.dev/flutter_map-5.0.0/lib/src/map/state.dart:593:47)
#3      FlutterMapState.initState (~/.pub-cache/hosted/pub.dev/flutter_map-5.0.0/lib/src/map/state.dart:38:20)
#4      StatefulElement._firstBuild (~/development/flutter/packages/flutter/lib/src/widgets/framework.dart:5430:55)

How can we reproduce it?

I haven't created a reproduction scenario yet

Is this the same issue as #1522 ?

Do you have a potential solution?

No response

Platforms

all

Severity

Erroneous: Prevents normal functioning and causes errors in the console

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue reports broken functionality or another errorduplicateThis issue already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions