liodali / osm_flutter

OpenStreetMap plugin for flutter
https://pub.dev/packages/flutter_osm_plugin
MIT License
235 stars 97 forks source link

The iOS app crashes if you minimize it while on the screen with map #443

Open Legendorik opened 1 year ago

Legendorik commented 1 year ago

Steps to reproduce:

  1. Open the map (try to add some markers and user markers if necessary)
  2. Minimize the app
  3. Open it again

Maybe you need a release build to reproduce

Stack trace from crashlytics

Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000d74961180df0 Crashed: com.apple.main-thread 0 TangramMap 0xe0048 Tangram::PointStyle::onBeginDrawFrame(Tangram::RenderState&, Tangram::View const&) + 208 1 TangramMap 0xefaf8 Tangram::Style::draw(Tangram::RenderState&, Tangram::View const&, std::__1::vector, std::__1::allocator>> const&, std::__1::vector>, std::__1::allocator>>> const&) + 244 2 TangramMap 0x9f2c0 Tangram::Scene::render(Tangram::RenderState&, Tangram::View&) + 140 3 TangramMap 0x78cc0 Tangram::Map::render() + 612 4 TangramMap 0xa458 -[TGMapView glkView:drawInRect:] + 48 5 GLKit 0x14dc -[GLKView _display:] + 188 6 QuartzCore 0x1d5b4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 412 7 QuartzCore 0x2e8d8 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 444 8 QuartzCore 0x5de80 CA::Transaction::commit() + 648 9 UIKitCore 0x48c75c __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 36 10 CoreFoundation 0x436e0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28 11 CoreFoundation 0xaa210 __CFRunLoopDoBlocks + 364 12 CoreFoundation 0x7a0e8 __CFRunLoopRun + 848 13 CoreFoundation 0x7f3ec CFRunLoopRunSpecific + 612 14 GraphicsServices 0x135c GSEventRunModal + 164 15 UIKitCore 0x39cf58 -[UIApplication _run] + 888 16 UIKitCore 0x39cbbc UIApplicationMain + 340 17 Runner 0x83f4 main + 5 (AppDelegate.swift:5) 18 ??? 0x1d9f14dec (Missing)

liodali commented 1 year ago

minimize the app you mean resize the map widget or what exactly ?

Legendorik commented 1 year ago

minimize the app you mean resize the map widget or what exactly ?

No, I mean completely collapsing the app. With the home button or whatever it's called on ios. The app should stay in the list of active apps, and then you reopen it from that list.

david-hov commented 1 year ago

Owner

any news?

liodali commented 10 months ago

check our latest dev version : 1.0.0-dev.1