{"action":"closed","issue":{"url":"https://api.github.com/repos/appcelerator-modules/ti.map/issues/169","repository_url":"https://api.github.com/repos/appcelerator-modules/ti.map","labels_url":"https://api.github.com/repos/appcelerator-modules/ti.map/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/appcelerator-modules/ti.map/issues/169/comments","events_url":"https://api.github.com/repos/appcelerator-modules/ti.map/issues/169/events","html_url":"https://github.com/appcelerator-modules/ti.map/issues/169","id":163645657,"number":169,"title":"Annotation with specific density image crashes on Android","user":{"login":"AndreaVitale","id":2265079,"avatar_url":"https://avatars.githubusercontent.com/u/2265079?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreaVitale","html_url":"https://github.com/AndreaVitale","followers_url":"https://api.github.com/users/AndreaVitale/followers","following_url":"https://api.github.com/users/AndreaVitale/following{/other_user}","gists_url":"https://api.github.com/users/AndreaVitale/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreaVitale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreaVitale/subscriptions","organizations_url":"https://api.github.com/users/AndreaVitale/orgs","repos_url":"https://api.github.com/users/AndreaVitale/repos","events_url":"https://api.github.com/users/AndreaVitale/events{/privacy}","received_events_url":"https://api.github.com/users/AndreaVitale/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-04T10:13:22Z","updated_at":"2016-08-10T16:59:11Z","closed_at":"2016-08-10T16:59:11Z","body":"I have some specific density image markers placed inside these folders:\r\n```\r\n/app/assets/android/res-hdpi\r\n/app/assets/android/res-xhdpi\r\n/app/assets/android/res-xxhdpi\r\n/app/assets/android/res-xxxhdpi\r\n```\r\nwhen I use them to create an annotation my app crashes with this error:\r\n```\r\n[ERROR] TiApplication: (main) [698,2922] Sending event: exception on thread: main msg:java.lang.NullPointerException: IBitmapDescriptorFactory is not initialized; Titanium 5.3.0,2016/06/01 10:18,94fa8af\r\n[ERROR] TiApplication: java.lang.NullPointerException: IBitmapDescriptorFactory is not initialized\r\n[ERROR] TiApplication:     at com.google.android.gms.common.internal.zzu.zzb(Unknown Source)\r\n[ERROR] TiApplication:     at com.google.android.gms.maps.model.BitmapDescriptorFactory.zzvH(Unknown Source)\r\n[ERROR] TiApplication:     at com.google.android.gms.maps.model.BitmapDescriptorFactory.fromBitmap(Unknown Source)\r\n[ERROR] TiApplication:     at ti.map.AnnotationProxy.handleImage(AnnotationProxy.java:235)\r\n[ERROR] TiApplication:     at ti.map.AnnotationProxy.processOptions(AnnotationProxy.java:203)\r\n[ERROR] TiApplication:     at ti.map.TiUIMapView.addAnnotation(TiUIMapView.java:403)\r\n[ERROR] TiApplication:     at ti.map.TiUIMapView.addAnnotations(TiUIMapView.java:416)\r\n[ERROR] TiApplication:     at ti.map.TiUIMapView.updateAnnotations(TiUIMapView.java:425)\r\n[ERROR] TiApplication:     at ti.map.TiUIMapView.propertyChanged(TiUIMapView.java:266)\r\n[ERROR] TiApplication:     at org.appcelerator.kroll.KrollPropertyChange.fireEvent(KrollPropertyChange.java:21)\r\n[ERROR] TiApplication:     at org.appcelerator.kroll.KrollProxy.handleMessage(KrollProxy.java:1093)\r\n[ERROR] TiApplication:     at org.appcelerator.titanium.proxy.TiViewProxy.handleMessage(TiViewProxy.java:356)\r\n[ERROR] TiApplication:     at ti.map.ViewProxy.handleMessage(ViewProxy.java:249)\r\n[ERROR] TiApplication:     at android.os.Handler.dispatchMessage(Handler.java:98)\r\n[ERROR] TiApplication:     at android.os.Looper.loop(Looper.java:136)\r\n[ERROR] TiApplication:     at android.app.ActivityThread.main(ActivityThread.java:5001)\r\n[ERROR] TiApplication:     at java.lang.reflect.Method.invokeNative(Native Method)\r\n[ERROR] TiApplication:     at java.lang.reflect.Method.invoke(Method.java:515)\r\n[ERROR] TiApplication:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)\r\n[ERROR] TiApplication:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)\r\n[ERROR] TiApplication:     at dalvik.system.NativeStart.main(Native Method)\r\n```\r\n\r\nI also tried to check if the specific image exists before setting it as a marker image using this code:\r\n```\r\n                Ti.API.info(\"Setting marker to\", marker);\r\n                Ti.API.info(\"File exists?\", Ti.Filesystem.getFile(Ti.Filesystem.resourcesDirectory, marker).exists());\r\n```\r\nand the output is\r\n```\r\n[INFO]  Setting marker to /images/private-available.png\r\n[INFO]  File exists? true\r\n[INFO]  Setting marker to /images/open-available.png\r\n[INFO]  File exists? true\r\n[INFO]  Setting marker to /images/private-available.png\r\n[INFO]  File exists? true\r\n```"}}
{"actor":{"display_login":"hansemannn"}}