realm / realm-core

Core database component for the Realm Mobile Database SDKs
https://realm.io
Apache License 2.0
1.02k stars 164 forks source link

DateTime aggregates on master assert #1060

Closed segiddins closed 9 years ago

segiddins commented 9 years ago

From maximum_datetime

core/include/realm/bptree.hpp:355: [realm-core-0.92.1] Assertion failed: dynamic_cast<const LeafType*>(m_root.get()) != nullptr
0   Realm                               0x0000000105a293d3 _ZN5realm4util18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 35
1   Realm                               0x0000000105916f93 _ZN5realm4util9terminateEPKcS2_l + 1459
2   Realm                               0x000000010592e398 _ZNK5realm6BpTreeIxLb0EE12root_as_leafEv + 232
3   Realm                               0x00000001059654ac _ZNK5realm6BpTreeIxLb0EE8get_leafEmRmRNS1_8LeafInfoE + 76
4   Realm                               0x00000001059d8b5f _ZNK5realm6ColumnIxLb0EE8get_leafEmRmRNS_6BpTreeIxLb0EE8LeafInfoE + 63
5   Realm                               0x0000000105ef945a _ZN5realm9aggregateIxxLNS_6ActionE2ENS_7NotNullENS_6ColumnIxLb0EEEEET0_RKT3_T_mmmPm + 458
6   Realm                               0x0000000105ef0115 _ZNK5realm6ColumnIxLb0EE7maximumEmmmPm + 69
7   Realm                               0x0000000105eefe34 _ZNK5realm13TableViewBase9aggregateILi2ExxNS_6ColumnIxLb0EEEEET1_MT2_KFS4_mmmPmEmT0_S6_ + 820
8   Realm                               0x0000000105eeb43c _ZNK5realm13TableViewBase16maximum_datetimeEmPm + 76
9   Realm                               0x0000000105a0f93a _ZL13maxOfPropertyIN5realm9TableViewEEP11objc_objectRKT_P8RLMRealmP8NSStringSA_ + 890
10  Realm                               0x0000000105a0f568 -[RLMResults maxOfProperty:] + 104
11  RealmSwift                          0x00000001033eb8e9 _TFC10RealmSwift7Results3maxU__fGS0_Q__US_10MinMaxType__FSSGSqQ__ + 217
12  RealmSwift                          0x00000001033eb7e5 _TFC10RealmSwift4List3maxU__fGS0_Q__US_10MinMaxType__FSSGSqQ__ + 197
13  RealmSwift                          0x00000001033edc33 _TTWU__GC10RealmSwift4ListQ__S_19RealmCollectionTypeS_FS1_3maxUS1__U_Ss13GeneratorType__Ss16ForwardIndexType_Ss18_SignedIntegerType_Ss33_BuiltinIntegerLiteralConvertible____fQPS1_US_10MinMaxType__FSSGSqQ__ + 115
14  RealmSwift                          0x00000001033f443f _TFC10RealmSwiftP33_C451EF67DAF1C7CDA8816B8CF2B3BF2E19_AnyRealmCollection3maxUS_19RealmCollectionType_U_Ss13GeneratorType__Ss16ForwardIndexType_Ss18_SignedIntegerType_Ss33_BuiltinIntegerLiteralConvertible____fGS0_Q__US_10MinMaxType__FSSGSqQ__ + 431
15  RealmSwift                          0x00000001033f63ca _TFC10RealmSwift18AnyRealmCollection3maxU__fGS0_Q__US_10MinMaxType__FSSGSqQ__ + 186
16  RealmSwift Tests                    0x0000000103211fc1 _TFFC16RealmSwift_Tests24RealmCollectionTypeTests7testMaxFS0_FT_T_u6_KT_CSo6NSDate + 129
17  RealmSwift Tests                    0x00000001031e1d98 _TTRXFo__oCSo6NSDate_XFo__iS__ + 24
18  RealmSwift Tests                    0x0000000103192429 _TPA__TTRXFo__oCSo6NSDate_XFo__iS__441 + 73
19  libswiftXCTest.dylib                0x00000001062a3e5e _TFF6XCTest14XCTAssertEqualUSs9Equatable__FTKT_Q_KT_Q_SS4fileSS4lineSu_T_U_FT_T_ + 318
20  libswiftXCTest.dylib                0x00000001062a27d6 _TPA__TFF6XCTest14XCTAssertEqualUSs9Equatable__FTKT_Q_KT_Q_SS4fileSS4lineSu_T_U_FT_T_ + 134
21  libswiftXCTest.dylib                0x00000001062abf66 _XCTRunThrowableBlockBridge + 22
22  libswiftXCTest.dylib                0x00000001062a1c3f _TTSf4g___TF6XCTest21_XCTRunThrowableBlockFFT_T_OS_24_XCTThrowableBlockResult + 95
23  libswiftXCTest.dylib                0x0000000106296b1a _TF6XCTest14XCTAssertEqualUSs9Equatable__FTKT_Q_KT_Q_SS4fileSS4lineSu_T_ + 298
24  RealmSwift Tests                    0x000000010316a590 _TFC16RealmSwift_Tests24RealmCollectionTypeTests7testMaxfS0_FT_T_ + 1424
25  RealmSwift Tests                    0x000000010316a7e2 _TToFC16RealmSwift_Tests24RealmCollectionTypeTests7testMaxfS0_FT_T_ + 34
26  CoreFoundation                      0x00007fff8f04c87c __invoking___ + 140
27  CoreFoundation                      0x00007fff8f04c6ce -[NSInvocation invoke] + 286
28  XCTest                              0x000000010007d9fc -[XCTestCase invokeTest] + 253
29  RealmSwift Tests                    0x00000001032171f2 _TFFC16RealmSwift_Tests8TestCase10invokeTestFS0_FT_T_U_FT_T_ + 66
30  libswiftObjectiveC.dylib            0x00000001000ee206 _TF10ObjectiveC15autoreleasepoolFFT_T_T_ + 38
31  RealmSwift Tests                    0x00000001031049f2 _TFC16RealmSwift_Tests8TestCase10invokeTestfS0_FT_T_ + 834
32  RealmSwift Tests                    0x0000000103187422 _TToFC16RealmSwift_Tests8TestCase10invokeTestfS0_FT_T_ + 34
33  XCTest                              0x000000010007dbfb -[XCTestCase performTest:] + 150
34  XCTest                              0x0000000100086740 -[XCTest run] + 257
35  XCTest                              0x000000010007c90b -[XCTestSuite performTest:] + 379
36  XCTest                              0x0000000100086740 -[XCTest run] + 257
37  XCTest                              0x000000010007c90b -[XCTestSuite performTest:] + 379
38  XCTest                              0x0000000100086740 -[XCTest run] + 257
39  XCTest                              0x000000010007c90b -[XCTestSuite performTest:] + 379
40  XCTest                              0x0000000100086740 -[XCTest run] + 257
41  XCTest                              0x0000000100079909 __25-[XCTestDriver _runSuite]_block_invoke + 56
42  XCTest                              0x00000001000853ad -[XCTestObservationCenter _observeTestExecutionForBlock:] + 162
43  XCTest                              0x0000000100079840 -[XCTestDriver _runSuite] + 269
44  XCTest                              0x000000010007a429 -[XCTestDriver _checkForTestManager] + 678
45  XCTest                              0x00000001000895e0 +[XCTestProbe runTests:] + 182
46  xctest                              0x0000000100001266 xctest + 4710
47  xctest                              0x00000001000015e2 xctest + 5602
48  xctest                              0x0000000100000ee3 xctest + 3811
49  libdyld.dylib                       0x00007fff90c0b5ad start + 1

\c @rrrlasse

teotwaki commented 9 years ago

@segiddins: I see this issue is assigned to you, will you be taking care of it?

teotwaki commented 9 years ago

Nevermind, hadn't seen the attached PR. Moved to review, if that's OK with you, Samuel.