user_location_plugin icon indicating copy to clipboard operation
user_location_plugin copied to clipboard

ios crashed on flutter:1.22.4 Object has been disposed.

Open lalaMiao opened this issue 5 years ago • 0 comments

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

lalaMiao avatar Dec 01 '20 08:12 lalaMiao