question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crashing on relase, working on debug

See original GitHub issue

Hello !

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:open
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
davidbritchcommented, Jun 12, 2018

Thanks for letting me know. I’ll take a look.

1reaction
CarLoOSXcommented, Jun 11, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found