realm-swift
realm-swift copied to clipboard
RLMRealm verifyThread
How frequently does the bug occur?
Sometimes
Description
verifyThread: unrecognized selector sent to instance 0x280ac5370
app crashes when getting object from realm database
Stacktrace & log output
Fatal Exception: NSInvalidArgumentException
0 CoreFoundation 0x99d78 __exceptionPreprocess
1 libobjc.A.dylib 0x16734 objc_exception_throw
2 CoreFoundation 0x177b88 +[NSObject(NSObject) _copyDescription]
3 CoreFoundation 0x2e988 ___forwarding___
4 CoreFoundation 0x2da60 _CF_forwarding_prep_0
5 MORE 0x6db734 RLMGetObjects + 69 (RLMObjectStore.mm:69)
6 MORE 0x6d1250 +[RLMObject allObjectsInRealm:] + 106 (RLMObject.mm:106)
7 MORE 0x2e0dc -[ServiceAPI getGetUserPartnerPerformanceListDB] + 1104 (ServiceAPI.m:1104)
8 MORE 0x2f7fc -[ServiceAPI getUserPartnerPerformanceList] + 1490 (ServiceAPI.m:1490)
9 MORE 0x2a778 -[ServiceAPI syncData] + 275 (ServiceAPI.m:275)
10 MORE 0x498f7c -[AppDelegate startSyncing] + 701 (AppDelegate.m:701)
11 MORE 0x4980a8 -[AppDelegate application:performFetchWithCompletionHandler:] + 541 (AppDelegate.m:541)
12 UIKitCore 0x23bebc -[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:completion:]
13 UIKitCore 0x1dde00 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:]
14 UIKitCore 0x221528 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:]
15 UIKitCore 0x1ab8c8 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:]
16 FrontBoardServices 0xce18 -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:]
17 FrontBoardServices 0x2513c __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2
18 FrontBoardServices 0xa308 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]
19 FrontBoardServices 0x10824 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke
20 libdispatch.dylib 0x3a2c _dispatch_client_callout
21 libdispatch.dylib 0x74e0 _dispatch_block_invoke_direct
22 FrontBoardServices 0xbc70 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
23 FrontBoardServices 0xb040 -[FBSSerialQueue _targetQueue_performNextIfPossible]
24 FrontBoardServices 0xf700 -[FBSSerialQueue _performNextFromRunLoopSource]
25 CoreFoundation 0xbbf04 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
26 CoreFoundation 0xccc90 __CFRunLoopDoSource0
27 CoreFoundation 0x6184 __CFRunLoopDoSources0
28 CoreFoundation 0xbb4c __CFRunLoopRun
29 CoreFoundation 0x1f6b8 CFRunLoopRunSpecific
30 GraphicsServices 0x1374 GSEventRunModal
31 UIKitCore 0x513e88 -[UIApplication _run]
32 UIKitCore 0x2955ec UIApplicationMain
33 MORE 0x579d24 main + 19 (main.m:19)
34 ??? 0x103531ce4 (Missing)
Can you reproduce the bug?
Not yet
Reproduction Steps
No response
Version
10.24.0
What SDK flavour are you using?
MongoDB Realm (i.e. Sync, auth, functions)
Are you using encryption?
Yes, using encryption
Platform OS and version(s)
ios 15.3
Build environment
xcode 13.2
Hi @sujeet0009 can you provide us with a reproduction case for this issue?
This issue not generated at our end, but multiple user facing the issue some time.
@sujeet0009 Is there any other information you could provide? Or can you use customer reports to try to reproduce the issue? We probably can't identify the bug from this stack trace alone.
We are just receiving the crash report on firebase crashlytics
Okay, in its current state I don't think the team can make progress on this issue. But I'll leave this ticket open for now in case there's a bug and someone else reports a similar error with more information.
@sujeet0009 Are the ServiceAPI methods doing anything across threads?
@sujeet0009 could you provide us the information requested in the comments above? How are you integrating Realm into your project?
Closing this as there is no response from the user for a long time.