Skip to content

App crashes in latest version — crash triggered inside layout rendering (AsyncRenderer) #4

@mrsunx

Description

@mrsunx

Hi, thanks for this great library!
After updating to the latest version, I started seeing crashes related to layout rendering. I'm not fully sure what the root cause is yet, but the crash appears to happen during SwiftUI’s async rendering / layout phase.

Crashed: com.apple.SwiftUI.AsyncRenderer
0  libdispatch.dylib              0x5540 <redacted> + 120
1  libdispatch.dylib              0x37700 <redacted> + 114
2  libdispatch.dylib              0x54c4 dispatch_assert_queue + 108
3  libswift_Concurrency.dylib     0x503c <redacted> + 48
4  libswift_Concurrency.dylib     0x64ae8 <redacted> + 356
5  IChing                         0x7e52ac specialized static MainActor.assumeIsolated<A>(_:file:line:) + 4310733484 (<compiler-generated>:4310733484)
6  IChing                         0x7e47e0 closure #1 in closure #1 in FlowLayout.body.getter + 41 (FlowLayout.swift:41)
7  IChing                         0x7e5cc8 partial apply for closure #1 in closure #1 in FlowLayout.body.getter + 4310736072 (<compiler-generated>:4310736072)
8  SwiftUICore                    0x2b73fc <redacted> + 92
9  SwiftUICore                    0x2b7394 <redacted> + 16
10 SwiftUICore                    0x7e688 <redacted> + 120
11 SwiftUICore                    0x2b7498 <redacted> + 248
12 SwiftUICore                    0x2b7394 <redacted> + 16
13 SwiftUICore                    0x7e688 <redacted> + 120
14 SwiftUICore                    0x90e28 $s7SwiftUI14ViewDimensionsVAAEy12CoreGraphics7CGFloatVAA12AlignmentKeyVcig + 180
15 SwiftUICore                    0xbf50c <redacted> + 104
16 SwiftUICore                    0xbf37c <redacted> + 420
17 SwiftUICore                    0xbf138 $s7SwiftUI13_ZStackLayoutV12sizeThatFits8proposal8subviews5cacheSo6CGSizeVAA16ProposedViewSizeV_AA0D8SubviewsVytztF + 528
18 SwiftUICore                    0x7d2b4 <redacted> + 284
19 SwiftUICore                    0x7dfdc <redacted> + 728
20 SwiftUICore                    0x78b84 <redacted> + 144
21 SwiftUICore                    0x7dc24 $s7SwiftUI11LayoutProxyV4size2inSo6CGSizeVAA13_ProposedSizeV_tF + 252
22 SwiftUICore                    0x7aac4 $s7SwiftUI12_FrameLayoutV12sizeThatFits2in7context5childSo6CGSizeVAA13_ProposedSizeV_AA0M17AndSpacingContextVAA0D5ProxyVtF + 164
23 SwiftUICore                    0x7d92c <redacted> + 836
24 SwiftUICore                    0x7945c <redacted> + 20
25 SwiftUICore                    0x78b84 <redacted> + 144
26 SwiftUICore                    0x87430 $s7SwiftUI11LayoutProxyV10dimensions2inAA14ViewDimensionsVAA13_ProposedSizeV_tF + 256
27 SwiftUICore                    0xbf494 <redacted> + 80
28 SwiftUICore                    0xbf354 <redacted> + 380
29 SwiftUICore                    0xbf138 $s7SwiftUI13_ZStackLayoutV12sizeThatFits8proposal8subviews5cacheSo6CGSizeVAA16ProposedViewSizeV_AA0D8SubviewsVytztF + 528
30 SwiftUICore                    0x7d2b4 <redacted> + 284
31 SwiftUICore                    0x7dfdc <redacted> + 728
32 SwiftUICore                    0x78b84 <redacted> + 144
33 SwiftUICore                    0x87430 $s7SwiftUI11LayoutProxyV10dimensions2inAA14ViewDimensionsVAA13_ProposedSizeV_tF + 256
34 SwiftUICore                    0x101b38 <redacted> + 160
35 SwiftUICore                    0x87b9c <redacted> + 696
36 SwiftUICore                    0x877c0 <redacted> + 416
37 SwiftUICore                    0x86f6c <redacted> + 120
38 SwiftUICore                    0x7e78c $s7SwiftUI21LayoutChildGeometriesV5valueSayAA12ViewGeometryVGvg + 240
39 SwiftUICore                    0x8f1370 <redacted> + 60
40 AttributeGraph                 0xce48 <redacted> + 500
41 AttributeGraph                 0xecf0 <redacted> + 960
42 SwiftUICore                    0x211b0 <redacted> + 336
43 SwiftUICore                    0x23e594 <redacted> + 244
44 AttributeGraph                 0x142f4 AGGraphWithMainThreadHandler + 60
45 SwiftUICore                    0x23e3f4 $s7SwiftUI9ViewGraphC18updateOutputsAsync2atAA11DisplayListV4list_AG7VersionV7versiontSgAA4TimeV_tF + 556
46 SwiftUICore                    0x23e000 $s7SwiftUI25ViewGraphRootValueUpdaterPAAE11renderAsync8interval15targetTimestampAA4TimeVSgSd_AItF + 712
47 SwiftUICore                    0x23b954 <redacted> + 244
48 SwiftUICore                    0x23bd44 <redacted> + 288
49 SwiftUICore                    0x23b834 <redacted> + 60
50 QuartzCore                     0xbeb34 <redacted> + 64
51 QuartzCore                     0x9c09c <redacted> + 872
52 QuartzCore                     0x74618 <redacted> + 580
53 CoreFoundation                 0x164cc <redacted> + 168
54 CoreFoundation                 0x460b0 <redacted> + 60
55 CoreFoundation                 0x45fd8 <redacted> + 508
56 CoreFoundation                 0x1dc1c <redacted> + 2168
57 CoreFoundation                 0x1ca6c <redacted> + 532
58 Foundation                     0x98fa10 <redacted> + 212
59 Foundation                     0x9514 <redacted> + 64
60 SwiftUICore                    0x24a870 <redacted> + 784
61 SwiftUICore                    0x24a548 <redacted> + 72
62 Foundation                     0x61dbc <redacted> + 732
63 libsystem_pthread.dylib        0x444c _pthread_start + 136
64 libsystem_pthread.dylib        0x8cc thread_start + 8
        

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions