{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-dotnet/issues/723","repository_url":"https://api.github.com/repos/realm/realm-dotnet","labels_url":"https://api.github.com/repos/realm/realm-dotnet/issues/723/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-dotnet/issues/723/comments","events_url":"https://api.github.com/repos/realm/realm-dotnet/issues/723/events","html_url":"https://github.com/realm/realm-dotnet/issues/723","id":166692355,"number":723,"title":"LINQ Where clause crashes in nested RealmObjects attribute.","user":{"login":"igmartell4th","id":20408184,"avatar_url":"https://avatars.githubusercontent.com/u/20408184?v=3","gravatar_id":"","url":"https://api.github.com/users/igmartell4th","html_url":"https://github.com/igmartell4th","followers_url":"https://api.github.com/users/igmartell4th/followers","following_url":"https://api.github.com/users/igmartell4th/following{/other_user}","gists_url":"https://api.github.com/users/igmartell4th/gists{/gist_id}","starred_url":"https://api.github.com/users/igmartell4th/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igmartell4th/subscriptions","organizations_url":"https://api.github.com/users/igmartell4th/orgs","repos_url":"https://api.github.com/users/igmartell4th/repos","events_url":"https://api.github.com/users/igmartell4th/events{/privacy}","received_events_url":"https://api.github.com/users/igmartell4th/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-dotnet/labels/S:In%20Progress","name":"S:In Progress","color":"ededed"},{"url":"https://api.github.com/repos/realm/realm-dotnet/labels/T:Bug-Crash","name":"T:Bug-Crash","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/realm/realm-dotnet/milestones/2","html_url":"https://github.com/realm/realm-dotnet/milestones/v1.0","labels_url":"https://api.github.com/repos/realm/realm-dotnet/milestones/2/labels","id":1863258,"number":2,"title":"v1.0","description":"","creator":{"login":"kristiandupont","id":847742,"avatar_url":"https://avatars.githubusercontent.com/u/847742?v=3","gravatar_id":"","url":"https://api.github.com/users/kristiandupont","html_url":"https://github.com/kristiandupont","followers_url":"https://api.github.com/users/kristiandupont/followers","following_url":"https://api.github.com/users/kristiandupont/following{/other_user}","gists_url":"https://api.github.com/users/kristiandupont/gists{/gist_id}","starred_url":"https://api.github.com/users/kristiandupont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kristiandupont/subscriptions","organizations_url":"https://api.github.com/users/kristiandupont/orgs","repos_url":"https://api.github.com/users/kristiandupont/repos","events_url":"https://api.github.com/users/kristiandupont/events{/privacy}","received_events_url":"https://api.github.com/users/kristiandupont/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":36,"state":"open","created_at":"2016-07-04T13:42:16Z","updated_at":"2016-08-16T13:10:21Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-07-20T21:59:33Z","updated_at":"2016-08-19T17:10:11Z","closed_at":null,"body":"I have two simple RealmObjects:\r\n\r\n```\r\npublic class WellnessEventOcurrence : RealmObject\r\n\t{\r\n\t\t[ObjectId]\r\n\t\tpublic int Id { get; set; }\r\n\t\tpublic virtual WellnessEvent WellnessEvent { get; set; }\r\n\t\tpublic int WellnessEventID { get; set; }\r\n\t\tpublic DateTimeOffset OccurenceDate { get; set; }\r\n\t}\r\n\r\n\tpublic class WellnessEvent : RealmObject\r\n\t{\r\n\t\t[ObjectId]\r\n\t\tpublic int Id { get; set; }\r\n\t\tpublic DateTimeOffset DateCreated { get; set; }\r\n\t\tpublic int EventOrClass { get; set; }\r\n\t\tpublic int PortalID { get; set; }\r\n\t\tpublic int DisplayPriority { get; set; }\r\n\t\tpublic string Title { get; set; }\r\n\t\tpublic string Description { get; set; }\r\n\t}\r\n\r\n```\r\n#### Goal\r\n\r\nI'm trying to achieve a simple where clause to filter from all the the events in the WellnessEventOcurrence whose WellnessEvent.Event == 0 or 1.\r\n\r\nHere is what I'm trying to do:\r\n\r\n`return realm.All<WellnessEventOcurrence>().Where(x => x.WellnessEvent.EventOrClass == 1);`\r\n\r\n#### Expected Results\r\n\r\n> I expect the filtered WellnessEventOcurrence list.\r\n\r\n#### Actual Results\r\n\r\n>  Crash:\r\n\r\nspec.cpp:456: [realm-core-1.4.0] Assertion failed: ndx < get_column_count()\r\n0   FxWell.IOS                          0x00080270 _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 48\r\n1   FxWell.IOS                          0x00080585 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 485\r\n2   FxWell.IOS                          0x001ae90e _ZNK5realm4Spec22get_public_column_typeEm + 126\r\n3   FxWell.IOS                          0x00168a13 _ZN5realm5Query13add_conditionINS_5EqualExEERS0_mT0_ + 51\r\n4   FxWell.IOS                          0x00166979 _ZN5realm5Query5equalEmi + 41\r\n5   FxWell.IOS                          0x0006f1cf query_int_equal + 39\r\n6   ???                                 0x1c467368 0x0 + 474379112\r\n7   ???                                 0x1c4671e8 0x0 + 474378728\r\n8   ???                                 0x1c46672c 0x0 + 474375980\r\n9   ???                                 0x1c465e64 0x0 + 474373732\r\n10  ???                                 0x1c461130 0x0 + 474353968\r\n11  ???                                 0x1c462e47 0x0 + 474361415\r\n12  ???                                 0x1c46120d 0x0 + 474354189\r\n13  ???                                 0x1c458e1a 0x0 + 474320410\r\n14  ???                                 0x1c458c50 0x0 + 474319952\r\n15  ???                                 0x1c458b20 0x0 + 474319648\r\n16  ???                                 0x18bac71d 0x0 + 414893853\r\n17  ???                                 0x1b700bc0 0x0 + 460327872\r\n18  ???                                 0x1c45c364 0x0 + 474334052\r\n19  ???                                 0x1c45bf4c 0x0 + 474333004\r\n20  ???                                 0x1c45b9f0 0x0 + 474331632\r\n21  ???                                 0x1b9bab00 0x0 + 463186688\r\n22  ???                                 0x1b6abda7 0x0 + 459980199\r\n23  ???                                 0x1b1b15b6 0x0 + 454759862\r\n24  ???                                 0x1b1b0ef4 0x0 + 454758132\r\n25  ???                                 0x1b6abc30 0x0 + 459979824\r\n26  ???                                 0x1b73353f 0x0 + 460535103\r\n27  ???                                 0x1b6aafe3 0x0 + 459976675\r\n28  ???                                 0x1b6aad10 0x0 + 459975952\r\n29  ???                                 0x1b6aa3a6 0x0 + 459973542\r\n30  ???                                 0x1b6a9f68 0x0 + 459972456\r\n31  ???                                 0x1b6a9cec 0x0 + 459971820\r\n32  ???                                 0x1b733354 0x0 + 460534612\r\n33  ???                                 0x1b73d344 0x0 + 460575556\r\n34  ???                                 0x1b6abda7 0x0 + 459980199\r\n35  ???                                 0x1b1b15b6 0x0 + 454759862\r\n36  ???                                 0x1b1b0ef4 0x0 + 454758132\r\n37  ???                                 0x1b6abc30 0x0 + 459979824\r\n38  ???                                 0x1b73353f 0x0 + 460535103\r\n39  ???                                 0x1b6aafe3 0x0 + 459976675\r\n40  ???                                 0x1b6aad10 0x0 + 459975952\r\n41  ???                                 0x1b6aa3a6 0x0 + 459973542\r\n42  ???                                 0x1b6a9f68 0x0 + 459972456\r\n43  ???                                 0x1b6a9cec 0x0 + 459971820\r\n44  ???                                 0x1b733354 0x0 + 460534612\r\n45  ???                                 0x1b73deec 0x0 + 460578540\r\n46  ???                                 0x1b6abda7 0x0 + 459980199\r\n47  ???                                 0x1b1b15b6 0x0 + 454759862\r\n48  ???                                 0x1b1b0ef4 0x0 + 454758132\r\n49  ???                                 0x1b6abc30 0x0 + 459979824\r\n50  ???                                 0x1b6ababf 0x0 + 459979455\r\n51  ???                                 0x1b6aba53 0x0 + 459979347\r\n52  ???                                 0x1b6ab971 0x0 + 459979121\r\n53  ???                                 0x18ba83c1 0x0 + 414876609\r\n54  libmonosgen-2.0.dylib               0x0948e129 mono_jit_runtime_invoke + 921\r\n55  libmonosgen-2.0.dylib               0x0964fade mono_runtime_invoke + 142\r\n56  FxWell.IOS                          0x001db999 _ZL30native_to_managed_trampoline_4P11objc_objectP13objc_selectorPP11_MonoMethodPKcS7_ + 249\r\n57  FxWell.IOS                          0x001eb67a -[__MonoMac_NSAsyncActionDispatcher xamarinApplySelector] + 74\r\n58  libobjc.A.dylib                     0x09b44059 -[NSObject performSelector:withObject:] + 70\r\n59  Foundation                          0x026025f8 __NSThreadPerformPerform + 323\r\n60  CoreFoundation                      0x09022e5f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15\r\n61  CoreFoundation                      0x09018aeb __CFRunLoopDoSources0 + 523\r\n62  CoreFoundation                      0x09017f08 __CFRunLoopRun + 1032\r\n63  CoreFoundation                      0x09017846 CFRunLoopRunSpecific + 470\r\n64  CoreFoundation                      0x0901765b CFRunLoopRunInMode + 123\r\n65  GraphicsServices                    0x0a71e664 GSEventRunModal + 192\r\n66  GraphicsServices                    0x0a71e4a1 GSEventRun + 104\r\n67  UIKit                               0x004caeb9 UIApplicationMain + 160\r\n68  ???                                 0x18faa09c 0x0 + 419078300\r\n69  ???                                 0x18fa9e4c 0x0 + 419077708\r\n70  ???                                 0x18fa9db0 0x0 + 419077552\r\n71  ???                                 0x18fa9a34 0x0 + 419076660\r\n72  ???                                 0x18fa9c2f 0x0 + 419077167\r\n73  libmonosgen-2.0.dylib               0x0948e129 mono_jit_runtime_invoke + 921\r\n74  libmonosgen-2.0.dylib               0x0964fade mono_runtime_invoke + 142\r\n75  libmonosgen-2.0.dylib               0x09654ce1 mono_runtime_exec_main + 401\r\n76  libmonosgen-2.0.dylib               0x09654aa5 mono_runtime_run_main + 645\r\n77  libmonosgen-2.0.dylib               0x09500185 mono_jit_exec + 213\r\n78  libxamarin-debug.dylib              0x098d130a xamarin_main + 2474\r\n79  FxWell.IOS                          0x0024f291 main + 113\r\n80  libdyld.dylib                       0x0c8b4a25 start + 1\r\nIMPORTANT: if you see this error, please send this log to help@realm.io.2016-07-20 16:58:47.930 FxWell.IOS[5146:314271] critical: Stacktrace:\r\n\r\n2016-07-20 16:58:47.930 FxWell.IOS[5146:314271] critical:   at <unknown> <0xffffffff>\r\n2016-07-20 16:58:47.930 FxWell.IOS[5146:314271] critical:   at (wrapper managed-to-native) Realms.QueryHandle/NativeMethods.int_equal (Realms.QueryHandle,intptr,intptr,Realms.NativeException&) <0x00012>\r\n2016-07-20 16:58:47.931 FxWell.IOS[5146:314271] critical:   at Realms.QueryHandle.IntEqual (intptr,int) <IL 0x0000a, 0x00087>\r\n2016-07-20 16:58:47.931 FxWell.IOS[5146:314271] critical:   at Realms.RealmResultsVisitor.AddQueryEqual (Realms.QueryHandle,string,object) <IL 0x00055, 0x00253>\r\n2016-07-20 16:58:47.931 FxWell.IOS[5146:314271] critical:   at Realms.RealmResultsVisitor.VisitBinary (System.Linq.Expressions.BinaryExpression) <IL 0x0011a, 0x004eb>\r\n2016-07-20 16:58:47.931 FxWell.IOS[5146:314271] critical:   at Realms.ExpressionVisitor.Visit (System.Linq.Expressions.Expression) <IL 0x000d9, 0x0011f>\r\n2016-07-20 16:58:47.932 FxWell.IOS[5146:314271] critical:   at Realms.RealmResultsVisitor.VisitMethodCall (System.Linq.Expressions.MethodCallExpression) <IL 0x0006a, 0x002de>\r\n2016-07-20 16:58:47.932 FxWell.IOS[5146:314271] critical:   at Realms.ExpressionVisitor.Visit (System.Linq.Expressions.Expression) <IL 0x000f3, 0x001fc>\r\n2016-07-20 16:58:47.932 FxWell.IOS[5146:314271] critical:   at Realms.RealmResults`1<T_REF>.CreateResultsHandle () <IL 0x00035, 0x00139>\r\n2016-07-20 16:58:47.932 FxWell.IOS[5146:314271] critical:   at Realms.RealmResults`1<T_REF>.get_ResultsHandle () <IL 0x0000f, 0x00067>\r\n2016-07-20 16:58:47.933 FxWell.IOS[5146:314271] critical:   at Realms.RealmResults`1<T_REF>.GetEnumerator () <IL 0x00007, 0x00047>\r\n2016-07-20 16:58:47.933 FxWell.IOS[5146:314271] critical:   at System.Collections.Generic.List`1<T_REF>..ctor (System.Collections.Generic.IEnumerable`1<T_REF>) [0x00073] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/collections/generic/list.cs:98\r\n2016-07-20 16:58:47.933 FxWell.IOS[5146:314271] critical:   at System.Linq.Enumerable.ToList<TSource_REF> (System.Collections.Generic.IEnumerable`1<TSource_REF>) [0x00011] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/System.Core/System/Linq/Enumerable.cs:835\r\n2016-07-20 16:58:47.933 FxWell.IOS[5146:314271] critical:   at FxWell.ClassesEventsDAO.getWellnessEventOcurrences () [0x00078] in /Users/ignaciogarcia/Projects/FXWell/greerde/FXWell.App.git/FxWell/DAO/ClassesEventsDAO.cs:70\r\n2016-07-20 16:58:47.933 FxWell.IOS[5146:314271] critical:   at FxWell.IOS.classesEventsDataSource..ctor (System.Collections.Generic.List`1<FxWell.WellnessEventOcurrence>) [0x00019] in /Users/ignaciogarcia/Projects/FXWell/greerde/FXWell.App.git/FxWell.IOS/TableViews/classesEventsDataSource.cs:22\r\n2016-07-20 16:58:47.934 FxWell.IOS[5146:314271] critical:   at FxWell.IOS.calendarPage.changeEvent () [0x0009f] in /Users/ignaciogarcia/Projects/FXWell/greerde/FXWell.App.git/FxWell.IOS/ViewControllers/calendarPage.cs:118\r\n2016-07-20 16:58:47.934 FxWell.IOS[5146:314271] critical:   at FxWell.IOS.calendarPage/<ViewDidLoad>c__async0.MoveNext () [0x003a5] in /Users/ignaciogarcia/Projects/FXWell/greerde/FXWell.App.git/FxWell.IOS/ViewControllers/calendarPage.cs:95\r\n2016-07-20 16:58:47.934 FxWell.IOS[5146:314271] critical:   at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.InvokeMoveNext (object) [0x00000] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1089\r\n2016-07-20 16:58:47.934 FxWell.IOS[5146:314271] critical:   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x0008d] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:957\r\n2016-07-20 16:58:47.934 FxWell.IOS[5146:314271] critical:   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:904\r\n2016-07-20 16:58:47.935 FxWell.IOS[5146:314271] critical:   at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.Run () [0x0003b] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1070\r\n2016-07-20 16:58:47.935 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.AwaitTaskContinuation.InvokeAction (object) [0x00000] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/TaskContinuation.cs:741\r\n2016-07-20 16:58:47.935 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.AwaitTaskContinuation.RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&) [0x00017] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/TaskContinuation.cs:770\r\n2016-07-20 16:58:47.935 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run (System.Threading.Tasks.Task,bool) [0x00016] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/TaskContinuation.cs:419\r\n2016-07-20 16:58:47.936 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.Task.FinishContinuations () [0x000b7] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/Task.cs:3642\r\n2016-07-20 16:58:47.936 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.Task.FinishStageThree () [0x00045] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/Task.cs:2366\r\n2016-07-20 16:58:47.936 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.Task`1<TResult_REF>.TrySetResult (TResult_REF) [0x00058] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/Future.cs:488\r\n2016-07-20 16:58:47.936 FxWell.IOS[5146:314271] critical:   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>.SetResult (TResult_REF) [0x0004b] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:608\r\n2016-07-20 16:58:47.937 FxWell.IOS[5146:314271] critical:   at FXWell.getJsonFile/<getJson>c__async0.MoveNext () [0x00196] in /Users/ignaciogarcia/Projects/FXWell/greerde/FXWell.App.git/FxWell/Helpers/getJsonFile.cs:30\r\n2016-07-20 16:58:47.937 FxWell.IOS[5146:314271] critical:   at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.InvokeMoveNext (object) [0x00000] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1089\r\n2016-07-20 16:58:47.937 FxWell.IOS[5146:314271] critical:   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x0008d] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:957\r\n2016-07-20 16:58:47.937 FxWell.IOS[5146:314271] critical:   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:904\r\n2016-07-20 16:58:47.937 FxWell.IOS[5146:314271] critical:   at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.Run () [0x0003b] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1070\r\n2016-07-20 16:58:47.938 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.AwaitTaskContinuation.InvokeAction (object) [0x00000] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/TaskContinuation.cs:741\r\n2016-07-20 16:58:47.938 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.AwaitTaskContinuation.RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&) [0x00017] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/TaskContinuation.cs:770\r\n2016-07-20 16:58:47.938 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run (System.Threading.Tasks.Task,bool) [0x00016] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/TaskContinuation.cs:419\r\n2016-07-20 16:58:47.938 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.Task.FinishContinuations () [0x000b7] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/Task.cs:3642\r\n2016-07-20 16:58:47.938 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.Task.FinishStageThree () [0x00045] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/Task.cs:2366\r\n2016-07-20 16:58:47.939 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.Task`1<TResult_REF>.TrySetResult (TResult_REF) [0x00058] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/Future.cs:488\r\n2016-07-20 16:58:47.939 FxWell.IOS[5146:314271] critical:   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<TResult_REF>.SetResult (TResult_REF) [0x0004b] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:608\r\n2016-07-20 16:58:47.939 FxWell.IOS[5146:314271] critical:   at FXWell.getJsonFile/<getString>c__async1.MoveNext () [0x001a2] in /Users/ignaciogarcia/Projects/FXWell/greerde/FXWell.App.git/FxWell/Helpers/getJsonFile.cs:58\r\n2016-07-20 16:58:47.939 FxWell.IOS[5146:314271] critical:   at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.InvokeMoveNext (object) [0x00000] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1089\r\n2016-07-20 16:58:47.939 FxWell.IOS[5146:314271] critical:   at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x0008d] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:957\r\n2016-07-20 16:58:47.940 FxWell.IOS[5146:314271] critical:   at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00000] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/executioncontext.cs:904\r\n2016-07-20 16:58:47.940 FxWell.IOS[5146:314271] critical:   at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.Run () [0x0003b] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1070\r\n2016-07-20 16:58:47.940 FxWell.IOS[5146:314271] critical:   at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.<s_postCallback>m__0 (object) [0x00000] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/_build/Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/external/referencesource/mscorlib/system/threading/Tasks/TaskContinuation.cs:388\r\n2016-07-20 16:58:47.940 FxWell.IOS[5146:314271] critical:   at UIKit.UIKitSynchronizationContext/<Post>c__AnonStorey0.<>m__0 () [0x00000] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/src/UIKit/UIKitSynchronizationContext.cs:24\r\n2016-07-20 16:58:47.940 FxWell.IOS[5146:314271] critical:   at Foundation.NSAsyncActionDispatcher.Apply () [0x00000] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/src/Foundation/NSAction.cs:163\r\n2016-07-20 16:58:47.941 FxWell.IOS[5146:314271] critical:   at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <IL 0x0004f, 0x001d0>\r\n2016-07-20 16:58:47.941 FxWell.IOS[5146:314271] critical:   at <unknown> <0xffffffff>\r\n2016-07-20 16:58:47.941 FxWell.IOS[5146:314271] critical:   at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x00012>\r\n2016-07-20 16:58:47.941 FxWell.IOS[5146:314271] critical:   at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/src/UIKit/UIApplication.cs:79\r\n2016-07-20 16:58:47.941 FxWell.IOS[5146:314271] critical:   at UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/builder/data/lanes/3412/3cf8aaed/source/maccore/src/UIKit/UIApplication.cs:63\r\n2016-07-20 16:58:47.941 FxWell.IOS[5146:314271] critical:   at FxWell.IOS.Application.Main (string[]) [0x00008] in /Users/ignaciogarcia/Projects/FXWell/greerde/FXWell.App.git/FxWell.IOS/Main.cs:12\r\n2016-07-20 16:58:47.942 FxWell.IOS[5146:314271] critical:   at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00051, 0x001d6>\r\n2016-07-20 16:58:47.942 FxWell.IOS[5146:314271] critical: \r\nNative stacktrace:\r\n\r\n2016-07-20 16:58:47.943 FxWell.IOS[5146:314271] critical: \t0   libmonosgen-2.0.dylib               0x0953bf0d mono_handle_native_sigsegv + 317\r\n2016-07-20 16:58:47.943 FxWell.IOS[5146:314271] critical: \t1   libmonosgen-2.0.dylib               0x09590cd1 sigabrt_signal_handler + 161\r\n2016-07-20 16:58:47.944 FxWell.IOS[5146:314271] critical: \t2   libsystem_platform.dylib            0x0cbcb79b _sigtramp + 43\r\n2016-07-20 16:58:47.944 FxWell.IOS[5146:314271] critical: \t3   ???                                 0xffffffff 0x0 + 4294967295\r\n2016-07-20 16:58:47.944 FxWell.IOS[5146:314271] critical: \t4   libsystem_c.dylib                   0x0c95b65d abort + 156\r\n2016-07-20 16:58:47.944 FxWell.IOS[5146:314271] critical: \t5   FxWell.IOS                          0x0008023b please_report_this_error_to_help_at_realm_dot_io + 11\r\n2016-07-20 16:58:47.944 FxWell.IOS[5146:314271] critical: \t6   FxWell.IOS                          0x0008036f _ZN5realm4utilL18terminate_internalERNSt3__118basic_stringstreamIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE + 303\r\n2016-07-20 16:58:47.944 FxWell.IOS[5146:314271] critical: \t7   FxWell.IOS                          0x00080585 _ZN5realm4util9terminateEPKcS2_lOSt16initializer_listINS0_9PrintableEE + 485\r\n2016-07-20 16:58:47.945 FxWell.IOS[5146:314271] critical: \t8   FxWell.IOS                          0x001ae90e _ZNK5realm4Spec22get_public_column_typeEm + 126\r\n2016-07-20 16:58:47.945 FxWell.IOS[5146:314271] critical: \t9   FxWell.IOS                          0x00168a13 _ZN5realm5Query13add_conditionINS_5EqualExEERS0_mT0_ + 51\r\n2016-07-20 16:58:47.945 FxWell.IOS[5146:314271] critical: \t10  FxWell.IOS                          0x00166979 _ZN5realm5Query5equalEmi + 41\r\n2016-07-20 16:58:47.945 FxWell.IOS[5146:314271] critical: \t11  FxWell.IOS                          0x0006f1cf query_int_equal + 39\r\n2016-07-20 16:58:47.945 FxWell.IOS[5146:314271] critical: \t12  ???                                 0x1c467368 0x0 + 474379112\r\n2016-07-20 16:58:47.945 FxWell.IOS[5146:314271] critical: \t13  ???                                 0x1c4671e8 0x0 + 474378728\r\n2016-07-20 16:58:47.946 FxWell.IOS[5146:314271] critical: \t14  ???                                 0x1c46672c 0x0 + 474375980\r\n2016-07-20 16:58:47.946 FxWell.IOS[5146:314271] critical: \t15  ???                                 0x1c465e64 0x0 + 474373732\r\n2016-07-20 16:58:47.946 FxWell.IOS[5146:314271] critical: \t16  ???                                 0x1c461130 0x0 + 474353968\r\n2016-07-20 16:58:47.946 FxWell.IOS[5146:314271] critical: \t17  ???                                 0x1c462e47 0x0 + 474361415\r\n2016-07-20 16:58:47.946 FxWell.IOS[5146:314271] critical: \t18  ???                                 0x1c46120d 0x0 + 474354189\r\n2016-07-20 16:58:47.946 FxWell.IOS[5146:314271] critical: \t19  ???                                 0x1c458e1a 0x0 + 474320410\r\n2016-07-20 16:58:47.946 FxWell.IOS[5146:314271] critical: \t20  ???                                 0x1c458c50 0x0 + 474319952\r\n2016-07-20 16:58:47.947 FxWell.IOS[5146:314271] critical: \t21  ???                                 0x1c458b20 0x0 + 474319648\r\n2016-07-20 16:58:47.947 FxWell.IOS[5146:314271] critical: \t22  ???                                 0x18bac71d 0x0 + 414893853\r\n2016-07-20 16:58:47.947 FxWell.IOS[5146:314271] critical: \t23  ???                                 0x1b700bc0 0x0 + 460327872\r\n2016-07-20 16:58:47.947 FxWell.IOS[5146:314271] critical: \t24  ???                                 0x1c45c364 0x0 + 474334052\r\n2016-07-20 16:58:47.947 FxWell.IOS[5146:314271] critical: \t25  ???                                 0x1c45bf4c 0x0 + 474333004\r\n2016-07-20 16:58:47.947 FxWell.IOS[5146:314271] critical: \t26  ???                                 0x1c45b9f0 0x0 + 474331632\r\n2016-07-20 16:58:47.947 FxWell.IOS[5146:314271] critical: \t27  ???                                 0x1b9bab00 0x0 + 463186688\r\n2016-07-20 16:58:47.948 FxWell.IOS[5146:314271] critical: \t28  ???                                 0x1b6abda7 0x0 + 459980199\r\n2016-07-20 16:58:47.948 FxWell.IOS[5146:314271] critical: \t29  ???                                 0x1b1b15b6 0x0 + 454759862\r\n2016-07-20 16:58:47.948 FxWell.IOS[5146:314271] critical: \t30  ???                                 0x1b1b0ef4 0x0 + 454758132\r\n2016-07-20 16:58:47.948 FxWell.IOS[5146:314271] critical: \t31  ???                                 0x1b6abc30 0x0 + 459979824\r\n2016-07-20 16:58:47.948 FxWell.IOS[5146:314271] critical: \t32  ???                                 0x1b73353f 0x0 + 460535103\r\n2016-07-20 16:58:47.948 FxWell.IOS[5146:314271] critical: \t33  ???                                 0x1b6aafe3 0x0 + 459976675\r\n2016-07-20 16:58:47.949 FxWell.IOS[5146:314271] critical: \t34  ???                                 0x1b6aad10 0x0 + 459975952\r\n2016-07-20 16:58:47.949 FxWell.IOS[5146:314271] critical: \t35  ???                                 0x1b6aa3a6 0x0 + 459973542\r\n2016-07-20 16:58:47.949 FxWell.IOS[5146:314271] critical: \t36  ???                                 0x1b6a9f68 0x0 + 459972456\r\n2016-07-20 16:58:47.949 FxWell.IOS[5146:314271] critical: \t37  ???                                 0x1b6a9cec 0x0 + 459971820\r\n2016-07-20 16:58:47.949 FxWell.IOS[5146:314271] critical: \t38  ???                                 0x1b733354 0x0 + 460534612\r\n2016-07-20 16:58:47.949 FxWell.IOS[5146:314271] critical: \t39  ???                                 0x1b73d344 0x0 + 460575556\r\n2016-07-20 16:58:47.949 FxWell.IOS[5146:314271] critical: \t40  ???                                 0x1b6abda7 0x0 + 459980199\r\n2016-07-20 16:58:47.950 FxWell.IOS[5146:314271] critical: \t41  ???                                 0x1b1b15b6 0x0 + 454759862\r\n2016-07-20 16:58:47.950 FxWell.IOS[5146:314271] critical: \t42  ???                                 0x1b1b0ef4 0x0 + 454758132\r\n2016-07-20 16:58:47.950 FxWell.IOS[5146:314271] critical: \t43  ???                                 0x1b6abc30 0x0 + 459979824\r\n2016-07-20 16:58:47.950 FxWell.IOS[5146:314271] critical: \t44  ???                                 0x1b73353f 0x0 + 460535103\r\n2016-07-20 16:58:47.950 FxWell.IOS[5146:314271] critical: \t45  ???                                 0x1b6aafe3 0x0 + 459976675\r\n2016-07-20 16:58:47.950 FxWell.IOS[5146:314271] critical: \t46  ???                                 0x1b6aad10 0x0 + 459975952\r\n2016-07-20 16:58:47.950 FxWell.IOS[5146:314271] critical: \t47  ???                                 0x1b6aa3a6 0x0 + 459973542\r\n2016-07-20 16:58:47.951 FxWell.IOS[5146:314271] critical: \t48  ???                                 0x1b6a9f68 0x0 + 459972456\r\n2016-07-20 16:58:47.951 FxWell.IOS[5146:314271] critical: \t49  ???                                 0x1b6a9cec 0x0 + 459971820\r\n2016-07-20 16:58:47.951 FxWell.IOS[5146:314271] critical: \t50  ???                                 0x1b733354 0x0 + 460534612\r\n2016-07-20 16:58:47.951 FxWell.IOS[5146:314271] critical: \t51  ???                                 0x1b73deec 0x0 + 460578540\r\n2016-07-20 16:58:47.951 FxWell.IOS[5146:314271] critical: \t52  ???                                 0x1b6abda7 0x0 + 459980199\r\n2016-07-20 16:58:47.951 FxWell.IOS[5146:314271] critical: \t53  ???                                 0x1b1b15b6 0x0 + 454759862\r\n2016-07-20 16:58:47.952 FxWell.IOS[5146:314271] critical: \t54  ???                                 0x1b1b0ef4 0x0 + 454758132\r\n2016-07-20 16:58:47.952 FxWell.IOS[5146:314271] critical: \t55  ???                                 0x1b6abc30 0x0 + 459979824\r\n2016-07-20 16:58:47.952 FxWell.IOS[5146:314271] critical: \t56  ???                                 0x1b6ababf 0x0 + 459979455\r\n2016-07-20 16:58:47.952 FxWell.IOS[5146:314271] critical: \t57  ???                                 0x1b6aba53 0x0 + 459979347\r\n2016-07-20 16:58:47.952 FxWell.IOS[5146:314271] critical: \t58  ???                                 0x1b6ab971 0x0 + 459979121\r\n2016-07-20 16:58:47.952 FxWell.IOS[5146:314271] critical: \t59  ???                                 0x18ba83c1 0x0 + 414876609\r\n2016-07-20 16:58:47.953 FxWell.IOS[5146:314271] critical: \t60  libmonosgen-2.0.dylib               0x0948e129 mono_jit_runtime_invoke + 921\r\n2016-07-20 16:58:47.953 FxWell.IOS[5146:314271] critical: \t61  libmonosgen-2.0.dylib               0x0964fade mono_runtime_invoke + 142\r\n2016-07-20 16:58:47.953 FxWell.IOS[5146:314271] critical: \t62  FxWell.IOS                          0x001db999 _ZL30native_to_managed_trampoline_4P11objc_objectP13objc_selectorPP11_MonoMethodPKcS7_ + 249\r\n2016-07-20 16:58:47.953 FxWell.IOS[5146:314271] critical: \t63  FxWell.IOS                          0x001eb67a -[__MonoMac_NSAsyncActionDispatcher xamarinApplySelector] + 74\r\n2016-07-20 16:58:47.953 FxWell.IOS[5146:314271] critical: \t64  libobjc.A.dylib                     0x09b44059 -[NSObject performSelector:withObject:] + 70\r\n2016-07-20 16:58:47.953 FxWell.IOS[5146:314271] critical: \t65  Foundation                          0x026025f8 __NSThreadPerformPerform + 323\r\n2016-07-20 16:58:47.953 FxWell.IOS[5146:314271] critical: \t66  CoreFoundation                      0x09022e5f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15\r\n2016-07-20 16:58:47.954 FxWell.IOS[5146:314271] critical: \t67  CoreFoundation                      0x09018aeb __CFRunLoopDoSources0 + 523\r\n2016-07-20 16:58:47.954 FxWell.IOS[5146:314271] critical: \t68  CoreFoundation                      0x09017f08 __CFRunLoopRun + 1032\r\n2016-07-20 16:58:47.954 FxWell.IOS[5146:314271] critical: \t69  CoreFoundation                      0x09017846 CFRunLoopRunSpecific + 470\r\n2016-07-20 16:58:47.954 FxWell.IOS[5146:314271] critical: \t70  CoreFoundation                      0x0901765b CFRunLoopRunInMode + 123\r\n2016-07-20 16:58:47.954 FxWell.IOS[5146:314271] critical: \t71  GraphicsServices                    0x0a71e664 GSEventRunModal + 192\r\n2016-07-20 16:58:47.954 FxWell.IOS[5146:314271] critical: \t72  GraphicsServices                    0x0a71e4a1 GSEventRun + 104\r\n2016-07-20 16:58:47.955 FxWell.IOS[5146:314271] critical: \t73  UIKit                               0x004caeb9 UIApplicationMain + 160\r\n2016-07-20 16:58:47.955 FxWell.IOS[5146:314271] critical: \t74  ???                                 0x18faa09c 0x0 + 419078300\r\n2016-07-20 16:58:47.955 FxWell.IOS[5146:314271] critical: \t75  ???                                 0x18fa9e4c 0x0 + 419077708\r\n2016-07-20 16:58:47.955 FxWell.IOS[5146:314271] critical: \t76  ???                                 0x18fa9db0 0x0 + 419077552\r\n2016-07-20 16:58:47.955 FxWell.IOS[5146:314271] critical: \t77  ???                                 0x18fa9a34 0x0 + 419076660\r\n2016-07-20 16:58:47.955 FxWell.IOS[5146:314271] critical: \t78  ???                                 0x18fa9c2f 0x0 + 419077167\r\n2016-07-20 16:58:47.955 FxWell.IOS[5146:314271] critical: \t79  libmonosgen-2.0.dylib               0x0948e129 mono_jit_runtime_invoke + 921\r\n2016-07-20 16:58:47.956 FxWell.IOS[5146:314271] critical: \t80  libmonosgen-2.0.dylib               0x0964fade mono_runtime_invoke + 142\r\n2016-07-20 16:58:47.956 FxWell.IOS[5146:314271] critical: \t81  libmonosgen-2.0.dylib               0x09654ce1 mono_runtime_exec_main + 401\r\n2016-07-20 16:58:47.956 FxWell.IOS[5146:314271] critical: \t82  libmonosgen-2.0.dylib               0x09654aa5 mono_runtime_run_main + 645\r\n2016-07-20 16:58:47.956 FxWell.IOS[5146:314271] critical: \t83  libmonosgen-2.0.dylib               0x09500185 mono_jit_exec + 213\r\n2016-07-20 16:58:47.956 FxWell.IOS[5146:314271] critical: \t84  libxamarin-debug.dylib              0x098d130a xamarin_main + 2474\r\n2016-07-20 16:58:47.956 FxWell.IOS[5146:314271] critical: \t85  FxWell.IOS                          0x0024f291 main + 113\r\n2016-07-20 16:58:47.957 FxWell.IOS[5146:314271] critical: \t86  libdyld.dylib                       0x0c8b4a25 start + 1\r\n2016-07-20 16:58:47.957 FxWell.IOS[5146:314271] critical: \r\n=================================================================\r\nGot a SIGABRT while executing native code. This usually indicates\r\na fatal error in the mono runtime or one of the native libraries \r\nused by your application.\r\n=================================================================\r\n\r\n> Describe your current debugging efforts.\r\n\r\nI have an inefficient workaround:\r\n\r\n```\r\nvar results = _realm.All<WellnessEventOcurrence>();\r\n\t\t\tvar events = new List<WellnessEventOcurrence>();\r\n\r\n\t\t\tforeach (var result in results)\r\n\t\t\t{\r\n\t\t\t\tif (result.WellnessEvent.EventOrClass == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tevents.Add(result);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn events;\r\n```\r\n\r\n\r\n#### Version of Realm and tooling\r\nRealm version(s): 0.77.0 (Downloaded directly from NuGet).\r\n\r\nXamarin/Visual Studio version: 6.0.1 Build 9 running iPhone 6s Simulator.\r\n\r\nWhich operating system version and device: OSX El Capitan 10.11.5"},"comment":{"url":"https://api.github.com/repos/realm/realm-dotnet/issues/comments/241076612","html_url":"https://github.com/realm/realm-dotnet/issues/723#issuecomment-241076612","issue_url":"https://api.github.com/repos/realm/realm-dotnet/issues/723","id":241076612,"user":{"login":"AndyDentFree","id":1586093,"avatar_url":"https://avatars.githubusercontent.com/u/1586093?v=3","gravatar_id":"","url":"https://api.github.com/users/AndyDentFree","html_url":"https://github.com/AndyDentFree","followers_url":"https://api.github.com/users/AndyDentFree/followers","following_url":"https://api.github.com/users/AndyDentFree/following{/other_user}","gists_url":"https://api.github.com/users/AndyDentFree/gists{/gist_id}","starred_url":"https://api.github.com/users/AndyDentFree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndyDentFree/subscriptions","organizations_url":"https://api.github.com/users/AndyDentFree/orgs","repos_url":"https://api.github.com/users/AndyDentFree/repos","events_url":"https://api.github.com/users/AndyDentFree/events{/privacy}","received_events_url":"https://api.github.com/users/AndyDentFree/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T17:10:11Z","updated_at":"2016-08-19T17:10:11Z","body":"I am currently working on this with a reproducible test case, at least to prevent crashing. I have the crash happening at present."}}
{"actor":{"display_login":"AndyDentFree"}}