Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stacktrace modification not recognizing constructor "names" properly #42

Open
erdelf opened this issue May 22, 2024 · 0 comments
Open

Comments

@erdelf
Copy link

erdelf commented May 22, 2024

Can't pinpoint it exactly,
but saw a couple times that static constructors are just listed like the top "unknown method" in the following stacktrace.
In this case the method is obvious of course thanks to the actual error message, but it's a general issue.

Error in static constructor of AlienRace.HarmonyPatches: System.TypeInitializationException: The type initializer for 'AlienRace.HarmonyPatches' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
[Ref 56BEC10D]
 at <0x271bd1919c0 + 0x0aaa0> <unknown method>
   --- End of inner exception stack trace ---
[Ref 296D5E52]
 at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
 at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <eae584ce26bc40229c1b1aa476bfa589>:0 
 at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00028] in <9f0455800725468190a2ddad977330df>:0 
     - POSTFIX LunarFramework.Bootstrap: Void LunarFramework.Internal.Patches.Patch_Verse_StaticConstructorOnStartupUtility:LateInit() 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)

Preferably it should show the type and method "name" like a usual stacktrace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant