Closed Elleo closed 4 weeks ago
Hi @Elleo, This looks like an Impeller issue. We would hugely appreciate it if you could open an issue in the Flutter repo! (FM is kinda well known there for finding Impeller bugs, we've/the community has found 3 already). Please link back here if you can! If not, we're happy to open it, just let us know :)
Hi @JaffaKetchup,
I think it might warrant investigation on the flutter_map side first, as I've found similar issues already logged against the Flutter repo, which have been closed by the Flutter team under the assumption that the actual crash is being triggered elsewhere (but appearing to be in impeller due to the bad memory access), e.g. https://github.com/flutter/flutter/issues/125749
If you think it's still worth opening one straight away I'm happy to do so though :)
Thanks! Mike
I'm pretty sure this is a Flutter issue, and I'll be willing to defend that. They say the issue with memory issues is any "plugin" can cause that - we are not a plugin. We use Flutter and only Flutter. If it worked (or at least didn't crash) with Skia and now it doesn't with Impeller, that seems to suggest an Impeller issue. Still happy to do it if you'd rather I did it!
Okay, cool; l'll upload a full repository with an example tomorrow to make it easier for them to verify and file a bug
Thanks for taking a look!
Thanks, that's very helpful :)
Logged against Flutter here: https://github.com/flutter/flutter/issues/149646
Thanks @Elleo :) This is fixed by https://github.com/flutter/engine/pull/52401. We have to wait for this to land. I've requested a cherry-pick.
What is the bug?
When a polygon gets simplified beyond a certain point, by the user zooming out, the application crashes. This only appears to happen on iOS.
As far as I can tell the polygon needs to have a hole in it to trigger the crash.
Here's the backtrace from the crash:
How can we reproduce it?
The issue can be reproduced by running the following code on an iOS device, the crash should happen immediately:
I was able to reproduce this on both a physical iPhone 8 running iOS 16.7.8 and using the iOS simulator, with an iPhone 15 running iOS 17.5
I wasn't able to reproduce this on Android or Windows, only on iOS.
Do you have a potential solution?
No solution, but it can be temporarily worked around by either setting the simplificationThreshold property on the PolygonLayer to 0, or setting the useAltRendering property to true
Platforms
iOS
Severity
Fatal: Causes the application to crash