Repository navigation
Closed
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-iosiOS applications specificallyiOS applications specificallywaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Milestone
Description
Steps to Reproduce
Crashed on user's iOS device.
iOS versions are 9.*, 10.*, 11.*
Crashlytics says "OpenGL rendering while app in background state".
Logs
Crashed: gpu_thread
0 libGPUSupportMercury.dylib 0x19f530ee8 gpus_ReturnNotPermittedKillClient + 12
1 AGXGLDriver 0x1a374d228 gldUpdateDispatch + 7296
2 libGPUSupportMercury.dylib 0x19f531ecc gpusSubmitDataBuffers + 176
3 AGXGLDriver 0x1a374e724 gldUpdateDispatch + 12668
4 GLEngine 0x1a47bc01c gliPresentViewES_Exec + 188
5 OpenGLES 0x187055a8c -[EAGLContext presentRenderbuffer:] + 80
6 Flutter 0x1011c3860 shell::IOSSurfaceGL::GLContextPresent() + 168
7 Flutter 0x1011f409c std::__1::__function::__func<shell::GPUSurfaceGL::AcquireFrame(SkISize const&)::$_0, std::__1::allocator<shell::GPUSurfaceGL::AcquireFrame(SkISize const&)::$_0>, bool (shell::SurfaceFrame const&, SkCanvas*)>::operator()(shell::SurfaceFrame const&, SkCanvas*&&) + 148
8 Flutter 0x1011f1bd4 shell::SurfaceFrame::Submit() + 104
9 Flutter 0x1011f3518 shell::GPURasterizer::DrawToSurface(flow::LayerTree&) + 276
10 Flutter 0x1011f2e74 shell::GPURasterizer::DoDraw(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >) + 128
11 Flutter 0x1011f33c8 std::__1::__function::__func<std::__1::__bind<void (shell::GPURasterizer::*)(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >), shell::GPURasterizer*, std::__1::placeholders::__ph<1> const&>, std::__1::allocator<std::__1::__bind<void (shell::GPURasterizer::*)(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >), shell::GPURasterizer*, std::__1::placeholders::__ph<1> const&> >, void (std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >)>::operator()(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >&&) + 60
12 Flutter 0x1011f2cb8 shell::GPURasterizer::Draw(fxl::RefPtr<flutter::Pipeline<flow::LayerTree> >) + 516
13 Flutter 0x1011e9b04 std::__1::__function::__func<shell::Animator::Render(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >)::$_0, std::__1::allocator<shell::Animator::Render(std::__1::unique_ptr<flow::LayerTree, std::__1::default_delete<flow::LayerTree> >)::$_0>, void ()>::operator()() + 136
14 Flutter 0x1011cdff4 fml::MessageLoopImpl::RunExpiredTasks() + 2436
15 Flutter 0x1011cee50 fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) + 32
16 CoreFoundation 0x184136fc0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 28
17 CoreFoundation 0x184136ce4 __CFRunLoopDoTimer + 864
18 CoreFoundation 0x1841364e4 __CFRunLoopDoTimers + 248
19 CoreFoundation 0x1841340cc __CFRunLoopRun + 1928
20 CoreFoundation 0x184053e58 CFRunLoopRunSpecific + 436
21 Flutter 0x1011cecdc fml::MessageLoopDarwin::Run() + 88
22 Flutter 0x1011ce6dc std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, fml::Thread::Thread(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)::$_0> >(void*, void*) + 280
23 libsystem_pthread.dylib 0x183db42b4 _pthread_body + 308
24 libsystem_pthread.dylib 0x183db4180 _pthread_body + 310
25 libsystem_pthread.dylib 0x183db2b74 thread_start + 4
Flutter Doctor
alpha 0.0.20
[✓] Flutter (on Mac OS X 10.12.6 16G1036, locale ja-JP, channel alpha)
• Flutter at /Applications/flutter
• Framework revision 8f65fec5f5 (5 weeks ago), 2017-12-12 09:50:14 -0800
• Engine revision edaecdc8b8
• Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-edge.d8ae797298c3a6cf8dc9f4558707bd2672224d3e
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/najeira/Library/Android/sdk
• Android NDK at /Users/najeira/Library/Android/sdk/ndk-bundle
• Platform android-27, build-tools 27.0.3
• ANDROID_HOME = /Users/najeira/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.2.1
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.3.1)
• Flutter plugin version 20.0.3
• Dart plugin version 173.3942.31
Reacted by Zero and GodRightHand
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoleengineflutter/engine related. See also e: labels.flutter/engine related. See also e: labels.platform-iosiOS applications specificallyiOS applications specificallywaiting for responseThe Flutter team cannot make further progress on this issue until the original reporter respondsThe Flutter team cannot make further progress on this issue until the original reporter responds
Activity
najeira commentedon Jan 19, 2018
similar
najeira commentedon Feb 7, 2018
The following image is part of the crash recorded in 30 days:
najeira commentedon Feb 7, 2018
Is there any other necessary information to investigate the cause?
Hixie commentedon Feb 8, 2018
cc @chinmaygarde
najeira commentedon Mar 28, 2018
v0.2.1 has this too.
jerrywell commentedon Jul 17, 2018
+1
jerrywell commentedon Aug 2, 2018
more information update:
looks like it only happened for iPhone 6 and older.
for iPad

eseidelGoogle commentedon Sep 25, 2018
@chinmaygarde, @xster: I recall we fixed several of these? But "customer: quire" (long-time Flutter user) is still reporting hitting these.
mit-mit commentedon Oct 10, 2018
"customer: windy" is also hitting these when the application is in the background
najeira commentedon Oct 11, 2018
log with v0.8.2:
iPhone: 6, 6s, SE, 5, 6 Plus, 6s Plus
iOS: 9, 11
It seems to be occurring only with old devices.
14 remaining items
Hixie commentedon Dec 12, 2018
@cbracken says he has a fix, but isn't sure if it actually fixes it since he can't reproduce the crash. We will try landing the fix and then see if anyone is happier.
cbracken commentedon Jan 15, 2019
Quick update: despite our best efforts we've been unable to reproduce this. However, it's clear that according to Apple's docs, we were disabling pumping frames too late. The net effect on animation behaviour when changing from active to inactive state should be nil, but with any luck it resolves these issues.
The fix rolled to
masterbranch in #26514. If you're still seeing this on master, please update with stack traces and ideally repro instructions.cbracken commentedon Feb 4, 2019
As we've had no further reports of this crash since #26514 landed, I'm closing. Please update if you're still seeing this on
masterordevchannels and we'll re-open.wonderful89 commentedon May 14, 2019
I encounter this crash recently.
1. my flutter version
2. reproduct steps
Please click and enter background:log in the console. Then click the home key and enter background.2.1 crash
2.2 demo project
demo
2.3 key code
open background running task
render image:
@Hixie , @cbracken , Please help me.
Thank you.
WoodyGuo commentedon Jun 11, 2019
Still seeing this crash with Flutter v1.7.0
eseidelGoogle commentedon Jun 11, 2019
@WoodyGuo would you be willing to open a new issue with the crash stack you're seeing? Thank you!
cbracken commentedon Sep 30, 2019
I've transferred the repro instructions to #26366.
github-actions commentedon Aug 27, 2021
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.