0
Unity Bug

2.0.0a9 - Failed to write Gradient.Mode

David Svezhintsev 1 year ago updated by Lazlo Bonin (Lead Developer) 1 year ago 1

Empty project, after Fast Extract process completes Unity has about 10 same warnings about Gradient.Mode:

Failed to write Gradient.mode, due to Unity's API disallowing setting of this member on other threads than the main thread. Gradient.mode will have been lost upon deserialization.
UnityEngine.Debug:LogWarning(Object, Object)
Ludiq.SerializationLogger:LogWarning(String) (at Assets/Ludiq/Ludiq.Core/Runtime/Serialization/SerializationLogger.cs:19)
Ludiq.OdinSerializer.DebugContext:LogWarning(String) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Misc/SerializationConfig.cs:207)
Ludiq.OdinSerializer.GradientFormatter:Write(Gradient&, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Unity Integration/Formatters/GradientFormatter.cs:101)
Ludiq.OdinSerializer.MinimalBaseFormatter`1:Serialize(Gradient, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/MinimalBaseFormatter.cs:75)
Ludiq.OdinSerializer.MinimalBaseFormatter`1:Ludiq.OdinSerializer.IFormatter.Serialize(Object, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/MinimalBaseFormatter.cs:87)
Ludiq.OdinSerializer.ComplexTypeSerializer`1:WriteValue(String, Object, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Serializers/ComplexTypeSerializer.cs:640)
System.Object:Dynamic_Write_Ludiq.Bolt.ValueInputData(ValueInputData&, IDataWriter)
Ludiq.OdinSerializer.RuntimeEmittedFormatter`1:WriteDataEntries(ValueInputData&, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/FormatterEmitter.cs:115)
Ludiq.OdinSerializer.EasyBaseFormatter`1:SerializeImplementation(ValueInputData&, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/EasyBaseFormatter.cs:59)
Ludiq.OdinSerializer.BaseFormatter`1:Serialize(ValueInputData, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/BaseFormatter.cs:307)
Ludiq.OdinSerializer.BaseFormatter`1:Ludiq.OdinSerializer.IFormatter.Serialize(Object, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/BaseFormatter.cs:163)
Ludiq.OdinSerializer.ComplexTypeSerializer`1:WriteValue(String, ValueInputData, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Serializers/ComplexTypeSerializer.cs:640)
Ludiq.OdinSerializer.DerivedDictionaryFormatter`3:SerializeImplementation(Dictionary`2&, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/DerivedDictionaryFormatter.cs:190)
Ludiq.OdinSerializer.BaseFormatter`1:Serialize(Dictionary`2, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/BaseFormatter.cs:307)
Ludiq.OdinSerializer.BaseFormatter`1:Ludiq.OdinSerializer.IFormatter.Serialize(Object, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/BaseFormatter.cs:163)
Ludiq.OdinSerializer.ComplexTypeSerializer`1:WriteValue(String, Dictionary`2, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Serializers/ComplexTypeSerializer.cs:640)
System.Object:Dynamic_Write_Ludiq.Bolt.BinaryOperatorUnit(BinaryOperatorUnit&, IDataWriter)
Ludiq.OdinSerializer.RuntimeEmittedFormatter`1:WriteDataEntries(BinaryOperatorUnit&, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/FormatterEmitter.cs:115)
Ludiq.OdinSerializer.EasyBaseFormatter`1:SerializeImplementation(BinaryOperatorUnit&, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/EasyBaseFormatter.cs:59)
Ludiq.OdinSerializer.BaseFormatter`1:Serialize(BinaryOperatorUnit, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/BaseFormatter.cs:307)
Ludiq.OdinSerializer.BaseFormatter`1:Ludiq.OdinSerializer.IFormatter.Serialize(Object, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Formatters/BaseFormatter.cs:163)
Ludiq.OdinSerializer.ComplexTypeSerializer`1:WriteValue(String, BinaryOperatorUnit, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Serializers/ComplexTypeSerializer.cs:640)
Ludiq.OdinSerializer.Serializer`1:WriteValue(BinaryOperatorUnit, IDataWriter) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Serializers/Serializer.cs:291)
Ludiq.OdinSerializer.SerializationUtility:SerializeValue(BinaryOperatorUnit, IDataWriter, List`1&) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Misc/SerializationUtility.cs:222)
Ludiq.OdinSerializer.SerializationUtility:SerializeValue(BinaryOperatorUnit, Stream, DataFormat, List`1&, SerializationContext) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Misc/SerializationUtility.cs:349)
Ludiq.OdinSerializer.SerializationUtility:SerializeValue(BinaryOperatorUnit, DataFormat, List`1&, SerializationContext) (at C:/Users/lazlo/Projects/LudiqOdinSerializer/OdinSerializer/Core/Misc/SerializationUtility.cs:428)
Ludiq.Serialization:OdinSerialize(BinaryOperatorUnit, SerializationData&, DataFormat) (at Assets/Ludiq/Ludiq.Core/Runtime/Serialization/Serialization.cs:391)
Ludiq.Serialization:OdinSerialize(BinaryOperatorUnit, DataFormat) (at Assets/Ludiq/Ludiq.Core/Runtime/Serialization/Serialization.cs:372)
Ludiq.Bolt.UnitOption`1:Serialize() (at Assets/Ludiq/Bolt.Flow/Editor/Options/UnitOption.cs:151)
Ludiq.Bolt.BinaryOperatorUnitOption:Serialize() (at Assets/Ludiq/Bolt.Flow/Editor/Units/Codebase/BinaryOperatorUnitOption.cs:90)
Ludiq.Bolt.<>c:b__12_1(IUnitOption) (at Assets/Ludiq/Bolt.Flow/Editor/Options/UnitOptionsExtractor.cs:90)
Ludiq.<>c__DisplayClass4_0`2:b__0(IUnitOption) (at Assets/Ludiq/Ludiq.Core/Editor/Tasks/TaskLinq.cs:113)
Ludiq.<>c__DisplayClass3_2`2:b__1(IUnitOption) (at Assets/Ludiq/Ludiq.Core/Editor/Tasks/TaskLinq.cs:81)
System.Threading._ThreadPoolWaitCallback:PerformWaitCallback()
Bolt Version:
2.0.0a9
Unity Version:
2019.3.2f1
Platform(s):
Windows
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET 4.x
Bolt 2
Unity Bug

Confirmed, that's a Unity bug really, but I can look into getting rid of the warning.