Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consistent Crash on App Launch with RealmSwift v10.48.1 in Production - realm::Exception::what() const EXC_BAD_ACCESS (KERN_PROTECTION_FAILURE) #8732

Open
Sandip3110 opened this issue Dec 16, 2024 · 0 comments

Comments

@Sandip3110
Copy link

How frequently does the bug occur?

Sometimes

Description

Hello,

I’m encountering a crash in my production app within the first 5 seconds of launch, with the following error message:
realm::Exception::what() const EXC_BAD_ACCESS (KERN_PROTECTION_FAILURE)

I’m unable to reproduce this issue during testing, but it occurs consistently in the production app.

I’m currently using RealmSwift v10.48.1.

Could you please help me understand the potential cause of this crash?
Additionally, has this issue been addressed in the latest release?

Thank you!

Stacktrace & log output

Realm
realm::Exception::what() const + 128
1
Realm
RLMError.mm - Line 198
makeError(realm::FileAccessError const&) + 198
2
Realm
RLMRealm.mm - Line 167
RLMRealmTranslateException(NSError* __autoreleasing*) + 167
3
Realm
RLMRealm.mm - Line 435
+[RLMRealm realmWithConfiguration:confinedTo:error:] + 435
4
Realm
RLMRealm.mm - Line 395
+[RLMRealm realmWithConfiguration:queue:error:] + 395
5
RealmSwift
Realm.swift - Line 95
Realm.init(configuration:queue:) + 95
6

PersistenceManager.swift - Line 140
specialized PersistenceManager.getRealm(with:) + 140
7

PersistenceManager.swift - Line 25
closure #1 in DBService.cacheData(key:value:version:) + 25
8

partial apply for closure #1 in DBService.cacheData(key:value:version:) + 108
9

partial apply for closure #1 in DBService.cacheData(key:value:version:) + 125396
10
RxSwift
<compiler-generated> - Line 24
partial apply for thunk for @escaping @callee_guaranteed (@in_guaranteed A.PrimitiveSequenceType.Element) -> (@owned PrimitiveSequence<CompletableTrait, Never>, @error @owned Error) + 24
11
RxSwift
MapSwitchSink.performMap(_:) + 32
12
RxSwift
FlatMapFirstSink.performMap(_:) + 12
13
RxSwift
Merge.swift - Line 443
MergeSink.on(_:) + 443
14
RxSwift
<compiler-generated> - Line 20
protocol witness for ObserverType.on(_:) in conformance MergeSink<A, B, C> + 20
15
RxSwift
Sink.swift - Line 35
Sink.forwardOn(_:) + 35
16
RxSwift
SubscribeOn.swift - Line 46
SubscribeOnSink.on(_:) + 46
17
RxSwift
<compiler-generated> - Line 20
protocol witness for ObserverType.on(_:) in conformance SubscribeOnSink<A, B> + 20
18
RxSwift
Just.swift - Line 83
Just.subscribe<A>(_:) + 83
19
RxSwift
<compiler-generated> - Line 28
protocol witness for ObservableType.subscribe<A>(_:) in conformance Observable<A> + 28
20
RxSwift
SubscribeOn.swift - Line 59
closure #1 in SubscribeOnSink.run() + 59
21
RxSwift
ConcurrentMainScheduler.swift - Line 58
closure #1 in DispatchQueueConfiguration.schedule<A>(_:action:) + 58
22
RxSwift
<compiler-generated> - Line 28
thunk for @escaping @callee_guaranteed () -> () + 28
23
libdispatch.dylib
_dispatch_call_block_and_release + 32
32
libsystem_pthread.dylib
start_wqthread + 8

Can you reproduce the bug?

No

Reproduction Steps

No response

Version

10.48.1

What Atlas Services are you using?

Local Database only

Are you using encryption?

Yes

Platform OS and version(s)

All iOS devices

Build environment

Xcode version: 15.2
CocoaPods: 1.13.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant