Open Trojgarb opened 1 year ago
If you have logcat log of the crash it would be good if you can attach
Logcat right after crash:
--------- beginning of main
09-18 20:12:29.363 22872 22872 I chatty : uid=10768(net.osmand.plus) expire 5 lines
09-18 20:12:29.424 22872 22872 I MultiDex: VM has multidex support, MultiDex support library is disabled.
09-18 20:12:29.987 22872 22872 E ResourceType: Style contains key with bad entry: 0x0101058c
09-18 20:12:30.007 22872 22872 W System.err: Startup service net.osmand.plus.routing.RoutingHelper took too long 15 ms
09-18 20:12:30.094 22872 22907 E WVMExtractor: Failed to open libwvm.so: dlopen failed: library "libwvm.so" not found
09-18 20:12:30.113 22872 22872 I net.osmand: ResourceManager Bitmap tiles to load in memory : 231.0
09-18 20:12:30.113 22872 22872 W System.err: Startup service net.osmand.plus.resources.ResourceManager took too long 105 ms
09-18 20:12:30.117 22872 22907 I MediaCodec: (0x74260cd400) init name(audio/vorbis) isType(1) encoder(0)
09-18 20:12:30.120 22872 22910 I OMXClient: MuxOMX ctor
09-18 20:12:30.124 22872 22872 W System.err: Startup service net.osmand.plus.OsmAndLocationProvider took too long 11 ms
09-18 20:12:30.125 22872 22910 I MediaCodec: (0x74260cd400) Component Allocated (OMX.google.vorbis.decoder)
09-18 20:12:30.126 22872 22907 I MediaCodec: (0x74260cd400) configure surface(0x0) crypto(0x0) flags(0)
09-18 20:12:30.126 22872 22907 D MediaCodec: (0x74260cd400) configure format: AMessage(what = 0x00000000) = {
09-18 20:12:30.126 22872 22907 D MediaCodec: string mime = "audio/vorbis"
09-18 20:12:30.126 22872 22907 D MediaCodec: int64_t durationUs = 2522000
09-18 20:12:30.126 22872 22907 D MediaCodec: int32_t track-id = 1
09-18 20:12:30.126 22872 22907 D MediaCodec: int32_t channel-count = 1
09-18 20:12:30.126 22872 22907 D MediaCodec: int32_t sample-rate = 48000
09-18 20:12:30.126 22872 22907 D MediaCodec: Buffer csd-0 = {
09-18 20:12:30.126 22872 22907 D MediaCodec: 00000000: 01 76 6f 72 62 69 73 00 00 00 00 01 80 bb 00 00 .vorbis.........
09-18 20:12:30.126 22872 22907 D MediaCodec: 00000010: 00 00 00 00 60 ea 00 00 00 00 00 00 b8 01 ....`.........
09-18 20:12:30.126 22872 22907 D MediaCodec: }
09-18 20:12:30.126 22872 22907 D MediaCodec: Buffer *csd-1 = 0x742601f8c0
09-18 20:12:30.126 22872 22907 D MediaCodec: }
09-18 20:12:30.128 22872 22907 I MediaCodec: (0x74260cd400) start
09-18 20:12:30.133 22872 22910 I MediaCodec: (0x74260cd400) input buffers allocated
09-18 20:12:30.134 22872 22910 I MediaCodec: (0x74260cd400) numBuffers (4)
09-18 20:12:30.134 22872 22910 I MediaCodec: (0x74260cd400) output buffers allocated
09-18 20:12:30.134 22872 22910 I MediaCodec: (0x74260cd400) numBuffers (4)
09-18 20:12:30.142 22872 22910 I MediaCodec: (0x74260cd400) output buffers allocated
09-18 20:12:30.142 22872 22910 I MediaCodec: (0x74260cd400) numBuffers (4)
09-18 20:12:30.143 22872 22872 W System.err: Startup service net.osmand.plus.helpers.AnalyticsHelper took too long 18 ms
09-18 20:12:30.143 22872 22910 D MediaCodec: (0x74260cd400) [OMX.google.vorbis.decoder] output format changed to: AMessage(what = 0x00000000) = {
09-18 20:12:30.143 22872 22910 D MediaCodec: string mime = "audio/raw"
09-18 20:12:30.143 22872 22910 D MediaCodec: int32_t channel-count = 1
09-18 20:12:30.143 22872 22910 D MediaCodec: int32_t sample-rate = 48000
09-18 20:12:30.143 22872 22910 D MediaCodec: int32_t pcm-encoding = 2
09-18 20:12:30.143 22872 22910 D MediaCodec: int32_t bit-width = 16
09-18 20:12:30.143 22872 22910 D MediaCodec: }
09-18 20:12:30.154 22872 22872 W System.err: Startup service net.osmand.plus.notifications.NotificationHelper took too long 11 ms
09-18 20:12:30.163 22872 22872 W System.err: Startup service net.osmand.plus.track.helpers.GpxDbHelper took too long 8 ms
09-18 20:12:30.180 22872 22872 W System.err: Startup service net.osmand.plus.poi.PoiFiltersHelper took too long 14 ms
09-18 20:12:30.206 22872 22882 I art : Background partial concurrent mark sweep GC freed 11051(765KB) AllocSpace objects, 2(3MB) LOS objects, 39% free, 13MB/21MB, paused 5.357ms total 46.228ms
09-18 20:12:30.216 22872 22872 W System.err: Startup service net.osmand.plus.views.OsmandMap took too long 31 ms
09-18 20:12:30.229 22872 22872 W System.err: Startup service net.osmand.plus.quickaction.QuickActionRegistry took too long 9 ms
09-18 20:12:30.392 22872 22907 I MediaCodec: (0x74260cd400) stop
09-18 20:12:30.396 22872 22907 I MediaCodec: (0x74260cd400) release
09-18 20:12:30.454 22872 22872 I System.out: Time to start application 1017 ms. Should be less < 800 ms
09-18 20:12:30.455 22872 22872 I net.osmand: OsmandPlugin Package not found: net.osmand.srtmPlugin.paid
09-18 20:12:30.456 22872 22872 I net.osmand: OsmandPlugin Package not found: net.osmand.srtmPlugin
09-18 20:12:30.456 22872 22872 I net.osmand: OsmandPlugin Package not found: net.osmand.nauticalPlugin
09-18 20:12:30.457 22872 22872 I net.osmand: OsmandPlugin Package not found: net.osmand.skimapsPlugin
09-18 20:12:30.459 22872 22872 I net.osmand: OsmandPlugin Package not found: net.osmand.parkingPlugin
09-18 20:12:30.488 22872 22872 I System.out: Time to init plugins 34 ms. Should be less < 800 ms
09-18 20:12:30.488 22872 22872 D net.osmand: SQLiteTileSource closeDB
09-18 20:12:30.490 22872 22872 D net.osmand: SQLiteTileSource closeDB
09-18 20:12:30.490 22872 22872 D StrictMode: StrictMode policy violation; ~duration=996 ms: android.os.StrictMode$StrictModeDiskReadViolation: policy=65567 violation=2
09-18 20:12:30.490 22872 22872 D StrictMode: at android.os.StrictMode$AndroidBlockGuardPolicy.onReadFromDisk(StrictMode.java:1307)
09-18 20:12:30.490 22872 22872 D StrictMode: at java.io.UnixFileSystem.checkAccess(UnixFileSystem.java:249)
09-18 20:12:30.490 22872 22872 D StrictMode: at java.io.File.exists(File.java:780)
09-18 20:12:30.490 22872 22872 D StrictMode: at android.app.ContextImpl.getDataDir(ContextImpl.java:1938)
09-18 20:12:30.490 22872 22872 D StrictMode: at android.app.ContextImpl.getPreferencesDir(ContextImpl.java:466)
09-18 20:12:30.490 22872 22872 D StrictMode: at android.app.ContextImpl.getSharedPreferencesPath(ContextImpl.java:627)
09-18 20:12:30.490 22872 22872 D StrictMode: at android.app.ContextImpl.getSharedPreferences(ContextImpl.java:345)
09-18 20:12:30.490 22872 22872 D StrictMode: at android.content.ContextWrapper.getSharedPreferences(ContextWrapper.java:164)
09-18 20:12:30.490 22872 22872 D StrictMode: at net.osmand.plus.api.SettingsAPIImpl.getPreferenceObject(SettingsAPIImpl.java:18)
09-18 20:12:30.490 22872 22872 D StrictMode: at net.osmand.plus.settings.backend.OsmandSettings.initPrefs(OsmandSettings.java:171)
09-18 20:12:30.490 22872 22872 D StrictMode: at net.osmand.plus.settings.backend.OsmandSettings.
Description
Osmand+ 4.2.7 (f-droid version) crashes while in background after switching to other apps.
How to reproduce?
Switch to another app. Osmand will crash in a few to about 30 seconds.
Environment
OsmAnd Version: 4.2.7 Android/iOS version: 7.0 Device model: Moto X Force
Maps used (online or offline):
Offline maps.