{"action":"created","issue":{"url":"https://api.github.com/repos/googlemaps/android-maps-utils/issues/189","repository_url":"https://api.github.com/repos/googlemaps/android-maps-utils","labels_url":"https://api.github.com/repos/googlemaps/android-maps-utils/issues/189/labels{/name}","comments_url":"https://api.github.com/repos/googlemaps/android-maps-utils/issues/189/comments","events_url":"https://api.github.com/repos/googlemaps/android-maps-utils/issues/189/events","html_url":"https://github.com/googlemaps/android-maps-utils/issues/189","id":98381616,"number":189,"title":"\"Released unknown imageData reference\"","user":{"login":"cjetrifork","id":11386375,"avatar_url":"https://avatars.githubusercontent.com/u/11386375?v=3","gravatar_id":"","url":"https://api.github.com/users/cjetrifork","html_url":"https://github.com/cjetrifork","followers_url":"https://api.github.com/users/cjetrifork/followers","following_url":"https://api.github.com/users/cjetrifork/following{/other_user}","gists_url":"https://api.github.com/users/cjetrifork/gists{/gist_id}","starred_url":"https://api.github.com/users/cjetrifork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjetrifork/subscriptions","organizations_url":"https://api.github.com/users/cjetrifork/orgs","repos_url":"https://api.github.com/users/cjetrifork/repos","events_url":"https://api.github.com/users/cjetrifork/events{/privacy}","received_events_url":"https://api.github.com/users/cjetrifork/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2015-07-31T12:31:45Z","updated_at":"2016-12-23T11:25:09Z","closed_at":null,"body":"I am doing the clustering dynamically to get an acceptable performance:\n\n``` java\n private class DynamicallyAddMarkerTask extends AsyncTask {\n        @Override\n        protected void onPostExecute(Object o) {\n            super.onPostExecute(o);\n            clusterManager.cluster();\n        }\n\n        @Override\n        protected Object doInBackground(Object[] objects) {\n            LatLngBounds bounds = (LatLngBounds) objects[0];\n            clusterManager.clearItems();\n\n            for (LoyaltyOutlet currentMarker : sortedAndFilteredOutlets) {\n                if (bounds.contains(currentMarker.getPosition())) {\n                    clusterManager.addItem(currentMarker);\n                }\n            }\n\n            return null;\n        }\n    }\n```\n\nThis is triggered in a OnCameraChangeListener but unfortunately this makes the lib crash my app now and then. Do you think it will possible to fix this issue in the lib by for example just ignoring the exception?\n\nCrash stack trace:\n\n``` java\n java.lang.IllegalArgumentException: Released unknown imageData reference\n            at com.google.common.base.j.a(Unknown Source)\n            at com.google.maps.api.android.lib6.impl.f.c(Unknown Source)\n            at com.google.maps.api.android.lib6.impl.ap.a(Unknown Source)\n            at com.google.maps.api.android.lib6.impl.ap.remove(Unknown Source)\n            at com.google.android.gms.maps.model.internal.IMarkerDelegate$Stub.onTransact(IMarkerDelegate.java:51)\n            at android.os.Binder.transact(Binder.java:347)\n            at com.google.android.gms.maps.model.internal.zzi$zza$zza.remove(Unknown Source)\n            at com.google.android.gms.maps.model.Marker.remove(Unknown Source)\n            at com.google.maps.android.MarkerManager$Collection.remove(MarkerManager.java:163)\n            at com.google.maps.android.MarkerManager.remove(MarkerManager.java:140)\n            at com.google.maps.android.clustering.view.DefaultClusterRenderer$MarkerModifier.removeMarker(DefaultClusterRenderer.java:637)\n            at com.google.maps.android.clustering.view.DefaultClusterRenderer$MarkerModifier.performNextTask(DefaultClusterRenderer.java:628)\n            at com.google.maps.android.clustering.view.DefaultClusterRenderer$MarkerModifier.handleMessage(DefaultClusterRenderer.java:596)\n            at android.os.Handler.dispatchMessage(Handler.java:99)\n            at android.os.Looper.loop(Looper.java:176)\n            at android.app.ActivityThread.main(ActivityThread.java:5419)\n            at java.lang.reflect.Method.invokeNative(Native Method)\n            at java.lang.reflect.Method.invoke(Method.java:525)\n            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)\n            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)\n            at dalvik.system.NativeStart.main(Native Method)\n```\n"},"comment":{"url":"https://api.github.com/repos/googlemaps/android-maps-utils/issues/comments/268976456","html_url":"https://github.com/googlemaps/android-maps-utils/issues/189#issuecomment-268976456","issue_url":"https://api.github.com/repos/googlemaps/android-maps-utils/issues/189","id":268976456,"user":{"login":"trivalent","id":2360675,"avatar_url":"https://avatars.githubusercontent.com/u/2360675?v=3","gravatar_id":"","url":"https://api.github.com/users/trivalent","html_url":"https://github.com/trivalent","followers_url":"https://api.github.com/users/trivalent/followers","following_url":"https://api.github.com/users/trivalent/following{/other_user}","gists_url":"https://api.github.com/users/trivalent/gists{/gist_id}","starred_url":"https://api.github.com/users/trivalent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trivalent/subscriptions","organizations_url":"https://api.github.com/users/trivalent/orgs","repos_url":"https://api.github.com/users/trivalent/repos","events_url":"https://api.github.com/users/trivalent/events{/privacy}","received_events_url":"https://api.github.com/users/trivalent/received_events","type":"User","site_admin":false},"created_at":"2016-12-23T11:25:09Z","updated_at":"2016-12-23T11:25:09Z","body":"For anyone else wondering why this may be occurring, here are the exact steps to reproduce the issue\r\n\r\n1. Place few markers to form a cluster.\r\n2. Zoom in to the map so all markers appears individually on map.\r\n3. Run an long duration animation on the marker like simple animation changing marker icon\r\n4. Zoom out so that marker goes back to cluster, invalidating this marker's reference.\r\n5. Crash occurs with **\"java.lang.IllegalArgumentException: Released unknown imageData reference\"**. due to animation attempt to update marker. \r\n\r\nAs per the steps, this seems like a incorrect maps api usage issue."}}
{"actor":{"display_login":"trivalent"}}