Instabug-Android icon indicating copy to clipboard operation
Instabug-Android copied to clipboard

Take a screenshot results in a blank screen

Open josancamon19 opened this issue 2 years ago • 10 comments

Hi, it's Joan from @conchalabs.

Steps to Reproduce the Problem

  • Open the ConchaLabs app (please share an email so that I can add you to the firebase distribution list)
  • Bug reporting - take a screenshot, before and during the login screens it works. But after that, You get a blank screen.
  • Sign up through Gmail or manual
  • Sign in
  • Try to report a bug and try to take a screenshot

Expected Behavior

  • A miniature of the screenshot taken

Actual Behavior

  • A blank screen - https://cln.sh/j24LNn

Instabug integration code

 Instabug.Builder(this, "")
            .setViewHierarchyState(Feature.State.ENABLED)
            .setInvocationEvents(InstabugInvocationEvent.FLOATING_BUTTON)
            .setReproStepsState(State.ENABLED)
            .setUserDataState(Feature.State.ENABLED)
            .setUserEventsState(Feature.State.ENABLED)
            .setConsoleLogState(Feature.State.ENABLED)
            .setInAppMessagingState(Feature.State.ENABLED)
            .setTrackingUserStepsState(Feature.State.ENABLED)
            .build()

        Instabug.setWelcomeMessageState(WelcomeMessage.State.DISABLED)
        BugReporting.setScreenshotByMediaProjectionEnabled(false)

        BugReporting.show(BugReporting.ReportType.BUG)
        BugReporting.show(BugReporting.ReportType.FEEDBACK)
        BugReporting.show(BugReporting.ReportType.QUESTION)

SDK Version

  • 10.9.0

Android Version

Android version: 10 Current version: QSBS30.62-17-17-10

Device Model

Motorola One Action

[Optional] Project That Reproduces the Issue

Please share your email so that I can add you to the beta firebase distribution project.

josancamon19 avatar Sep 24 '21 09:09 josancamon19

The simplest integration code fails too.

Instabug.Builder(this, "")
    .setInvocationEvents(InstabugInvocationEvent.TWO_FINGER_SWIPE_LEFT)
    .build()

josancamon19 avatar Sep 24 '21 09:09 josancamon19

Tried most 10.x versions and 9.1.8, same for all of them.

josancamon19 avatar Sep 24 '21 09:09 josancamon19

@josancamon19 Thanks for reaching out to us, and for the details report. Do you use any HW accelerated views in the screens after the login? If yes, we won't be able to capture the screenshots unless you enable the media projection screenshot by

        BugReporting.setScreenshotByMediaProjectionEnabled(true)

Also, feel free to add me for the distribution list by the email: [email protected] if still needed.

amrbrkt avatar Sep 24 '21 09:09 amrbrkt

Hi, No, we don't use HW views, anyways I tried with BugReporting.setScreenshotByMediaProjectionEnabled(true) and the same blank screen.

Thanks, @amrbrkt just added you to the distribution list.

josancamon19 avatar Sep 24 '21 10:09 josancamon19

@josancamon19 I've got the invite and I downloaded, signed up the app and see your issue now. I'd ask you to re-share a debug build after enabling the SDK logs and allowing screenshot attachment to bug reporting using the following APIs:

Instabug.setDebugEnabled(true)
BugReporting.setAttachmentTypesEnabled(true, true, false, false)

amrbrkt avatar Sep 24 '21 12:09 amrbrkt

Thanks, @amrbrkt just sent you a new version.

josancamon19 avatar Sep 24 '21 17:09 josancamon19

@josancamon19 I can't see the new build on the Firebase App Tester, the existing is the first one you shared.

amrbrkt avatar Sep 30 '21 09:09 amrbrkt

Sorry, it should be available now

josancamon19 avatar Oct 01 '21 07:10 josancamon19

@josancamon19 Would you be able to reproduce it on a sample app? Try to simulate your UI implementation as much as you can, and share the source code with us.

amrbrkt avatar Oct 04 '21 11:10 amrbrkt

I just saw this message, I could replicate UI.

josancamon19 avatar Oct 22 '21 10:10 josancamon19

Hello @josancamon19 , I hope you have a lovely day. We will close this one, but if you still encounter any issues, please feel free to reopen it anytime. Thank you.

Bashayer-reda avatar Feb 01 '24 10:02 Bashayer-reda