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 on Android 14 when capturing screenshot from by using phone's shortcuts #478

Open
leanh128 opened this issue May 15, 2024 · 3 comments

Comments

@leanh128
Copy link

leanh128 commented May 15, 2024

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)
@MohamedHefny
Copy link

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

@FrancoisBlavoet
Copy link

@MohamedHefny Any news? We are also seeing this crash

@Bashayer-reda
Copy link

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

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

4 participants