mono / mono

Mono open source ECMA CLI, C# and .NET implementation.
https://www.mono-project.com
Other
11.13k stars 3.82k forks source link

Xamarin forms getting a segv in ios #21265

Open WillAutio opened 3 years ago

WillAutio commented 3 years ago

Steps to Reproduce

  1. Run my Xamarin Forms app in Visual Studio to connect to an iOS device. After it is all deployed, launch the app from the connected device.
  2. wait a few seconds and the I get the messages listed below

Current Behavior

on starting up in debug mode (have not tried release) I get the sigv message below. A few seconds later the app crashes.

[how do I even debug such a thing?]

Expected Behavior

That the app run so that I can debug it.

On which platforms did you notice this

[ x] macOS [ ] Linux [ ] Windows

Version Used:

Microsoft Visual Studio Professional 2019 Version 16.11.5 VisualStudio.16.Release/16.11.5+31729.503 Microsoft .NET Framework Version 4.8.04084

Installed Version: Professional

Visual C++ 2019 00435-60000-00000-AA195 Microsoft Visual C++ 2019

.NET Core Debugging with WSL 1.0 .NET Core Debugging with WSL

ADL Tools Service Provider 1.0 This package contains services used by Data Lake tools

ASA Service Provider 1.0

ASP.NET and Web Tools 2019 16.11.75.64347 ASP.NET and Web Tools 2019

ASP.NET Web Frameworks and Tools 2019 16.11.75.64347 For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0 16.11.75.64347 Azure App Service Tools v3.0.0

Azure Data Lake Node 1.0 This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio 2.6.1000.0 Microsoft Azure Data Lake Tools for Visual Studio

Azure Functions and Web Jobs Tools 16.11.75.64347 Azure Functions and Web Jobs Tools

Azure Stream Analytics Tools for Visual Studio 2.6.1000.0 Microsoft Azure Stream Analytics Tools for Visual Studio

C# Tools 3.11.0-4.21403.6+ae1fff344d46976624e68ae17164e0607ab68b10 C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Extensibility Message Bus 1.2.6 (master@34d6af2) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.

Fabric.DiagnosticEvents 1.0 Fabric Diagnostic Events

IntelliCode Extension 1.0 IntelliCode Visual Studio Extension Detailed Info

Microsoft Azure HDInsight Azure Node 2.6.1000.0 HDInsight Node under Azure Node

Microsoft Azure Hive Query Language Service 2.6.1000.0 Language service for Hive query

Microsoft Azure Service Fabric Tools for Visual Studio 16.10 Microsoft Azure Service Fabric Tools for Visual Studio

Microsoft Azure Stream Analytics Language Service 2.6.1000.0 Language service for Azure Stream Analytics

Microsoft Azure Stream Analytics Node 1.0 Azure Stream Analytics Node under Azure Node

Microsoft Azure Tools for Visual Studio 2.9 Support for Azure Cloud Services projects

Microsoft Continuous Delivery Tools for Visual Studio 0.4 Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.

Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft Library Manager 2.1.113+g422d40002e.RR Install client-side libraries easily to any web project

Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards 1.0 Microsoft Visual C++ Wizards

Microsoft Visual Studio Tools for Containers 1.2 Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.

Microsoft Visual Studio VC Package 1.0 Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio 16.10.15 (552afdf) Support for debugging Mono processes with Visual Studio.

NuGet Package Manager 5.11.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info

Razor (ASP.NET Core) 16.1.0.2122504+13c05c96ea6bdbe550bd88b0bf6cdddf8cde1725 Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools 16.0.62107.28140 Microsoft SQL Server Data Tools

ToolWindowHostedEditor 1.0 Hosting json editor into a tool window

TypeScript Tools 16.0.30526.2002 TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 3.11.0-4.21403.6+ae1fff344d46976624e68ae17164e0607ab68b10 Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 16.11.0-beta.21322.6+488cc578cafcd261d90d748d8aaa7b8b091232dc Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Container Tools Extensions 1.0 View, manage, and diagnose containers within Visual Studio.

Visual Studio Tools for Containers 1.0 Visual Studio Tools for Containers

Visual Studio Tools for Kubernetes 1.0 Visual Studio Tools for Kubernetes

VisualStudio.DeviceLog 1.0 Information about my package

VisualStudio.Foo 1.0 Information about my package

VisualStudio.Mac 1.0 Mac Extension for Visual Studio

Xamarin 16.11.000.190 (d16-11@2391ed9) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer 16.11.0.17 (remotes/origin/11e0001f0b17269345e80b58fb3adf1ba4efe2cd@11e0001f0) Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates 16.10.5 (355b57a) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK 11.4.0.5 (d16-11/7776c9f) Xamarin.Android Reference Assemblies and MSBuild support. Mono: c633fe9 Java.Interop: xamarin/java.interop/d16-11@48766c0 ProGuard: Guardsquare/proguard/v7.0.1@912d149 SQLite: xamarin/sqlite/3.35.4@85460d3 Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-11@683f375

Xamarin.iOS and Xamarin.Mac SDK 15.0.0.8 (0796d78dc) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Stacktrace

2021-10-28 09:53:19.374 Xamarin.PreBuilt.iOS[694:223862] Xamarin.iOS: Successfully received USB connection from the IDE on port 10000, fd: 6

2021-10-28 09:53:19.377 Xamarin.PreBuilt.iOS[694:223862] Xamarin.iOS: Processing: 'start profiler: no'

2021-10-28 09:53:19.377 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Profiler not loaded (disabled)

Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.iOS.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Mono.Security.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS.exe [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.iOS.HotRestart.Application.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/netstandard.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.Core.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.Xml.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.Numerics.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.Data.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.Transactions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.Data.DataSetExtensions.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.Drawing.Common.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.IO.Compression.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.IO.Compression.FileSystem.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.ComponentModel.Composition.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.Net.Http.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.Runtime.Serialization.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.ServiceModel.Internals.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.Web.Services.dll [External]
Loaded assembly: /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/System.Xml.Linq.dll [External]
Thread started:  #2
2021-10-28 09:53:20.022 Xamarin.PreBuilt.iOS[694:223824] Content folder: /var/mobile/Containers/Data/Application/CF5A532B-A1B7-4D2F-8C8D-49C6F31FCB1A/Documents/i_TraxMobile.iOS.content

Thread started:  #3
Thread started: <Thread Pool> #4
Thread started: <Thread Pool> #5
Thread started: <Thread Pool> #6
2021-10-28 09:53:20.284 Xamarin.PreBuilt.iOS[694:223824] Forms app path /var/mobile/Containers/Data/Application/CF5A532B-A1B7-4D2F-8C8D-49C6F31FCB1A/Documents/i_TraxMobile.iOS.content/i_TraxMobile.iOS.exe

2021-10-28 09:53:20.285 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Unable to locate assembly 'i_TraxMobile' (culture: '')

2021-10-28 09:53:20.285 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Unable to locate assembly 'i_TraxMobile' (culture: '')

2021-10-28 09:53:20.286 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Platform.iOS' (culture: '')

2021-10-28 09:53:20.286 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Platform.iOS' (culture: '')

2021-10-28 09:53:20.287 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Core' (culture: '')

Loaded assembly: /private/var/mobile/Containers/Data/Application/CF5A532B-A1B7-4D2F-8C8D-49C6F31FCB1A/Documents/i_TraxMobile.iOS.content/i_TraxMobile.iOS.exe
2021-10-28 09:53:20.287 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Unable to locate assembly 'Xamarin.Forms.Core' (culture: '')

2021-10-28 09:53:20.288 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Unable to locate assembly 'Syncfusion.SfAutoComplete.XForms.iOS' (culture: '')
2021-10-28 09:53:20.289 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Unable to locate assembly 'Syncfusion.SfAutoComplete.XForms.iOS' (culture: '')

2021-10-28 09:53:20.289 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Unable to locate assembly 'Syncfusion.SfAutoComplete.XForms' (culture: '')

2021-10-28 09:53:20.289 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Unable to locate assembly 'Syncfusion.SfAutoComplete.XForms' (culture: '')

2021-10-28 09:53:20.290 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Unable to locate assembly 'Syncfusion.Core.XForms' (culture: '')

2021-10-28 09:53:20.290 Xamarin.PreBuilt.iOS[694:223824] Xamarin.iOS: Unable to locate assembly 'Syncfusion.Core.XForms' (culture: '')

Loaded assembly: /private/var/mobile/Containers/Data/Application/CF5A532B-A1B7-4D2F-8C8D-49C6F31FCB1A/Documents/i_TraxMobile.iOS.content/i_TraxMobile.dll
Loaded assembly: /private/var/mobile/Containers/Data/Application/CF5A532B-A1B7-4D2F-8C8D-49C6F31FCB1A/Documents/i_TraxMobile.iOS.content/Xamarin.Forms.Platform.iOS.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CF5A532B-A1B7-4D2F-8C8D-49C6F31FCB1A/Documents/i_TraxMobile.iOS.content/Xamarin.Forms.Core.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CF5A532B-A1B7-4D2F-8C8D-49C6F31FCB1A/Documents/i_TraxMobile.iOS.content/Syncfusion.SfAutoComplete.XForms.iOS.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CF5A532B-A1B7-4D2F-8C8D-49C6F31FCB1A/Documents/i_TraxMobile.iOS.content/Syncfusion.SfAutoComplete.XForms.dll [External]
Loaded assembly: /private/var/mobile/Containers/Data/Application/CF5A532B-A1B7-4D2F-8C8D-49C6F31FCB1A/Documents/i_TraxMobile.iOS.content/Syncfusion.Core.XForms.dll [External]
2021-10-28 09:53:20.323 Xamarin.PreBuilt.iOS[694:223824] Xamarin.Forms AppDelegate name: AppDelegate

=================================================================
    Native Crash Reporting
=================================================================
Got a segv while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

=================================================================
    Native stacktrace:
=================================================================

    0x104b44124 - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_dump_native_crash_info
    0x104b3abe4 - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_handle_native_crash

    0x104b47afc - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_sigsegv_signal_handler_debug
    0x1d3eac29c - /usr/lib/system/libsystem_platform.dylib : <redacted>
    0x188a485ec - /usr/lib/system/libdyld.dylib : <redacted>
    0x188a38008 - /usr/lib/system/libdyld.dylib : <redacted>
    0x188a48418 - /usr/lib/system/libdyld.dylib : <redacted>
    0x188a38948 - /usr/lib/system/libdyld.dylib : <redacted>
    0x188a48f30 - /usr/lib/system/libdyld.dylib : <redacted>
    0x188a489c0 - /usr/lib/system/libdyld.dylib : <redacted>
    0x188a4a928 - /usr/lib/system/libdyld.dylib : <redacted>
    0x188a3becc - /usr/lib/system/libdyld.dylib : <redacted>

    0x104cea194 - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : do_icall
    0x104ce8854 - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : do_icall_wrapper

    0x104cdf748 - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full

    0x104cddcd8 - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
    0x104b4adb4 - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke
    0x104bf7878 - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_invoke_checked
    0x104bfcaec - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_exec_main_checked

    0x104b2f7d8 - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_exec
    0x104cdbda4 - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : xamarin_main

    0x104af72cc - /private/var/containers/Bundle/Application/4A37AF40-6FC1-4649-81FF-7F62BB67E1F1/i_TraxMobile.iOS.app/Xamarin.PreBuilt.iOS : main
    0x188a36cf8 - /usr/lib/system/libdyld.dylib : <redacted>

=================================================================
    Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x10f83b11c):0x10f83b10c  
c3 bc 00 94 e0 03 13 aa 5f 00 03 94 20 00 20 d4  ........_... . .
0x10f83b11c  f4 4f be a9 fd 7b 01 a9 fd 43 00 91 73 09 00 b0  .O...{...C..s...
0x10f83b12c  73 82 2b 91 61 08 00 b0 21 38 2f 91 e0 03 13 aa  s.+.a...!8/.....
0x10f83b13c  02 00 ae 52 63 bc 00 94 60 82 01 91 ce bc 00 94  ...Rc...`.......

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at ObjCRuntime.Dlfcn:_dlopen <0x00026>
      at ObjCRuntime.Dlfcn:dlopen <0x00010>
      at ObjCRuntime.Dlfcn:dlopen <0x00010>
      at <>c:<Main>b__0_0 <0x0000c>
      at System.Action`1:invoke_void_T <0x0007c>
      at Xamarin.iOS.HotRestart.Application:LoadFrameworks <0x00072>
      at Xamarin.iOS.HotRestart.Application:Run <0x0018e>
      at Xamarin.PreBuilt.iOS.Applications:Main <0x0005a>
      at <Module>:runtime_invoke_direct_void_string[] <0x00092>
=================================================================

The app has been terminated.
StephaniesHusband commented 2 years ago

Same issue. Tried upgrading to VS 2022 and still same.