+1
Fixed

Error updating to Bolt 1.3.0

Jani Schulze 2 years ago updated by André Ivankio Hauer Ploszaj 2 years ago 9

I downloaded Bolt 1.3.0. And did everything according to the  update instructions to the step number 16. Then I got this: 

Here is the log:

ArgumentException: Arg_InsufficientSpace
Parameter name: chars
System.Text.UTF8Encoding.InternalGetChars (System.Byte* bytes, Int32 byteCount, System.Char* chars, Int32 charCount, System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg, Boolean flush) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Text/UTF8Encoding.cs:797)
System.Text.UTF8Encoding.InternalGetChars (System.Byte[] bytes, Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex, System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg, Boolean flush) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Text/UTF8Encoding.cs:744)
System.Text.UTF8Encoding+UTF8Decoder.GetChars (System.Byte[] bytes, Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Text/UTF8Encoding.cs:1114)
System.IO.StreamReader.ReadBuffer () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamReader.cs:358)
System.IO.StreamReader.Read (System.Char[] buffer, Int32 index, Int32 count) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamReader.cs:415)
System.IO.StreamReader.ReadToEnd () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamReader.cs:519)
System.IO.File.ReadAllText (System.String path, System.Text.Encoding encoding) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:588)
System.IO.File.ReadAllText (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:582)
Ludiq.ScriptReferenceResolver.Run (IEnumerable`1 paths, IEnumerable`1 replacements, Mode mode) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Utilities/ScriptReferenceResolver.cs:92)
Ludiq.ScriptReferenceResolver.Run () (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Utilities/ScriptReferenceResolver.cs:170)
Bolt.Migration_1_2_4_to_1_3_0.Run () (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Editor/Plugin/Migrations/Migration_1_2_4_to_1_3_0.cs:15)
Ludiq.UpdateMigrationPage+MigrationStep.Update () (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/UpdateWizard/UpdateMigrationPage.cs:218)
UnityEngine.Debug:LogException(Exception)
Ludiq.MigrationStep:OnGUI() (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/UpdateWizard/UpdateMigrationPage.cs:246)
Ludiq.UpdateMigrationPage:OnContentGUI() (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/UpdateWizard/UpdateMigrationPage.cs:115)
Ludiq.Page:DrawContent() (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Page.cs:71)
Ludiq.Wizard:OnGUI() (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/Wizard.cs:106)
Ludiq.WrappedEditorWindow:OnGUI() (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Windows/WrappedEditorWindow.cs:52)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)


Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
GOOD, I'M SATISFIED
Satisfaction mark by Jani Schulze 2 years ago

Fixed it by deleting the old Bolt.Flow.ProjectSettings.asset . Might still be something to look at. Please tell if you want to get the offending file.

I got forward, but now my Object Variables are missing. In upgrade instructions, there is a mention of this with hint to use: Tools > Ludiq > Developer > Fix Missing Scripts . I did that but once again, I got expection:

ArgumentException: Arg_InsufficientSpace
Parameter name: chars
System.Text.UTF8Encoding.InternalGetChars (System.Byte* bytes, Int32 byteCount, System.Char* chars, Int32 charCount, System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg, Boolean flush) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Text/UTF8Encoding.cs:797)
System.Text.UTF8Encoding.InternalGetChars (System.Byte[] bytes, Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex, System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg, Boolean flush) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Text/UTF8Encoding.cs:744)
System.Text.UTF8Encoding+UTF8Decoder.GetChars (System.Byte[] bytes, Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Text/UTF8Encoding.cs:1114)
System.IO.StreamReader.ReadBuffer () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamReader.cs:358)
System.IO.StreamReader.Read (System.Char[] buffer, Int32 index, Int32 count) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamReader.cs:415)
System.IO.StreamReader.ReadToEnd () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/StreamReader.cs:519)
System.IO.File.ReadAllText (System.String path, System.Text.Encoding encoding) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:588)
System.IO.File.ReadAllText (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:582)
Ludiq.ScriptReferenceResolver.Run (IEnumerable`1 paths, IEnumerable`1 replacements, Mode mode) (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Utilities/ScriptReferenceResolver.cs:92)
Ludiq.ScriptReferenceResolver.Run () (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Editor/Utilities/ScriptReferenceResolver.cs:170)

Got it working, I basically had to re-create Variables components.

+1
Working on Fix

Hi Jani! Thanks for the report.

Sorry you've had this issue. It's my mistake, sorry, I'm trying to read asset files at once (because it's easy), whereas some files are too big to hold in a single string and should be streamed for the replacement process.

I'll try to fix this ASAP on Monday.

+1

No worries, it is fixed for me already. Of course for others it is great to be fixed. Thanks for awesome product and support.

Having the same issue. An update would be great :)

+1
Fixed in Alpha

Fixed, will push a hotfix for this today.

Does this mean it's already on the asset store or should I get elsewhere? I'm never sure if everybody practices that hot fixes don't change version number.