Skip to content
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

Flutter 3.22.0 -- iOS crash on app launch: 0x0000000108967408 NativeCanvas._restore$Method$FfiNative + 124 #149340

Open
acoutts opened this issue May 30, 2024 · 38 comments
Assignees
Labels
a: release Challenges faced when attempting to productionize an app c: crash Stack traces logged to the console engine flutter/engine repository. See also e: labels. needs repro info Automated crash report whose cause isn't yet known P1 High-priority issues at the top of the work list platform-ios iOS applications specifically team-engine Owned by Engine team triaged-engine Triaged by Engine team

Comments

@acoutts
Copy link

acoutts commented May 30, 2024

Steps to reproduce

We have received beta feedback in testflight that the app is crashing for some users right after they install it for the first time and try to launch it. We recently upgraded to Flutter 3.22.

Unfortunately I cannot reproduce it on any of my devices but we've received 3 reports so it is affecting several people now. I attached the stack traces below:

stack traces.zip

Expected results

App should not crash from flutter

Actual results

App crashes immediately on launch for some users.

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

Logs

Logs
Thread 3 name:
Thread 3 Crashed:
0   Flutter                       	0x000000010272c2d4 0x1023e4000 + 3441364
1   App                           	0x0000000108967408 NativeCanvas._restore$Method$FfiNative + 124 (painting.dart:0)
2   App                           	0x0000000108d341b4 _NativeCanvas.restore + 16 (painting.dart:5809)
3   App                           	0x0000000108d341b4 BaseLayer.draw + 1716 (base_layer.dart:242)
4   App                           	0x0000000108d5d904 CompositionLayer.drawLayer + 480 (composition_layer.dart:104)
5   App                           	0x0000000108d33d70 BaseLayer.draw + 624 (base_layer.dart:195)
6   App                           	0x0000000108d5d904 CompositionLayer.drawLayer + 480 (composition_layer.dart:104)
7   App                           	0x0000000108d33d70 BaseLayer.draw + 624 (base_layer.dart:195)
8   App                           	0x00000001089797c0 LottieDrawable.draw + 768 (lottie_drawable.dart:236)
9   App                           	0x00000001089794a8 RenderLottie.paint + 140 (render_lottie.dart:268)
10  App                           	0x0000000108db3350 RenderObject._paintWithContext + 148 (object.dart:3239)
11  App                           	0x0000000108967f64 PaintingContext.paintChild + 172 (object.dart:250)
12  App                           	0x000000010896d74c RenderProxyBoxMixin.paint (#2) + 60 (proxy_box.dart:130)
13  App                           	0x0000000108db3350 RenderObject._paintWithContext + 148 (object.dart:3239)
14  App                           	0x0000000108907130 PaintingContext._repaintCompositedChild + 308 (object.dart:166)
15  App                           	0x0000000108906dbc PaintingContext.repaintCompositedChild + 176 (object.dart:109)
16  App                           	0x0000000108906dbc PipelineOwner.flushPaint + 288 (object.dart:1182)
17  App                           	0x0000000108906eb4 PipelineOwner.flushPaint + 536 (object.dart:1192)
18  App                           	0x00000001088fe058 RendererBinding.drawFrame + 88 (binding.dart:579)
19  App                           	0x00000001088fdb14 WidgetsBinding.drawFrame + 180 (binding.dart:1138)
20  App                           	0x00000001088fd460 RendererBinding._handlePersistentFrameCallback (#2) + 40 (binding.dart:443)
21  App                           	0x00000001088fd424 RendererBinding._handlePersistentFrameCallback + 36 (binding.dart:442)
22  App                           	0x0000000108d980d8 SchedulerBinding._invokeFrameCallback + 56 (binding.dart:1392)
23  App                           	0x0000000108d97e7c SchedulerBinding.handleDrawFrame + 320 (binding.dart:1313)
24  App                           	0x000000010887eac4 SchedulerBinding._handleDrawFrame (#2) + 276 (binding.dart:1171)
25  App                           	0x000000010887e99c SchedulerBinding._handleDrawFrame + 32 (binding.dart:1153)
26  App                           	0x000000010887f564 invoke + 128 (hooks.dart:312)
27  App                           	0x0000000108881080 PlatformDispatcher._drawFrame + 36 (platform_dispatcher.dart:419)
28  App                           	0x0000000108881044 drawFrame + 56 (hooks.dart:283)
29  App                           	0x00000001088810b0 drawFrame (#2) + 24 (hooks.dart:281)
30  App                           	0x0000000108857bf8 stub InvokeDartCode + 216
31  Flutter                       	0x00000001029e94a4 0x1023e4000 + 6313124
32  Flutter                       	0x0000000102b01044 0x1023e4000 + 7458884
33  Flutter                       	0x00000001027eb8f0 0x1023e4000 + 4225264
34  Flutter                       	0x00000001027cb2c4 0x1023e4000 + 4092612
35  Flutter                       	0x00000001027fe230 0x1023e4000 + 4301360
36  Flutter                       	0x00000001026cf47c 0x1023e4000 + 3060860
37  Flutter                       	0x00000001026d29f4 0x1023e4000 + 3074548
38  CoreFoundation                	0x000000019690f6e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1797)
39  CoreFoundation                	0x000000019690f388 __CFRunLoopDoTimer + 1004 (CFRunLoop.c:2404)
40  CoreFoundation                	0x0000000196899184 __CFRunLoopDoTimers + 288 (CFRunLoop.c:2562)
41  CoreFoundation                	0x000000019689618c __CFRunLoopRun + 1856 (CFRunLoop.c:3122)
42  CoreFoundation                	0x0000000196895968 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
43  Flutter                       	0x00000001026d2ae0 0x1023e4000 + 3074784
44  Flutter                       	0x00000001026d2728 0x1023e4000 + 3073832
45  Flutter                       	0x00000001026d2438 0x1023e4000 + 3073080
46  libsystem_pthread.dylib       	0x00000001f2845a90 _pthread_start + 136 (pthread.c:927)
47  libsystem_pthread.dylib       	0x00000001f2844fcc thread_start + 8 (:-1)

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.22.0, on macOS 14.5 23F79 darwin-arm64, locale en-US)
    • Flutter version 3.22.0 on channel stable at /Users/andrewcoutts/fvm/versions/3.22.0
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5dcb86f68f (3 weeks ago), 2024-05-09 07:39:20 -0500
    • Engine revision f6344b75dc
    • Dart version 3.4.0
    • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/andrewcoutts/Library/Android/sdk
    • Platform android-34, build-tools 33.0.1
    • ANDROID_HOME = /Users/andrewcoutts/Library/Android/sdk
    • Java binary at: /Applications/Android Studio Preview.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.3)
    • Android Studio at /Applications/Android Studio Preview.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.84.0

[✓] VS Code (version 1.90.0-insider)
    • VS Code at /Applications/Visual Studio Code - Insiders.app/Contents
    • Flutter extension version 3.46.0

[✓] Connected device (5 available)
    • iPhone 15 Pro (mobile)          • D4064BE5-4267-45BD-BB3F-31628B507D04 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 14.5 23F79 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 14.5 23F79 darwin-arm64
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome 125.0.6422.113

[✓] Network resources
    • All expected network resources are available.

• No issues found!
@reimager
Copy link

We have hundreds of similar crashes on 3.22, only on iOS.
(We have not been able to isolate the conditions that cause it to happen - still investigating)

NativeCanvas._restore$Method$FfiNative
EXC_BAD_ACCESS (KERN_INVALID_ADDRESS)

  Crashed: io.flutter.1.ui

1 App 0x13b500 NativeCanvas._restore$Method$FfiNative + 1232384 (painting.dart:1232384)
2 App 0x458eb4 MyPainter.paint + 1131 (masking_step.dart:1131)
3 App 0x13d4ec RenderCustomPaint._paintWithPainter + 588 (custom_paint.dart:588)
4 App 0x13d358 RenderCustomPaint.paint + 633 (custom_paint.dart:633)
5 App 0x13c110 RenderObject._paintWithContext + 3243 (object.dart:3243)
6 App 0x13c05c PaintingContext.paintChild + 234 (object.dart:234)
7 App 0x15353c RenderBoxContainerDefaultsMixin.defaultPaint (#5) + 3154 (box.dart:3154)
8 App 0x1533bc RenderStack.paint + 762 (stack.dart:762)
9 App 0x13c110 RenderObject._paintWithContext + 3243 (object.dart:3243)
10 App 0x13c05c PaintingContext.paintChild + 234 (object.dart:234)

@huycozy huycozy added the in triage Presently being triaged by the triage team label May 31, 2024
@huycozy
Copy link
Member

huycozy commented May 31, 2024

Hi @acoutts
It seems you are using Lottie animations in your app. I tried symbolizing this but it failed on Flutter trace:

~ dart pub global run symbolizer:symbolize https://github.com/flutter/flutter/issues/149340\#issue-2326350155 "flutter#5dcb86f arm64 release force ios"
...
symbolized using symbols for f6344b75dcf861d8bf1f1322780b8811f982e31a ios-arm64-release

  #00 000000010272c2d4 Flutter (Missing)
  #01 0000000108967408 App NativeCanvas._restore$Method$FfiNative + 124 (painting.dart:)
  #02 0000000108d341b4 App _NativeCanvas.restore + 16 (painting.dart:580)
  #03 0000000108d341b4 App BaseLayer.draw + 1716 (base_layer.dart:24)
  #04 0000000108d5d904 App CompositionLayer.drawLayer + 480 (composition_layer.dart:10)
  #05 0000000108d33d70 App BaseLayer.draw + 624 (base_layer.dart:19)
  #06 0000000108d5d904 App CompositionLayer.drawLayer + 480 (composition_layer.dart:10)
  #07 0000000108d33d70 App BaseLayer.draw + 624 (base_layer.dart:19)
  #08 00000001089797c0 App LottieDrawable.draw + 768 (lottie_drawable.dart:23)
  #09 00000001089794a8 App RenderLottie.paint + 140 (render_lottie.dart:26)
  #10 0000000108db3350 App RenderObject._paintWithContext + 148 (object.dart:323)
  #11 0000000108967f64 App PaintingContext.paintChild + 172 (object.dart:25)
  #12 000000010896d74c App RenderProxyBoxMixin.paint (#2) + 60 (proxy_box.dart:13)
  #13 0000000108db3350 App RenderObject._paintWithContext + 148 (object.dart:323)
  #14 0000000108907130 App PaintingContext._repaintCompositedChild + 308 (object.dart:16)
  #15 0000000108906dbc App PaintingContext.repaintCompositedChild + 176 (object.dart:10)
  #16 0000000108906dbc App PipelineOwner.flushPaint + 288 (object.dart:118)
  #17 0000000108906eb4 App PipelineOwner.flushPaint + 536 (object.dart:119)
  #18 00000001088fe058 App RendererBinding.drawFrame + 88 (binding.dart:57)
  #19 00000001088fdb14 App WidgetsBinding.drawFrame + 180 (binding.dart:113)
  #20 00000001088fd460 App RendererBinding._handlePersistentFrameCallback (#2) + 40 (binding.dart:44)
  #21 00000001088fd424 App RendererBinding._handlePersistentFrameCallback + 36 (binding.dart:44)
  #22 0000000108d980d8 App SchedulerBinding._invokeFrameCallback + 56 (binding.dart:139)
  #23 0000000108d97e7c App SchedulerBinding.handleDrawFrame + 320 (binding.dart:131)
  #24 000000010887eac4 App SchedulerBinding._handleDrawFrame (#2) + 276 (binding.dart:117)
  #25 000000010887e99c App SchedulerBinding._handleDrawFrame + 32 (binding.dart:115)
  #26 000000010887f564 App invoke + 128 (hooks.dart:31)
  #27 0000000108881080 App PlatformDispatcher._drawFrame + 36 (platform_dispatcher.dart:41)
  #28 0000000108881044 App drawFrame + 56 (hooks.dart:28)
  #29 00000001088810b0 App drawFrame (#2) + 24 (hooks.dart:28)
  #30 0000000108857bf8 App stub InvokeDartCode + 216
  #31 00000001029e94a4 Flutter (Missing)
  #32 0000000102b01044 Flutter (Missing)
  #33 00000001027eb8f0 Flutter (Missing)
  #34 00000001027cb2c4 Flutter (Missing)
  #35 00000001027fe230 Flutter (Missing)
  #36 00000001026cf47c Flutter (Missing)
  #37 00000001026d29f4 Flutter (Missing)
  #38 000000019690f6e4 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:179)
  #39 000000019690f388 CoreFoundation __CFRunLoopDoTimer + 1004 (CFRunLoop.c:240)
  #40 0000000196899184 CoreFoundation __CFRunLoopDoTimers + 288 (CFRunLoop.c:256)
  #41 000000019689618c CoreFoundation __CFRunLoopRun + 1856 (CFRunLoop.c:312)
  #42 0000000196895968 CoreFoundation CFRunLoopRunSpecific + 608 (CFRunLoop.c:342)
  #43 00000001026d2ae0 Flutter (Missing)
  #44 00000001026d2728 Flutter (Missing)
  #45 00000001026d2438 Flutter (Missing)
  #46 00000001f2845a90 libsystem_pthread.dylib _pthread_start + 136 (pthread.c:92)
  #47 00000001f2844fcc libsystem_pthread.dylib thread_start + 8 (:-)

I found an issue with a similar trace at #130478 which happened before 3.22.0 and still needs reproduction info to investigate.

To confirm if this is a similar issue, does this happen before you upgrade Flutter? What time did you add Lottie package to your project?

@huycozy huycozy added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 31, 2024
@acoutts
Copy link
Author

acoutts commented May 31, 2024

Thanks @huycozy - we did not receive any reports until after we upgraded to 3.22 recently. We have ran lottie since day 1 and have not seen this crash since before we upgraded flutter. Since upgrading we've have 2 different users on different devices report the issue.
We have a lottie animation on our app start screen, so for these users they launched the app and it immediately crashed on them.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label May 31, 2024
@synstin
Copy link

synstin commented Jun 2, 2024

I found the cause.
The error occurs when setting Lottie's renderCache and frameRate option.
Using only one of the renderCache and frameRate options will result in an error.
Occurs on IOS only. Does not occur on Android.

example

Lottie.asset('test.json', renderCache: RenderCache.raster, frameRate: FrameRate(60));

The problem only occurs in version 3.22 and later.
earlier versions will not throw an error even if the option is present.

Currently, I'm using Flutter 3.22.1 in production after removing the renderCache and frameRate options from lottie.

Additional
This does not happen in the simulator, only on the real device.

@huycozy
Copy link
Member

huycozy commented Jun 3, 2024

@synstin I tried using lottie example with two params as above but couldn't reproduce the crash in release mode (test in local environment with iPhone 7, iOS 15.8). Could you share a complete (and minimal) sample code?

@acoutts Are you also using two params as @synstin found above? It would be helpful if you could share a sample code (in case @synstin couldn't accomplish it)

@huycozy huycozy added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jun 3, 2024
@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jun 3, 2024
@acoutts
Copy link
Author

acoutts commented Jun 3, 2024

@synstin Ok after speaking to a coworker, we indeed are using lottie with the framerate set to max but we do not have the render cache setting specified.

@Goolpe
Copy link

Goolpe commented Jun 3, 2024

We use lottie.asset without renderCache and framRate, but the issue still exists.
Crashes started from Flutter 3.22

By the way, we don't have lottie in logs

Logs
Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x000000010859bfd0
Exception Codes: 0x0000000000000001, 0x000000010859bfd0
VM Region Info: 0x10859bfd0 is not in any region.  Bytes after previous region: 49105  Bytes before following region: 48
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      MALLOC_LARGE             10858c000-108590000 [   16K] rw-/rwx SM=PRV  
--->  GAP OF 0xc000 BYTES
      MALLOC_LARGE             10859c000-1085a8000 [   48K] rw-/rwx SM=PRV  
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [1339]

Triggered by Thread:  2

Thread 2 Crashed:
0   Flutter                       	0x0000000107a482d4 0x107700000 + 3441364
1   Flutter                       	0x0000000107a494ec 0x107700000 + 3445996
2   App                           	0x0000000110d613a8 NativeCanvas._restoreToCount$Method$FfiNative + 140 (painting.dart:0)
3   App                           	0x0000000110d612e4 _NativeCanvas.restoreToCount + 20 (painting.dart:5813)
4   App                           	0x0000000110d612e4 RenderPictureVectorGraphic.paint + 1132 (render_vector_graphic.dart:447)
5   App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
6   App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
7   App                           	0x0000000110d5584c RenderProxyBoxMixin.paint (#2) + 60 (proxy_box.dart:130)
8   App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
9   App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
10  App                           	0x0000000110d5584c RenderProxyBoxMixin.paint (#2) + 60 (proxy_box.dart:130)
11  App                           	0x0000000110d5113c RenderProxyBoxMixin.paint + 40 (proxy_box.dart:124)
12  App                           	0x0000000110d53bec PaintingContext.pushTransform + 540 (object.dart:687)
13  App                           	0x0000000110d54944 RenderFittedBox._paintChildWithTransform + 264 (proxy_box.dart:2784)
14  App                           	0x0000000110d547f4 RenderFittedBox.paint + 468 (proxy_box.dart:2814)
15  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
16  App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
17  App                           	0x0000000110d5584c RenderProxyBoxMixin.paint (#2) + 60 (proxy_box.dart:130)
18  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
19  App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
20  App                           	0x0000000110d5584c RenderProxyBoxMixin.paint (#2) + 60 (proxy_box.dart:130)
21  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
22  App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
23  App                           	0x0000000110d57ed8 RenderShiftedBox.paint (#2) + 152 (shifted_box.dart:74)
24  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
25  App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
26  App                           	0x0000000110d5c0e8 RenderBoxContainerDefaultsMixin.defaultPaint (#2) + 220 (box.dart:3158)
27  App                           	0x0000000110d5bf10 RenderFlex.paint + 76 (flex.dart:1014)
28  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
29  App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
30  App                           	0x0000000110d5c0e8 RenderBoxContainerDefaultsMixin.defaultPaint (#2) + 220 (box.dart:3158)
31  App                           	0x0000000110d5bf10 RenderFlex.paint + 76 (flex.dart:1014)
32  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
33  App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
34  App                           	0x0000000110d57ed8 RenderShiftedBox.paint (#2) + 152 (shifted_box.dart:74)
35  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
36  App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
37  App                           	0x0000000110d5584c RenderProxyBoxMixin.paint (#2) + 60 (proxy_box.dart:130)
38  App                           	0x0000000110d53244 RenderDecoratedBox.paint + 492 (proxy_box.dart:2291)
39  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
40  App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
41  App                           	0x0000000110d57ed8 RenderShiftedBox.paint (#2) + 152 (shifted_box.dart:74)
42  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
43  App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
44  App                           	0x0000000110d5c0e8 RenderBoxContainerDefaultsMixin.defaultPaint (#2) + 220 (box.dart:3158)
45  App                           	0x0000000110d5bf10 RenderFlex.paint + 76 (flex.dart:1014)
46  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
47  App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
48  App                           	0x0000000110d5c0e8 RenderBoxContainerDefaultsMixin.defaultPaint (#2) + 220 (box.dart:3158)
49  App                           	0x0000000110d5bf10 RenderFlex.paint + 76 (flex.dart:1014)
50  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
51  App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
52  App                           	0x0000000110d5c0e8 RenderBoxContainerDefaultsMixin.defaultPaint (#2) + 220 (box.dart:3158)
53  App                           	0x0000000110d5bf10 RenderFlex.paint + 76 (flex.dart:1014)
54  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
55  App                           	0x0000000110d4a89c PaintingContext.paintChild + 172 (object.dart:250)
56  App                           	0x0000000110d583b0 RenderSingleChildViewport.paint.paintContents + 80 (single_child_scroll_view.dart:524)
57  App                           	0x0000000110d4ef2c PaintingContext.pushLayer + 232 (object.dart:486)
58  App                           	0x0000000110d4f288 PaintingContext.pushClipRect + 472 (object.dart:546)
59  App                           	0x0000000110d581cc RenderSingleChildViewport.paint + 308 (single_child_scroll_view.dart:528)
60  App                           	0x0000000110d0167c RenderObject._paintWithContext + 148 (object.dart:3239)
61  App                           	0x0000000110d01120 PaintingContext._repaintCompositedChild + 308 (object.dart:166)
62  App                           	0x0000000110d00cfc PaintingContext.repaintCompositedChild + 176 (object.dart:109)
63  App                           	0x0000000110d00cfc PipelineOwner.flushPaint + 288 (object.dart:1182)
64  App                           	0x0000000110d00df4 PipelineOwner.flushPaint + 536 (object.dart:1192)
65  App                           	0x0000000110cefe48 RendererBinding.drawFrame + 88 (binding.dart:579)
66  App                           	0x0000000110cef7b8 WidgetsBinding.drawFrame + 180 (binding.dart:1138)
67  App                           	0x0000000110cef174 RendererBinding._handlePersistentFrameCallback (#2) + 40 (binding.dart:443)
68  App                           	0x0000000110cef138 RendererBinding._handlePersistentFrameCallback + 36 (binding.dart:442)
69  App                           	0x0000000110bf7788 SchedulerBinding._invokeFrameCallback + 56 (binding.dart:1392)
70  App                           	0x0000000110bf752c SchedulerBinding.handleDrawFrame + 320 (binding.dart:1313)
71  App                           	0x0000000110bf73d0 SchedulerBinding._handleDrawFrame (#2) + 276 (binding.dart:1171)
72  App                           	0x0000000110bf72a8 SchedulerBinding._handleDrawFrame + 32 (binding.dart:1153)
73  App                           	0x0000000110bc7bd8 rootRun + 140 (zone.dart:1399)
74  App                           	0x0000000110bc7c90 rootRun (#2) + 120
75  App                           	0x0000000111127174 CustomZone.run + 160 (zone.dart:1301)
76  App                           	0x0000000111128450 CustomZone.runGuarded + 48 (zone.dart:1209)
77  App                           	0x0000000110be781c invoke + 156 (hooks.dart:314)
78  App                           	0x0000000110bea024 PlatformDispatcher._drawFrame + 36 (platform_dispatcher.dart:419)
79  App                           	0x0000000110be9fe8 drawFrame + 56 (hooks.dart:283)
80  App                           	0x0000000110bea054 drawFrame (#2) + 24 (hooks.dart:281)
81  App                           	0x0000000110bb7bf8 stub InvokeDartCode + 216
82  Flutter                       	0x0000000107d054a4 + -1 (:-1)
83  Flutter                       	0x0000000107e1d044 + -1 (:-1)
84  Flutter                       	0x0000000107b078f0 0x107700000 + 4225264
85  Flutter                       	0x0000000107ae72c4 0x107700000 + 4092612
86  Flutter                       	0x0000000107b1a230 + -1 (:-1)
87  Flutter                       	0x00000001079eb47c + -1 (:-1)
88  Flutter                       	0x00000001079ee9f4 + -1 (:-1)
89  CoreFoundation                	0x0000000193c836e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32 (CFRunLoop.c:1797)
90  CoreFoundation                	0x0000000193c83388 __CFRunLoopDoTimer + 1004 (CFRunLoop.c:2404)
91  CoreFoundation                	0x0000000193c0d184 __CFRunLoopDoTimers + 288 (CFRunLoop.c:2562)
92  CoreFoundation                	0x0000000193c0a18c __CFRunLoopRun + 1856 (CFRunLoop.c:3122)
93  CoreFoundation                	0x0000000193c09968 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
94  Flutter                       	0x00000001079eeae0 + -1 (:-1)
95  Flutter                       	0x00000001079ee728 + -1 (:-1)
96  Flutter                       	0x00000001079ee438 + -1 (:-1)
97  libsystem_pthread.dylib       	0x00000001efbb9a90 _pthread_start + 136 (pthread.c:927)
98  libsystem_pthread.dylib       	0x00000001efbb8fcc thread_start + 8 (:-1)

@huycozy
Copy link
Member

huycozy commented Jun 4, 2024

Labeling the issue for other's input.

@huycozy huycozy added c: crash Stack traces logged to the console platform-ios iOS applications specifically engine flutter/engine repository. See also e: labels. a: release Challenges faced when attempting to productionize an app team-engine Owned by Engine team needs repro info Automated crash report whose cause isn't yet known and removed in triage Presently being triaged by the triage team labels Jun 4, 2024
@synstin
Copy link

synstin commented Jun 4, 2024

This does not happen in the simulator, only on the real device.
I'm attaching the error log as shown in Xcode.

io.flutter.1.ui (9)
#0	0x00000001082aed54 in flutter::DisplayListBuilder::Restore() ()
0x1082aed54 <+284>:  ldrsb  w8, [x24] io.flutter.1.ui (9): EXC_BAD_ACCESS (code=1, address=0x117467fa8)

Using only one of the renderCache and frameRate options will result in an error.
@huycozy Did you test on a real device and not be able to reproduce it?
@acoutts If you remove the framerate option it doesn't crash?

@huycozy
Copy link
Member

huycozy commented Jun 4, 2024

@synstin I tested on a physical device as mentioned above, issue is not reproduced. If you can reproduce this, please provide a minimal sample code (a GitHub repo would be helpful), Flutter version, and the entire crash stack trace.

@acoutts
Copy link
Author

acoutts commented Jun 4, 2024

@huycozy sadly I cannot reproduce it on my device either but I think we should leave it open for discussion because several other people here have reported it too.

We downgraded to flutter 3.19 and the user who had repeated crashes is now able to open and use the app.

We tried disabling impeller and that did not fix it but downgrading flutter did fix it.

@jonahwilliams
Copy link
Member

The DLBuilder code is here: https://github.com/flutter/engine/blob/main/display_list/dl_builder.cc#L587-L614

There were changes to restore that I believe landed in 3.22: flutter/engine@4b8218d#diff-600d175a73a116cd33a67521705e1f0115a0b03217683298d22d3fb4b53891ee

@flar , can you take a look at this and see if there are any cases where perhaps a mismatched save/restore could cause a native crash?

@jonahwilliams jonahwilliams added P1 High-priority issues at the top of the work list triaged-engine Triaged by Engine team labels Jun 10, 2024
@flar
Copy link
Contributor

flar commented Jun 10, 2024

Is there a minimum reproducible test case available?

Has anyone who experienced the issue tried using Flutter ToT?

@gaaclarke
Copy link
Member

I poked around a second. I suspect op. It seems like storage_ is nullptr by default but gets realloced when Push is called. Is it possible that doing a Save and a Restore without a push will cause storage_.get() to be a nullptr?

void DisplayListBuilder::Restore() {
  if (save_stack_.size() <= 1) {
    return;
  }

  if (!current_info().has_deferred_save_op) {
    SaveOpBase* op = reinterpret_cast<SaveOpBase*>(storage_.get() +
                                                   current_info().save_offset);
    FML_CHECK(op->type == DisplayListOpType::kSave ||
              op->type == DisplayListOpType::kSaveLayer ||
              op->type == DisplayListOpType::kSaveLayerBackdrop);

@flar
Copy link
Contributor

flar commented Jun 11, 2024

I poked around a second. I suspect op. It seems like storage_ is nullptr by default but gets realloced when Push is called. Is it possible that doing a Save and a Restore without a push will cause storage_.get() to be a nullptr?

void DisplayListBuilder::Restore() {
  if (save_stack_.size() <= 1) {
    return;
  }

  if (!current_info().has_deferred_save_op) {
    SaveOpBase* op = reinterpret_cast<SaveOpBase*>(storage_.get() +
                                                   current_info().save_offset);
    FML_CHECK(op->type == DisplayListOpType::kSave ||
              op->type == DisplayListOpType::kSaveLayer ||
              op->type == DisplayListOpType::kSaveLayerBackdrop);

The intent is that a regular Save can defer the actual push of the op (and thus leave the storage null), but it should do so along with setting the has_deferred_save_op which should prevent us from coming into this block. When we realize the deferred save op, then we both initialize the offset and we also turn off the flag enabling this block. That's the intent.

@flar
Copy link
Contributor

flar commented Jun 11, 2024

@flar flar added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jun 13, 2024
@acoutts
Copy link
Author

acoutts commented Jun 13, 2024

@flar is there anything you're waiting on me for? Saw the customer response label get added.

@github-actions github-actions bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jun 13, 2024
@gaaclarke
Copy link
Member

@flar is there anything you're waiting on me for? Saw the customer response label get added.

I was chatting with him earlier today. He's hoping that reproduction code could be isolated. I'm not sure how feasible that is given your project.

@acoutts
Copy link
Author

acoutts commented Jun 13, 2024

Ah i see. Yea the thing is, nobody on our team can reproduce it either - there seems to be something specific about the users and their devices. The only common thing I've seen is the 2 users who had crashes had very low disk space on their phones (2-3gb available). Could free disk space be relevant here?

@RoyGuanyu

This comment was marked as off-topic.

@jonahwilliams
Copy link
Member

@RoyGuanyu that seems very unrelated to this bug, which is a crash. You need to file a new bug

@flar
Copy link
Contributor

flar commented Jun 13, 2024

@flar is there anything you're waiting on me for? Saw the customer response label get added.

As @gaaclarke mentioned a reproducible test case would be best as we could diagnose the underlying problem.

But the other thing I'm still waiting on is whether more recent releases (even developer channel releases) fixes the problem. The 3.22 release contained a change to the indicated code, but immediately after that we rewrote that code - the rewrites did not make that release so testing against the ToT rather than a production release might give us an indication if the rewrite solved the problem.

@flar
Copy link
Contributor

flar commented Jun 13, 2024

If it doesn't reproduce on ToT then bisecting to find out when it was fixed might help us identify a change we can cherry-pick into a dot release.

@gian-edamama-ph
Copy link

gian-edamama-ph commented Jun 17, 2024

stack traces.txt

Adding some additional stack traces to this. Also getting a number of crashes in iOS with the same error. We're getting a huge number from a very specific screen though which uses a very specific package called confetti it might help reproduce the issue. From data we have on our crashlytics it's very common to happen on extremely low memory remaining <50 MB.

@appDevel1234
Copy link

Hi, I have a very similar problem in #149971 (closed, to discuss it here).

I can not reproduce it. But I'm using the confetti package as well. In addition I use flutter_animate.

So far I have only heard about this crash from blind users who use VoiceOver. I know that VoiceOver needs much RAM.

@gaaclarke
Copy link
Member

@flar I have a new theory. I think realloc is failing which will mess up the op pointer in Restore(). realloc can fail before the memory watchdog kills the app because of fragmentation. We do have a FML_CHECK for realloc returning nullptr. I suspect that is getting hit but it isn't showing up in any of the above materials since DisplayListStorage::realloc is potentially getting inlined and no one can reproduce it locally so they aren't seeing the console message.

@jonahwilliams
Copy link
Member

What is the right thing to do if realloc fails? it seems like the best we could do at that point would be to crash anyway

@gaaclarke
Copy link
Member

What is the right thing to do if realloc fails? it seems like the best we could do at that point would be to crash anyway

I think you can malloc then memcpy. realloc failing just means it can't expand that original allocation. That doesn't mean there isn't a block of memory anywhere that could fit the new size. I'm trying that out and double checking my understanding in the docs.

@gaaclarke
Copy link
Member

I was was wrong, realloc will do the malloc+memcpy for you if it can't expand the region. I don't think crashing is the correct behavior since the operating system already has heuristics for deciding to kill an app or not. The OS doesn't appear to be killing it here (maybe it would if it was allowed to execute for 1 second longer). In this case we seem to have the memory but it is fragmented. We could potentially chunk the display list. There could be other performance benefits to that like less copying when reallocing.

I'm not sure if the reproduction for this is to the point of being unreasonable, like drawing a billion things.

@jonahwilliams
Copy link
Member

I don't think crashing is the correct behavior since the operating system already has heuristics for deciding to kill an app or not

Not that I am certain its the case that the app is out of memory. But if we're out of memory to the point that malloc is failing we'll just crash somewhere else. We can't reasonable guard all allocations (plus what do STL classes do in that case)?

@jonahwilliams
Copy link
Member

We should still try and find a repro for this though, because I'm not certain this is an OOM anyway.

@flar
Copy link
Contributor

flar commented Jun 17, 2024

Could this be a case of the dependent packages (Lottie? Confetti?) creating a DL that uses so much memory that reallocating from N bytes to N + page_size bytes is the most likely allocation to run out of room?

But why does this suddenly happen with that one PR? It didn't increase the space consumption of the DLs by much. Potentially if they were using unbounded saveLayers like candy then that PR started always recording a bounds for every saveLayer which adds an SkRect to each saveLayer, but I'd find it hard to believe that an additional 16 bytes per saveLayer would be enough to push apps to crash so suddenly.

@flar
Copy link
Contributor

flar commented Jun 17, 2024

A repro would be best so we can diagnose how to respond. But, barring that, a retest by someone who experiences the crash on more recent releases/builds (especially ToT) would help to know if the recent redesign of this code fixed the problem...

@gaaclarke
Copy link
Member

But if we're out of memory to the point that malloc is failing we'll just crash somewhere else.

Just to clarify, it's possible the display list can fail to realloc but that we are not out of memory. We could be requesting a 4MB region of memory and there doesn't exist one because of fragmentation, but there is well over 4MB available in aggregate.

I double checked the algorithm for our realloc size and it isn't growing exponentially, so that's good.

We should still try and find a repro for this though, because I'm not certain this is an OOM anyway.

A repro would be best so we can diagnose how to respond. But, barring that, a retest by someone who experiences the crash on more recent releases/builds (especially ToT) would help to know if the recent redesign of this code fixed the problem...

Waiting for more information sounds good to me. Chunking could have better performance if realloc leads to malloc+memcpy a lot, but we don't have any data to back up how often that happens.

I will say though, if the bug requires memory to get into a certain state of fragmentation to fail, it's not going to be easy to reproduce since it may require using the app for a certain amount of time to get in the state where it fails.

But why does this suddenly happen with that one PR?

I'm less sure about definitively pinning this to one PR without a reproduction. There's a lot of reasons why this could all of a sudden just start getting reported now outside of the engine's control.

@flar
Copy link
Contributor

flar commented Jun 17, 2024

I double checked the algorithm for our realloc size and it isn't growing exponentially, so that's good.

That depends. If the malloc implementation isn't good about consolidating freed memory then the fragmentation by growing linearly could end up causing more problems. Each page should be good for a lot of ops, though, so growing by the page size (4k or 8k?) shouldn't happen very often.

@pamafe1976
Copy link

pamafe1976 commented Jun 25, 2024

I'm having this issue with Flutter stable 3.22.1

I'm not using lottie or confetti.

I had not seen the problem during development, but after distributing the app, and installing from Appstore in the same device, it started to close immediately.
I checked on other devices and they also crashed immediately.
I connected again one of them to debug (an Iphone 13), and the app started to crash (with no flutter exception) on this block, between the save and restore, where it had never crashed.

      canvas.save();
      canvas.translate(estacion.dx, estacion.dy);
      final angle = atan2(dir.dy, dir.dx);
      canvas.rotate(angle);
      canvas.drawRect(Rect.fromLTRB(-largoEstacion, -anchoEstacion, largoEstacion, anchoEstacion), paintEstacion);
      canvas.drawRect(Rect.fromLTRB(-largoEstacion + st, -anchoEstacion + st, largoEstacion - st, anchoEstacion - st), paintMedio);
      canvas.drawRect(Rect.fromLTRB(-largoEstacion / 2, -anchoEstacion / 2, largoEstacion / 2, anchoEstacion / 2), paintEstacion);
      canvas.restore();

I commented and uncommented the code several times to verify that it was causing the issue, and the app only crashed when it was on.
However I found nothing wrong about it, and the error suddenly stopped appearing a few minutes later.

I thought it may have been related to app distribution process and certificates, because it is a new app and the error went away on its own.

Today I saw some more reports, and they are coincident with the release of a second version of the app.

Heres a stack trace of the issue:

          Crashed: io.flutter.1.ui
0  Flutter                        0x3482d4 (Missing UUID 4c4c440e55553144a1d84b2b304b0d35)
1  App                            0xbdb38 NativeCanvas._restore$Method$FfiNative + 717880 (painting.dart:717880)
2  App                            0x366480 MapaBackPainter.dibujarMedio + 6006 (painting.dart:6006)
3  App                            0x3c2e94 MapaBackPainter.dibujarMedios + 348 (iterable.dart:348)
4  App                            0x558268 MapaViewController._makePicStaticFondo + 594 (mapaview_controller.dart:594)
5  App                            0x573858 SuspendState._createAsyncStarCallback.<anonymous closure> + 384 (async_patch.dart:384)
6  App                            0x4f5660 FutureListener.handleValue + 1662 (zone.dart:1662)
7  App                            0x4f54fc Future._propagateToListeners.handleValueCallback + 849 (future_impl.dart:849)
8  App                            0x17c84 Future._propagateToListeners + 880 (future_impl.dart:880)
9  App                            0x1790c Future._completeWithValue + 647 (future_impl.dart:647)
10 App                            0x4e5b60 SuspendState._returnAsyncNotFuture + 359 (async_patch.dart:359)
11 App                            0x4fd9fc stub _iso_stub_ReturnAsyncNotFutureStub + 5174012
12 App                            0x573858 SuspendState._createAsyncStarCallback.<anonymous closure> + 384 (async_patch.dart:384)
13 App                            0x4f5660 FutureListener.handleValue + 1662 (zone.dart:1662)
14 App                            0x4f54fc Future._propagateToListeners.handleValueCallback + 849 (future_impl.dart:849)
15 App                            0x17c84 Future._propagateToListeners + 880 (future_impl.dart:880)
16 App                            0x1f408 Future._complete + 632 (future_impl.dart:632)
17 App                            0x459a80 SyncCompleter.complete + 58 (future_impl.dart:58)
18 App                            0x1f4804 NativeCodec.getNextFrame.<anonymous closure> + 2108 (painting.dart:2108)
19 App                            0xbbf8 stub InvokeDartCode + 31736
20 Flutter                        0x6054a4 InternalFlutterGpu_Texture_AsImage + 260480
21 Flutter                        0x71d044 InternalFlutterGpu_Texture_AsImage + 1406240
22 Flutter                        0x56bbc4 (Missing UUID 4c4c440e55553144a1d84b2b304b0d35)
23 Flutter                        0x579618 (Missing UUID 4c4c440e55553144a1d84b2b304b0d35)
24 Flutter                        0x2eb47c (Missing UUID 4c4c440e55553144a1d84b2b304b0d35)
25 Flutter                        0x2ee9f4 (Missing UUID 4c4c440e55553144a1d84b2b304b0d35)
26 CoreFoundation                 0xb7a2c __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
27 CoreFoundation                 0xb76d0 __CFRunLoopDoTimer + 1004
28 CoreFoundation                 0xb722c __CFRunLoopDoTimers + 288
29 CoreFoundation                 0x53888 __CFRunLoopRun + 1856
30 CoreFoundation                 0x52cd8 CFRunLoopRunSpecific + 608
31 Flutter                        0x2eeae0 (Missing UUID 4c4c440e55553144a1d84b2b304b0d35)
32 Flutter                        0x2ee728 (Missing UUID 4c4c440e55553144a1d84b2b304b0d35)
33 Flutter                        0x2ee438 (Missing UUID 4c4c440e55553144a1d84b2b304b0d35)
34 libsystem_pthread.dylib        0x606c _pthread_start + 136
35 libsystem_pthread.dylib        0x10d8 thread_start + 8

Regards

@pamafe1976
Copy link

pamafe1976 commented Jun 27, 2024

Some more info hoping to give some valuable info to someone investigating this:

i keep receiving this crashes, always with this structure:

0  Flutter                        0x3482d4 (Missing UUID 4c4c440e55553144a1d84b2b304b0d35)
1  App                            0xbdb38 NativeCanvas._restore$Method$FfiNative + 717880 (painting.dart:717880)
2  App                            0x366480 MapaBackPainter.dibujarMedio + 6006 (painting.dart:6006)
3  App                            0x3c2e94 MapaBackPainter.dibujarMedios + 348 (iterable.dart:348)
4  App                            0x558268 MapaViewController._makePicStaticFondo + 594 (mapaview_controller.dart:594)

painting.dart:6006 is the implementation of drawPath:

  @override
  void drawPath(Path path, Paint paint) {
    _drawPath(path as _NativePath, paint._objects, paint._data);   this is line 6006
  }

MapaBackPainter.dibujarMedio is the one that always triggers the error in my app. Is fairly simple:

void dibujarMedio(ui.Canvas canvas, ThemeMapa themeMapa, Medio medio, {bool blink = false, bool allOn = false, bool trackView = false}) {
    if (medio.paintorder < 0) return;
    double anchoMedio = AparienciaMedio.ancho * (medio.apariencia.ancho ?? 1);

    final paintFondo = Paint()
      ..color = Colors.transparent
      ..strokeWidth = anchoMedio - 4
      ..style = ui.PaintingStyle.stroke;
    final paintOutline = Paint()
      ..color = themeMapa.colorMedioContorno
      ..strokeWidth = anchoMedio
      ..style = ui.PaintingStyle.stroke;
    final colorCentro = themeMapa.coloresMedioEstado[medio.estado]!.withAlpha(200);
    final paintCentro = Paint()
      ..color = trackView
          ? themeMapa.colorTrackViewMedio
          : blink
              ? themeMapa.colorBlink
              : colorCentro
      ..strokeWidth = anchoMedio * 0.5
      ..style = ui.PaintingStyle.stroke;
    canvas.saveLayer(null, paintOutline);
    canvas.drawPath(medio.path, paintOutline);
    canvas.drawPath(medio.path, paintFondo..blendMode = ui.BlendMode.clear);
    canvas.restore();
    canvas.drawPath(medio.path, paintCentro);

    if (!medio.apariencia.ocultarEstaciones) {
      for (int i = 0; i <= medio.estaciones.length - 1; i++) {
        Offset dir;
        if (i == 0) {
          dir = medio.estaciones[1] - medio.estaciones[i];
        } else {
          dir = medio.estaciones[i] - medio.estaciones[i - 1];
        }
        _dibujarEstacion(canvas, themeMapa, medio.estaciones[i], colorCentro, medio.apariencia.ancho, dir, trackView: trackView, blink: blink);
      }
    }
  }

It's doing saveLayer and restore. However at the time I could test this problem locally, I found that removing the call to _dibujarEstacion stopped the crash. That function calls save and restore again:

void _dibujarEstacion(ui.Canvas canvas, ThemeMapa themeMapa, PuntoMapa estacion, Color colorMedio, double? ancho, ui.Offset dir, {bool trackView = false, bool blink = false}) {
    if (estacion.visible ?? true) {
      const double st = 2;
      final paintEstacion = Paint()
        ..color = themeMapa.colorMedioEstacion
        ..style = ui.PaintingStyle.fill
        ..strokeWidth = st;
      final paintMedio = Paint()
        ..color = trackView
            ? themeMapa.colorTrackViewMedio
            : blink
                ? themeMapa.colorBlink
                : colorMedio
        ..strokeWidth = 1
        ..style = ui.PaintingStyle.fill;
      final double anchoEstacion = AparienciaMedio.anchoEstacion * (ancho ?? 1) / 2;
      const double largoEstacion = AparienciaMedio.largoEstacion / 2;
      canvas.save();
      canvas.translate(estacion.dx, estacion.dy);
      final angle = atan2(dir.dy, dir.dx);
      canvas.rotate(angle);
      canvas.drawRect(Rect.fromLTRB(-largoEstacion, -anchoEstacion, largoEstacion, anchoEstacion), paintEstacion);
      canvas.drawRect(Rect.fromLTRB(-largoEstacion + st, -anchoEstacion + st, largoEstacion - st, anchoEstacion - st), paintMedio);
      canvas.drawRect(Rect.fromLTRB(-largoEstacion / 2, -anchoEstacion / 2, largoEstacion / 2, anchoEstacion / 2), paintEstacion);
      canvas.restore();
    }
  }



@Thioby
Copy link

Thioby commented Jul 2, 2024

Keep receiving this crash when app starts video play using video_player ibrary.


iOS: 17.5.1


Logs:
Date/Time:           2024-07-02 12:55:01.9916 +0200
Launch Time:         2024-07-02 12:45:45.6323 +0200
OS Version:          iPhone OS 17.5.1 (21F90)
Release Type:        User
Baseband Version:    3.50.04
Report Version:      104

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_PROTECTION_FAILURE at 0x000000016f117f60
Exception Codes: 0x0000000000000002, 0x000000016f117f60
VM Region Info: 0x16f117f60 is in 0x16f114000-0x16f118000;  bytes after start: 16224  bytes before end: 159
      REGION TYPE                 START - END      [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL
      mapped file              138aa8000-139718000 [ 12.4M] r--/rw- SM=COW  Object_id=f6b393a6
      GAP OF 0x359fc000 BYTES
--->  STACK GUARD              16f114000-16f118000 [   16K] ---/rwx SM=NUL  stack guard for thread 0
      Stack                    16f118000-16f214000 [ 1008K] rw-/rwx SM=SHM  thread 0
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [543]

Triggered by Thread:  0


Thread 0 name:
Thread 0 Crashed:
0   Flutter                       	0x00000001032d5440 0x102dbc000 + 5346368
1   Flutter                       	0x00000001032d25d0 0x102dbc000 + 5334480
2   Flutter                       	0x00000001032d25f0 0x102dbc000 + 5334512

Thread 1 name:
Thread 1:
0   libsystem_kernel.dylib        	0x00000001edef0808 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001edef4008 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001edef3f20 mach_msg_overwrite + 436 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001edef3d60 mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                	0x00000001a4e10f5c __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2624)
5   CoreFoundation                	0x00000001a4e10600 __CFRunLoopRun + 1208 (CFRunLoop.c:3007)
6   CoreFoundation                	0x00000001a4e0fcd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
7   Foundation                    	0x00000001a3d30e4c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 (NSRunLoop.m:373)
8   Foundation                    	0x00000001a3d30c9c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64 (NSRunLoop.m:420)
9   UIKitCore                     	0x00000001a745c640 -[UIEventFetcher threadMain] + 420 (UIEventFetcher.m:1207)
10  Foundation                    	0x00000001a3d47718 __NSThread__start__ + 732 (NSThread.m:991)
11  libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
12  libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 2 name:
Thread 2:
0   libsystem_malloc.dylib        	0x00000001b4fdd1fc nanov2_calloc + 320 (nanov2_malloc.c:1246)
1   libobjc.A.dylib               	0x000000019cce3d4c class_createInstance + 72 (objc-runtime-new.mm:9025)
2   CoreFoundation                	0x00000001a4dd215c __CFAllocateObject + 20 (NSObject.m:697)
3   CoreFoundation                	0x00000001a4dd2040 __NSArrayM_new + 60 (NSArrayM.m:437)
4   CoreFoundation                	0x00000001a4e741d4 __CFRunLoopDoTimers + 200 (CFRunLoop.c:2542)
5   CoreFoundation                	0x00000001a4e10888 __CFRunLoopRun + 1856 (CFRunLoop.c:3122)
6   CoreFoundation                	0x00000001a4e0fcd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
7   Flutter                       	0x00000001030aaae0 0x102dbc000 + 3074784
8   Flutter                       	0x00000001030aa728 0x102dbc000 + 3073832
9   Flutter                       	0x00000001030aa438 0x102dbc000 + 3073080
10  libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
11  libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 3 name:
Thread 3:
0   libsystem_kernel.dylib        	0x00000001edef0808 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001edef4008 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001edef3f20 mach_msg_overwrite + 436 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001edef3d60 mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                	0x00000001a4e10f5c __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2624)
5   CoreFoundation                	0x00000001a4e10600 __CFRunLoopRun + 1208 (CFRunLoop.c:3007)
6   CoreFoundation                	0x00000001a4e0fcd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
7   Flutter                       	0x00000001030aaae0 0x102dbc000 + 3074784
8   Flutter                       	0x00000001030aa728 0x102dbc000 + 3073832
9   Flutter                       	0x00000001030aa438 0x102dbc000 + 3073080
10  libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
11  libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 4 name:
Thread 4:
0   libsystem_kernel.dylib        	0x00000001edef0808 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001edef4008 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001edef3f20 mach_msg_overwrite + 436 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001edef3d60 mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                	0x00000001a4e10f5c __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2624)
5   CoreFoundation                	0x00000001a4e10600 __CFRunLoopRun + 1208 (CFRunLoop.c:3007)
6   CoreFoundation                	0x00000001a4e0fcd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
7   Flutter                       	0x00000001030aaae0 0x102dbc000 + 3074784
8   Flutter                       	0x00000001030aa728 0x102dbc000 + 3073832
9   Flutter                       	0x00000001030aa438 0x102dbc000 + 3073080
10  libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
11  libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 5 name:
Thread 5:
0   libsystem_kernel.dylib        	0x00000001edef61cc __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000201c966e4 _pthread_cond_wait + 1228 (pthread_cond.c:862)
2   Flutter                       	0x0000000102e14df4 0x102dbc000 + 364020
3   Flutter                       	0x00000001030a44d0 0x102dbc000 + 3048656
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 6 name:
Thread 6:
0   libsystem_kernel.dylib        	0x00000001edef61cc __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000201c966e4 _pthread_cond_wait + 1228 (pthread_cond.c:862)
2   Flutter                       	0x0000000102e14df4 0x102dbc000 + 364020
3   Flutter                       	0x00000001030a44d0 0x102dbc000 + 3048656
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 7 name:
Thread 7:
0   libsystem_kernel.dylib        	0x00000001edef61cc __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000201c966e4 _pthread_cond_wait + 1228 (pthread_cond.c:862)
2   Flutter                       	0x0000000102e14df4 0x102dbc000 + 364020
3   Flutter                       	0x00000001030a44d0 0x102dbc000 + 3048656
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 8 name:
Thread 8:
0   libsystem_kernel.dylib        	0x00000001edef61cc __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000201c966e4 _pthread_cond_wait + 1228 (pthread_cond.c:862)
2   Flutter                       	0x0000000102e14df4 0x102dbc000 + 364020
3   Flutter                       	0x00000001030a44d0 0x102dbc000 + 3048656
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 9 name:
Thread 9:
0   libsystem_kernel.dylib        	0x00000001edef61cc __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000201c966e4 _pthread_cond_wait + 1228 (pthread_cond.c:862)
2   Flutter                       	0x0000000102e14df4 0x102dbc000 + 364020
3   Flutter                       	0x00000001030a44d0 0x102dbc000 + 3048656
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 10 name:
Thread 10:
0   libsystem_kernel.dylib        	0x00000001edef61cc __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000201c966e4 _pthread_cond_wait + 1228 (pthread_cond.c:862)
2   Flutter                       	0x0000000102e14df4 0x102dbc000 + 364020
3   Flutter                       	0x00000001030a44d0 0x102dbc000 + 3048656
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 11 name:
Thread 11:
0   libsystem_kernel.dylib        	0x00000001edef7608 kevent + 8 (:-1)
1   Flutter                       	0x0000000103339dac 0x102dbc000 + 5758380
2   Flutter                       	0x0000000103365204 0x102dbc000 + 5935620
3   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
4   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 12:
0   libsystem_kernel.dylib        	0x00000001edef63ec __semwait_signal + 8 (:-1)
1   libsystem_c.dylib             	0x00000001acd3f5f0 nanosleep + 220 (nanosleep.c:104)
2   libsystem_c.dylib             	0x00000001acd9c72c sleep + 52 (sleep.c:62)
3   Sentry                        	0x0000000101d1b5e8 monitorCachedData + 676 (SentryCrashCachedData.c:145)
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 13 name:
Thread 13:
0   libsystem_kernel.dylib        	0x00000001edef0808 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001edef4008 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001edef3f20 mach_msg_overwrite + 436 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001edef3d60 mach_msg + 24 (mach_msg.c:323)
4   Sentry                        	0x0000000101d26f98 handleExceptions + 172 (SentryCrashMonitor_MachException.c:314)
5   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
6   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 14 name:
Thread 14:
0   libsystem_kernel.dylib        	0x00000001edef63ec __semwait_signal + 8 (:-1)
1   libsystem_c.dylib             	0x00000001acd3f5f0 nanosleep + 220 (nanosleep.c:104)
2   Foundation                    	0x00000001a3e83714 +[NSThread sleepForTimeInterval:] + 160 (NSThread.m:527)
3   Sentry                        	0x0000000101d098c0 -[SentryANRTracker detectANRs] + 560 (SentryANRTracker.m:105)
4   Foundation                    	0x00000001a3d47718 __NSThread__start__ + 732 (NSThread.m:991)
5   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
6   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 15 name:
Thread 15:
0   libsystem_kernel.dylib        	0x00000001edef0808 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001edef4008 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001edef3f20 mach_msg_overwrite + 436 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001edef3d60 mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                	0x00000001a4e10f5c __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2624)
5   CoreFoundation                	0x00000001a4e10600 __CFRunLoopRun + 1208 (CFRunLoop.c:3007)
6   CoreFoundation                	0x00000001a4e0fcd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
7   CFNetwork                     	0x00000001a5ff0c90 +[__CFN_CoreSchedulingSetRunnable _run:] + 384 (CoreSchedulingSet.mm:1473)
8   Foundation                    	0x00000001a3d47718 __NSThread__start__ + 732 (NSThread.m:991)
9   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
10  libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 16 name:
Thread 16:
0   libsystem_kernel.dylib        	0x00000001edef0808 mach_msg2_trap + 8 (:-1)
1   libsystem_kernel.dylib        	0x00000001edef4008 mach_msg2_internal + 80 (mach_msg.c:201)
2   libsystem_kernel.dylib        	0x00000001edef3f20 mach_msg_overwrite + 436 (mach_msg.c:0)
3   libsystem_kernel.dylib        	0x00000001edef3d60 mach_msg + 24 (mach_msg.c:323)
4   CoreFoundation                	0x00000001a4e10f5c __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2624)
5   CoreFoundation                	0x00000001a4e10600 __CFRunLoopRun + 1208 (CFRunLoop.c:3007)
6   CoreFoundation                	0x00000001a4e0fcd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
7   CoreFoundation                	0x00000001a4e7df04 CFRunLoopRun + 64 (CFRunLoop.c:3446)
8   CoreMotion                    	0x00000001b1b20210 CLMotionCore::runMotionThread(void*) + 1292 (CLMotionCore.mm:376)
9   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
10  libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 17:
0   libsystem_pthread.dylib       	0x0000000201c940c4 start_wqthread + 0 (:-1)

Thread 18 name:
Thread 18:
0   libsystem_kernel.dylib        	0x00000001edef61cc __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000201c966e4 _pthread_cond_wait + 1228 (pthread_cond.c:862)
2   JavaScriptCore                	0x00000001bc4c30a4 scavenger_thread_main + 1512 (pas_scavenger.c:347)
3   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
4   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 19 name:
Thread 19:
0   libsystem_kernel.dylib        	0x00000001edef61cc __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000201c96710 _pthread_cond_wait + 1272 (pthread_cond.c:862)
2   Flutter                       	0x000000010342d130 0x102dbc000 + 6754608
3   Flutter                       	0x0000000103468bc0 0x102dbc000 + 6998976
4   Flutter                       	0x000000010342cafc 0x102dbc000 + 6753020
5   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
6   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 20 name:
Thread 20:
0   libsystem_kernel.dylib        	0x00000001edef61cc __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000201c96710 _pthread_cond_wait + 1272 (pthread_cond.c:862)
2   Flutter                       	0x000000010342d130 0x102dbc000 + 6754608
3   Flutter                       	0x0000000103468bc0 0x102dbc000 + 6998976
4   Flutter                       	0x000000010342cafc 0x102dbc000 + 6753020
5   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
6   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 21 name:
Thread 21:
0   libsystem_kernel.dylib        	0x00000001edef61cc __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000201c96710 _pthread_cond_wait + 1272 (pthread_cond.c:862)
2   Flutter                       	0x000000010342d130 0x102dbc000 + 6754608
3   Flutter                       	0x0000000103468bc0 0x102dbc000 + 6998976
4   Flutter                       	0x000000010342cafc 0x102dbc000 + 6753020
5   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
6   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 22:
0   libsystem_pthread.dylib       	0x0000000201c940c4 start_wqthread + 0 (:-1)

Thread 23:
0   libsystem_pthread.dylib       	0x0000000201c940c4 start_wqthread + 0 (:-1)

Thread 24:
0   libsystem_pthread.dylib       	0x0000000201c940c4 start_wqthread + 0 (:-1)

Thread 25 name:
Thread 25:
0   libsystem_kernel.dylib        	0x00000001edef61cc __psynch_cvwait + 8 (:-1)
1   libsystem_pthread.dylib       	0x0000000201c96710 _pthread_cond_wait + 1272 (pthread_cond.c:862)
2   Flutter                       	0x000000010342d130 0x102dbc000 + 6754608
3   Flutter                       	0x0000000103468bc0 0x102dbc000 + 6998976
4   Flutter                       	0x000000010342cafc 0x102dbc000 + 6753020
5   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
6   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 26 name:
Thread 26:
0   libsystem_kernel.dylib        	0x00000001edef079c semaphore_timedwait_trap + 8 (:-1)
1   libdispatch.dylib             	0x00000001acce63ec _dispatch_sema4_timedwait + 64 (lock.c:154)
2   libdispatch.dylib             	0x00000001acce69e8 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3   libdispatch.dylib             	0x00000001accf7668 _dispatch_worker_thread + 328 (queue.c:7314)
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 27 name:
Thread 27:
0   libsystem_kernel.dylib        	0x00000001edef079c semaphore_timedwait_trap + 8 (:-1)
1   libdispatch.dylib             	0x00000001acce63ec _dispatch_sema4_timedwait + 64 (lock.c:154)
2   libdispatch.dylib             	0x00000001acce69e8 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3   libdispatch.dylib             	0x00000001accf7668 _dispatch_worker_thread + 328 (queue.c:7314)
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 28:
0   libsystem_pthread.dylib       	0x0000000201c940c4 start_wqthread + 0 (:-1)

Thread 29:
0   libsystem_pthread.dylib       	0x0000000201c940c4 start_wqthread + 0 (:-1)

Thread 30 name:
Thread 30:
0   libsystem_kernel.dylib        	0x00000001edef079c semaphore_timedwait_trap + 8 (:-1)
1   libdispatch.dylib             	0x00000001acce63ec _dispatch_sema4_timedwait + 64 (lock.c:154)
2   libdispatch.dylib             	0x00000001acce69e8 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3   libdispatch.dylib             	0x00000001accf7668 _dispatch_worker_thread + 328 (queue.c:7314)
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 31 name:
Thread 31:
0   libsystem_kernel.dylib        	0x00000001edef079c semaphore_timedwait_trap + 8 (:-1)
1   libdispatch.dylib             	0x00000001acce63ec _dispatch_sema4_timedwait + 64 (lock.c:154)
2   libdispatch.dylib             	0x00000001acce69e8 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3   libdispatch.dylib             	0x00000001accf7668 _dispatch_worker_thread + 328 (queue.c:7314)
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 32 name:
Thread 32:
0   libsystem_kernel.dylib        	0x00000001edef079c semaphore_timedwait_trap + 8 (:-1)
1   libdispatch.dylib             	0x00000001acce63ec _dispatch_sema4_timedwait + 64 (lock.c:154)
2   libdispatch.dylib             	0x00000001acce69e8 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3   libdispatch.dylib             	0x00000001accf7668 _dispatch_worker_thread + 328 (queue.c:7314)
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)

Thread 33 name:
Thread 33:
0   libsystem_kernel.dylib        	0x00000001edef079c semaphore_timedwait_trap + 8 (:-1)
1   libdispatch.dylib             	0x00000001acce63ec _dispatch_sema4_timedwait + 64 (lock.c:154)
2   libdispatch.dylib             	0x00000001acce69e8 _dispatch_semaphore_wait_slow + 76 (semaphore.c:116)
3   libdispatch.dylib             	0x00000001accf7668 _dispatch_worker_thread + 328 (queue.c:7314)
4   libsystem_pthread.dylib       	0x0000000201c9906c _pthread_start + 136 (pthread.c:931)
5   libsystem_pthread.dylib       	0x0000000201c940d8 thread_start + 8 (:-1)


Thread 0 crashed with ARM Thread State (64-bit):
    x0: 0x0000000302a5b738   x1: 0x0000000102686500   x2: 0x0000000000000001   x3: 0x0000000000000002
    x4: 0x0000000000000004   x5: 0x0000000000003510   x6: 0x00000003001b7510   x7: 0x0000000000000001
    x8: 0x000000016f211480   x9: 0x0000000103282f08  x10: 0x0000000000000002  x11: 0x0000000000000004
   x12: 0x0000000000000000  x13: 0x0000000000000004  x14: 0x00000003001b7510  x15: 0x00000003001b6a90
   x16: 0x0000000000000000  x17: 0x0000000000009800  x18: 0x0000000000000000  x19: 0x000000016f211480
   x20: 0x0000000102686500  x21: 0x00000001026866a0  x22: 0x000000016f2113d0  x23: 0x000000016f211480
   x24: 0x000000030376c460  x25: 0x000000016f211310  x26: 0x000000016f211450  x27: 0x0000000000000000
   x28: 0x0000000300cf2a20   fp: 0x000000016f1180b0   lr: 0x00000001032d25d0
    sp: 0x000000016f117f70   pc: 0x00000001032d5440 cpsr: 0x80001000
   esr: 0x92000047 (Data Abort) byte write Translation fault
Screenshot Screenshot 2024-07-02 at 13 30 58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: release Challenges faced when attempting to productionize an app c: crash Stack traces logged to the console engine flutter/engine repository. See also e: labels. needs repro info Automated crash report whose cause isn't yet known P1 High-priority issues at the top of the work list platform-ios iOS applications specifically team-engine Owned by Engine team triaged-engine Triaged by Engine team
Projects
None yet
Development

No branches or pull requests