microsoft / clarity-apps

Repo for distributing Clarity Apps packages
MIT License
46 stars 3 forks source link

[BUG][iOS] Crash EXC_BAD_ACCESS KERN_PROTECTION_FAILURE 0x0000000fd6afc558 #80

Open CtrlJone opened 3 days ago

CtrlJone commented 3 days ago

Describe the Bug

          Crashed: com.apple.main-thread
0  libobjc.A.dylib                0x1c78 objc_retain + 16
1  libobjc.A.dylib                0x1c78 objc_retain_x0 + 16
2  Clarity                        0xccdd0 __swift_memcpy17_8 + 5664
3  Clarity                        0xcd6b0 __swift_memcpy17_8 + 7936
4  Clarity                        0xcd6b0 __swift_memcpy17_8 + 7936
5  Clarity                        0xcd6b0 __swift_memcpy17_8 + 7936
6  Clarity                        0xcd6b0 __swift_memcpy17_8 + 7936
7  Clarity                        0xcd6b0 __swift_memcpy17_8 + 7936
8  Clarity                        0xcd6b0 __swift_memcpy17_8 + 7936
9  Clarity                        0xcd6b0 __swift_memcpy17_8 + 7936
10 Clarity                        0xcd6b0 __swift_memcpy17_8 + 7936
11 Clarity                        0xcd6b0 __swift_memcpy17_8 + 7936
12 Clarity                        0xcd6b0 __swift_memcpy17_8 + 7936
13 Clarity                        0xcc744 __swift_memcpy17_8 + 3988
14 Clarity                        0xcc384 __swift_memcpy17_8 + 3028
15 Clarity                        0xf82e8 __swift_memcpy72_8 + 40156
16 Clarity                        0xf7da8 __swift_memcpy72_8 + 38812
17 Clarity                        0xa516c objectdestroy.15Tm + 14064
18 libdispatch.dylib              0x40d0 _dispatch_client_callout + 20
19 libdispatch.dylib              0x7580 _dispatch_continuation_pop + 596
20 libdispatch.dylib              0x1b53c _dispatch_source_latch_and_call + 420
21 libdispatch.dylib              0x1a104 _dispatch_source_invoke + 836
22 libdispatch.dylib              0x128f4 _dispatch_main_queue_drain + 744
23 libdispatch.dylib              0x125fc _dispatch_main_queue_callback_4CF + 44
24 CoreFoundation                 0x56f64 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
25 CoreFoundation                 0x54188 __CFRunLoopRun + 1996
26 CoreFoundation                 0x535b8 CFRunLoopRunSpecific + 572
27 GraphicsServices               0x11c4 GSEventRunModal + 164
28 UIKitCore                      0x3de2c0 -[UIApplication _run] + 816
29 UIKitCore                      0x48cddc UIApplicationMain + 340
30 UIKitCore                      0x7b9b20 block_destroy_helper.23 + 10212
31 Kcex_ios                       0x352e30 static AppDelegate.$main() + 4310412848 (<compiler-generated>:4310412848)
32 Kcex_ios                       0x354088 type metadata accessor for AppDelegate + 4310417544 (<compiler-generated>:4310417544)
33 ???                            0x1ae6e4d34 (缺少)

Screenshots

image

Project Info

Platform/Framework Info

Additional Context This is my code

image
amralaa-MSFT commented 3 days ago

@CtrlJone Thank you for reporting this issue!

To help us investigate the problem efficiently, could you please provide the following additional information:

  1. Verbose Clarity Logs:
    • Enable verbose logging in your Clarity initialization code using ClarityConfig(..., logLevel: .verbose).
    • Capture the full Clarity logs from the device logging stream and include them in your report.
  2. Issue Details:
    • Describe the nature of the issue. Is it consistent or intermittent? Are there any noticeable patterns in its occurrence?
  3. Code Snippet (Optional):
    • If possible, please share a code snippet of the UI view elements that trigger the crash when Clarity is initialized. This would be extremely helpful for troubleshooting.

The more information you can provide, the faster we can diagnose and resolve the issue.

Have you also tried using Clarity v2.2.2 or v3.0.0?

CtrlJone commented 3 days ago

Hi @amralaa-MSFT , I'll update it to v2.2.2 and let you know the results after the new release.