App crashes after iOS/MAC/VS update latest

rughvi8784rughvi8784 GBMember ✭✭

This morning I have updated the iPad OS and MAC OS and VS 2017 and software updates.
Details of my software are as below
Xamarin forms
Xamarin.iOS 12.2.1.12
iOS 12.1.1
MAC OS X 10.
VS 7.7.2 (build 21)

App keep crashing. Deploys and installs the app through debug. But crashes on opening. I have attached the crash report. Any help is greatly appreciated.

Thanks.

Best Answer

  • rughvi8784rughvi8784 GB ✭✭
    Accepted Answer

    Thanks @Cdn_Euro and @ColeX for your time and suggestions.

    Finally resolved after a day of struggle. Couple of issues causing the crash.
    1. Dependency injection (FreshIoC) going into infinite recursion between 2 classes - my mistake (code issue). Unfortunately code change happened at the same time as updating the software versions. And neither crash report nor debug log clearly gave me the right direction to identify this. So had to blame the OS/software upgrade.

    1. Had to update Fody nuget package after updating the software/OS.

Answers

  • Cdn_EuroCdn_Euro Member ✭✭✭

    Can you copy and paste the output from debugging when the app crashes?

  • ColeXColeX Member, Xamarin Team Xamurai

    Try to use App center tool to analyse the crash .

  • rughvi8784rughvi8784 GBMember ✭✭

    @Cdn_Euro the debug output is

    warning HE0049: Ignoring wireless connection to igsipadair04 because wireless debugging is disabled for this device.
    Launched application 'net.intelligentgaming.neontablesx' on 'igsipadair04' with pid 474
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/Mono.Security.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/System.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/.monotouch-64/Xamarin.iOS.dll [External]
    Thread started: #2
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/System.Core.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/OpenTK-1.0.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/System.Xml.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/Xamarin.Forms.Platform.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/Xamarin.Forms.Core.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/System.Net.Http.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/System.ServiceModel.Internals.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/System.Runtime.Serialization.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/Xamarin.Forms.Platform.iOS.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/FreshIOC.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/FreshMvvm.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/IGNeonTablesXCore.dll
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/System.Reactive.Interfaces.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/System.Reactive.Core.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/System.Reactive.Linq.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/System.ServiceModel.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/IG.NeonTablesX.WCFPCL.dll
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/System.Numerics.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/System.Xml.Linq.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/Microsoft.CSharp.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/Newtonsoft.Json.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/IGNeonTablesXPCL.dll
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/Xamarin.Forms.Xaml.dll [External]
    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/IG.NeonTablesX.dll

    Loaded assembly: /private/var/containers/Bundle/Application/499564E3-F440-4BF9-93A3-3D1BFF47037F/IG.NeonTablesX.iOS.app/IG.NeonTablesX.iOS.exe

    DEBUG: 2019-01-04T08:30:32
    Enable Crash Reporting Value: False

    Thread started: #3

  • Cdn_EuroCdn_Euro Member ✭✭✭

    @rughvi8784 I personally cannot see any clear clue as to what the error might be at this point in that output but what I know from my experience so far is that when it crashes like that there is an unhandled exception somewhere. Try looking over your code and:

    1.Add "try catch" blocks wherever you think an exception might occur.
    2. Make sure you do null checks to avoid a null pointer exception.
    3. Make sure there is no reference to any uninitialized object/value.

    For me when I had this type of crash it was because one of those reasons most of the time.

  • rughvi8784rughvi8784 GBMember ✭✭
    Accepted Answer

    Thanks @Cdn_Euro and @ColeX for your time and suggestions.

    Finally resolved after a day of struggle. Couple of issues causing the crash.
    1. Dependency injection (FreshIoC) going into infinite recursion between 2 classes - my mistake (code issue). Unfortunately code change happened at the same time as updating the software versions. And neither crash report nor debug log clearly gave me the right direction to identify this. So had to blame the OS/software upgrade.

    1. Had to update Fody nuget package after updating the software/OS.
  • Cdn_EuroCdn_Euro Member ✭✭✭

    @rughvi8784 glad you solved it

  • ColeXColeX Member, Xamarin Team Xamurai

    @rughvi8784 Please mark your solution as answer.

Sign In or Register to comment.