Skip to content

Polyline Layer causing crashes when panning map #1154

@AbelSAnderson

Description

@AbelSAnderson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue reports broken functionality or another error

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions