osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.65k stars 1.02k forks source link

OpenGL crashes and tiles won't load properly #20628

Closed d4f5409d closed 1 month ago

d4f5409d commented 2 months ago

Description

We get to experience frequent crashes and unusual behavior regarding the loading of nap tiles sincs the last few updates. I have managed to extract a crash log to help identify the cause of the issue.

Steps to reproduce

Use OpenGL. Exoerience the issue.

Actual result

Crashes, freezes, tiles are not loading properly or very slowly. I've seen many sqlite errors, which can cause the tile loading errors.

Expected result

Working fast as usual.

Your Environment (required)

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

OsmAnd Version: 4.8.5
Android/iOS version: 13
Device model: OnePlus 8
Crash-Logs: 
1723891982.972  1000  2176  7391 I WindowManager: WIN DEATH: Window{c1d9314 u0 net.osmand.plus/net.osmand.plus.activities.MapActivity}
1723891982.974  1000  1394  3008 I SurfaceFlinger: [SF client] REMOVE (0xb40000714cb82a40) for (29082:net.osmand.plus)
1723891982.974  1000  1394  2441 I SurfaceFlinger: [SF client] REMOVE (0xb40000714cb810c0) for (29082:net.osmand.plus)
1723891982.975  1000  1394  3008 I SurfaceFlinger: [SF client] REMOVE (0xb40000716a04b4c0) for (29082:net.osmand.plus)
1723891982.978  1000  2176  6027 I ActivityManager: Process net.osmand.plus (pid 29082) has died: prcp FGS
1723891982.984  1000  2176  7391 W InputManager-JNI: Input channel object 'c1d9314 net.osmand.plus/net.osmand.plus.activities.MapActivity (client)' was disposed without first being removed with the input manager!
1723891983.009  1000  2176  4270 I OplusHansManager : onUidGone(), 10262 net.osmand.plus exit SM
1723891983.011  1000  2176  4062 I OplusHansManager : uid=10262, pkg=net.osmand.plus R exit SM
1723891983.011  1000  2176  4062 I OplusHansManager : uid=10262, pkg=net.osmand.plus R exit(), R stay=54
1723891983.015  1000  2176  2629 W UsageStatsService: Unexpected activity event reported! (net.osmand.plus/net.osmand.plus.activities.MapActivity event : 23 instanceId : 28075764)
1723892099.991  1000  2176  2339 I ActivityManager: Start proc 454:net.osmand.plus/u0a262 for service {net.osmand.plus/net.osmand.plus.NavigationService}
1723892099.998 10262   454   454 E net.osmand.plus: Unknown bits set in runtime_flags: 0x40000000
1723892099.998 10262   454   454 I net.osmand.plus: Using CollectorTypeCC GC.
1723892100.001 10262   454   454 E net.osmand.plus: Not starting debugger since process cannot load the jdwp agent.
1723892100.024  1000  2176  4270 I OplusHansManager : onUidActive(), uid=10262, pkgName=net.osmand.plus, can enter SM
1723892100.024  1000  2176  4270 I OplusHansManager : onUidActive() update stay time, uid=10262, pkgName=net.osmand.plus, U stay=117
1723892100.026  1000  2176  4062 I OplusHansManager : uid=10262, pkg=net.osmand.plus enter SM
1723892100.026  1000  2176  4062 I OplusHansManager : uid=10262, pkg=net.osmand.plus R enter(), D stay=0
1723892100.167  1000  2176  5675 E ScrollOptim [OplusPerfService]: isScrollOptimEnable: pkgName = net.osmand.plus, output = Bundle[{pre_anim_enable=true, frame_insert_list=null, frame_insert_default_num=1, scroll_changed_enable_list=null}]
1723892100.291 10262   454   454 W System.err: Startup service net.osmand.plus.routing.RoutingHelper took too long 8 ms
1723892100.292 10262   454   454 I net.osmand: ResourceManager Bitmap tiles to load in memory : 180.0 {main}
1723892100.391 10262   454   454 W System.err: Startup service net.osmand.plus.avoidroads.AvoidRoadsHelper took too long 98 ms
1723892100.423 10262   454   454 W System.err: Startup service net.osmand.plus.notifications.NotificationHelper took too long 23 ms
1723892100.581 10262   454   454 I net.osmand: PluginsHelper Package not found: net.osmand.srtmPlugin.paid {main}
1723892100.581 10262   454   454 I net.osmand: PluginsHelper Package not found: net.osmand.srtmPlugin {main}
1723892100.581 10262   454   454 I net.osmand: PluginsHelper Package not found: net.osmand.nauticalPlugin {main}
1723892100.582 10262   454   454 I net.osmand: PluginsHelper Package not found: net.osmand.skimapsPlugin {main}
1723892100.582 10262   454   454 I net.osmand: PluginsHelper Package not found: net.osmand.parkingPlugin {main}
1723892100.674 10262   454   678 I CoreResourcesFromAndroidAssets: Located own package at '/data/app/~~LjocwVBccQMv0E2X_EZ0hQ==/net.osmand.plus-jUb2zB7rINF9JdWmJX4Z9w==/base.apk'
1723892100.695 10262   454   454 I Quality : ActivityThread: callApplicationOnCreate delay 515 net.osmand.plus 454
1723892100.732  1000  2176  2176 W NotificationService: Removed summary didn't match old notification: old=0|net.osmand.plus|100|null|10262, removed=0|net.osmand.plus|100|null|10262
1723892100.766 10262   454   454 I DynamicFramerate [FRTCConfigManager]: FRTCConfigManager: FRTC_CAPABILITY = 120, package name = net.osmand.plus, PACKAGE_ENABLE = false
1723892100.766 10262   454   454 I DynamicFramerate [DynamicFrameRateController]: init info: mPackageName = net.osmand.plus, mIsEnabled = false
1723892101.361 10262   454   678 W osmand.core: QSocketNotifier: Can only be used with threads started with QThread
1723892101.362 10262   454   678 W osmand.core: QFileSystemWatcher::addPath: path is empty
1723892101.363 10262   454   678 W osmand.core: QSocketNotifier: Can only be used with threads started with QThread
1723892101.577 10262   454   678 I net.osmand: MapRenderingTypes Time to init poi types 31 {Initializing app}
1723892101.620 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: Other {Initializing app}
1723892101.672 10262   454   705 I net.osmand: CachedOsmandIndexes Initialize cache ind.cache 8 ms {pool-6-thread-1}
1723892101.699 10262   454   705 I net.osmand: CachedOsmandIndexes Initialize cache ind.cache 1 ms {pool-6-thread-1}
1723892101.715 10262   454   705 I net.osmand: CachedOsmandIndexes Initialize cache ind.cache 1 ms {pool-6-thread-1}
1723892101.795 10262   454   678 I net.osmand:native: JNI_OnLoad completed
1723892102.020 10262   454   678 I net.osmand:native: Font path /storage/emulated/0/Android/data/net.osmand.plus/files/fonts/05_NotoSans-Regular.ttf index 0
1723892102.106 10262   454   678 I net.osmand:native: Font path /storage/emulated/0/Android/data/net.osmand.plus/files/fonts/10_NotoSans-Bold.ttf index 1
1723892102.109 10262   454   678 I net.osmand:native: Font path /storage/emulated/0/Android/data/net.osmand.plus/files/fonts/15_NotoSans-Italic.ttf index 2
1723892102.111 10262   454   678 I net.osmand:native: Font path /storage/emulated/0/Android/data/net.osmand.plus/files/fonts/20_NotoSans-BoldItalic.ttf index 3
1723892102.113 10262   454   678 I net.osmand:native: Font path /storage/emulated/0/Android/data/net.osmand.plus/files/fonts/35_NotoSansSouthAsian-Regular.ttf index 4
1723892102.117 10262   454   678 I net.osmand:native: Font path /storage/emulated/0/Android/data/net.osmand.plus/files/fonts/40_NotoSansSouthAsian-Bold.ttf index 5
1723892102.119 10262   454   678 I net.osmand:native: Font path /storage/emulated/0/Android/data/net.osmand.plus/files/fonts/45_NotoSansSoutheastAsian-Regular.ttf index 6
1723892102.121 10262   454   678 I net.osmand:native: Font path /storage/emulated/0/Android/data/net.osmand.plus/files/fonts/50_NotoSansSoutheastAsian-Bold.ttf index 7
1723892102.122 10262   454   678 I net.osmand:native: Font path /storage/emulated/0/Android/data/net.osmand.plus/files/fonts/55_NotoSansTibetan-Regular.ttf index 8
1723892102.125 10262   454   678 I net.osmand:native: Font path /storage/emulated/0/Android/data/net.osmand.plus/files/fonts/60_NotoSansTibetan-Bold.ttf index 9
1723892102.127 10262   454   678 I net.osmand:native: Font path /storage/emulated/0/Android/data/net.osmand.plus/files/fonts/65_NotoSansNastaliqUrdu-Regular.ttf index 10
1723892102.129 10262   454   678 I net.osmand:native: Font path /storage/emulated/0/Android/data/net.osmand.plus/files/fonts/DroidSansFallback.ttf index 11
1723892102.135 10262   454   678 I net.osmand:native: Native Cache file initialized: /storage/emulated/0/Android/data/net.osmand.plus/files/ind.cache 0
1723892102.199 10262   454   678 I net.osmand: GpxDbHelper Time to loadGpxItems 47 ms, 28 items {Initializing app}
1723892102.201 10262   454   678 I net.osmand: GpxDbHelper Time to loadGpxDirItems 2 ms items count 19 {Initializing app}
1723892102.208 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.216 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.218 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.223 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.225 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.227 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.228 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.230 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.232 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.234 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.235 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.236 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.238 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.239 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.240 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.242 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.243 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.244 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.246 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: healthcare_speciality_nuclear_medicine {Initializing app}
1723892102.281 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: cuisine_cafe {Initializing app}
1723892102.287 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: cuisine_cafe {Initializing app}
1723892102.289 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: cuisine_cafe {Initializing app}
1723892102.292 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: cuisine_cafe {Initializing app}
1723892102.294 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: cuisine_cafe {Initializing app}
1723892102.296 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: cuisine_cafe {Initializing app}
1723892102.297 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: seamark_category {Initializing app}
1723892102.298 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: seamark_character {Initializing app}
1723892102.298 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: seamark_colour {Initializing app}
1723892102.298 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: seamark_height {Initializing app}
1723892102.299 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: seamark_period {Initializing app}
1723892102.299 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: seamark_range {Initializing app}
1723892102.299 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: seamark_reference {Initializing app}
1723892102.299 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: seamark_shape {Initializing app}
1723892102.300 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: seamark_sequence {Initializing app}
1723892102.300 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: seamark_system {Initializing app}
1723892102.300 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: seamark_topmark {Initializing app}
1723892102.309 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: socket_type3a_yes {Initializing app}
1723892102.309 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: socket_type3c_yes {Initializing app}
1723892102.312 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: socket_type3a_yes {Initializing app}
1723892102.312 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: socket_type3c_yes {Initializing app}
1723892102.314 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: socket_type2_cable_voltage {Initializing app}
1723892102.314 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: socket_type3a {Initializing app}
1723892102.314 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: socket_type3c {Initializing app}
1723892102.336 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: board_type_geography {Initializing app}
1723892102.339 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: category_sleep {Initializing app}
1723892102.339 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: category_see {Initializing app}
1723892102.339 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: category_buy {Initializing app}
1723892102.339 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: category_do {Initializing app}
1723892102.339 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: category_go {Initializing app}
1723892102.340 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: category_drink {Initializing app}
1723892102.340 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: category_eat {Initializing app}
1723892102.340 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: category_other {Initializing app}
1723892102.340 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: category_marker {Initializing app}
1723892102.340 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: user {Initializing app}
1723892102.341 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: date {Initializing app}
1723892102.341 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: tag_road_road {Initializing app}
1723892102.341 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: time_span {Initializing app}
1723892102.341 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: time_span_no_gaps {Initializing app}
1723892102.342 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: time_moving {Initializing app}
1723892102.342 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: time_moving_no_gaps {Initializing app}
1723892102.342 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: avg_ele {Initializing app}
1723892102.342 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: min_ele {Initializing app}
1723892102.342 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: max_ele {Initializing app}
1723892102.343 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: diff_ele_up {Initializing app}
1723892102.343 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: diff_ele_down {Initializing app}
1723892102.343 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: avg_speed {Initializing app}
1723892102.343 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: max_speed {Initializing app}
1723892102.343 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: min_speed {Initializing app}
1723892102.344 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_water {Initializing app}
1723892102.344 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_winter {Initializing app}
1723892102.344 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_snowmobile {Initializing app}
1723892102.344 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_riding {Initializing app}
1723892102.344 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_racing {Initializing app}
1723892102.345 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_mountainbike {Initializing app}
1723892102.345 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_cycling {Initializing app}
1723892102.345 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_hiking {Initializing app}
1723892102.345 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_running {Initializing app}
1723892102.346 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_walking {Initializing app}
1723892102.346 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_offroad {Initializing app}
1723892102.346 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_motorbike {Initializing app}
1723892102.346 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_activity_type_car {Initializing app}
1723892102.346 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: route_radius {Initializing app}
1723892102.357 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: fire_hpressurizedydrant_count {Initializing app}
1723892102.363 10262   454   678 I net.osmand: MapPoiTypesTranslator No translation: Tűzcsap {Initializing app}
1723892102.651 10262   454   512 I net.osmand.plus: Background concurrent copying GC freed 1171815(58MB) AllocSpace objects, 213(18MB) LOS objects, 37% free, 40MB/64MB, paused 74us,24us total 136.161ms
1723892102.865 10262   454   678 I net.osmand: BinaryMapIndexReader Search is done. Visit 2593 objects. Read 2593 objects. {Initializing app}
1723892102.865 10262   454   678 I net.osmand: BinaryMapIndexReader Read 68 subtrees. Go through 133 subtrees. {Initializing app}
1723892102.873 10262   454   678 W net.osmand: OsmandRegions Found orphaned regions: 1 {Initializing app}
1723892102.873 10262   454   678 W net.osmand: OsmandRegions FullName = World_seamarks parent=null {Initializing app}
1723892102.880 10262   454   454 E net.osmand.core:native: Failed to prepare statement from 'SELECT * FROM info LIMIT 1': no such table: info (SQL logic error)
1723892102.960 10262   454   454 E net.osmand.core:native: Failed to prepare statement from 'SELECT * FROM info LIMIT 1': no such table: info (SQL logic error)
1723892102.968 10262   454   454 E net.osmand.core:native: Failed to prepare statement from 'SELECT time FROM tiles LIMIT 1': no such column: time (SQL logic error)
1723892102.976 10262   454   454 E net.osmand.core:native: Failed to prepare statement from 'SELECT timestamp FROM tiles LIMIT 1': no such column: timestamp (SQL logic error)
1723892103.079 10262   454   512 I net.osmand.plus: Background concurrent copying GC freed 182297(16MB) AllocSpace objects, 80(2252KB) LOS objects, 34% free, 45MB/69MB, paused 32us,11us total 111.017ms
1723892120.028  1000  2176  4062 I OplusHansManager : uid=10262, pkg=net.osmand.plus cannot transition from R to M, importance=gps
yuriiurshuliak commented 2 months ago

Could you please specify which maps you're using when this issue occurs? Additionally, provide the coordinates of the locations where the app crashes. It would be helpful if you could describe the specific steps to reproduce the crash or attach a video of your actions leading to the crash. We would also appreciate it if you could share your profile settings where this error occurs by going to Menu → Settings → Export, and selecting the data you want to export.

Hunter16g commented 2 months ago

I've had the same experience, osmand is so slow it's unusable and crashes constantly. I have a OnePlus 7pro with lineageos 21 (android 14). Same issue with someone I know who had to switch to another app (oneplus 3 - lineageos). This happens on every map I've tried (France, Canada). Navigation also made my phone overheat so much it started smelling like burnt plastic, had to shut it down and didn't try again 😅 I'm.not sure how to get a log or if it would be useful, please let me know if I can check anything.

yuriiurshuliak commented 2 months ago

It may be a problem of constantly redrawing the map during navigation, especially when the auto-zoom is enabled. Please try to disable everything you don't need for navigation in your driving profile (these preferences will affect only driving, other profiles will remain the same):

• you can disable 3d relief, contour lines, hillshades and slopes • in menu > configure map > details you can disable unneeded details • in menu > configure map > hide try to mark unneeded objects (boundaries, house numbers, underground objects, POI labels and POI icons, etc.) • set map magnifier by 100% (long press + or - on the map screen) (this may be the main issue)

Also you can also disable autozoom (navigation > settings > navigation settings > map during navigation > auto zoom) and (or) use only vector maps. Online maps may consume additional power, especially if they are not previously downloaded. Please give us feedback about the source of additional battery drain in your case.

Also try how it will work on our beta build: https://osmand.net/docs/versions/nightly_versions#google-play-beta-builds