realm-swift: Realm v0.98.4 crashes with an alignment exception when opening a Realm on 32-bit iOS devices
Goals
just want to init Realm.
Expected Results
Realm must be initialized and ready to use.
Actual Results
without any errors to xcode console, app is crashed at this line:
group_shared.hpp
inline void SharedGroup::open(Replication& repl, DurabilityLevel durability,
const char* encryption_key, bool allow_file_format_upgrade)
810 line:
do_open(file, no_create, durability, is_backend, encryption_key,
allow_file_format_upgrade); // Throws
Steps
delete app from iphone. clear cache. build and run project to device.
Code Sample
let realm = try! Realm()
Version of Realm and Tooling
Xcode 7.2 Swift iOS 8.0 Cocoapods with Realm 0.98.4
Also i trying build this project at iOS 9.2 and it builded without any errors.

About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 1
- Comments: 21 (10 by maintainers)
Commits related to this issue
- Update to core v0.97.1. Fixes #3321. — committed to realm/realm-swift by bdash 8 years ago
- Update to core v0.97.1. Fixes #3321. — committed to realm/realm-swift by bdash 8 years ago
- Update to core v0.97.1. Fixes #3321. — committed to realm/realm-swift by bdash 8 years ago
- Update to core v0.97.1. Fixes #3321. — committed to realm/realm-swift by bdash 8 years ago
- Update to core v0.97.1. Fixes #3321. — committed to realm/realm-swift by bdash 8 years ago
We released the fix for this issue in v0.98.5 a few moments ago. Many thanks to the prompt feedback that helped us to track this down, and for your patience while we worked to release the fix.
We have an updated version of our core database engine that addresses this crash on 32-bit devices. It will be integrated via #3330. We should have new releases of Realm Objective-C and Swift available in a few hours once that change has worked through our release testing pipeline.