osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.62k stars 1.01k forks source link

Rendering sometimes stops in Nautical view with Depth contours #20857

Open Guylby opened 1 week ago

Guylby commented 1 week ago

Description

Hi,

I've noticed that in the nautical view once you enable depth contours the rendering becomes very slow and sometimes just stops rendering tiles alltogether. This has been going on for a few updates now (I've seen the same behaviour on 4.7 and 4.8) This seems strange as my device has no trouble rendering much more complex contour lines for standard elevation.

While looking at the logcat data, there was around 3000 errors like so:

09-16 11:14:17.385 10054 10054 W System.err: Rendering attribute route is not found ! 09-16 11:14:17.494 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.494 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.494 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.494 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.494 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.494 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.494 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.494 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.494 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.494 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.495 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.496 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.496 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.496 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.496 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.496 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid 09-16 11:14:17.496 10054 10258 W net.osmand.core:native: Path effect (1) with 1 intervals is invalid

Steps to reproduce

go the the Nautical view profile (boat profile), download and enable the Depths contours in the settings, span, zoom and roam around the map, notice the slowdowns and errors in displaying the tiles.

Actual result

Rendering in general is much slower than other profiles, and notice at the end that osmand stops rendering tiles alltogether (and required a restart to start functioning again). The screen was responsive, you could span around and interact with the UI but no map was loading

https://github.com/user-attachments/assets/bfd650dd-10ac-477e-8148-d4918a5010b6

Expected result

Rendering is smooth and doesn't stop loading tiles.

Your Environment (required)

WARNING Crash-Logs MAY contain information you deem sensitive. Review this CAREFULLY before posting your issue!

OsmAnd Version: 4.9.0
Android/iOS version: 13
Device model: Sony Xperia 10 III
Crash-Logs: ?
vshcherb commented 2 days ago

Extra task: fix net.osmand.core:native: Path effect (1) with 1 intervals is invalid it's likely not related to rendering issue