![]() NETPortable,Version=v4.6,Profile=Profile31 has unknown RuntimeVersion 4.6 NETPortable,Version=v4.6,Profile=Profile157 has unknown RuntimeVersion 4.6 NETPortable,Version=v4.6,Profile=Profile151 has unknown RuntimeVersion 4.6 NETPortable,Version=v4.6 has unknown RuntimeVersion 4.6 INFO : Add-in loaded: MonoDevelop.DocFood INFO : Add-in loaded: MonoDevelop.RegexToolkit INFO : Add-in loaded: MonoDevelop.AssemblyBrowser INFO : Add-in loaded: MonoDevelop.GtkCore INFO : Add-in loaded: MonoDevelop.WebReferences INFO : Add-in loaded: MonoDevelop.Deployment INFO : Add-in loaded: MonoDevelop.PackageManagement INFO : Add-in loaded: MonoDevelop.VersionControl INFO : Add-in loaded: MonoDevelop.FSharpBinding INFO : Add-in loaded: MonoDevelop.VBBinding INFO : Add-in loaded: MonoDevelop.CSharpBinding INFO : Add-in loaded: MonoDevelop.Refactoring INFO : Add-in loaded: MonoDevelop.DesignerSupport INFO : Add-in loaded: MonoDevelop.TextTemplating INFO : Add-in loaded: MonoDevelop.SourceEditor2 INFO : Add-in loaded: MonoDevelop.Debugger NETCore,Version=v5.0 has unknown RuntimeVersion 5.0 INFO : Add-in loaded: MonoDevelop.WindowsPlatform INFO : Operating System: Windows 6.0 (64-bit) Location: /Applications/Xamarin Android Player.appĭarwin 360-MACMINIs-Mac-mini-2.local 15.2.0 Darwin Kernel Version 15.2.0 ![]() Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_60-b27) I have checked this issue with latest Stable XS XamarinStudio-5.10.1.6_0b60eecdb531933734519c13257d16a780274aab.dmg and able to reproduce the issue by following the steps mentioned in above Description. Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode) Java(TM) SE Runtime Environment (build 1.7.0_79-b15) Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin ProfilerĪndroid SDK: /Users/apple/Library/Developer/Xamarin/android-sdk-mac_x86 This also resolves the issue without disabling the compiler optimizations or ignoring the assembly. `resultEx = (DateTimeOffset)serializer.ReadObject(stream) ` I also noted that simply disabling the "Enable Optimizations" option on the Project Options-?Compiler page also resolves the issue.Īlso if you leave the project options as is in the test project and just comment out line 52 of MainActivity.cs Ignoring the assembly in the Project Options->Android Build->Linker page resolves the issue (as does the "Don't link" option of course). (Give it a couple of seconds)īased on the exception and trace this seem to be an issue with a method having been stripped away by the linker. Run the app to an Android device in release configurationĪctual result: App crashes with Exception and stacktrace linked below. Load the attached test project (Used Xamarin Studio for testing)Ģ. This issue only occurs in a Release configuration when deployed to a device.ġ. IOW that method call is in a static method added to MainActivity, but the static method is never called. In a simple test app that serializes a DateTimeOffset object on a button click, the app will crash with below exception and stack trace if DataContractJsonSerializer.ReadObject method call is in the app, even though the method call is never run.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |