Realm-cocoa: 3.18.0 crashes on some devices

Created on 23 Sep 2019  路  5Comments  路  Source: realm/realm-cocoa

Before the 3.17.3 version, the function has been running normally. After the 3.18.0 was online, some devices received feedback flashback. The code has not been changed. The check found that the problem is caused by the 3.18.0 version.

Goals

Expected Results

Actual Results

Steps to Reproduce

Code Sample

Cart *cart = [Cart objectForPrimaryKey:@(shopId)];
if (!cart) {
RLMRealm *realm = [RLMRealm defaultRealm];
[realm beginWriteTransaction];
cart = [[Cart alloc] init];
cart.shop_id = shopId;
[realm addObject:cart];
[realm commitWriteTransaction];
}
return cart;

It Crashes at [realm addObject:cart]; since version 3.18.0

灞忓箷蹇収 2019-09-23 涓婂崍10 45 41

灞忓箷蹇収 2019-09-23 涓婂崍10 46 43

Version of Realm and Tooling


Realm framework version: ?
3.18.0
Realm Object Server version: ?

Xcode version: ?
10.3
iOS/OSX version: ?

Dependency manager + version: ?

O-Community T-Bug-Crash

Most helpful comment

Hello,

I think we have the same issue on our side. Some devices have this crash after updating our app.
We updated Realm from 3.14.0 to 3.18.0

Capture d鈥櫭ヽran 2019-10-02 脿 11 57 20

Realm framework version: 3.18.0
Xcode version: 11.0
iOS/OSX version:
Capture d鈥櫭ヽran 2019-10-02 脿 11 58 47

Dependency manager + version: Cocoapod 1.8.1

Hopefully these information can help fix the issue.

All 5 comments

Hello,

I think we have the same issue on our side. Some devices have this crash after updating our app.
We updated Realm from 3.14.0 to 3.18.0

Capture d鈥櫭ヽran 2019-10-02 脿 11 57 20

Realm framework version: 3.18.0
Xcode version: 11.0
iOS/OSX version:
Capture d鈥櫭ヽran 2019-10-02 脿 11 58 47

Dependency manager + version: Cocoapod 1.8.1

Hopefully these information can help fix the issue.

Hi,
I got this issue too! Does anyone have an idea about why this crash happens after the upgrade?

Hello,
Same problem here :( please send help.

Hello,
Any update for this issue ? We are encountered the same issue.

This is probably the same thing as https://github.com/realm/realm-cocoa/issues/6268, as there's only one other assertion in that function. We will hopefully have a release out fixing that early next week.

Was this page helpful?
0 / 5 - 0 ratings