Repository navigation
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Files Reviewed (2 files)
Previous Review Summary (commit c7de7a3)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit c7de7a3)Status: No Issues Found | Recommendation: Merge Files Reviewed (5 files)
Reviewed by free · Input: 18.8K · Output: 604 · Cached: 73.2K |
c7de7a3 to
32792c4
Compare
Description
Streaming an Android emulator right after starting it from the desktop app fails with:
Cause. The app opens the stream as soon as adb lists the emulator, which happens before Android draws its first frame.
EmulatorGrpcSession._readDisplayalready waits up to 3 min for the display, but only whilegetScreenshotreturns an empty (0×0) image. Until the first frame, the emulator instead answers with the gRPC error above, sostart()failed at once.Fix.
_readDisplaytreats gRPC errors like an empty display: it asks again every 500 ms until the existing 3 min boot timeout, then reports the last error. Errors that waiting cannot fix still fail right away:unauthenticated(wrong token),permissionDenied,unimplementedandinvalidArgument.simutil_adbgoes to 1.4.1 (fix only, no API change). The app changelog is updated.Verified
test/emulator/emulator_grpc_session_test.dartruns a local gRPC server as the emulator:unavailable: The guest has not posted new framestwice, then a 0×0 image, then the display → the session goes live at 1080×2424. Againstmainthis fails withSessionFailed, the reported symptom;unauthenticated→SessionFailed('gRPC: bad token')after a single call.dart analyze --fatal-infos, format check andmelos run testare green; inapp,flutter analyzeis clean andflutter testpasses 117.-no-window -gpu host, also with the screen off), the session still goes live in about 1 s.simutil_adbis also bumped in #81 (1.5.0) and #86 (1.4.1); whichever merges later needs a trivial version/changelog merge.Suggested labels:
fixbug,app,macos.Type of Change
Summary by CodeRabbit