Skip to content
This repository was archived by the owner on Jul 11, 2021. It is now read-only.
This repository was archived by the owner on Jul 11, 2021. It is now read-only.

ios crashed on flutter:1.22.4 Object has been disposed. #87

Description

@lalaMiao

Describe the bug

════════ Exception caught by scheduler library ═════════════════════════════════
The following message was thrown during a scheduler callback:
Object has been disposed.

When the exception was thrown, this was the stack
#0 Image.width (dart:ui/painting.dart:1586:37)
#1 Image.toString (dart:ui/painting.dart:1614:27)
#2 DiagnosticsProperty.valueToString
package:flutter/…/foundation/diagnostics.dart:2741
#3 DiagnosticsProperty.toDescription
package:flutter/…/foundation/diagnostics.dart:2755
#4 DiagnosticsNode.toJsonMap.
package:flutter/…/foundation/diagnostics.dart:1567
...

════════ Exception caught by scheduler library ═════════════════════════════════
RenderBox.size accessed beyond the scope of resize, layout, or permitted parent access. RenderBox can always access its own size, otherwise, the only object that is allowed to read RenderBox.size is its parent, if they have said they will. It you hit this assert trying to access a child's size, pass "parentUsesSize: true" to that child's layout().
'package:flutter/src/rendering/box.dart':
Failed assertion: line 1792 pos 13: 'debugDoingThisResize || debugDoingThisLayout ||
(RenderObject.debugActiveLayout == parent && _size._canBeUsedByParent)'
════════════════════════════════════════════════════════════════════════════════

It seems that the map image cannot be drawn correctly, and the size can not be obtained correctly.
Hope to get help. Thank you very much
here is urlTemplate:
urlTemplate:
"https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}",
additionalOptions: {
'accessToken':
'pk.eyJ1IjoieHloNTIwMTY4IiwiYSI6ImNraTVnbjhmZzAwbzkycm85cGo0NTRkdnkifQ.Ij3NZBJZJbHOCrR1slEBXg',
'id': 'mapbox/streets-v11'
}

Flutter: 1.22.4
iPhone 6s

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions