java.lang.IllegalStateException: Immutable bitmap passed to Canvas constructor

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Ngoc Thang Pham
, 1 year ago
Immutable bitmap passed to Canvas constructor
via Google Groups by Unknown author, 6 months ago
Immutable bitmap passed to Canvas constructor
via Stack Overflow by Yerry Huntry
, 1 year ago
Immutable bitmap passed to Canvas constructor
java.lang.IllegalStateException: Immutable bitmap passed to Canvas constructor
at android.graphics.Canvas.(Canvas.java:127)
at com.example.sev_user.smarthome.gui.fragment.MapFragment$1.onBitmapLoaded(MapFragment.java:108)
at com.squareup.picasso.TargetAction.complete(TargetAction.java:36)
at com.squareup.picasso.Picasso.deliverAction(Picasso.java:557)
at com.squareup.picasso.Picasso.complete(Picasso.java:509)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4950)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:997)

Users with the same issue

Once, 1 year ago
30 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.