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

Crash with agent avatar #78

Open
dennis-montana opened this issue Mar 20, 2019 · 0 comments
Open

Crash with agent avatar #78

dennis-montana opened this issue Mar 20, 2019 · 0 comments

Comments

@dennis-montana
Copy link

Hi LivePerson,

We have a crash using the latest Android SDK (3.6.1) or earlier when an agent is using an avatar. This is not happening on all devices, but we are able reproduce it using an Android 6.0 (LG G5) and Android 8.0 (Nexus 5X) phone using the demo app.
The image we used:
https://cdn.dribbble.com/users/722835/screenshots/4082720/bot_icon.gif
The crash happens instantly when we open the conversation in an activity and the history is loaded.

This is the exception we get:

com.liveperson.sample.app E/AndroidRuntime: FATAL EXCEPTION: main
   Process: com.liveperson.sample.app, PID: 9529
   java.lang.RuntimeException: Transformation circle crashed with exception.
       at com.squareup.picasso.BitmapHunter$3.run(BitmapHunter.java:434)
       at android.os.Handler.handleCallback(Handler.java:789)
       at android.os.Handler.dispatchMessage(Handler.java:98)
       at android.os.Looper.loop(Looper.java:164)
       at android.app.ActivityThread.main(ActivityThread.java:6541)
       at java.lang.reflect.Method.invoke(Native Method)
       at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
    Caused by: java.lang.NullPointerException: Attempt to read from field 'int android.graphics.Bitmap$Config.nativeInt' on a null object reference
       at android.graphics.Bitmap.createBitmap(Bitmap.java:1014)
       at android.graphics.Bitmap.createBitmap(Bitmap.java:968)
       at android.graphics.Bitmap.createBitmap(Bitmap.java:918)
       at android.graphics.Bitmap.createBitmap(Bitmap.java:879)
       at com.liveperson.infra.ui.view.utils.picasso.CircleTransform.transform(CircleTransform.java:43)
       at com.squareup.picasso.BitmapHunter.applyCustomTransformations(BitmapHunter.java:429)
       at com.squareup.picasso.BitmapHunter.hunt(BitmapHunter.java:238)
       at com.squareup.picasso.BitmapHunter.run(BitmapHunter.java:159)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:764)
       at com.squareup.picasso.Utils$PicassoThread.run(Utils.java:411)
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