Open
Description
How frequently does the bug occur?
Sometimes
Description
我们因为要兼容 iOS10,所以集成的版本是【pod "Realm", "10.39.1"】,集成完成后在部分机型上会有崩溃现象,崩溃位置的代码为:
try {
config.scheduler = scheduler.osScheduler;
if (config.scheduler && !config.scheduler->is_on_thread()) {
throw RLMException(@"Realm opened from incorrect dispatch queue.");
}
realm->_realm = Realm::get_shared_realm(config);
}
catch (...) {
RLMRealmTranslateException(error);
return nil;
}
请问是使用的方法不对吗?
Stacktrace & log output
Hardware Model: iPad7,3
Code Type: ARM-64 (Native)
Parent Process: [1]
OS Version: 13.7 (17H35)
Report Version: 104
Last Exception :
0 Realm 0x0000000117225858 realm::Exception::what() const + 128
1 Realm 0x0000000117225844 realm::Exception::what() const + 108
2 Realm 0x00000001170ad9cc makeError(realm::FileAccessError const&)(RLMError.mm:187)
3 Realm 0x00000001171a1e8c RLMRealmTranslateException(NSError* __autoreleasing*)(RLMRealm.mm:163)
4 Realm 0x00000001171a3488 +[RLMRealm realmWithConfiguration:confinedTo:error:](RLMRealm.mm:381)
5 Realm 0x00000001171a2550 +[RLMRealm realmWithConfiguration:error:](RLMRealm.mm:333)
6 Realm 0x00000001171a214c +[RLMRealm defaultRealm](RLMRealm.mm:296)
------
Exception Type: SIGBUS BUS_ADRALN
Exception Codes: fault addr: 0x000000011756a7d0
Crashed Thread: 0
Thread 0
0 Realm 0x0000000117225858 realm::Exception::what() const + 128
1 Realm 0x0000000117225844 realm::Exception::what() const + 108
2 Realm 0x00000001170ad9cc makeError(realm::FileAccessError const&)(RLMError.mm:187)
3 Realm 0x00000001171a1e8c RLMRealmTranslateException(NSError* __autoreleasing*)(RLMRealm.mm:163)
4 Realm 0x00000001171a3488 +[RLMRealm realmWithConfiguration:confinedTo:error:](RLMRealm.mm:381)
5 Realm 0x00000001171a2550 +[RLMRealm realmWithConfiguration:error:](RLMRealm.mm:333)
6 Realm 0x00000001171a214c +[RLMRealm defaultRealm](RLMRealm.mm:296)
Can you reproduce the bug?
No
Reproduction Steps
暂时无法复现,是线上的用户反馈的
Version
10.39.1
What Atlas Services are you using?
-- select --
Are you using encryption?
No
Platform OS and version(s)
发生问题的系统和版本没有规律
Build environment
Xcode version: ...
Dependency manager and version: ...