Search Issue Tracker
Fixed in 5.1.0
Votes
1
Found in
5.0.0f2
Issue ID
673824
Regression
No
[WebGL] TypeLoad Exception with Auto-Properties in build
To reproduce:
- Open the project and build to webgl
- Observe errors:
TypeLoadException: A type load exception has occurred.
System.Type.MakeGenericType (System.Type[] typeArguments)
System.Reflection.MonoProperty.CreateGetterDelegate (System.Reflection.MethodInfo method)
System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index)
FullSerializer.Internal.fsMetaProperty.Read (System.Object context)
FullSerializer.Internal.fsReflectedConverter.TrySerialize (System.Object instance, FullSerializer.fsData& serialized, System.Type storageType)
FullSerializer.fsSerializer.InternalSerialize_4_Converter (System.Object instance, FullSerializer.fsData& data)
FullSerializer.fsSerializer.InternalSerialize_3_ProcessVersioning (System.Object instance, FullSerializer.fsData& data)
FullSerializer.fsSerializer.InternalSerialize_2_Inheritance (System.Type storageType, System.Object instance, FullSerializer.fsData& data)
FullSerializer.fsSerializer.InternalSerialize_1_ProcessCycles (System.Type storageType, System.Object instance, FullSerializer.fsData& data)
FullSerializer.fsSerializer.TrySerialize (System.Type storageType, System.Object instance, FullSerializer.fsData& data)
StringSerializationAPI.Serialize (System.Type type, System.Object value)
Network.Start ()
Workaround is possible by changing 'Network' script:
public class TokenResponse
{
public string access_token { get; set; }
public string token_type { get; set; }
public int expires_in { get; set; }
}
to
public class TokenResponse
{
public string access_token;
public string token_type;
public int expires_in;
}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Add comment