Skip to content

LCStatus 删除收件箱消息方法闪退 #694

@SXiaoXu

Description

@SXiaoXu

来自社区用户反馈,LCStatus 的 deleteInboxStatusInBackgroundForMessageId: inboxType: receiver: block: 方法会导致应用闪退,可以稳定复现。

闪退报错如下:

2023-02-07 19:26:48.812711+0800 iOSDemo[37858:6473966] +[LCUser objectWithoutDataWithObjectId:]: unrecognized selector sent to class 0x1019c89b8
2023-02-07 19:26:48.814216+0800 iOSDemo[37858:6473966] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[LCUser objectWithoutDataWithObjectId:]: unrecognized selector sent to class 0x1019c89b8'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000018040e7ec __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x0000000180051144 objc_exception_throw + 56
	2   CoreFoundation                      0x000000018041d39c __CFExceptionProem + 0
	3   CoreFoundation                      0x00000001804124b4 ___forwarding___ + 740
	4   CoreFoundation                      0x0000000180414b6c _CF_forwarding_prep_0 + 92
	5   LeanCloudObjc                       0x00000001019159e0 +[LCStatus deleteInboxStatusForMessageId:inboxType:receiver:error:] + 396
	6   LeanCloudObjc                       0x0000000101915f90 __79+[LCStatus deleteInboxStatusInBackgroundForMessageId:inboxType:receiver:block:]_block_invoke + 88
	7   libdispatch.dylib                   0x0000000101144594 _dispatch_call_block_and_release + 24
	8   libdispatch.dylib                   0x0000000101145d5c _dispatch_client_callout + 16
	9   libdispatch.dylib                   0x0000000101148b50 _dispatch_queue_override_invoke + 1252
	10  libdispatch.dylib                   0x000000010115a8ac _dispatch_root_queue_drain + 440
	11  libdispatch.dylib                   0x000000010115b53c _dispatch_worker_thread2 + 248
	12  libsystem_pthread.dylib             0x00000001af2568c0 _pthread_wqthread + 224
	13  libsystem_pthread.dylib             0x00000001af2556c0 start_wqthread + 8
)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[LCUser objectWithoutDataWithObjectId:]: unrecognized selector sent to class 0x1019c89b8'
CoreSimulator 857.13 - Device: iPhone 14 Pro (1FFEBF81-C4DA-413D-9DF5-D3E5F1F6FACA) - Runtime: iOS 16.1 (20B72) - DeviceType: iPhone 14 Pro
terminating with uncaught exception of type NSException

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions