Skip to content

Flutter (Channel beta, 3.13.0-0.4.pre) hangs when backgrounding app and locking phone, then coming back. #132666

@notandyvee

Description

@notandyvee

Is there an existing issue for this?

Steps to reproduce

Whenever I go a few screens into my app, background the app, lock the device, and come back, there is a high chance the app hangs.

Unfortunately I cannot reproduce on a sample app. So some part of this might be my app or a library. But I provide a screenshot below.

It should also be noted I tested 3.10. Doesn't happen there. So it was a change between 3.10 and 3.13 beta.

Expected results

No hang.

Actual results

The app hangs. No error. Nothing I can actionably do at the moment.

Code sample

Code sample

N/A

Screenshots or Video

Screenshots / Video demonstration Screenshot 2023-08-16 at 12 46 01 PM

When running the app on xcode, I can pause to see the threads. The problem is a lot of it is machine codes. It's hard to decipher anything.

Logs

Logs

No logs, which is the problem. Just a hang.

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 3.13.0-0.4.pre, on macOS 13.4.1 22F770820d darwin-arm64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google
    Chrome.app/Contents/MacOS/Google Chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.81.1)
[✓] Connected device (2 available)
[✓] Network resources

! Doctor found issues in 1 category.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: regressionIt was better in the past than it is nowe: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.platform-iosiOS applications specificallyr: fixedIssue is closed as already fixed in a newer versionteam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions