lixiang1994 / LEEAlert

优雅的可自定义 Alert ActionSheet
MIT License
1.3k stars 204 forks source link

在部分情况出现闪退 #197

Open samhzx opened 2 months ago

samhzx commented 2 months ago

0 libsystem_kernel.dylib 0x00000001d258742c pthread_kill + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001e6326c0c pthread_kill + 268 (pthread.c:1721) 2 libsystem_c.dylib 0x000000019142aba0 abort + 180 (abort.c:118) 3 libsystem_malloc.dylib 0x0000000199668588 malloc_vreport + 896 (malloc_printf.c:251) 4 libsystem_malloc.dylib 0x0000000199665430 malloc_zone_error + 104 (malloc_printf.c:319) 5 libsystem_malloc.dylib 0x0000000199684508 nanov2_guard_corruption_detected + 44 (nanov2_malloc.c:2425) 6 libsystem_malloc.dylib 0x000000019966c2e4 nanov2_allocate_outlined + 404 (nanov2_malloc.c:2918) 7 libc++abi.dylib 0x00000001e6246b5c operator new(unsigned long) + 52 (stdlib_new_delete.cpp:72) 8 CoreGraphics 0x000000018b056140 std::1::shared_ptr::shared_ptr[abi:ue170006]<CG::DisplayListEntry const, void>(CG::DisplayListEntry const) + 52 (shared_ptr.h:517) 9 CoreGraphics 0x000000018b055ff0 CG::DisplayList::appendEntry(CG::DisplayListEntry const) + 152 (DisplayList.cpp:1105) 10 CoreGraphics 0x000000018b09684c dlRecorder_DrawRects(CGContextDelegate, CGRenderingState, CGGState, CGPathDrawingMode, CGRect const, unsigned long) + 960 (DisplayListRecorder.cpp:73) 11 CoreGraphics 0x000000018b096440 rip_auto_context_draw_rects + 188 (RIPAutomaticContext.c:658) 12 CoreGraphics 0x000000018b02a234 CGContextFillRects + 120 (CGContextPath.c:475) 13 CoreGraphics 0x000000018b02a1b0 CGContextFillRect + 124 (CGContextPath.c:488) 14 UIKitCore 0x000000018c945d88 -[UIImageView _drawImageEffectsForImage:inRect:effectiveTintColor:] + 256 (UIImageView.m:3140) 15 UIKitCore 0x000000018b876388 -[UIGraphicsRenderer runDrawingActions:completionActions:format:error:] + 324 (UIGraphicsRenderer.m:213) 16 UIKitCore 0x000000018b876214 -[UIGraphicsRenderer runDrawingActions:completionActions:error:] + 92 (UIGraphicsRenderer.m:195) 17 UIKitCore 0x000000018b876140 -[UIGraphicsImageRenderer imageWithActions:] + 184 (UIGraphicsImageRenderer.m:548) 18 UIKitCore 0x000000018c944010 _UIInternalPreference_UIImageViewPreferredSymbolPixelAlignmentBehavior_block_invoke + 328 (UIImageView.m:936) 19 UIKitCore 0x000000018b75e17c -[UIImageView _renditionForSource:size:symbolConfiguration:withRenditionResult:lazy:] + 1248 (UIImageView.m:957) 20 UIKitCore 0x000000018b75db20 -[_UIImageContentContextualEffect _renditionWithRenditionResult:size:lazy:] + 116 (_UIImageContentEffect.m:43) 21 UIKitCore 0x000000018b75d9f8 -[_UIImageContent renditionWithSize:scale:applyingEffect:] + 1112 (_UIImageContent.m:555) 22 UIKitCore 0x000000018b75d570 -[_UIImageContent renditionApplyingEffect:] + 80 (_UIImageContent.m:320) 23 UIKitCore 0x000000018b75d3e8 -[_UIImageCGImageContent renditionApplyingEffect:] + 68 (_UIImageContent.m:827) 24 UIKitCore 0x000000018b75e6b0 __61-[_UIImageContentLayout _prepareContentOfSize:source:target:]_block_invoke_2 + 36 (_UIImageContentLayout.m:614) 25 UIKitCore 0x000000018b75e644 -[_UIImageContentLayout _materializeRenditionContents] + 76 (_UIImageContentLayout.m:673) 26 UIKitCore 0x000000018b709f54 -[_UIImageContentLayout contents] + 24 (_UIImageContentLayout.m:684) 27 UIKitCore 0x000000018b707cc8 -[UIImageView _applyImageLayout:toLayer:] + 884 (UIImageView.m:645) 28 UIKitCore 0x000000018b71f08c -[UIImageView _setImageViewContents:] + 592 (UIImageView.m:481) 29 UIKitCore 0x000000018b71e5bc -[UIImageView _updateState] + 560 (UIImageView.m:1053) 30 UIKitCore 0x000000018b777b24 -[UIButtonLegacyVisualProvider _updateImageView] + 528 (UIButtonLegacyVisualProvider.m:0) 31 UIKitCore 0x000000018b702100 -[UIButtonLegacyVisualProvider layoutSubviews] + 116 (UIButtonLegacyVisualProvider.m:2399) 32 UIKitCore 0x000000018b779788 -[UIButton layoutSubviews] + 40 (UIButton.m:2829) 33 LEEAlert 0x0000000108a509fc -[UIButton(LEEAlertExtension) lee_alert_button_layoutSubviews] + 20 (LEEAlert.m:1383) 34 UIKitCore 0x000000018b6daa4c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1528 (UIView.m:20054) 35 QuartzCore 0x000000018ab393b4 CA::Layer::layout_if_needed(CA::Transaction) + 504 (CALayer.mm:10816) 36 QuartzCore 0x000000018ab38f38 CA::Layer::layout_and_display_if_needed(CA::Transaction) + 148 (CALayer.mm:2598) 37 QuartzCore 0x000000018ab940e0 CA::Context::commit_transaction(CA::Transaction, double, double) + 464 (CAContextInternal.mm:2760) 38 QuartzCore 0x000000018ab09028 CA::Transaction::commit() + 648 (CATransactionInternal.mm:432) 39 UIKitCore 0x000000018b88f678 34-[UIApplication _firstCommitBlock]_block_invoke_2 + 36 (UIApplication.m:12191) 40 CoreFoundation 0x00000001894aec9c CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 28 (CFRunLoop.c:1805) 41 CoreFoundation 0x000000018949cdec CFRunLoopDoBlocks + 356 (CFRunLoop.c:1847) 42 CoreFoundation 0x000000018949c498 __CFRunLoopRun + 848 (CFRunLoop.c:2957) 43 CoreFoundation 0x000000018949bcd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420) 44 GraphicsServices 0x00000001ce34c1a8 GSEventRunModal + 164 (GSEvent.c:2196) 45 UIKitCore 0x000000018bad490c -[UIApplication _run] + 888 (UIApplication.m:3713) 46 UIKitCore 0x000000018bb889d0 UIApplicationMain + 340 (UIApplication.m:5303) 47 YunDing 0x00000001044e7ca0 main + 112 (main.m:15) 48 dyld 0x00000001acb4de4c start + 2240 (dyldMain.cpp:1298)

lixiang1994 commented 2 months ago

有复现的demo吗?

lixiang1994 commented 2 months ago

我只是做了方法实现的交换, 真实的crash不一定在我这里

samhzx commented 2 months ago

有复现的demo吗?

这个还真没有复现的demo。只是看到bugly上报上来的,我这边再修改修改,看还会不会出现问题