{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/3537","repository_url":"https://api.github.com/repos/realm/realm-cocoa","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3537/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3537/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3537/events","html_url":"https://github.com/realm/realm-cocoa/issues/3537","id":153720762,"number":3537,"title":"Assertion failure in index_set.cpp:682: !more_before || index >= std::prev(it)->second","user":{"login":"jpsim","id":474794,"avatar_url":"https://avatars.githubusercontent.com/u/474794?v=3","gravatar_id":"","url":"https://api.github.com/users/jpsim","html_url":"https://github.com/jpsim","followers_url":"https://api.github.com/users/jpsim/followers","following_url":"https://api.github.com/users/jpsim/following{/other_user}","gists_url":"https://api.github.com/users/jpsim/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsim/subscriptions","organizations_url":"https://api.github.com/users/jpsim/orgs","repos_url":"https://api.github.com/users/jpsim/repos","events_url":"https://api.github.com/users/jpsim/events{/privacy}","received_events_url":"https://api.github.com/users/jpsim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/Reproduction%20Required","name":"Reproduction Required","color":"fbca04"},{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/S:P2%20Backlog","name":"S:P2 Backlog","color":"dedede"},{"url":"https://api.github.com/repos/realm/realm-cocoa/labels/T:Bug-Crash","name":"T:Bug-Crash","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-09T07:50:21Z","updated_at":"2016-05-09T17:10:18Z","closed_at":null,"body":"Here's a report from a user which occurs when preparing the change information for notification blocks with 0.100 or later. Does not reproduce with 0.99.1.\r\n\r\n```\r\nRealm/ObjectStore/index_set.cpp:682: [realm-core-0.100.0] Assertion failed: !more_before || index >= std::prev(it)->second\r\n0 Realm 0x00000001099ee248 _ZN5realm4util18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 40\r\n1 Realm 0x00000001099ee514 _ZN5realm4util9terminateEPKcS2_l + 452\r\n2 Realm 0x00000001097c5d8b _ZN5realm8IndexSet6do_addENS_5_impl33MutableChunkedRangeVectorIteratorINSt3__111__wrap_iterIPNS1_18ChunkedRangeVector5ChunkEEEEEm + 651\r\n3 Realm 0x00000001097c67e8 _ZN5realm8IndexSet11add_shiftedEm + 488\r\n4 Realm 0x0000000109777b30 _ZN5realm5_impl23CollectionChangeBuilder9move_overEmmb + 1072\r\n5 Realm 0x00000001099ce892 _ZN12_GLOBAL__N_116LinkViewObserver10erase_rowsEmmmb + 1330\r\n6 Realm 0x00000001099ccf30 _ZN5realm5_impl17TransactLogParser9parse_oneIN12_GLOBAL__N_116LinkViewObserverEEEvRT_ + 2864\r\n7 Realm 0x00000001099cc027 _ZN5realm5_impl17TransactLogParser5parseIN12_GLOBAL__N_116LinkViewObserverEEEvRNS0_17NoCopyInputStreamERT_ + 87\r\n8 Realm 0x00000001099cbdf6 _ZN5realm11SharedGroup15do_advance_readIN12_GLOBAL__N_116LinkViewObserverEEEbPT_NS0_9VersionIDERNS_5_impl7HistoryE + 486\r\n9 Realm 0x00000001099cbbfc _ZN5realm11SharedGroup12advance_readIN12_GLOBAL__N_116LinkViewObserverEEEvPT_NS0_9VersionIDE + 396\r\n10 Realm 0x00000001099cba5b _ZN5realm5_impl17SharedGroupFriend12advance_readIN12_GLOBAL__N_116LinkViewObserverEEEvRNS_11SharedGroupEPT_NS5_9VersionIDE + 59\r\n11 Realm 0x00000001099c201b _ZN5realm14LangBindHelper12advance_readIN12_GLOBAL__N_116LinkViewObserverEEEvRNS_11SharedGroupEOT_NS4_9VersionIDE + 59\r\n12 Realm 0x00000001099c1f8f _ZN5realm5_impl11transaction7advanceERNS_11SharedGroupERNS0_21TransactionChangeInfoENS2_9VersionIDE + 191\r\n13 Realm 0x000000010980d927 _ZN12_GLOBAL__N_121IncrementalChangeInfo16advance_to_finalEN5realm11SharedGroup9VersionIDE + 183\r\n14 Realm 0x000000010980bd02 _ZN5realm5_impl16RealmCoordinator19run_async_notifiersEv + 6210\r\n15 Realm 0x000000010980a245 _ZN5realm5_impl16RealmCoordinator9on_changeEv + 37\r\n16 Realm 0x00000001097be63f _ZN5realm5_impl20ExternalCommitHelper6listenEv + 735\r\n17 Realm 0x00000001097bf3d7 _ZZN5realm5_impl20ExternalCommitHelperC1ERNS0_16RealmCoordinatorEENK3$_0clEv + 23\r\n18 Realm 0x00000001097bf3ad _ZNSt3__112__async_funcIZN5realm5_impl20ExternalCommitHelperC1ERNS2_16RealmCoordinatorEE3$_0JEE9__executeIJEEEvNS_15__tuple_indicesIJXspT_EEEE + 61\r\n19 Realm 0x00000001097bf365 _ZNSt3__112__async_funcIZN5realm5_impl20ExternalCommitHelperC1ERNS2_16RealmCoordinatorEE3$_0JEEclEv + 21\r\n20 Realm 0x00000001097bf28f _ZNSt3__119__async_assoc_stateIvNS_12__async_funcIZN5realm5_impl20ExternalCommitHelperC1ERNS3_16RealmCoordinatorEE3$_0JEEEE9__executeEv + 31\r\n21 Realm 0x00000001097bfd04 _ZNSt3__114__thread_proxyINS_5tupleIJMNS_19__async_assoc_stateIvNS_12__async_funcIZN5realm5_impl20ExternalCommitHelperC1ERNS5_16RealmCoordinatorEE3$_0JEEEEEFvvEPSB_EEEEEPvSG_ + 532\r\n22 libsystem_pthread.dylib 0x000000010fb6799d _pthread_body + 131\r\n23 libsystem_pthread.dylib 0x000000010fb6791a _pthread_body + 0\r\n24 libsystem_pthread.dylib 0x000000010fb65351 thread_start + 13\r\n```\r\n\r\nThis only occurs with a results in `Mode::Table` mode."},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/217926650","html_url":"https://github.com/realm/realm-cocoa/issues/3537#issuecomment-217926650","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/3537","id":217926650,"user":{"login":"bdash","id":54825,"avatar_url":"https://avatars.githubusercontent.com/u/54825?v=3","gravatar_id":"","url":"https://api.github.com/users/bdash","html_url":"https://github.com/bdash","followers_url":"https://api.github.com/users/bdash/followers","following_url":"https://api.github.com/users/bdash/following{/other_user}","gists_url":"https://api.github.com/users/bdash/gists{/gist_id}","starred_url":"https://api.github.com/users/bdash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdash/subscriptions","organizations_url":"https://api.github.com/users/bdash/orgs","repos_url":"https://api.github.com/users/bdash/repos","events_url":"https://api.github.com/users/bdash/events{/privacy}","received_events_url":"https://api.github.com/users/bdash/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T17:10:18Z","updated_at":"2016-05-09T17:10:18Z","body":"#3516 claims to have fixed this, and was present in v0.101. What version of Realm was this seen with?"}}