-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
integration_test screenshot Android - FlutterFragmentActivity - PlatformException(Could not copy the pixels, FlutterView is null) #89683
Comments
@hampsterx Also, please check this similar /related issue for your reference: #83856 |
My project is using cheers~ |
Thank for the file. I verified this on latest master and stable and see the same behavior. Below exception is thrown: console error log
flutter doctor -v
|
Is there already a solution for this? Also hitting the exact same issue. |
@blasten worked on this. |
Same problem on 2.8.1 |
Also looking for a solution on this issue :( |
¿Any updates on this? I'm using flutter 2.10.3 and still having the same error. I'm also using FlutterFragmentActivity |
Still an issue in flutter 3.0.5. @darshankawar maybe add the tag for flutter 3.0? |
@jmagman - Am I correct in understanding that this bug prevents all screenshot captures from Android apps through the relevant Flutter APIs? |
I suppose I should also tag @GaryQian with that question, too ^ |
I don't work on this 🙂 |
Still an issue in flutter 3.10.0, is there a workaround available ? |
Here's what seems to work for me so far:
|
This is still the recommended way for some packages, eg
Seems semi related maybe.. |
This issue is marked P1 but has had no recent status updates. The P1 label indicates high-priority issues that are at the top of the work list. This is the highest priority level a bug can have if it isn't affecting a top-tier customer or breaking the build. Bugs marked P1 are generally actively being worked on unless the assignee is dealing with a P0 bug (or another P1 bug). Issues at this level should be resolved in a matter of months and should have monthly updates on GitHub. Please consider where this bug really falls in our current priorities, and label it or assign it accordingly. This allows people to have a clearer picture of what work is actually planned. Thanks! |
…ctivity`s (#132406) Fixes #89683. The changes to `getFlutterView` in `FlutterDeviceScreenshot` are the fix that was required, everything else was done to get tests running (such as re-generating some lockfiles and modifying the android manifest). The code was all currently not unit tested, and there were no other easy examples to base these java unit tests off in flutter/flutter, so let me know if this approach to testing is wrong.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
FlutterFragmentActivity
Expected results:
Takes screenshot, same as when using
FlutterActivity
Actual results:
The text was updated successfully, but these errors were encountered: