Repository navigation
Closed
Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowc: crashStack traces logged to the consoleStack traces logged to the consolecustomer: mulligan (g3)customer: penguincustomer: productengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-iosiOS applications specificallyiOS applications specifically
Milestone
Description
Internal: b/140829173
Steps to Reproduce
1. click to jump to flutter page, at the same time back to background
2. iphone6, 6plus, 5s device
[✓] Flutter (Channel faceu_dev_1.0.0, v1.0.1-pre.5, on Mac OS X 10.13.6 17G65,
locale zh-Hans-CN)
• Flutter version 1.0.1-pre.5 at
/Users/xiongzhuang/Documents/study/flutter/flutter
• Framework revision 0fd43583b8 (5 weeks ago), 2018-12-09 19:12:32 +0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from:
https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK
components.
(or visit https://flutter.io/setup/#android-setup for detailed
instructions).
If Android SDK has been installed to a custom location, set $ANDROID_HOME
to that location.
You may also want to add it to your PATH environment variable.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.0, Build version 10A255
• ios-deploy 2.0.0
• CocoaPods version 1.5.3
[!] Android Studio (not installed)
• Android Studio not found; download from
https://developer.android.com/studio/index.html
(or visit https://flutter.io/setup/#android-setup for detailed
instructions).
[!] VS Code (version 1.29.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
Reacted by Andrea Valenzano, windvip, Thomas Adam, Perry, wonderful89, GuoQingyun, shuaiwang, jsruth, Fei Song, Haiyin and 15 more
Reacted by Sait Banazılı
Reacted by Sait Banazılı
Metadata
Metadata
Assignees
Labels
a: existing-appsIntegration with existing apps via the add-to-app flowIntegration with existing apps via the add-to-app flowc: crashStack traces logged to the consoleStack traces logged to the consolecustomer: mulligan (g3)customer: penguincustomer: productengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-iosiOS applications specificallyiOS applications specifically
Activity
Arnold134777 commentedon Jan 10, 2019
Our app on-line has many crashes about this.
zoechi commentedon Jan 10, 2019
Can you please elaborate? What does "jump to flutter page" and "back to background" mean?
Can you provide a minimal reproduction?
zoechi commentedon Jan 10, 2019
Is
the full error output?
Arnold134777 commentedon Jan 11, 2019
Our app has native and flutter page, we crate a entry can jump to a flutter page. According to online user reponses, we find almost action is click the entry button, and press home to back to background.
Arnold134777 commentedon Jan 11, 2019
@zoechi According to the Fabirc crash description:
zoechi commentedon Jan 11, 2019
Can you please provide a minimal reproduction project on GitHub?
windvip commentedon Jun 22, 2019
Thread 15 name: xxx.1.gpu
Thread 15 Crashed:
0 libGPUSupportMercury.dylib 0x00000001a09f4efc gpus_ReturnNotPermittedKillClient + 12
1 AGXGLDriver 0x00000001a4b63238 156216
2 libGPUSupportMercury.dylib 0x00000001a09f5edc gpusSubmitDataBuffers + 176
3 AGXGLDriver 0x00000001a4b64734 161588
4 GLEngine 0x00000001a5c2601c gliPresentViewES_Exec + 188
5 OpenGLES 0x0000000188716a8c -[EAGLContext presentRenderbuffer:] + 80
6 Flutter 0x0000000108b175d4 161236
7 Flutter 0x0000000108e6c9d0 3656144
8 Flutter 0x0000000108b6ad9c 503196
9 Flutter 0x0000000108b5d848 448584
10 Flutter 0x0000000108b5dce4 449764
11 Flutter 0x0000000108b5e044 450628
12 Flutter 0x0000000108b5db90 449424
13 Flutter 0x0000000108b620ac 467116
14 Flutter 0x0000000108b24690 214672
15 Flutter 0x0000000108b25acc 219852
16 CoreFoundation 0x000000018581a92c CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 28
17 CoreFoundation 0x000000018581a650 __CFRunLoopDoTimer + 864
18 CoreFoundation 0x0000000185819e50 __CFRunLoopDoTimers + 248
19 CoreFoundation 0x0000000185817a38 __CFRunLoopRun + 1928
20 CoreFoundation 0x0000000185737fb8 CFRunLoopRunSpecific + 436
21 Flutter 0x0000000108b25958 219480
22 Flutter 0x0000000108b25200 217600
23 libsystem_pthread.dylib 0x000000018549c31c _pthread_body + 308
24 libsystem_pthread.dylib 0x000000018549c1e8 _pthread_body + 0
25 libsystem_pthread.dylib 0x000000018549ac28 thread_start + 4
windvip commentedon Jun 22, 2019
please see this doc, but i dont know how to fix it :
https://developer.apple.com/library/archive/qa/qa1766/_index.html
34 remaining items
voiddog commentedon Nov 20, 2019
same issues
gaaclarke commentedon Nov 22, 2019
Should be fixed now. We opted to guard each call site instead of locking down the thread so this might pop up again in the future for new code. I tested with the original repro code and the landed PR fixes that.
BharathMG-ShareChat commentedon Dec 18, 2019
@gaaclarke Thanks a lot for this work. I was trying very hard to find which flutter version includes that engine commit. But, the flutter commit fad3c70 doesn't include any version information.
Could you let us know which version has this fix? Thanks!
MrLittleStrong commentedon Dec 19, 2019
Stable Channel Flutter 1.12.13+hotfix 5
suzhenghao commentedon Mar 16, 2020
@gaaclarke hi, my app has upgraded flutter to 1.12.13+hotfix 5, but the crash is still there. Can you give me a help please ?
gaaclarke commentedon Mar 16, 2020
This fix is in 1.15.21 and later.
144eb45
livotov commentedon Mar 23, 2020
Deployed updated app to production - still happens on iOS 12, Flutter v1.16.0
Crashed: io.flutter.1.gpu
0 libGPUSupportMercury.dylib 0x1df279fe4 gpus_ReturnNotPermittedKillClient + 12
1 AGXGLDriver 0x1e38deed8 gldUpdateDispatch + 7184
2 libGPUSupportMercury.dylib 0x1df27afac gpusSubmitDataBuffers + 176
3 AGXGLDriver 0x1e38e0404 gldUpdateDispatch + 12604
4 GLEngine 0x1e498a234 gliPresentViewES_Exec + 184
5 OpenGLES 0x1c6542aa4 -[EAGLContext presentRenderbuffer:] + 80
6 Flutter 0x1012fb624 (Missing)
7 Flutter 0x1016f8280 (Missing)
8 Flutter 0x10135fdf0 (Missing)
9 Flutter 0x10134d2c0 (Missing)
10 Flutter 0x10134e044 (Missing)
11 Flutter 0x10134d56c (Missing)
12 Flutter 0x1013534c0 (Missing)
13 Flutter 0x10130bea0 (Missing)
14 Flutter 0x10130db18 (Missing)
15 CoreFoundation 0x1c32c9554 CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 28
16 CoreFoundation 0x1c32c9284 __CFRunLoopDoTimer + 864
17 CoreFoundation 0x1c32c8ab8 __CFRunLoopDoTimers + 248
18 CoreFoundation 0x1c32c3a08 __CFRunLoopRun + 1844
19 CoreFoundation 0x1c32c2fb4 CFRunLoopRunSpecific + 436
20 Flutter 0x10130d9f4 (Missing)
21 Flutter 0x10130d3c0 (Missing)
22 libsystem_pthread.dylib 0x1c2f552c0 _pthread_body + 128
23 libsystem_pthread.dylib 0x1c2f55220 _pthread_start + 44
24 libsystem_pthread.dylib 0x1c2f58cdc thread_start + 4
MrLittleStrong commentedon Mar 29, 2020
@gaaclarke please check this
rohnsht commentedon Mar 30, 2020
@gaaclarke Has this issue been fixed for real? I am still getting this error in the latest flutter version 1.16.2.
suancaiAmour commentedon Mar 30, 2020
@gaaclarke, could you tell me the link for this PR? Is it 97a23a8 ?
Thank you very much.
yrom commentedon Apr 3, 2020
@gaaclarke
This issue has not been completly resolved by flutter-team-archive/engine#13908.
#26366 (comment) illustrates it may happen on platform thread, not just io thread:
Enable
io.flutter.embedded_views_previewin info.plist. And now theGPUtask runner would be same asplatform, see https://github.com/flutter/engine/blob/v1.12.13-hotfixes/shell/platform/darwin/ios/framework/Source/FlutterEngine.mm#L423-L443.In this case the platform thread of App might be more frozen than before when embedding Flutter, related issue #38689.
The
Shellwould post a rendering task toGPUTaskRunneron Flutter drawing, see https://github.com/flutter/engine/blob/v1.12.13-hotfixes/shell/common/shell.cc#L904. But at some rare times, the GPUTaskRunner (platform thread) blocked, that task would be fired after the appDidEnterBackgroundand then the app crashed.backtrace:
godLoveY commentedon Apr 3, 2020
这种复现方式在Flutter 1.12.13无效
lock commentedon Apr 19, 2020
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
flutter doctor -vand a minimal reproduction of the issue.