MongoDB Realm: Error: error loading dependencies for app


I’m occasionally seeing on MongoDB Realm logs this Error: error loading dependencies for app. Newest incident: Nov 19 11:24:47+02:00

Seems to pop up when we have had for some time idle on MongoDB realm and our existing user tries to log in with custom JWT. When logging in again everything works normally and both from IOS app and MongoDB Realm point of view.

Our app also crashes at the same time. (See crash report below) Unfortunately this was a non release build w/ debug information w/o dSYM and standalone use. Crash report shows that it’s an app side Realm related crash as can be seen from report:

Incident Identifier: 		C2C21955-D527-4C63-88D6-A500403D8776
CrashReporter Key:   	dbe7dfb8fae1aa676c65abdfa2877b59fee4135a
Hardware Model:     	iPhone12,3
Process:            		XXXXXXXX
Path:                		/private/var/containers/Bundle/Application/CC4E18A3-730F-49D4-8690-DB4629D75186/
Identifier:          		XXXXXXXX
Version:             		1 (2.0.2)
Code Type:           		ARM-64 (Native)
Role:                		Foreground
Parent Process:      		launchd [1]
Coalition:           		XXXXXXXXX

Date/Time:           		2021-11-19 11:24:47.6376 +0200
Launch Time:         		2021-11-18 19:33:58.7292 +0200
OS Version:          		iPhone OS 14.8.1 (18H107)
Release Type:        		User
Baseband Version:    	2.06.00
Report Version:      		104

Exception Type:  		EXC_CRASH (SIGABRT)
Exception Codes: 		0x0000000000000000, 0x0000000000000000
Exception Note:  		EXC_CORPSE_NOTIFY
Triggered by Thread:  	3


Thread 3 Crashed:
0   libsystem_kernel.dylib        	0x00000001b7507334 __pthread_kill + 8
1   libsystem_pthread.dylib      0x00000001d4f8da9c pthread_kill + 272
2   libsystem_c.dylib             	0x000000019268eb84 abort + 124
3   libc++abi.dylib               	0x000000019df04bb8 __cxxabiv1::__aligned_malloc_with_fallback+ 80824 (unsigned long) + 0
4   libc++abi.dylib               	0x000000019def5eb0 demangling_terminate_handler+ 20144 () + 284
5   libobjc.A.dylib               	0x000000019de0206c _objc_terminate+ 28780 () + 160
6   libc++abi.dylib               	0x000000019df03fa0 std::__terminate(void (*)+ 77728 ()) + 20
7   libc++abi.dylib               	0x000000019df06c0c __cxa_get_exception_ptr + 0
8   libc++abi.dylib               	0x000000019df06bb8 __cxxabiv1::exception_cleanup_func+ 89016 (_Unwind_Reason_Code, _Unwind_Exception*) + 0
9   Realm                         	0x0000000106462f6c 0x106120000 + 3420012
10  Realm                         	0x0000000106601340 0x106120000 + 5116736
11  Realm                        	0x00000001066660ac 0x106120000 + 5529772
12  Realm                         	0x00000001065fd3ec 0x106120000 + 5100524
13  Realm                         	0x000000010677331c 0x106120000 + 6632220
14  libsystem_pthread.dylib     0x00000001d4f8cbfc _pthread_start + 320
15  libsystem_pthread.dylib     0x00000001d4f95758 thread_start + 8

Going through app code application is written so that it should recover from failing login attempt cracefully. Kind of hinting that issue lies in app.login(credentials:compeletionHandler:) which should in completion handler return error if something goes wrong. Unfortunately without dSYM file I can’t verify that.

Anyhow, could some check what causes this MongoDB Realm dependency issue and what happens when it’s triggered. I also have now made a build with dSYM activated for debug thus when this happens again hopefully I can really see what happens on app itself. Unfortunately this phenomenon does not happen if there has been some activity on MongoDB realm side thus making debugging really difficult.



We also have this issue sporadically

Has anyone resolved this? I am now having this issue for existing users and the app immediately crashes at login.

I’m also experiencing this error–has anyone made headway?

Hi @Harry_Heffernan (and anyone else experiencing an error with App Services dependencies),

Please start a new discussion topic with details around your own environment and any errors encountered. This will help focus on different problems which may manifest with similar error messages.

Details on the dependencies you are using, versions of Realm SDK (if applicable to reproducing the error), and how this error message presents for your use case would be helpful.