{"action":"created","issue":{"url":"https://api.github.com/repos/cgeo/cgeo/issues/4692","labels_url":"https://api.github.com/repos/cgeo/cgeo/issues/4692/labels{/name}","comments_url":"https://api.github.com/repos/cgeo/cgeo/issues/4692/comments","events_url":"https://api.github.com/repos/cgeo/cgeo/issues/4692/events","html_url":"https://github.com/cgeo/cgeo/issues/4692","id":58496050,"number":4692,"title":"Crash on a self generated map","user":{"login":"duncanhoyle","id":11143775,"avatar_url":"https://avatars.githubusercontent.com/u/11143775?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanhoyle","html_url":"https://github.com/duncanhoyle","followers_url":"https://api.github.com/users/duncanhoyle/followers","following_url":"https://api.github.com/users/duncanhoyle/following{/other_user}","gists_url":"https://api.github.com/users/duncanhoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanhoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanhoyle/subscriptions","organizations_url":"https://api.github.com/users/duncanhoyle/orgs","repos_url":"https://api.github.com/users/duncanhoyle/repos","events_url":"https://api.github.com/users/duncanhoyle/events{/privacy}","received_events_url":"https://api.github.com/users/duncanhoyle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-22T09:00:10Z","updated_at":"2015-02-23T00:03:57Z","closed_at":null,"body":"I'm currently working on a project to create maps from an amalgamation of data (OSM, OS, shapefiles). These are processed to generate a single OSM file which I am then processing with Osmosis and mapsforge mapfile-writer to generate .map file to be viewed on various Android apps.\r\n\r\nThese maps almost always work on all the maps and apps I've tested (Atlas application on Windows and Locus/Orux/cgeo on Android).\r\n\r\nI have one map which causes a crash when I try to load it in cgeo on both my tablet and my phone.\r\n\r\nOther than looking at the log file and asking here is there any easy way to find what might be causing the problem?  I've tested maybe 5 other maps (almost all covering larger areas and one much larger one which includes the area causing the fault) and they all work fine.\r\n\r\nI've uploaded 2 maps to Dropbox (https://www.dropbox.com/sh/chaxjx4oxtjs9ih/AACf9g0wNcRgCOB5n4IaMWDOa?dl=0)\r\n\r\nOS_NU_android crashes and OS_TEST_android (which is a subset of it) doesn't.\r\n\r\nI'm not used to checking log files on Android but I've managed to recover:\r\n\r\nbuild.board: baylake\r\nbuild.bootloader: unknown\r\nbuild.brand: asus\r\nbuild.cpu_abi: x86\r\nbuild.cpu_abi2: armeabi-v7a\r\nbuild.device: K013_1\r\nbuild.display: WW-3.1.23.158\r\nbuild.fingerprint: asus/WW_K013/K013_1:4.4.2/KOT49H/WW_user_3.1.23.158_20140620:user/release-keys\r\nbuild.hardware: K013\r\nbuild.host: Androidbuilder\r\nbuild.id: KOT49H\r\nbuild.manufacturer: asus\r\nbuild.model: K013\r\nbuild.product: WW_K013\r\nbuild.radio: unknown\r\nbuild.serial: E6OKCY120175\r\nbuild.tags: release-keys\r\nbuild.time: 1403269896000\r\nbuild.type: user\r\nbuild.user: ab\r\nversion.codename: REL\r\nversion.incremental: WW_K013-WW_user_3.1.23.158_20140620-user-20140620\r\nversion.release: 4.4.2\r\nversion.sdk_int: 19\r\n\r\n--------- beginning of /dev/log/system\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): FATAL EXCEPTION: MapWorker\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): Process: cgeo.geocaching, PID: 6502\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): java.lang.NullPointerException\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.renderArea(DatabaseRenderer.java:218)\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): at org.mapsforge.android.maps.rendertheme.renderinstruction.Area.renderWay(Area.java:132)\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): at org.mapsforge.android.maps.rendertheme.Rule.matchWay(Rule.java:217)\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): at org.mapsforge.android.maps.rendertheme.Rule.matchWay(Rule.java:221)\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): at org.mapsforge.android.maps.rendertheme.RenderTheme.matchWay(RenderTheme.java:198)\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): at org.mapsforge.android.maps.rendertheme.RenderTheme.matchClosedWay(RenderTheme.java:126)\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.renderWaterBackground(DatabaseRenderer.java:264)\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): at org.mapsforge.map.reader.MapDatabase.processBlocks(MapDatabase.java:566)\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): at org.mapsforge.map.reader.MapDatabase.executeQuery(MapDatabase.java:263)\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.executeJob(DatabaseRenderer.java:158)\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): at org.mapsforge.android.maps.mapgenerator.MapWorker.doWork(MapWorker.java:73)\r\n02-20 11:02:02.511 E/AndroidRuntime(6502): at org.mapsforge.android.maps.PausableThread.run(PausableThread.java:94)\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): FATAL EXCEPTION: MapWorker\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): Process: cgeo.geocaching, PID: 6624\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): java.lang.NullPointerException\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.renderArea(DatabaseRenderer.java:218)\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): at org.mapsforge.android.maps.rendertheme.renderinstruction.Area.renderWay(Area.java:132)\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): at org.mapsforge.android.maps.rendertheme.Rule.matchWay(Rule.java:217)\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): at org.mapsforge.android.maps.rendertheme.Rule.matchWay(Rule.java:221)\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): at org.mapsforge.android.maps.rendertheme.RenderTheme.matchWay(RenderTheme.java:198)\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): at org.mapsforge.android.maps.rendertheme.RenderTheme.matchClosedWay(RenderTheme.java:126)\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.renderWaterBackground(DatabaseRenderer.java:264)\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): at org.mapsforge.map.reader.MapDatabase.processBlocks(MapDatabase.java:566)\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): at org.mapsforge.map.reader.MapDatabase.executeQuery(MapDatabase.java:263)\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.executeJob(DatabaseRenderer.java:158)\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): at org.mapsforge.android.maps.mapgenerator.MapWorker.doWork(MapWorker.java:73)\r\n02-20 11:05:04.771 E/AndroidRuntime(6624): at org.mapsforge.android.maps.PausableThread.run(PausableThread.java:94)\r\n--------- beginning of /dev/log/main\r\n02-20 11:10:28.361 E/MetadataRetrieverClient(193): failed to extract an album art\r\n02-20 11:14:39.191 E/ActivityThread(7800): Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@21ede7b0 that was originally bound here\r\n02-20 11:14:39.191 E/ActivityThread(7800): android.app.ServiceConnectionLeaked: Service com.android.exchange.ExchangeService has leaked ServiceConnection com.android.emailcommon.service.ServiceProxy$ProxyConnection@21ede7b0 that was originally bound here\r\n02-20 11:14:39.191 E/ActivityThread(7800): at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:979)\r\n02-20 11:14:39.191 E/ActivityThread(7800): at android.app.LoadedApk.getServiceDispatcher(LoadedApk.java:873)\r\n02-20 11:14:39.191 E/ActivityThread(7800): at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:1629)\r\n02-20 11:14:39.191 E/ActivityThread(7800): at android.app.ContextImpl.bindService(ContextImpl.java:1612)\r\n02-20 11:14:39.191 E/ActivityThread(7800): at android.content.ContextWrapper.bindService(ContextWrapper.java:518)\r\n02-20 11:14:39.191 E/ActivityThread(7800): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:157)\r\n02-20 11:14:39.191 E/ActivityThread(7800): at com.android.emailcommon.service.ServiceProxy.setTask(ServiceProxy.java:145)\r\n02-20 11:14:39.191 E/ActivityThread(7800): at com.android.emailcommon.service.AccountServiceProxy.reconcileAccounts(AccountServiceProxy.java:70)\r\n02-20 11:14:39.191 E/ActivityThread(7800): at com.android.exchange.ExchangeService.runAccountReconcilerSync(ExchangeService.java:1436)\r\n02-20 11:14:39.191 E/ActivityThread(7800): at com.android.exchange.ExchangeService$3.run(ExchangeService.java:1426)\r\n02-20 11:15:33.951 E/ObjectHelper(7892): Can't find method:setCompatibilityInfo\r\n02-20 11:15:34.101 E/WhatsNext(7498): >>>>>widget is empty\r\n02-20 11:17:53.231 E/bo (864): onStartInput event aborted: com.touchtype.keyboard.c.ag: could not obtain extracted text (class com.touchtype.keyboard.c.ag)\r\n02-20 11:18:12.421 E/WhatsNext(7498): >>>>>widget is empty\r\n02-20 11:18:18.551 E/memtrack(7976): Couldn't load memtrack module (No such file or directory)\r\n02-20 11:18:18.551 E/android.os.Debug(7976): failed to load memtrack module: -2\r\n02-20 11:18:18.851 E/memtrack(7991): Couldn't load memtrack module (No such file or directory)\r\n02-20 11:18:18.851 E/android.os.Debug(7991): failed to load memtrack module: -2\r\n02-20 11:18:19.221 E/memtrack(8009): Couldn't load memtrack module (No such file or directory)\r\n02-20 11:18:19.221 E/android.os.Debug(8009): failed to load memtrack module: -2\r\n02-20 11:18:19.461 E/memtrack(8024): Couldn't load memtrack module (No such file or directory)\r\n02-20 11:18:19.461 E/android.os.Debug(8024): failed to load memtrack module: -2\r\n02-20 11:19:06.591 E/cgeo (8041): [MapWorker] UncaughtException\r\n02-20 11:19:06.591 E/cgeo (8041): java.lang.NullPointerException\r\n02-20 11:19:06.591 E/cgeo (8041): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.renderArea(DatabaseRenderer.java:218)\r\n02-20 11:19:06.591 E/cgeo (8041): at org.mapsforge.android.maps.rendertheme.renderinstruction.Area.renderWay(Area.java:132)\r\n02-20 11:19:06.591 E/cgeo (8041): at org.mapsforge.android.maps.rendertheme.Rule.matchWay(Rule.java:217)\r\n02-20 11:19:06.591 E/cgeo (8041): at org.mapsforge.android.maps.rendertheme.Rule.matchWay(Rule.java:221)\r\n02-20 11:19:06.591 E/cgeo (8041): at org.mapsforge.android.maps.rendertheme.RenderTheme.matchWay(RenderTheme.java:198)\r\n02-20 11:19:06.591 E/cgeo (8041): at org.mapsforge.android.maps.rendertheme.RenderTheme.matchClosedWay(RenderTheme.java:126)\r\n02-20 11:19:06.591 E/cgeo (8041): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.renderWaterBackground(DatabaseRenderer.java:264)\r\n02-20 11:19:06.591 E/cgeo (8041): at org.mapsforge.map.reader.MapDatabase.processBlocks(MapDatabase.java:566)\r\n02-20 11:19:06.591 E/cgeo (8041): at org.mapsforge.map.reader.MapDatabase.executeQuery(MapDatabase.java:263)\r\n02-20 11:19:06.591 E/cgeo (8041): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.executeJob(DatabaseRenderer.java:158)\r\n02-20 11:19:06.591 E/cgeo (8041): at org.mapsforge.android.maps.mapgenerator.MapWorker.doWork(MapWorker.java:73)\r\n02-20 11:19:06.591 E/cgeo (8041): at org.mapsforge.android.maps.PausableThread.run(PausableThread.java:94)\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): FATAL EXCEPTION: MapWorker\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): Process: cgeo.geocaching, PID: 8041\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): java.lang.NullPointerException\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.renderArea(DatabaseRenderer.java:218)\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): at org.mapsforge.android.maps.rendertheme.renderinstruction.Area.renderWay(Area.java:132)\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): at org.mapsforge.android.maps.rendertheme.Rule.matchWay(Rule.java:217)\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): at org.mapsforge.android.maps.rendertheme.Rule.matchWay(Rule.java:221)\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): at org.mapsforge.android.maps.rendertheme.RenderTheme.matchWay(RenderTheme.java:198)\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): at org.mapsforge.android.maps.rendertheme.RenderTheme.matchClosedWay(RenderTheme.java:126)\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.renderWaterBackground(DatabaseRenderer.java:264)\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): at org.mapsforge.map.reader.MapDatabase.processBlocks(MapDatabase.java:566)\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): at org.mapsforge.map.reader.MapDatabase.executeQuery(MapDatabase.java:263)\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): at org.mapsforge.android.maps.mapgenerator.databaserenderer.DatabaseRenderer.executeJob(DatabaseRenderer.java:158)\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): at org.mapsforge.android.maps.mapgenerator.MapWorker.doWork(MapWorker.java:73)\r\n02-20 11:19:06.591 E/AndroidRuntime(8041): at org.mapsforge.android.maps.PausableThread.run(PausableThread.java:94)\r\n02-20 11:19:49.761 E/memtrack(8116): Couldn't load memtrack module (No such file or directory)\r\n02-20 11:19:49.761 E/android.os.Debug(8116): failed to load memtrack module: -2\r\n02-20 11:19:49.991 E/memtrack(8131): Couldn't load memtrack module (No such file or directory)\r\n02-20 11:19:49.991 E/android.os.Debug(8131): failed to load memtrack module: -2\r\n02-20 11:19:50.061 F/libc (8023): Fatal signal 13 (SIGPIPE) at 0x00001f57 (code=0), thread 8023 (logcat)\r\n02-20 11:19:52.661 E/memtrack(8155): Couldn't load memtrack module (No such file or directory)\r\n02-20 11:19:52.661 E/android.os.Debug(8155): failed to load memtrack module: -2\r\n02-20 11:19:53.011 E/memtrack(8172): Couldn't load memtrack module (No such file or directory)\r\n02-20 11:19:53.011 E/android.os.Debug(8172): failed to load memtrack module: -2\r\n02-20 11:19:53.351 E/memtrack(8188): Couldn't load memtrack module (No such file or directory)\r\n02-20 11:19:53.351 E/android.os.Debug(8188): failed to load memtrack module: -2\r\n02-20 11:19:53.631 E/memtrack(8202): Couldn't load memtrack module (No such file or directory)\r\n02-20 11:19:53.631 E/android.os.Debug(8202): failed to load memtrack module: -2\r\n02-20 11:20:24.561 E/bo (864): onStartInputView event aborted: com.touchtype.keyboard.c.af: Unable to get TouchTypeExtractedText from InputConnection. (class com.touchtype.keyboard.c.af)\r\n\r\n\r\nThanks\r\n\r\nDuncan"},"comment":{"url":"https://api.github.com/repos/cgeo/cgeo/issues/comments/75474018","html_url":"https://github.com/cgeo/cgeo/issues/4692#issuecomment-75474018","issue_url":"https://api.github.com/repos/cgeo/cgeo/issues/4692","id":75474018,"user":{"login":"duncanhoyle","id":11143775,"avatar_url":"https://avatars.githubusercontent.com/u/11143775?v=3","gravatar_id":"","url":"https://api.github.com/users/duncanhoyle","html_url":"https://github.com/duncanhoyle","followers_url":"https://api.github.com/users/duncanhoyle/followers","following_url":"https://api.github.com/users/duncanhoyle/following{/other_user}","gists_url":"https://api.github.com/users/duncanhoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/duncanhoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncanhoyle/subscriptions","organizations_url":"https://api.github.com/users/duncanhoyle/orgs","repos_url":"https://api.github.com/users/duncanhoyle/repos","events_url":"https://api.github.com/users/duncanhoyle/events{/privacy}","received_events_url":"https://api.github.com/users/duncanhoyle/received_events","type":"User","site_admin":false},"created_at":"2015-02-23T00:03:57Z","updated_at":"2015-02-23T00:03:57Z","body":"I found https://github.com/cgeo/cgeo/issues/2723 but it was closed.\r\n\r\nI noticed the water background in the logs so I've just removed all water from my osm file and the map worked. Not really along term solution but it confirms the problem location. I couldn't track down the exact reason though.\r\n\r\nNever mind, all of my other maps appear to be working. It was just unfortunate that this happens to be my local test map (it contains a useful selection of features and is relatively small and quick to build:-). It's odd that a much larger map which contains the data from this one works fine.\r\n\r\nIf I figure anything out I'll post an update"}}