Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Bug] EmbeddedResource Images not showing/TapGestures Not Recognized #14990

Closed
mike-01 opened this issue Dec 18, 2021 · 1 comment
Closed

[Bug] EmbeddedResource Images not showing/TapGestures Not Recognized #14990

mike-01 opened this issue Dec 18, 2021 · 1 comment
Labels
s/unverified New report that has yet to be verified t/bug 🐛

Comments

@mike-01
Copy link

mike-01 commented Dec 18, 2021

Description

Images not displaying and tap gesture not triggering on actual iPhone. The images do display and triggers do fire in the simulator. Same code as in article found at https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/images?tabs=windows, the "Embedded images" section.

This was working in Xamarin version prior to version 5. The things that changed: using Visual Studio 2022, Xamarin upgraded to 5.0, iOS upgraded to 15.2,

Basic Information

  • Version with issue: 5.0, iOS 15.2
  • Last known good version: prior to 5.0
  • Platform Target Frameworks:
    • iOS:
  • Affected Devices: iPhone SE 2nd

Environment

Show/Hide Visual Studio info
Microsoft Visual Studio Community 2022
Version 17.0.4
VisualStudio.17.Release/17.0.4+32014.148
Microsoft .NET Framework
Version 4.8.04084

Installed Version: Community

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

ASP.NET and Web Tools 2019   17.0.795.42246
ASP.NET and Web Tools 2019

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

Azure App Service Tools v3.0.0   17.0.795.42246
Azure App Service Tools v3.0.0

Azure Functions and Web Jobs Tools   17.0.795.42246
Azure Functions and Web Jobs Tools

C# Tools   4.0.1-1.21568.1+6ab6601178d9fba8c680b56934cd1742e0816bff
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

CodeRush for Roslyn   21.2.5.0
DevExpress CodeRush for Roslyn package.

CodeRush for Roslyn Tool Windows   21.2.5.0
DevExpress CodeRush for Roslyn Tool Windows package.

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.

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

Microsoft Library Manager   2.1.134+45632ee938.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 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.

Mono Debugging for Visual Studio   17.0.11 (54f19d2)
Support for debugging Mono processes with Visual Studio.

NuGet Package Manager   6.0.1
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)   17.0.0.2156603+e9cd763349a080127b6519ffbec0123949a4c385
Provides languages services for ASP.NET Core Razor.

SQL Server Data Tools   17.0.62110.20190
Microsoft SQL Server Data Tools

TypeScript Tools   17.0.1001.2002
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools   4.0.1-1.21568.1+6ab6601178d9fba8c680b56934cd1742e0816bff
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   17.0.0-beta.21522.2+6d626ff0752a77d339f609b4d361787dc9ca93a5
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 IntelliCode   2.2
AI-assisted development for Visual Studio.

Visual Studio Tools for Containers   1.0
Visual Studio Tools for Containers

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   17.0.0.343 (d17-0@fb07a17)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin Designer   17.0.0.183 (remotes/origin/d17-0@a351f0f1f)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.

Xamarin Templates   17.0.17 (9e779b0)
Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.

Xamarin.Android SDK   12.1.0.5 (d17-0/6b0e6b2)
Xamarin.Android Reference Assemblies and MSBuild support.
    Mono: c633fe9
    Java.Interop: xamarin/java.interop/d17-0@febb1367
    ProGuard: Guardsquare/proguard/v7.0.1@912d149
    SQLite: xamarin/sqlite/3.36.0@a575761
    Xamarin.Android Tools: xamarin/xamarin-android-tools/d17-0@a5194e9


Xamarin.iOS and Xamarin.Mac SDK   15.4.0.0 (8fc41ae82)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Debug window

=================================================================
	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:
=================================================================

2021-12-17 19:59:03.516 Xamarin.PreBuilt.iOS[2818:530149] Xamarin.iOS: Received unhandled ObjectiveC exception: NSMallocException Failed to grow buffer

2021-12-17 19:59:03.516 Xamarin.PreBuilt.iOS[2818:530176] Xamarin.iOS: Received unhandled ObjectiveC exception: NSMallocException Failed to grow buffer
2021-12-17 19:59:03.516 Xamarin.PreBuilt.iOS[2818:530197] Xamarin.iOS: Received unhandled ObjectiveC exception: NSMallocException Failed to grow buffer

2021-12-17 19:59:03.517 Xamarin.PreBuilt.iOS[2818:530196] Xamarin.iOS: Received unhandled ObjectiveC exception: NSMallocException Failed to grow buffer
2021-12-17 19:59:03.517 Xamarin.PreBuilt.iOS[2818:530178] Xamarin.iOS: Received unhandled ObjectiveC exception: NSMallocException Failed to grow buffer
2021-12-17 19:59:03.517 Xamarin.PreBuilt.iOS[2818:530148] Xamarin.iOS: Received unhandled ObjectiveC exception: NSMallocException Failed to grow buffer

2021-12-17 19:59:03.520 Xamarin.PreBuilt.iOS[2818:530196] Xamarin.iOS: Received unhandled ObjectiveC exception: NSMallocException Failed to grow buffer

	0x102ad01e0 - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : mono_dump_native_crash_info

	0x102ac6c5c - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : mono_handle_native_crash

	0x102ad3bb8 - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : mono_sigsegv_signal_handler_debug
	0x1f1b57c10 - /usr/lib/system/libsystem_platform.dylib : <redacted>
	0x1828c3744 - /System/Library/Frameworks/Foundation.framework/Foundation : <redacted>
	0x102c75c34 - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : do_icall
	0x102c742c4 - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : do_icall_wrapper
	0x102c6b1b8 - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : interp_exec_method_full

	0x102c69748 - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : interp_runtime_invoke
	0x102ad6e70 - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : mono_jit_runtime_invoke
	0x102b85188 - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : mono_runtime_try_invoke
	0x102bbf948 - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : worker_callback
	0x102bbd1bc - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : worker_thread
	0x102bc8144 - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : start_wrapper_internal
	0x102bc7fc8 - /private/var/containers/Bundle/Application/5798CDAC-1ADC-4
F66-B734-64D3B7D7E6BE/MobileMyWay.iOS.app/Xamarin.PreBuilt.iOS : start_wrapper
	0x1f1b5f9a4 - /usr/lib/system/libsystem_pthread.dylib : _pthread_start
	0x1f1b5eea0 - /usr/lib/system/libsystem_pthread.dylib : thread_start

=================================================================
	Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x1f1b56a9c):0x1f1b56a8c  21 00 05 8b 20 04 40 ac 21 80 00 91 42 00 05 cb  !... .@.!...B...
0x1f1b56a9c  02 0c 00 ac 42 00 01 f1 e9 00 00 54 60 04 00 ac  ....B......T`...
0x1f1b56aac  63 80 00 91 20 04 40 ac 21 80 00 91 42 80 00 f1  c... .@.!...B...
0x1f1b56abc  68 ff ff 54 21 00 02 8b 22 0c 40 ac 60 04 00 ac  h..T!...".@.`...

=================================================================
	Managed Stacktrace:
=================================================================
	  at <unknown> <0xffffffff>
	  at ObjCRuntime.Messaging:void_objc_msgSend_IntPtr_UIntPtr <0x00022>
	  at Foundati
on.NSMutableData:AppendBytes <0x00054>
	  at Foundation.NSData:FromStream <0x0010c>
	  at <LoadImageAsync>d__1:MoveNext <0x00160>
	  at MoveNextRunner:InvokeMoveNext <0x00012>
	  at <Module>:invoke_void_object <0x0009e>
	  at System.Threading.ExecutionContext:RunInternal <0x00134>
	  at System.Threading.ExecutionContext:Run <0x00016>
	  at MoveNextRunner:Run <0x00058>
	  at <Module>:invoke_void <0x00078>
	  at System.Threading.Tasks.AwaitTaskContinuation:System.Threading.IThreadPoolWorkItem.ExecuteWorkItem <0x00020>
	  at System.Threading.ThreadPoolWorkQueue:Dispatch <0x0014c>
	  at System.Func`1:invoke_TResult <0x00096>
	  at ObjCRuntime.Runtime:ThreadPoolDispatcher <0x0001e>
	  at System.Func`2:invoke_TResult_T <0x0009e>
	  at System.Threading._ThreadPoolWaitCallback:PerformWaitCallback <0x00038>
	  at <Module>:runtime_invoke_direct_bool <0x00036>
=================================================================

Screenshots

Reproduction Link

Workaround

@mike-01 mike-01 added s/unverified New report that has yet to be verified t/bug 🐛 labels Dec 18, 2021
@jfversluis
Copy link
Member

Looks the same as #14934 and #14905 and #14955 and some others :) please follow up in this support ticket here: https://developercommunity.visualstudio.com/t/iphone-ios-151-physical-debug/1572333

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
s/unverified New report that has yet to be verified t/bug 🐛
Projects
None yet
Development

No branches or pull requests

2 participants