osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.38k stars 988 forks source link

RailwayInfra map style crashes with OpenGL rendering engine #20096

Open lrnsdb opened 3 weeks ago

lrnsdb commented 3 weeks ago

Description

OsmAnd crashes when using a custom map style "RailwayInfra" and the OpenGL render engine. It works correctly with the Version 1 rendering engine.

Steps to reproduce

Actual result

The application closes immediately.

After restarting the app 3 times a message is shown "OsmAnd's map rendering has recently crashed. OsmAnd has reverted to 'Version 1' map rendering." The "Share crash log" function does not work (there is no actual file attached).

Expected result

Open the application and show the map.

Your Environment (required)

OsmAnd Version 4.6.12 Device Model : Samsung SM-T575 Android Version : 13

yuriiurshuliak commented 3 weeks ago

The bug could not be reproduced. I used OpenGL rendering with the RailwayInfra custom map style, and the app did not crash after changing the map style. However, it's worth noting that the RailwayInfra map style does not appear when using OpenGL. It only displays when switching the rendering to version 1.

OsmAnd~ 4.8.0#2501m, released: 2024-06-13

https://github.com/osmandapp/OsmAnd/assets/127092082/2582615a-199d-42ed-bf55-cacaf23d377f

ratti commented 3 weeks ago

I have a very similar issue, maybe it's less complex and easier to reproduce.

I use only the standard maps from Osmand+. I have locally installed some parts of germany, relevant for this issue should be the maps of Hamburg and Lower Saxony in Germany.

South of Hamburg is the "mountain" called "Hasselbrack". If I zoom in there, the device gets slower and slower, then crashes with OpenGL 2.

After I read this report, I switched to OpenGL 1, and the issue is gone.

I was hiking in that area the day before without any problems, so I scratched my head what has changed. And I suspect the current wave of vandalism (showing long streets with cyrillic names) might be the reason. Maybe it's crashing the rendering engine.

Google Pixel 8 Pro, 256GB, current android, current Osmand+, I have all that Hillshading-Relief-Contourline-Stuff installed.

e-LUNATIC commented 2 weeks ago

I have the same issue since a few days. German Maps with Open gl activate crashed osmand.