Crashing on relase, working on debug
See original GitHub issueHello !
I have declared in many pages something like this:
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="xxx.Views.SplashPage"
xmlns:behaviors="clr-namespace:Behaviors;assembly=Behaviors"
xmlns:viewModelBase="clr-namespace:xxx.ViewModels.Base;assembly=xxx"
xmlns:markupExtensions="clr-namespace:xxx.ComponentModel.MarkupExtensions;assembly=xxx.forms"
viewModelBase:ViewModelLocator.AutoWireViewModel="true">
<!-- PAGE BEHAVIORS -->
<ContentPage.Behaviors>
<behaviors:EventHandlerBehavior
EventName="Appearing">
<behaviors:ActionCollection>
<behaviors:InvokeCommandAction
Command="{Binding Command}"
CommandParameter="{x:Reference Image}" />
</behaviors:ActionCollection>
</behaviors:EventHandlerBehavior>
</ContentPage.Behaviors>
<!-- PAGE CONTENT -->
<ContentPage.Content>
When I compile in debug I can run the application physically or in the simulator, but when I compile in Release and when I navigate to a page that contains some behavior, my application suddenly crashes and I get:
Got a SIGABRT while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.
Im using : Xamarin.Mac Version: 4.4.1.193 (Visual Studio Community) Xamarin.iOS Version: 11.12.0.4 (Visual Studio Community) Xamarin.Forms Version: 3.0.0.482510
Behaviors.Forms Version: 1.4.0
Any Ideas? I’ve tried to remove the action collection tag or removing the command and CommandParameter with no success.
Thank you!
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Program only crashes as release build -- how to debug?
Run EXE, and before the crash do an Attach To Process (Tools menu on Visual Studio). After the crash, select the option to...
Read more >Program crashes in release, but not in debug
I do not experience this issue while running in debug, only in release mode. This is usually caused by unintialized variables, but I've...
Read more >App crashes in release but not in debug on some phones.
I have an app that was working for quite some time now. I have a simple activity that retrieves JSON and stuffs it...
Read more >Solved Crash when run in Release mode?
Try running your Release executable under debugger. When it crashes inside debugger you still get trace back. If you are lucky, and it...
Read more >Crashes on release build of app but works fine on debug ...
Summary. Loading the map works fine on debug build but not release. Expected behavior. No crash. Observed behavior. Crash when loading map ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for letting me know. I’ll take a look.
Hello @michau33 , try adding all the files from the sample project library to yout own project. It should works, this is the only “solution” that is currently working for me.