Instabug/Instabug-Android

Crash on Android 14 when capturing screenshot from by using phone's shortcuts

leanh128 opened this issue · 3 comments

Steps to Reproduce the Problem

  1. Build app with minifyEnabled true and targetSdkVersion 33.
  2. Turn on screenshot event listerner by BugReporting.setInvocationEvents(InstabugInvocationEvent.SCREENSHOT)
  3. From launcher Activity start a new one
  4. Take screenshot by using phone shortcuts. For ex, "Volume down + Power"

Expected Behavior

Screenshot get captured and open feedback form

Actual Behavior

App crash

Instabug integration code

Make sure to remove your app token.

SDK Version

13.0.1

Android Version

14

Device Model

Samsung A72

Crash log

Fatal Exception: java.lang.AbstractMethodError: abstract method "void android.app.Activity$ScreenCaptureCallback.onScreenCaptured()"
       at android.app.ScreenCaptureCallbackHandler$ScreenCaptureObserver.lambda$onScreenCaptured$0(ScreenCaptureCallbackHandler.java:66)
       at android.app.ScreenCaptureCallbackHandler$ScreenCaptureObserver$$ExternalSyntheticLambda0.run(:2)
       at android.os.Handler.handleCallback(Handler.java:958)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:230)
       at android.os.Looper.loop(Looper.java:319)
       at android.app.ActivityThread.main(ActivityThread.java:8893)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

Hello @leanh128 and thanks for reporting this issue. Currently, we are working on a fix for this one that will be released soon.

@MohamedHefny Any news? We are also seeing this crash

Hello @FrancoisBlavoet, thank you so much for reaching out. We appreciate your time. We will add a fix for this issue, and it will be included in our SDK very soon. Thank you