realm-dotnet: Realms.MarshalHelpers GetString and GetInt Crash 0.82.0
Bug:
Goal
A list of realm objects in a list view when selected pass an object property to a new content page.
Expected Results
The property is passed the the new content page
Actual Results
IMPORTANT: if you see this error, please send this log to help@realm.io.2017-01-25 10:47:28.989 AltecService.iOS[91703:931565] critical: Stacktrace:
2017-01-25 10:47:28.989 AltecService.iOS[91703:931565] critical: at <unknown> <0xffffffff> 2017-01-25 10:47:28.989 AltecService.iOS[91703:931565] critical: at (wrapper managed-to-native) Realms.ObjectHandle/NativeMethods.get_string (Realms.ObjectHandle,intptr,intptr,intptr,bool&,Realms.NativeException&) <0x00015> 2017-01-25 10:47:28.989 AltecService.iOS[91703:931565] critical: at Realms.ObjectHandle/<GetString>c__AnonStorey0.<>m__0 (intptr,intptr,bool&,Realms.NativeException&) [0x00011] in <6524e2bca61840fe83e3b491caf456a5>:0 2017-01-25 10:47:28.990 AltecService.iOS[91703:931565] critical: at Realms.MarshalHelpers.GetString (Realms.MarshalHelpers/NativeStringGetter) [0x00020] in <6524e2bca61840fe83e3b491caf456a5>:0 2017-01-25 10:47:28.990 AltecService.iOS[91703:931565] critical: at Realms.ObjectHandle.GetString (intptr) [0x00020] in <6524e2bca61840fe83e3b491caf456a5>:0 2017-01-25 10:47:28.990 AltecService.iOS[91703:931565] critical: at Realms.RealmObject.GetStringValue (string) [0x00017] in <6524e2bca61840fe83e3b491caf456a5>:0 2017-01-25 10:47:28.990 AltecService.iOS[91703:931565] critical: at AltecService.ServiceRequest.get_SrId () [0x0000e] in <4450bc0b11de4d928513a7beccb7f821>:0 2017-01-25 10:47:28.990 AltecService.iOS[91703:931565] critical: at AltecService.ServiceRequestsPage.srSelected (object,Xamarin.Forms.SelectedItemChangedEventArgs) [0x0002b] in /Users/kmrichar/Documents/Git/altec-service/AltecService/Pages/ServiceRequest/ServiceRequests/ServiceRequestsPage.cs:156 2017-01-25 10:47:28.990 AltecService.iOS[91703:931565] critical: at (wrapper delegate-invoke) System.EventHandler`1<TEventArgs_REF>.invoke_void_object_TEventArgs (object,TEventArgs_REF) [0x00073] in <69565aa0839a4d2ba7987962c4848340>:0 2017-01-25 10:47:28.991 AltecService.iOS[91703:931565] critical: at Xamarin.Forms.ListView.OnSelectedItemChanged (Xamarin.Forms.BindableObject,object,object) [0x0000f] in C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Core\ListView.cs:588 2017-01-25 10:47:28.991 AltecService.iOS[91703:931565] critical: at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty,Xamarin.Forms.BindableObject/BindablePropertyContext,object,bool,Xamarin.Forms.BindableObject/SetValueFlags,bool) [0x00108] in C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Core\BindableObject.cs:584 2017-01-25 10:47:28.991 AltecService.iOS[91703:931565] critical: at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty,object,Xamarin.Forms.BindableObject/SetValueFlags,Xamarin.Forms.BindableObject/SetValuePrivateFlags) [0x0014b] in C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Core\BindableObject.cs:378 2017-01-25 10:47:28.991 AltecService.iOS[91703:931565] critical: at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty,object,Xamarin.Forms.BindableObject/SetValueFlags) [0x00000] in C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Core\BindableObject.cs:324 2017-01-25 10:47:28.991 AltecService.iOS[91703:931565] critical: at Xamarin.Forms.ListView.NotifyRowTapped (int,int,Xamarin.Forms.Cell) [0x00040] in C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Core\ListView.cs:408 2017-01-25 10:47:28.992 AltecService.iOS[91703:931565] critical: at Xamarin.Forms.ListView.Xamarin.Forms.IListViewController.NotifyRowTapped (int,int,Xamarin.Forms.Cell) [0x00000] in C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Core\ListView.cs:435 2017-01-25 10:47:28.992 AltecService.iOS[91703:931565] critical: at Xamarin.Forms.Platform.iOS.ListViewRenderer/ListViewDataSource.RowSelected (UIKit.UITableView,Foundation.NSIndexPath) [0x00047] in C:\BuildAgent2\work\ca3766cfc22354a1\Xamarin.Forms.Platform.iOS\Renderers\ListViewRenderer.cs:850 2017-01-25 10:47:28.992 AltecService.iOS[91703:931565] critical: at (wrapper runtime-invoke) <Module>.runtime_invoke_void__this___object_object (object,intptr,intptr,intptr) [0x0005b] in <ac56591e1d894d6e9d75eb79d488af29>:0 2017-01-25 10:47:28.992 AltecService.iOS[91703:931565] critical: at <unknown> <0xffffffff> 2017-01-25 10:47:28.992 AltecService.iOS[91703:931565] critical: at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0x00015> 2017-01-25 10:47:28.993 AltecService.iOS[91703:931565] critical: at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/3985/4e311372/source/xamarin-macios/src/UIKit/UIApplication.cs:79 2017-01-25 10:47:28.993 AltecService.iOS[91703:931565] critical: at UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/builder/data/lanes/3985/4e311372/source/xamarin-macios/src/UIKit/UIApplication.cs:63 2017-01-25 10:47:28.993 AltecService.iOS[91703:931565] critical: at AltecService.iOS.Application.Main (string[]) [0x00008] in /Users/kmrichar/Documents/Git/altec-service/iOS/Main.cs:12 2017-01-25 10:47:28.993 AltecService.iOS[91703:931565] critical: at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) [0x00051] in <4450bc0b11de4d928513a7beccb7f821>:0
Steps & Code to Reproduce
Run sample project => select an object from the list => make a transaction => go back to the list of objects => select another object => go back to the list of objects => select another object => Crash
Code Sample
https://www.dropbox.com/s/u1nyrtxd9z0r7xp/realmMashallerIssue.zip?dl=0
Version of Realm and tooling
Realm version(s): 0.82.0
Xamarin/Visual Studio version: Xamarin Studio: 6.2
Which operating system version and device: iOS and Android
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16 (7 by maintainers)
Do you think it would be possible to share your solution privately? We can sign an NDA if required. If I could see the code I would be able to offer much more relevant solutions.
This has been fixed in 0.82.1.