Post

Replies

Boosts

Views

Activity

UISearchBar crashes
UISearchBar crashes, but I don't know what's going on. From the code, there is no problem here.Attached is my crash log. crash.log search_bar.barTintColor = .init(hex: 0xececec) search_bar.tintColor = LightText1() search_bar.placeholder = "Search Matches" search_bar.searchBarStyle = .minimal search_bar.backgroundImage = UIImage() search_bar.delegate = self if #available(iOS 13.0, *) { search_bar.searchTextField.font = Secondary_Body1_Medium() search_bar.searchTextField.backgroundColor = .clear search_bar.searchTextField.textColor = LightText1() search_bar.searchTextField.borderStyle = .none search_bar.searchTextField.layer.cornerRadius = 4 search_bar.searchTextField.layer.masksToBounds = true search_bar.searchTextField.backgroundColor = UIColor(hex: "#F7F7F7") }
0
0
388
Jan ’23
I've looked through all my code and still haven't figured out the problem. I wonder what happened?
I wonder what happened? Crashed: com.apple.main-thread 0 libobjc.A.dylib 0x2b50 objc_release + 16 1 libsystem_blocks.dylib 0x17e8 _Block_release + 200 2 libsystem_blocks.dylib 0x17e8 _Block_release + 200 3 Luxy 0xc4d0dc -[AFURLSessionManagerTaskDelegate .cxx_destruct] + 106 (AFURLSessionManager.m:106) 4 libobjc.A.dylib 0x7d28 object_cxxDestructFromClass(objc_object*, objc_class*) + 116 5 libobjc.A.dylib 0x4b74 objc_destructInstance + 80 6 libobjc.A.dylib 0xe1c8 _objc_rootDealloc + 80 7 Luxy 0xc4bdf8 -[AFURLSessionManagerTaskDelegate dealloc] + 152 (AFURLSessionManager.m:152) 8 libsystem_blocks.dylib 0x17e8 _Block_release + 200 9 libdispatch.dylib 0x4670 _dispatch_client_callout + 20 10 libdispatch.dylib 0x12bcc _dispatch_main_queue_callback_4CF + 1036 11 CoreFoundation 0x51d84 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16 12 CoreFoundation 0xbf5c __CFRunLoopRun + 2540 13 CoreFoundation 0x1f468 CFRunLoopRunSpecific + 600 14 GraphicsServices 0x138c GSEventRunModal + 164 15 UIKitCore 0x5195d0 -[UIApplication _run] + 1100 16 UIKitCore 0x297f74 UIApplicationMain + 364
1
0
646
Mar ’22
What's wrong with __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
Crashed: com.apple.main-thread 0 libsystem_kernel.dylib 0x69e8 __pthread_kill + 8 1 libsystem_pthread.dylib 0x10824 pthread_kill + 208 2 libsystem_c.dylib 0x1f0b4 abort + 120 3 QuartzCore 0xcc96c CA::Render::Encoder::grow(unsigned long) + 236 4 QuartzCore 0xafa90 CA::Render::Layer::encode(CA::Render::Encoder*) const + 104 5 QuartzCore 0xbafd8 CA::Render::encode_set_object(CA::Render::Encoder*, unsigned long, unsigned int, CA::Render::Object*, unsigned int) + 192 6 QuartzCore 0x469c0 invocation function for block in CA::Context::commit_transaction(CA::Transaction*, double, double*) + 288 7 QuartzCore 0x343dc CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 384 8 QuartzCore 0x34364 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 9 QuartzCore 0x34364 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 10 QuartzCore 0x34364 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 11 QuartzCore 0x34364 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 12 QuartzCore 0x34364 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 13 QuartzCore 0x34364 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 14 QuartzCore 0x34364 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 15 QuartzCore 0x34364 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 16 QuartzCore 0x34364 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 17 QuartzCore 0x34364 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 264 18 QuartzCore 0x45054 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 6180 19 QuartzCore 0x4bf30 CA::Transaction::commit() + 660 20 QuartzCore 0x2fa14 CA::Transaction::flush_as_runloop_observer(bool) + 84 21 CoreFoundation 0x3dfc4 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 22 CoreFoundation 0xf608 __CFRunLoopDoObservers + 588 23 CoreFoundation 0xab9c __CFRunLoopRun + 1012 24 CoreFoundation 0x1de1c CFRunLoopRunSpecific + 572 25 GraphicsServices 0x19a0 GSEventRunModal + 160 26 UIKitCore 0x4ebb90 -[UIApplication _run] + 1080 27 UIKitCore 0x28116c UIApplicationMain + 332 28 Luxy 0xb5c48 main + 15 (main.m:15)
1
0
723
Mar ’22
What's wrong with __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__
0 CoreFoundation 0x4a690 -[__NSDictionaryM setObject:forKey:] + 404 1 Luxy 0xfe00d8 __57-[YapDatabaseViewState group_pagesMetadata_dict_deepCopy]_block_invoke + 50 (YapDatabaseViewState.m:50) 2 CoreFoundation 0x3d130 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 16 3 CoreFoundation 0x53d70 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 204 4 Luxy 0xfe0044 -[YapDatabaseViewState group_pagesMetadata_dict_deepCopy] + 54 (YapDatabaseViewState.m:54) 5 Luxy 0xfe0150 -[YapDatabaseViewState copyWithZone:] + 66 (YapDatabaseViewState.m:66) 6 Luxy 0xfd7c88 -[YapDatabaseViewConnection getInternalChangeset:externalChangeset:hasDiskChanges:] + 288 (YapDatabaseViewConnection.m:288) 7 Luxy 0xf38774 -[YapDatabaseAutoViewConnection getInternalChangeset:externalChangeset:hasDiskChanges:] + 138 (YapDatabaseAutoViewConnection.m:138) 8 Luxy 0xf73374 __64-[YapDatabaseConnection getInternalChangeset:externalChangeset:]_block_invoke + 3880 (YapDatabaseConnection.m:3880) 9 CoreFoundation 0x3d130 __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__ + 16 10 CoreFoundation 0x53d70 -[__NSDictionaryM enumerateKeysAndObjectsWithOptions:usingBlock:] + 204 11 Luxy 0xf72cf0 -[YapDatabaseConnection getInternalChangeset:externalChangeset:] + 3870 (YapDatabaseConnection.m:3870) 12 Luxy 0xf7050c -[YapDatabaseConnection postReadWriteTransaction:] + 2945 (YapDatabaseConnection.m:2945) 13 Luxy 0xf6e848 __44-[YapDatabaseConnection readWriteWithBlock:]_block_invoke_2 + 2022 (YapDatabaseConnection.m:2022) 14 libdispatch.dylib 0x641a8 _dispatch_client_callout + 16 15 libdispatch.dylib 0x460dc _dispatch_lane_barrier_sync_invoke_and_complete + 52 16 Luxy 0xf6e788 __44-[YapDatabaseConnection readWriteWithBlock:]_block_invoke + 2014 (YapDatabaseConnection.m:2014) 17 libdispatch.dylib 0x641a8 _dispatch_client_callout + 16 18 libdispatch.dylib 0x460dc _dispatch_lane_barrier_sync_invoke_and_complete + 52 19 Luxy 0xf6e688 -[YapDatabaseConnection readWriteWithBlock:] + 2040 (YapDatabaseConnection.m:2040) 20 Luxy 0x10bed0 -[MomentGetByUinBusiness parseGetMomentByTypeDataRsp:type:] + 108 (MomentGetByUinBusiness.mm:108) 21 Luxy 0x10bcec __69-[MomentGetByUinBusiness handleMomentsWithSendMsg:receiveMsg:result:]_block_invoke + 79 (MomentGetByUinBusiness.mm:79) 22 libdispatch.dylib 0x631a4 _dispatch_call_block_and_release + 24 23 libdispatch.dylib 0x641a8 _dispatch_client_callout + 16 24 libdispatch.dylib 0x3f14c _dispatch_lane_serial_drain$VARIANT$armv81 + 604 25 libdispatch.dylib 0x3fc04 _dispatch_lane_invoke$VARIANT$armv81 + 388 26 libdispatch.dylib 0x495dc _dispatch_workloop_worker_thread + 616 27 libsystem_pthread.dylib 0x4e84 _pthread_wqthread + 284 28 libsystem_pthread.dylib 0x49f0 start_wqthread + 8
1
0
1.1k
Mar ’22