79174813

Date: 2024-11-10 11:46:30
Score: 7.5 🚩
Natty:
Report link

Did you manage to fix this? I get a very similar error and stack trace. It make no sense. The application used to work and out of a sudden it started throwing this error:

Unhandled Exception:
System.ArgumentNullException: Value cannot be null. (Parameter 'obj')
   at System.ArgumentNullException.Throw(String paramName)
   at System.ArgumentNullException.ThrowIfNull(Object argument, String paramName)
   at System.Threading.Monitor.Enter(Object obj, Boolean& lockTaken)
   at ObjCRuntime.Class.ResolveTokenReference(UInt32 token_reference, UInt32 implicit_token_type) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Class.cs:line 480
   at ObjCRuntime.Class.ResolveMethodTokenReference(UInt32 token_reference) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Class.cs:line 465
   at ObjCRuntime.Runtime.GetMethodFromToken(UInt32 token_ref) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:line 885
   at ObjCRuntime.Runtime.get_method_from_token(UInt32 token_ref, IntPtr* exception_gchand
le) in /Users/builder/azdo/_work/1/s/xamarin-macios/runtime/Delegates.generated.cs:line 593
--- End of stack trace from previous location ---
   at ObjCRuntime.Runtime.RethrowManagedException(IntPtr exception_gchandle) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:line 573
   at Foundation.NSObject.InvokeOnMainThread(Action action) in /Users/builder/azdo/_work/1/s/xamarin-macios/src/Foundation/NSObject2.cs:line 808
   at Microsoft.Maui.ApplicationModel.MainThread.InvokeOnMainThread[UITraitCollection](Func1 factory)
   at Microsoft.Maui.ApplicationModel.AppInfoImplementation.get_RequestedTheme()
   at Microsoft.Maui.ApplicationModel.AppInfo.get_RequestedTheme()
   at Microsoft.Maui.Controls.Application..ctor(Boolean setCurrentApplication)
   at Microsoft.Maui.Controls.Application..ctor()
Reasons:
  • RegEx Blacklisted phrase (3): Did you manage to fix this
  • RegEx Blacklisted phrase (1.5): fix this?
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): I get a very similar error
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Alex Saba