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.

[Bug] [iOS] Typeload exception breaks iOS debugger

See original GitHub issue

Screen Shot 2021-08-12 at 11 51 52 PM

I’m launching this demo on the debugger, and it fails with that error, which I didn’t have the last time I worked with the iOS debugger after installing preview 3. I can’t find a way to get rid of this misleading exception because everything works well on no-debugging mode or when the debugger has exited.

2021-08-12 23:50:50.562266+0200 mauitest[68883:2668356] warning: Can't find custom attr constructor image: data-0x7fbd2f67d000 mtoken: 0x0a000006 due to: Could not resolve type with token 01000008 from typeref (expected class 'System.Drawing.BitmapSuffixInSatelliteAssemblyAttribute' in assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') assembly:System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a type:System.Drawing.BitmapSuffixInSatelliteAssemblyAttribute member:(null)
**System.TypeLoadException:** 'Could not resolve type with token 01000008 from typeref (expected class 'System.Drawing.BitmapSuffixInSatelliteAssemblyAttribute' in assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')'

Using VS2022 Preview 3 and XCode 13.0 with Maui Blazor.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
mterhorstcommented, Aug 25, 2021

Same problem here on my MAUI android app. Disabling the XAML Hot Reload works, but error comes back once re enabled.

In my case the fix is to delete the obj, debug and .vs folders.

I filled a bug report to VS bug report site here https://developercommunity.visualstudio.com/t/XAML-Hot-Reload-SystemTypeLoadExcepti/1513744.

2reactions
TomBruyneelcommented, Aug 23, 2021

I have the same problem on an android device. But I noticed the error goes away when I turn off XAML Hot Reload. Re-enabling hot reload leads to the same error. So for the moment, you can debug your application as long as you don’t use hot reload

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lost connection to the debugger
After updating Xcode to version 12.5 and using simulator 14.5, I'm getting disconnected all the time from the debugger. Please can someone help...
Read more >
Breaking into the debugger on iPhone
For assert macros in my iPhone project, I'm looking for a way to programmatically break into the debugger. On Windows (MSVC++), ...
Read more >
Yo Apple: Xcode debugging Swift is *STILL* horribly broken
I've been reporting this problem for a long time now, and it's so bad I ... Yo Apple: Xcode debugging Swift is *STILL*...
Read more >
Can't Attach Visual Studio to iOS device
Hello everyone, I've got a problem with iOS managed debugging in VS Community for Mac. I'm using Unity 2018.2.6f1 and Visual Studio ...
Read more >
Xamarin iOS debug error "Launch failed. The app directory ...
After upgrading to VS 16.5.2, iOS debugging fails on every attempt for both Simulators and physical devices. Multiple members of my team are ......
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