Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#google #46

Open
sarvarfx opened this issue Apr 25, 2024 · 0 comments
Open

#google #46

sarvarfx opened this issue Apr 25, 2024 · 0 comments

Comments

@sarvarfx
Copy link

What steps will reproduce the problem? Please provide sscce (short, self
contained, correct example) when possible.

  1. initialize(add to map) a marker with custom bitmap icon
  2. when marker A is clicked, it's icon need to be changed to another bitmap
  3. So, I put marker.setIcon(some_new_bitmapDescripter) in the marker's
    onMarkerCLick callback
  4. it seems work fine first
  5. but after create and click some markers repeatedly, app crashes with
    exception

What is the expected output? What do you see instead?

I want to see markers changing their icon when clicked. but, exception comes
like below...


java.lang.IllegalArgumentException: Released unknown bitmap reference
        at maps.aq.o.a(Unknown Source)
        at maps.af.n.b(Unknown Source)
        at maps.af.bk.a(Unknown Source)
        at cpe.onTransact(SourceFile:204)
        at android.os.Binder.transact(Binder.java:326)
        at com.google.android.gms.maps.model.internal.d$a$a.i(Unknown Source)
        at com.google.android.gms.maps.model.Marker.setIcon(Unknown Source)
        at com.androidmapsextensions.lazy.LazyMarker.setIcon(LazyMarker.java:185)
        at com.androidmapsextensions.impl.DelegatingMarker.setIcon(DelegatingMarker.java:188)
        at com.livecity.s.activity.MainActivity.focusOnMarker(MainActivity.java:365)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant