I've been experiencing issues while using simple polylines (6 - 10 polylines with 2 points each) on the map. When panning around the map with the polylines in view, crashes occur randomly, usually with 30 seconds of rendering. No stack trace is given, either on the run tab, or with log cat (I'm using android studio), with the last line saying 'Lost connection to device.' or similar. Using 'flutter run --profile' it seems that the raster thread is taking up significantly longer to render frames than it should, with some frames taking ~1000 milliseconds directly before the application crashes.
After some further investigating, it seems like removing the canvas.saveLayer and the canvas.restore calls in the PolylinePainter class solves the issue, although this would probably impact the border / filter paints.
When testing this issue, I was displaying the map full-screen on a physical android tablet.
I've been experiencing issues while using simple polylines (6 - 10 polylines with 2 points each) on the map. When panning around the map with the polylines in view, crashes occur randomly, usually with 30 seconds of rendering. No stack trace is given, either on the run tab, or with log cat (I'm using android studio), with the last line saying 'Lost connection to device.' or similar. Using 'flutter run --profile' it seems that the raster thread is taking up significantly longer to render frames than it should, with some frames taking ~1000 milliseconds directly before the application crashes.
After some further investigating, it seems like removing the canvas.saveLayer and the canvas.restore calls in the PolylinePainter class solves the issue, although this would probably impact the border / filter paints.
When testing this issue, I was displaying the map full-screen on a physical android tablet.