Hi,似乎如下操作会导致死循环,请确认。
AVObject *obj1 = [AVObject new];
AVObject *obj2 = [AVObject new];
obj1.property2 = obj2;
[obj1 saveInBackgroundWithBlock: ^{
obj2.property1 = obj1;
[obj2 saveInBackground];
}];
崩溃的堆栈片段如下:
frame #659: 0x0000000100baef48 AVOSCloud`+[AVObjectUtils objectSnapshot:recursive:](self=0x0000000100cd3b60, _cmd="objectSnapshot:recursive:", object=0x00000001704c13b0, recursive=YES) + 856 at AVObjectUtils.m:513
frame #660: 0x0000000100baeb0c AVOSCloud`+[AVObjectUtils snapshotDictionary:recursive:](self=0x0000000100cd3b60, _cmd="snapshotDictionary:recursive:", object=0x00000001704c13b0, recursive=YES) + 188 at AVObjectUtils.m:495
frame #661: 0x0000000100baef48 AVOSCloud`+[AVObjectUtils objectSnapshot:recursive:](self=0x0000000100cd3b60, _cmd="objectSnapshot:recursive:", object=0x00000001702d2210, recursive=YES) + 856 at AVObjectUtils.m:513
frame #662: 0x0000000100baeb0c AVOSCloud`+[AVObjectUtils snapshotDictionary:recursive:](self=0x0000000100cd3b60, _cmd="snapshotDictionary:recursive:", object=0x00000001702d2210, recursive=YES) + 188 at AVObjectUtils.m:495
frame #663: 0x0000000100baef48 AVOSCloud`+[AVObjectUtils objectSnapshot:recursive:](self=0x0000000100cd3b60, _cmd="objectSnapshot:recursive:", object=0x00000001704c13b0, recursive=YES) + 856 at AVObjectUtils.m:513
frame #664: 0x0000000100baeb0c AVOSCloud`+[AVObjectUtils snapshotDictionary:recursive:](self=0x0000000100cd3b60, _cmd="snapshotDictionary:recursive:", object=0x00000001704c13b0, recursive=YES) + 188 at AVObjectUtils.m:495
frame #665: 0x0000000100baef48 AVOSCloud`+[AVObjectUtils objectSnapshot:recursive:](self=0x0000000100cd3b60, _cmd="objectSnapshot:recursive:", object=0x00000001702d2210, recursive=YES) + 856 at AVObjectUtils.m:513
-
创建时间
17年3月15日
-
最后回复
17年3月16日
-
2
回复
-
1.5K
浏览
-
3
用户