You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This also impacts Newtonsoft.JSON a popular serialization library for C#:
Newtonsoft.Json.JsonSerializationException: Error getting value from'type' on '<>f__AnonymousType10`3[System.String,System.Int32,System.Int32]'.---> System.MethodAccessException:TransparentmethodNewtonsoft.Json.Utilities.ReflectionUtils:GetMemberValue (System.Reflection.MemberInfo,object)cannot create a delegate on private/internal method <>f__AnonymousType10`3<string,int,int>:get_type().
Full stacktrace
[ 55563] [b3095_GTAProce] 25820/ Unhandled task exception:
[ 55563] [b3095_GTAProce] 25820/ Newtonsoft.Json.JsonSerializationException: Error getting value from 'type' on '<>f__AnonymousType10`3[System.String,System.Int32,System.Int32]'. ---> System.MethodAccessException: Transparent method Newtonsoft.Json.Utilities.ReflectionUtils:GetMemberValue (System.Reflection.MemberInfo,object) cannot create a delegate on private/internal method <>f__AnonymousType10`3<string, int, int>:get_type ().
[ 55563] [b3095_GTAProce] 25820/ at (wrapper managed-to-native) System.Delegate:CreateDelegate_internal (System.Type,object,System.Reflection.MethodInfo,bool)
[ 55563] [b3095_GTAProce] 25820/ at System.Delegate.CreateDelegate (System.Type type, System.Object firstArgument, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure, System.Boolean allowClosed) [0x002f0] in <b575c7ac070e41ffa0751333b6ac9f42>:0
[ 55563] [b3095_GTAProce] 25820/ at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method, System.Boolean throwOnBindFailure) [0x00000] in <b575c7ac070e41ffa0751333b6ac9f42>:0
[ 55563] [b3095_GTAProce] 25820/ at System.Delegate.CreateDelegate (System.Type type, System.Reflection.MethodInfo method) [0x00000] in <b575c7ac070e41ffa0751333b6ac9f42>:0
[ 55563] [b3095_GTAProce] 25820/ at System.Reflection.MonoProperty.CreateGetterDelegate (System.Reflection.MethodInfo method) [0x0005e] in <b575c7ac070e41ffa0751333b6ac9f42>:0
[ 55563] [b3095_GTAProce] 25820/ at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x00053] in <b575c7ac070e41ffa0751333b6ac9f42>:0
[ 55563] [b3095_GTAProce] 25820/ at Newtonsoft.Json.Utilities.ReflectionUtils.GetMemberValue (System.Reflection.MemberInfo member, System.Object target) [0x00036] in <f7098f0ee85e4369974e6b04aa6d6c62>:0
[ 55563] [b3095_GTAProce] 25820/ at Newtonsoft.Json.Serialization.ReflectionValueProvider.GetValue (System.Object target) [0x00032] in <f7098f0ee85e4369974e6b04aa6d6c62>:0
[ 55563] [b3095_GTAProce] 25820/ --- End of inner exception stack trace ---
[ 55563] [b3095_GTAProce] 25820/ at Newtonsoft.Json.Serialization.ReflectionValueProvider.GetValue (System.Object target) [0x00068] in <f7098f0ee85e4369974e6b04aa6d6c62>:0
[ 55563] [b3095_GTAProce] 25820/ at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.CalculatePropertyValues (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContainerContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.Serialization.JsonContract& memberContract, System.Object& memberValue) [0x00066] in <f7098f0ee85e4369974e6b04aa6d6c62>:0
[ 55563] [b3095_GTAProce] 25820/ at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeObject (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonObjectContract contract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract collectionContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x0008d] in <f7098f0ee85e4369974e6b04aa6d6c62>:0
[ 55563] [b3095_GTAProce] 25820/ at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.SerializeValue (Newtonsoft.Json.JsonWriter writer, System.Object value, Newtonsoft.Json.Serialization.JsonContract valueContract, Newtonsoft.Json.Serialization.JsonProperty member, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x000b0] in <f7098f0ee85e4369974e6b04aa6d6c62>:0
[ 55563] [b3095_GTAProce] 25820/ at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00079] in <f7098f0ee85e4369974e6b04aa6d6c62>:0
[ 55563] [b3095_GTAProce] 25820/ at Newtonsoft.Json.JsonSerializer.SerializeInternal (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x0023a] in <f7098f0ee85e4369974e6b04aa6d6c62>:0
[ 55563] [b3095_GTAProce] 25820/ at Newtonsoft.Json.JsonSerializer.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <f7098f0ee85e4369974e6b04aa6d6c62>:0
[ 55563] [b3095_GTAProce] 25820/ at Newtonsoft.Json.JsonConvert.SerializeObjectInternal (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00028] in <f7098f0ee85e4369974e6b04aa6d6c62>:0
[ 55563] [b3095_GTAProce] 25820/ at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializerSettings settings) [0x00007] in <f7098f0ee85e4369974e6b04aa6d6c62>:0
[ 55563] [b3095_GTAProce] 25820/ at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value) [0x00000] in <f7098f0ee85e4369974e6b04aa6d6c62>:0
[ 55563] [b3095_GTAProce] 25820/ at GamboCityClient.HudModule.UpdateHudHealth () [0x0002a] in C:\Users\Imman\source\repos\GamboCity\Keyinator-FiveM-FFA-v1\KeyinatorClient\Module\HudModule.cs:64
[ 55563] [b3095_GTAProce] 25820/ at GamboCityClient.PlayerModule.Heal (System.Int32 health, System.Int32 armor, System.Boolean requestLock) [0x00033] in C:\Users\Imman\source\repos\GamboCity\Keyinator-FiveM-FFA-v1\KeyinatorClient\Module\PlayerModule.cs:358
[ 55563] [b3095_GTAProce] 25820/ at GamboCityClient.FirstSpawnModule.LoadBasicValues () [0x0006c] in C:\Users\Imman\source\repos\GamboCity\Keyinator-FiveM-FFA-v1\KeyinatorClient\Module\PlayerModule.cs:70
[ 55563] [b3095_GTAProce] 25820/ at GamboCityClient.FirstSpawnModule+<DoFirstSpawn>d__5.MoveNext () [0x0008a] in C:\Users\Imman\source\repos\GamboCity\Keyinator-FiveM-FFA-v1\KeyinatorClient\Module\PlayerModule.cs:23
Keyinator
changed the title
[...] cannot create a delegate on private/internal method [...] ().
MonoRT1: [...] cannot create a delegate on private/internal method [...] ().
Feb 6, 2025
What happened?
For some reasons private/internal methods cannot be accessed anymore on MonoRT1 which used to work before.
Full stacktrace
This also impacts Newtonsoft.JSON a popular serialization library for C#:
Full stacktrace
Expected result
The code should've run
Reproduction steps
Importancy
Crash
Area(s)
ScRT: C#
Specific version(s)
FiveM Client Canary
Additional information
Reports have started today and the issue only occurs on the canary (aka. "Latest (Unstable)") branch
The text was updated successfully, but these errors were encountered: