Repository: flutter
Issue: Crash on FfiTrampoline___layout$Method$FfiNative$Ptr on Android/iOS
Labels: c: crash,engine,a: production,P2,needs repro info,team-engine,triaged-engine,customer: trivia

### Is there an existing issue for this?

- [X] I have searched the [existing issues](https://github.com/flutter/flutter/issues)
- [X] I have read the [guide to filing a bug](https://flutter.dev/docs/resources/bug-reports)

### Steps to reproduce

We are unable to reproduce the crash.

We are experiencing this crash on our production code. We think that the issue is related to text drawing.

Our app integrates Flutter code as a library, both on Android and iOS.

We compared the changes in [the class where the crash happens](https://github.com/flutter/engine/blob/3.7.12/lib/ui/text/paragraph.cc), between the flutter version we are using (3.7.12) and the latest one, and see no changes that may resolve the issue.



### Expected results

We are unable to reproduce the crash.

### Actual results

We are unable to reproduce the crash.

### Code sample

We are unable to reproduce the crash.

### Screenshots or Video

_No response_

### Logs

<details><summary>iOS Crash Stacktrace 1</summary>

```console
Exception Type:     EXC_BAD_ACCESS 
Exception Subtype:  KERN_INVALID_ADDRESS

EXC_BAD_ACCESS: Attempted to dereference null pointer.

0   App +0x5c2a0                    FfiTrampoline___layout$Method$FfiNative$Ptr (dart:ffi:1)
1   App +0x5c140                    Paragraph._layout (text.dart:2761)
2   App +0x5c054                    Paragraph.layout (text.dart:2754)
3   App +0x5bae0                    TextPainter._layoutParagraph (text_painter.dart:771)
4   App +0x5b650                    TextPainter.layout (text_painter.dart:820)
5   App +0x3b9ac8                   _AutoSizeTextState._checkTextFits (auto_size_text.dart:406)
6   App +0x3b95e8                   _AutoSizeTextState._calculateFontSize (auto_size_text.dart:328)
7   App +0x3b926c                   _AutoSizeTextState.build.<anonymous closure> (auto_size_text.dart:257)
8   App +0x5ce008                   _LayoutBuilderElement._layout.layoutCallback (layout_builder.dart:119)
9   App +0x1366a8                   BuildOwner.buildScope (framework.dart:2682)
10  App +0x5cdf20                   _LayoutBuilderElement._layout (layout_builder.dart:153)
11  App +0x5cde70                   _LayoutBuilderElement._layout (layout_builder.dart:114)
12  App +0x121768                   RenderObject.invokeLayoutCallback.<anonymous closure> (object.dart:2300)
13  App +0x121678                   PipelineOwner._enableMutationsToDirtySubtrees (object.dart:1056)
14  App +0x121604                   RenderObject.invokeLayoutCallback (object.dart:2300)
15  App +0x1214ac                   RenderConstrainedLayoutBuilder.rebuildIfNecessary (layout_builder.dart:228)
16  App +0x12119c                   _RenderLayoutBuilder.performLayout (layout_builder.dart:313)
17  App +0x176f44                   RenderObject.layout (object.dart:2189)
18  App +0x1769f8                   RenderBox.layout (box.dart:2430)
19  App +0x11e408                   RenderPositionedBox.performLayout (shifted_box.dart:442)
20  App +0x176f44                   RenderObject.layout (object.dart:2189)
21  App +0x1769f8                   RenderBox.layout (box.dart:2430)
22  App +0x11ef00                   RenderPadding.performLayout (shifted_box.dart:240)
23  App +0x176f44                   RenderObject.layout (object.dart:2189)
24  App +0x1769f8                   RenderBox.layout (box.dart:2430)
25  App +0x1209cc                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
26  App +0x1203d8                   _RenderCustomClip.performLayout (proxy_box.dart:1467)
27  App +0x176f44                   RenderObject.layout (object.dart:2189)
28  App +0x1769f8                   RenderBox.layout (box.dart:2430)
29  App +0x1209cc                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
30  App +0x176f44                   RenderObject.layout (object.dart:2189)
31  App +0x1769f8                   RenderBox.layout (box.dart:2430)
32  App +0x11fe24                   RenderConstrainedBox.performLayout (proxy_box.dart:297)
33  App +0x176f44                   RenderObject.layout (object.dart:2189)
34  App +0x1769f8                   RenderBox.layout (box.dart:2430)
35  App +0x11fe24                   RenderConstrainedBox.performLayout (proxy_box.dart:297)
36  App +0x176f44                   RenderObject.layout (object.dart:2189)
37  App +0x1769f8                   RenderBox.layout (box.dart:2430)
38  App +0x11ed74                   ChildLayoutHelper.layoutChild (layout_helper.dart:56)
39  App +0x11ed14                   ChildLayoutHelper.layoutChild (layout_helper.dart:55)
40  App +0x10798c                   RenderStack._computeSize (stack.dart:595)
41  App +0x12ca08                   RenderStack.performLayout (stack.dart:622)
42  App +0x176f44                   RenderObject.layout (object.dart:2189)
43  App +0x1769f8                   RenderBox.layout (box.dart:2430)
44  App +0x11ed74                   ChildLayoutHelper.layoutChild (layout_helper.dart:56)
45  App +0x11ed14                   ChildLayoutHelper.layoutChild (layout_helper.dart:55)
46  App +0x1067fc                   RenderFlex._computeSizes (flex.dart:836)
47  App +0x12a6d0                   RenderFlex.performLayout (flex.dart:938)
48  App +0x176f44                   RenderObject.layout (object.dart:2189)
49  App +0x1769f8                   RenderBox.layout (box.dart:2430)
50  App +0x11ed74                   ChildLayoutHelper.layoutChild (layout_helper.dart:56)
51  App +0x11ed14                   ChildLayoutHelper.layoutChild (layout_helper.dart:55)
52  App +0x10798c                   RenderStack._computeSize (stack.dart:595)
53  App +0x12ca08                   RenderStack.performLayout (stack.dart:622)
54  App +0x176f44                   RenderObject.layout (object.dart:2189)
55  App +0x1769f8                   RenderBox.layout (box.dart:2430)
56  App +0x11ef00                   RenderPadding.performLayout (shifted_box.dart:240)
57  App +0x176f44                   RenderObject.layout (object.dart:2189)
58  App +0x1769f8                   RenderBox.layout (box.dart:2430)
59  App +0x1209cc                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
60  App +0x176f44                   RenderObject.layout (object.dart:2189)
61  App +0x1769f8                   RenderBox.layout (box.dart:2430)
62  App +0x1209cc                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
63  App +0x176f44                   RenderObject.layout (object.dart:2189)
64  App +0x1769f8                   RenderBox.layout (box.dart:2430)
65  App +0x1209cc                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
66  App +0x176f44                   RenderObject.layout (object.dart:2189)
67  App +0x1769f8                   RenderBox.layout (box.dart:2430)
68  App +0x11ed74                   ChildLayoutHelper.layoutChild (layout_helper.dart:56)
69  App +0x11ed14                   ChildLayoutHelper.layoutChild (layout_helper.dart:55)
70  App +0x10798c                   RenderStack._computeSize (stack.dart:595)
71  App +0x12ca08                   RenderStack.performLayout (stack.dart:622)
72  App +0x176f44                   RenderObject.layout (object.dart:2189)
73  App +0x1769f8                   RenderBox.layout (box.dart:2430)
74  App +0x1209cc                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
75  App +0x176f44                   RenderObject.layout (object.dart:2189)
76  App +0x1769f8                   RenderBox.layout (box.dart:2430)
77  App +0x71d7dc                   MultiChildLayoutDelegate.layoutChild (custom_layout.dart:171)
78  App +0x71cd74                   _ScaffoldLayout.performLayout (scaffold.dart:1080)
79  App +0x1220f4                   MultiChildLayoutDelegate._callPerformLayout (custom_layout.dart:240)
80  App +0x121f74                   RenderCustomMultiChildLayoutBox.performLayout (custom_layout.dart:410)
81  App +0x176f44                   RenderObject.layout (object.dart:2189)
82  App +0x1769f8                   RenderBox.layout (box.dart:2430)
83  App +0x1209cc                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
84  App +0x176f44                   RenderObject.layout (object.dart:2189)
85  App +0x1769f8                   RenderBox.layout (box.dart:2430)
86  App +0x1209cc                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
87  App +0x1203d8                   _RenderCustomClip.performLayout (proxy_box.dart:1467)
88  App +0x176f44                   RenderObject.layout (object.dart:2189)
89  App +0x1769f8                   RenderBox.layout (box.dart:2430)
90  App +0x11ed74                   ChildLayoutHelper.layoutChild (layout_helper.dart:56)
91  App +0x11ed14                   ChildLayoutHelper.layoutChild (layout_helper.dart:55)
92  App +0x10798c                   RenderStack._computeSize (stack.dart:595)
93  App +0x12ca08                   RenderStack.performLayout (stack.dart:622)
94  App +0x3923fc                   RenderObject._layoutWithoutResize (object.dart:2027)
95  App +0x392348                   PipelineOwner.flushLayout (object.dart:1020)
96  App +0x38a7f8                   RendererBinding.drawFrame (binding.dart:516)
97  App +0x38a28c                   WidgetsBinding.drawFrame (binding.dart:865)
98  App +0x389bd8                   RendererBinding._handlePersistentFrameCallback (binding.dart:381)
99  App +0x389ba0                   RendererBinding._handlePersistentFrameCallback (binding.dart:380)
100 App +0xe9f14                    SchedulerBinding._invokeFrameCallback (binding.dart:1289)
101 App +0xe9e68                    SchedulerBinding.handleDrawFrame (binding.dart:1218)
102 App +0xe9bc8                    SchedulerBinding._handleDrawFrame (binding.dart:1076)
103 App +0xe9a98                    SchedulerBinding._handleDrawFrame (binding.dart:1058)
104 App +0x14790                    _rootRun (zone.dart:1398)
105 App +0x14884                    _rootRun (zone.dart:1389)
106 App +0x6d462c                   _CustomZone.run (zone.dart:1300)
107 App +0x6d6248                   _CustomZone.runGuarded (zone.dart:1208)
108 App +0x3b4e0                    _invoke (hooks.dart:147)
109 App +0x3b424                    PlatformDispatcher._drawFrame (platform_dispatcher.dart:338)
110 App +0x3b3e0                    _drawFrame (hooks.dart:112)
111 App +0x3b514                    _drawFrame (hooks.dart:110)
112 App +0x81b8                     stub InvokeDartCode
113 Flutter +0x5cbc50               dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) (dart_entry.cc)
114 Flutter +0x6c4cf8               Dart_InvokeClosure (dart_api_impl.cc:4778:28)
115 Flutter +0x3da2ac               tonic::DartInvokeVoid(_Dart_Handle*) (dart_invoke.cc:30:24)
116 Flutter +0x3c1398               std::_LIBCPP_ABI_NAMESPACE::__function::__func<flutter::Animator::AwaitVSync()::$_3, std::_LIBCPP_ABI_NAMESPACE::allocator<flutter::Animator::AwaitVSync()::$_3>, void (std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::FrameTimingsRecorder, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::FrameTimingsRecorder> >)>::operator()(std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::FrameTimingsRecorder, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::FrameTimingsRecorder> >&&) (animator.cc:104:13)
117 Flutter +0x3ea0c0               std::_LIBCPP_ABI_NAMESPACE::__function::__func<flutter::VsyncWaiter::FireCallback(fml::TimePoint, fml::TimePoint, bool)::$_0, std::_LIBCPP_ABI_NAMESPACE::allocator<flutter::VsyncWaiter::FireCallback(fml::TimePoint, fml::TimePoint, bool)::$_0>, void ()>::operator()() (function.h:512:16)
118 Flutter +0x2d6ca0               fml::MessageLoopImpl::FlushTasks(fml::FlushType) (function.h:512:16)
119 Flutter +0x2d9e44               fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) (message_loop_impl.cc:139:3)
120 CoreFoundation +0xcb620         ___CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
121 CoreFoundation +0x88f48         ___CFRunLoopDoTimer
122 CoreFoundation +0x2e718         ___CFRunLoopDoTimers
123 CoreFoundation +0x7a4d0         ___CFRunLoopRun
124 CoreFoundation +0x7f3e8         _CFRunLoopRunSpecific
125 Flutter +0x2d9f30               fml::MessageLoopDarwin::Run() (message_loop_darwin.mm:51:20)
126 Flutter +0x2d9a20               void* std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<std::_LIBCPP_ABI_NAMESPACE::tuple<std::_LIBCPP_ABI_NAMESPACE::unique_ptr<std::_LIBCPP_ABI_NAMESPACE::__thread_struct, std::_LIBCPP_ABI_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct> >, fml::Thread::Thread(std::_LIBCPP_ABI_NAMESPACE::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0> >(void*) (message_loop_impl.cc:94:3)
127 libsystem_pthread.dylib +0x16b4 __pthread_start
```

</details>


<details><summary>iOS Crash Stacktrace 2</summary>

```console
Exception Type:     EXC_BAD_ACCESS 
Exception Subtype:  KERN_INVALID_ADDRESS

EXC_BAD_ACCESS: Attempted to dereference null pointer.

0   App +0x5ac60                    FfiTrampoline___layout$Method$FfiNative$Ptr (dart:ffi:1)
1   App +0x5ab00                    Paragraph._layout (text.dart:2761)
2   App +0x5aa14                    Paragraph.layout (text.dart:2754)
3   App +0x5a4a0                    TextPainter._layoutParagraph (text_painter.dart:771)
4   App +0x5a010                    TextPainter.layout (text_painter.dart:820)
5   App +0x105f50                   RenderParagraph._layoutText (paragraph.dart:645)
6   App +0x105dc0                   RenderParagraph._layoutTextWithConstraints (paragraph.dart:695)
7   App +0x131bac                   RenderParagraph.performLayout (paragraph.dart:808)
8   App +0x176c84                   RenderObject.layout (object.dart:2189)
9   App +0x1767a4                   RenderBox.layout (box.dart:2430)
10  App +0x123930                   ChildLayoutHelper.layoutChild (layout_helper.dart:56)
11  App +0x1238cc                   ChildLayoutHelper.layoutChild (layout_helper.dart:55)
12  App +0x1313e8                   RenderFlex._computeSizes (flex.dart:836)
13  App +0x130688                   RenderFlex.performLayout (flex.dart:938)
14  App +0x176c84                   RenderObject.layout (object.dart:2189)
15  App +0x1767a4                   RenderBox.layout (box.dart:2430)
16  App +0x1247cc                   RenderConstrainedBox.performLayout (proxy_box.dart:297)
17  App +0x176c84                   RenderObject.layout (object.dart:2189)
18  App +0x1767a4                   RenderBox.layout (box.dart:2430)
19  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
20  App +0x176c84                   RenderObject.layout (object.dart:2189)
21  App +0x1767a4                   RenderBox.layout (box.dart:2430)
22  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
23  App +0x176c84                   RenderObject.layout (object.dart:2189)
24  App +0x1767a4                   RenderBox.layout (box.dart:2430)
25  App +0x13a6a0                   RenderWrap.performLayout (wrap.dart:624)
26  App +0x176c84                   RenderObject.layout (object.dart:2189)
27  App +0x1767a4                   RenderBox.layout (box.dart:2430)
28  App +0x123930                   ChildLayoutHelper.layoutChild (layout_helper.dart:56)
29  App +0x1238cc                   ChildLayoutHelper.layoutChild (layout_helper.dart:55)
30  App +0x1313e8                   RenderFlex._computeSizes (flex.dart:836)
31  App +0x130688                   RenderFlex.performLayout (flex.dart:938)
32  App +0x176c84                   RenderObject.layout (object.dart:2189)
33  App +0x1767a4                   RenderBox.layout (box.dart:2430)
34  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
35  App +0x176c84                   RenderObject.layout (object.dart:2189)
36  App +0x1767a4                   RenderBox.layout (box.dart:2430)
37  App +0x123930                   ChildLayoutHelper.layoutChild (layout_helper.dart:56)
38  App +0x1238cc                   ChildLayoutHelper.layoutChild (layout_helper.dart:55)
39  App +0x1313e8                   RenderFlex._computeSizes (flex.dart:836)
40  App +0x130688                   RenderFlex.performLayout (flex.dart:938)
41  App +0x176c84                   RenderObject.layout (object.dart:2189)
42  App +0x1767a4                   RenderBox.layout (box.dart:2430)
43  App +0x122dac                   RenderPositionedBox.performLayout (shifted_box.dart:442)
44  App +0x176c84                   RenderObject.layout (object.dart:2189)
45  App +0x1767a4                   RenderBox.layout (box.dart:2430)
46  App +0x123ac0                   RenderPadding.performLayout (shifted_box.dart:240)
47  App +0x176c84                   RenderObject.layout (object.dart:2189)
48  App +0x1767a4                   RenderBox.layout (box.dart:2430)
49  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
50  App +0x176c84                   RenderObject.layout (object.dart:2189)
51  App +0x1767a4                   RenderBox.layout (box.dart:2430)
52  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
53  App +0x176c84                   RenderObject.layout (object.dart:2189)
54  App +0x1767a4                   RenderBox.layout (box.dart:2430)
55  App +0x71a190                   MultiChildLayoutDelegate.layoutChild (custom_layout.dart:171)
56  App +0x719724                   _ScaffoldLayout.performLayout (scaffold.dart:1080)
57  App +0x12735c                   MultiChildLayoutDelegate._callPerformLayout (custom_layout.dart:240)
58  App +0x1271dc                   RenderCustomMultiChildLayoutBox.performLayout (custom_layout.dart:410)
59  App +0x176c84                   RenderObject.layout (object.dart:2189)
60  App +0x1767a4                   RenderBox.layout (box.dart:2430)
61  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
62  App +0x176c84                   RenderObject.layout (object.dart:2189)
63  App +0x1767a4                   RenderBox.layout (box.dart:2430)
64  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
65  App +0x125478                   _RenderCustomClip.performLayout (proxy_box.dart:1467)
66  App +0x176c84                   RenderObject.layout (object.dart:2189)
67  App +0x1767a4                   RenderBox.layout (box.dart:2430)
68  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
69  App +0x176c84                   RenderObject.layout (object.dart:2189)
70  App +0x1767a4                   RenderBox.layout (box.dart:2430)
71  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
72  App +0x176c84                   RenderObject.layout (object.dart:2189)
73  App +0x1767a4                   RenderBox.layout (box.dart:2430)
74  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
75  App +0x176c84                   RenderObject.layout (object.dart:2189)
76  App +0x1767a4                   RenderBox.layout (box.dart:2430)
77  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
78  App +0x176c84                   RenderObject.layout (object.dart:2189)
79  App +0x1767a4                   RenderBox.layout (box.dart:2430)
80  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
81  App +0x1258fc                   RenderOffstage.performLayout (proxy_box.dart:3815)
82  App +0x176c84                   RenderObject.layout (object.dart:2189)
83  App +0x1767a4                   RenderBox.layout (box.dart:2430)
84  App +0x125a78                   RenderProxyBoxMixin.performLayout (proxy_box.dart:120)
85  App +0x176c84                   RenderObject.layout (object.dart:2189)
86  App +0x1767a4                   RenderBox.layout (box.dart:2430)
87  App +0x1345cc                   _RenderTheatre.performLayout (overlay.dart:856)
88  App +0x3bcb0c                   RenderObject._layoutWithoutResize (object.dart:2027)
89  App +0x3bca58                   PipelineOwner.flushLayout (object.dart:1020)
90  App +0x3b4f2c                   RendererBinding.drawFrame (binding.dart:516)
91  App +0x3b49c0                   WidgetsBinding.drawFrame (binding.dart:865)
92  App +0x3b430c                   RendererBinding._handlePersistentFrameCallback (binding.dart:381)
93  App +0x3b42d4                   RendererBinding._handlePersistentFrameCallback (binding.dart:380)
94  App +0xf3b8c                    SchedulerBinding._invokeFrameCallback (binding.dart:1289)
95  App +0xf3ae0                    SchedulerBinding.handleDrawFrame (binding.dart:1218)
96  App +0xf3844                    SchedulerBinding._handleDrawFrame (binding.dart:1076)
97  App +0xf3714                    SchedulerBinding._handleDrawFrame (binding.dart:1058)
98  App +0x16810                    _rootRun (zone.dart:1398)
99  App +0x16904                    _rootRun (zone.dart:1389)
100 App +0x6d1cac                   _CustomZone.run (zone.dart:1300)
101 App +0x6d2284                   _CustomZone.runGuarded (zone.dart:1208)
102 App +0x43dc0                    _invoke (hooks.dart:147)
103 App +0x43d04                    PlatformDispatcher._drawFrame (platform_dispatcher.dart:338)
104 App +0x43cc0                    _drawFrame (hooks.dart:112)
105 App +0x43df4                    _drawFrame (hooks.dart:110)
106 App +0xa238                     stub InvokeDartCode
107 Flutter +0x5cbc50               dart::DartEntry::InvokeFunction(dart::Function const&, dart::Array const&, dart::Array const&, unsigned long) (dart_entry.cc)
108 Flutter +0x6c4cf8               Dart_InvokeClosure (dart_api_impl.cc:4778:28)
109 Flutter +0x3da2ac               tonic::DartInvokeVoid(_Dart_Handle*) (dart_invoke.cc:30:24)
110 Flutter +0x3c1398               std::_LIBCPP_ABI_NAMESPACE::__function::__func<flutter::Animator::AwaitVSync()::$_3, std::_LIBCPP_ABI_NAMESPACE::allocator<flutter::Animator::AwaitVSync()::$_3>, void (std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::FrameTimingsRecorder, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::FrameTimingsRecorder> >)>::operator()(std::_LIBCPP_ABI_NAMESPACE::unique_ptr<flutter::FrameTimingsRecorder, std::_LIBCPP_ABI_NAMESPACE::default_delete<flutter::FrameTimingsRecorder> >&&) (animator.cc:104:13)
111 Flutter +0x3ea0c0               std::_LIBCPP_ABI_NAMESPACE::__function::__func<flutter::VsyncWaiter::FireCallback(fml::TimePoint, fml::TimePoint, bool)::$_0, std::_LIBCPP_ABI_NAMESPACE::allocator<flutter::VsyncWaiter::FireCallback(fml::TimePoint, fml::TimePoint, bool)::$_0>, void ()>::operator()() (function.h:512:16)
112 Flutter +0x2d6ca0               fml::MessageLoopImpl::FlushTasks(fml::FlushType) (function.h:512:16)
113 Flutter +0x2d9e44               fml::MessageLoopDarwin::OnTimerFire(__CFRunLoopTimer*, fml::MessageLoopDarwin*) (message_loop_impl.cc:139:3)
114 CoreFoundation +0xce358         ___CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
115 CoreFoundation +0x8a9d4         ___CFRunLoopDoTimer
116 CoreFoundation +0x2e594         ___CFRunLoopDoTimers
117 CoreFoundation +0x7bfc8         ___CFRunLoopRun
118 CoreFoundation +0x80ed0         _CFRunLoopRunSpecific
119 Flutter +0x2d9f30               fml::MessageLoopDarwin::Run() (message_loop_darwin.mm:51:20)
120 Flutter +0x2d9a20               void* std::_LIBCPP_ABI_NAMESPACE::__thread_proxy[abi:v15000]<std::_LIBCPP_ABI_NAMESPACE::tuple<std::_LIBCPP_ABI_NAMESPACE::unique_ptr<std::_LIBCPP_ABI_NAMESPACE::__thread_struct, std::_LIBCPP_ABI_NAMESPACE::default_delete<std::_LIBCPP_ABI_NAMESPACE::__thread_struct> >, fml::Thread::Thread(std::_LIBCPP_ABI_NAMESPACE::function<void (fml::Thread::ThreadConfig const&)> const&, fml::Thread::ThreadConfig const&)::$_0> >(void*) (message_loop_impl.cc:94:3)
121 libsystem_pthread.dylib +0x16c8 __pthread_start
```

</details>

<details><summary>Android Crash Stacktrace 1</summary>

```console
SIGSEGV: Segmentation violation (invalid memory reference)

0  libflutter.so +0x613f58 0x7c1522ef58 (SkLRUCache.h:114:24)
1  libapp.so +0xac6cac     FfiTrampoline___layout$Method$FfiNative$Ptr (dart:ffi:1:1)
2  libapp.so +0x4b1264     Paragraph._layout (text.dart:2761:17)
3  libapp.so +0x4b1174     Paragraph.layout (text.dart:2754:5)
4  libapp.so +0x4b0c9c     TextPainter._layoutParagraph (text_painter.dart:771:17)
5  libapp.so +0x4b06d8     TextPainter.layout (text_painter.dart:820:5)
6  libapp.so +0x4b633c     RenderParagraph._layoutText (paragraph.dart:645:18)
7  libapp.so +0x4cd834     RenderParagraph._layoutTextWithConstraints (paragraph.dart:695:5)
8  libapp.so +0x503960     RenderParagraph.performLayout (paragraph.dart:808:5)
9  libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
10 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
11 libapp.so +0x4f5110     RenderPositionedBox.performLayout (shifted_box.dart:442:14)
12 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
13 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
14 libapp.so +0x4f5e90     RenderPadding.performLayout (shifted_box.dart:240:12)
15 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
16 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
17 libapp.so +0x4f5cec     ChildLayoutHelper.layoutChild (layout_helper.dart:56:11)
18 libapp.so +0x4f5c8c     ChildLayoutHelper.layoutChild (layout_helper.dart:55:3)
19 libapp.so +0x503178     RenderFlex._computeSizes (flex.dart:836:43)
20 libapp.so +0x5023a0     RenderFlex.performLayout (flex.dart:938:32)
21 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
22 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
23 libapp.so +0x504cf8     RenderStack.layoutPositionedChild (stack.dart:521:11)
24 libapp.so +0x504aa4     RenderStack.performLayout (stack.dart:635:30)
25 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
26 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
27 libapp.so +0x4f7f78     RenderProxyBoxMixin.performLayout (proxy_box.dart:120:14)
28 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
29 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
30 libapp.so +0x4f7f78     RenderProxyBoxMixin.performLayout (proxy_box.dart:120:14)
31 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
32 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
33 libapp.so +0x4f7f78     RenderProxyBoxMixin.performLayout (proxy_box.dart:120:14)
34 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
35 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
36 libapp.so +0x50af54     RenderWrap.performLayout (wrap.dart:624:13)
37 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
38 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
39 libapp.so +0x4f5cec     ChildLayoutHelper.layoutChild (layout_helper.dart:56:11)
40 libapp.so +0x4f5c8c     ChildLayoutHelper.layoutChild (layout_helper.dart:55:3)
41 libapp.so +0x503178     RenderFlex._computeSizes (flex.dart:836:43)
42 libapp.so +0x5023a0     RenderFlex.performLayout (flex.dart:938:32)
43 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
44 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
45 libapp.so +0x4f7f78     RenderProxyBoxMixin.performLayout (proxy_box.dart:120:14)
46 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
47 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
48 libapp.so +0x4f7f78     RenderProxyBoxMixin.performLayout (proxy_box.dart:120:14)
49 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
50 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
51 libapp.so +0x4f7f78     RenderProxyBoxMixin.performLayout (proxy_box.dart:120:14)
52 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
53 libapp.so +0x5263cc     RenderBox.layout (box.dart:2430:11)
54 libapp.so +0x512d40     RenderSliverList.performLayout (sliver_list.dart:213:28)
55 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
56 libapp.so +0x51468c     RenderSliverEdgeInsetsPadding.performLayout (sliver_padding.dart:149:12)
57 libapp.so +0x514000     RenderSliverPadding.performLayout (sliver_padding.dart:386:11)
58 libapp.so +0xad64cc     RenderObject.layout (object.dart:2189:7)
59 libapp.so +0x507a94     RenderViewportBase.layoutChildSequence (viewport.dart:550:13)
60 libapp.so +0x5075d8     UnboundedRenderViewport._attemptLayout (viewport.dart:281:12)
61 libapp.so +0x506970     UnboundedRenderViewport.performLayout (viewport.dart:182:20)
62 libapp.so +0xb481b8     RenderObject._layoutWithoutResize (object.dart:2027:7)
63 libapp.so +0xb48104     PipelineOwner.flushLayout (object.dart:1020:18)
64 libapp.so +0x81fe78     RendererBinding.drawFrame (binding.dart:516:19)
65 libapp.so +0x81fa90     WidgetsBinding.drawFrame (binding.dart:865:13)
66 libapp.so +0x81f328     RendererBinding._handlePersistentFrameCallback (binding.dart:381:5)
67 libapp.so +0x81f2f0     RendererBinding._handlePersistentFrameCallback (binding.dart:380:3)
68 libapp.so +0xacbcc4     SchedulerBinding._invokeFrameCallback (binding.dart:1289:15)
69 libapp.so +0xacbc18     SchedulerBinding.handleDrawFrame (binding.dart:1218:9)
70 libapp.so +0x4935ac     SchedulerBinding._handleDrawFrame (binding.dart:1076:5)
71 libapp.so +0x49345c     SchedulerBinding._handleDrawFrame (binding.dart:1058:3)
72 libapp.so +0xab5f78     _rootRun (zone.dart:1398:13)
73 libapp.so +0x3daa74     _rootRun (zone.dart:1389:1)
74 libapp.so +0xa1cd64     _CustomZone.run (zone.dart:1300:19)
75 libapp.so +0xb843ac     _CustomZone.runGuarded (zone.dart:1208:7)
76 libapp.so +0x3eedb4     _invoke (hooks.dart:147:10)
77 libapp.so +0x3eecf8     PlatformDispatcher._drawFrame (platform_dispatcher.dart:338:5)
78 libapp.so +0x3eecac     _drawFrame (hooks.dart:112:31)
79 libapp.so +0x3eede8     _drawFrame (hooks.dart:110:1)
80 libapp.so +0x3c302c     stub InvokeDartCode
81 libflutter.so +0x6ead48 0x7c15305d4c (dart_entry.cc)
82 libflutter.so +0x6ebbe0 0x7c15306be4 (dart_entry.cc:294:10)
83 libflutter.so +0x82a2ac Dart_InvokeClosure (dart_api_impl.cc:4778:28)
84 libflutter.so +0x5b5ffc 0x7c151d1000 (platform_configuration.cc:216:64)
85 libflutter.so +0x5a7618 0x7c151c261c (animator.cc:104:13)
86 libflutter.so +0x5bde34 0x7c151d8e38 (function.h:512:16)
87 libflutter.so +0x34cb2c 0x7c14f67b30 (message_loop_impl.cc:123:9)
88 libflutter.so +0x34ff40 0x7c14f6af44 (message_loop_android.cc:92:5)
89 libutils.so +0x16bac    android::Looper::pollInner(int)
90 libutils.so +0x167b4    android::Looper::pollOnce(int, int*, int*, void**)
91 libandroid.so +0x17280  ALooper_pollOnce
92 libflutter.so +0x35004c fml::MessageLoopAndroid::Run() (message_loop_android.cc:68:18)
93 libflutter.so +0x34e6b0 0x7c14f696b4 (message_loop_impl.cc:94:3)
94 libc.so +0xed134        __pthread_start(void*)
95 libc.so +0x8b29c        __start_thread
```

</details>

<details><summary>Android Crash Stacktrace 2</summary>

```console
SIGSEGV: Segmentation violation (invalid memory reference)

0  libflutter.so +0x613f58 0x7658224f58 (SkLRUCache.h:114:24)
1  libapp.so +0xae3cd8     FfiTrampoline___layout$Method$FfiNative$Ptr (dart:ffi:1:1)
2  libapp.so +0x4cafb0     Paragraph._layout (text.dart:2761:17)
3  libapp.so +0x4caec0     Paragraph.layout (text.dart:2754:5)
4  libapp.so +0x4ca9e8     TextPainter._layoutParagraph (text_painter.dart:771:17)
5  libapp.so +0x4ca424     TextPainter.layout (text_painter.dart:820:5)
6  libapp.so +0x62640c     _AutoSizeTextState._checkTextFits (auto_size_text.dart:406:17)
7  libapp.so +0x625f18     _AutoSizeTextState._calculateFontSize (auto_size_text.dart:328:11)
8  libapp.so +0x625b54     _AutoSizeTextState.build.<anonymous closure> (auto_size_text.dart:257:22)
9  libapp.so +0xb02720     _LayoutBuilderElement._layout.layoutCallback (layout_builder.dart:119:77)
10 libapp.so +0xaf25e0     BuildOwner.buildScope (framework.dart:2682:19)
11 libapp.so +0x5ae018     _LayoutBuilderElement._layout (layout_builder.dart:153:12)
12 libapp.so +0x5adf5c     _LayoutBuilderElement._layout (layout_builder.dart:114:3)
13 libapp.so +0x50e180     RenderObject.invokeLayoutCallback.<anonymous closure> (object.dart:2300:59)
14 libapp.so +0xaf1fe8     PipelineOwner._enableMutationsToDirtySubtrees (object.dart:1056:15)
15 libapp.so +0xaf1f74     RenderObject.invokeLayoutCallback (object.dart:2300:14)
16 libapp.so +0x50e064     RenderConstrainedLayoutBuilder.rebuildIfNecessary (layout_builder.dart:228:7)
17 libapp.so +0x50dd30     _RenderLayoutBuilder.performLayout (layout_builder.dart:313:5)
18 libapp.so +0xaf3bb0     RenderObject.layout (object.dart:2189:7)
19 libapp.so +0x52fb9c     RenderBox.layout (box.dart:2430:11)
20 libapp.so +0x50b208     ChildLayoutHelper.layoutChild (layout_helper.dart:56:11)
21 libapp.so +0x50b1a4     ChildLayoutHelper.layoutChild (layout_helper.dart:55:3)
22 libapp.so +0x518734     RenderFlex._computeSizes (flex.dart:836:43)
23 libapp.so +0x51795c     RenderFlex.performLayout (flex.dart:938:32)
24 libapp.so +0xaf3bb0     RenderObject.layout (object.dart:2189:7)
25 libapp.so +0x52fb9c     RenderBox.layout (box.dart:2430:11)
26 libapp.so +0x50cd08     RenderProxyBoxMixin.performLayout (proxy_box.dart:120:14)
27 libapp.so +0xaf3bb0     RenderObject.layout (object.dart:2189:7)
28 libapp.so +0x52fb9c     RenderBox.layout (box.dart:2430:11)
29 libapp.so +0x50d4b8     RenderProxyBoxMixin.performLayout (proxy_box.dart:120:14)
30 libapp.so +0xaf3bb0     RenderObject.layout (object.dart:2189:7)
31 libapp.so +0x52fb9c     RenderBox.layout (box.dart:2430:11)
32 libapp.so +0x51a2bc     RenderStack.layoutPositionedChild (stack.dart:521:11)
33 libapp.so +0x51a064     RenderStack.performLayout (stack.dart:635:30)
34 libapp.so +0xaf3bb0     RenderObject.layout (object.dart:2189:7)
35 libapp.so +0x52fb9c     RenderBox.layout (box.dart:2430:11)
36 libapp.so +0x50d4b8     RenderProxyBoxMixin.performLayout (proxy_box.dart:120:14)
37 libapp.so +0xaf3bb0     RenderObject.layout (object.dart:2189:7)
38 libapp.so +0x52fb9c     RenderBox.layout (box.dart:2430:11)
39 libapp.so +0x50d4b8     RenderProxyBoxMixin.performLayout (proxy_box.dart:120:14)
40 libapp.so +0x50ce70     _RenderCustomClip.performLayout (proxy_box.dart:1467:11)
41 libapp.so +0xaf3bb0     RenderObject.layout (object.dart:2189:7)
42 libapp.so +0x52fb9c     RenderBox.layout (box.dart:2430:11)
43 libapp.so +0x50b208     ChildLayoutHelper.layoutChild (layout_helper.dart:56:11)
44 libapp.so +0x50b1a4     ChildLayoutHelper.layoutChild (layout_helper.dart:55:3)
45 libapp.so +0x51a784     RenderStack._computeSize (stack.dart:595:43)
46 libapp.so +0x519e74     RenderStack.performLayout (stack.dart:622:12)
47 libapp.so +0xaf3bb0     RenderObject.layout (object.dart:2189:7)
48 libapp.so +0x52fb9c     RenderBox.layout (box.dart:2430:11)
49 libapp.so +0x50b208     ChildLayoutHelper.layoutChild (layout_helper.dart:56:11)
50 libapp.so +0x50b1a4     ChildLayoutHelper.layoutChild (layout_helper.dart:55:3)
51 libapp.so +0x51a784     RenderStack._computeSize (stack.dart:595:43)
52 libapp.so +0x519e74     RenderStack.performLayout (stack.dart:622:12)
53 libapp.so +0xb69df8     RenderObject._layoutWithoutResize (object.dart:2027:7)
54 libapp.so +0xb69d44     PipelineOwner.flushLayout (object.dart:1020:18)
55 libapp.so +0x83b6d0     RendererBinding.drawFrame (binding.dart:516:19)
56 libapp.so +0x83b2e8     WidgetsBinding.drawFrame (binding.dart:865:13)
57 libapp.so +0x83ab78     RendererBinding._handlePersistentFrameCallback (binding.dart:381:5)
58 libapp.so +0x83ab40     RendererBinding._handlePersistentFrameCallback (binding.dart:380:3)
59 libapp.so +0xaeb250     SchedulerBinding._invokeFrameCallback (binding.dart:1289:15)
60 libapp.so +0xaeb1a4     SchedulerBinding.handleDrawFrame (binding.dart:1218:9)
61 libapp.so +0x4ad2f0     SchedulerBinding._handleDrawFrame (binding.dart:1076:5)
62 libapp.so +0x4ad1a0     SchedulerBinding._handleDrawFrame (binding.dart:1058:3)
63 libapp.so +0xad3a08     _rootRun (zone.dart:1398:13)
64 libapp.so +0x3eb044     _rootRun (zone.dart:1389:1)
65 libapp.so +0xa32b60     _CustomZone.run (zone.dart:1300:19)
66 libapp.so +0xba542c     _CustomZone.runGuarded (zone.dart:1208:7)
67 libapp.so +0x3f24ec     _invoke (hooks.dart:147:10)
68 libapp.so +0x3f2430     PlatformDispatcher._drawFrame (platform_dispatcher.dart:338:5)
69 libapp.so +0x3f23e4     _drawFrame (hooks.dart:112:31)
70 libapp.so +0x3f2520     _drawFrame (hooks.dart:110:1)
71 libapp.so +0x3cf02c     stub InvokeDartCode
72 libflutter.so +0x6ead48 0x76582fbd4c (dart_entry.cc)
73 libflutter.so +0x6ebbe0 0x76582fcbe4 (dart_entry.cc:294:10)
74 libflutter.so +0x82a2ac Dart_InvokeClosure (dart_api_impl.cc:4778:28)
75 libflutter.so +0x5b5ffc 0x76581c7000 (platform_configuration.cc:216:64)
76 libflutter.so +0x5a7618 0x76581b861c (animator.cc:104:13)
77 libflutter.so +0x5bde34 0x76581cee38 (function.h:512:16)
78 libflutter.so +0x34cb2c 0x7657f5db30 (message_loop_impl.cc:123:9)
79 libflutter.so +0x34ff40 0x7657f60f44 (message_loop_android.cc:92:5)
80 libutils.so +0x18220    android::Looper::pollInner(int)
81 libutils.so +0x17d9c    android::Looper::pollOnce(int, int*, int*, void**)
82 libandroid.so +0x185f0  ALooper_pollOnce
83 libflutter.so +0x35004c fml::MessageLoopAndroid::Run() (message_loop_android.cc:68:18)
84 libflutter.so +0x34e6b0 0x7657f5f6b4 (message_loop_impl.cc:94:3)
85 libc.so +0xfaec8        __pthread_start(void*)
86 libc.so +0x8e1ec        __start_thread
```

### Flutter Doctor output

<details><summary>Doctor output</summary>

```console
[✓] Flutter (Channel stable, 3.7.12, on macOS 13.3.1 22E772610a darwin-arm64, locale en-AR)
    • Flutter version 3.7.12 on channel stable at /Users/pabloi/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4d9e56e694 (5 months ago), 2023-04-17 21:47:46 -0400
    • Engine revision 1a65d409c7
    • Dart version 2.19.6
    • DevTools version 2.20.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/pabloi/Library/Android/sdk
    • Platform android-33, build-tools 33.0.0
    • ANDROID_SDK_ROOT = /Users/pabloi/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode_14.3.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.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.6b802.4-9586694)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.2)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • 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

[✓] VS Code (version 1.77.3)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available)
    • sdk gphone arm64 (mobile) • emulator-5554 • android-arm64  • Android 11 (API 30) (emulator)
    • macOS (desktop)           • macos         • darwin-arm64   • macOS 13.3.1 22E772610a darwin-arm64
    • Chrome (web)              • chrome        • web-javascript • Google Chrome 116.0.5845.179

[✓] HTTP Host Availability
    • All required HTTP hosts are available
```

</details>