ink-unity-integration icon indicating copy to clipboard operation
ink-unity-integration copied to clipboard

Array errors while compiling

Open rhys-vdw opened this issue 5 years ago • 2 comments

ink-unity-integration 0.9.71

These are probably errors in the compiler itself, but I'm not sure. This is the order they appeared.

image

Unhandled error(s) occurred compiling Ink file 'Assets/_Game/Stories/UltraNance.ink'! Please report following error(s) as a bug:
Ink Compiler threw exception 
Error: length
---- Trace ----
  at System.Array.Copy (System.Array sourceArray, System.Int32 sourceIndex, System.Array destinationArray, System.Int32 destinationIndex, System.Int32 length) [0x000c3] in <9577ac7a62ef43179789031239ba8798>:0 
  at System.Collections.Generic.HashSet`1[T].SetCapacity (System.Int32 newSize) [0x0000f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Collections.Generic.HashSet`1[T].IncreaseCapacity () [0x00020] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Collections.Generic.HashSet`1[T].AddIfNotPresent (T value) [0x000b3] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Collections.Generic.HashSet`1[T].Add (T item) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at Ink.CharacterRange.ToCharacterSet () [0x00032] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\CharacterRange.cs:32 
  at Ink.InkParser.ExtendIdentifierCharacterRanges (Ink.CharacterSet identifierCharSet) [0x00013] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_CharacterRanges.cs:34 
  at Ink.InkParser.get_identifierCharSet () [0x00040] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Logic.cs:403 
  at Ink.InkParser.Identifier () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Logic.cs:375 
  at Ink.StringParser.Parse[T] (Ink.StringParser+SpecificParseRule`1[T] rule) [0x00008] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:257 
  at Ink.InkParser.AuthorWarning () [0x00008] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_AuthorWarning.cs:11 
  at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 
  at Ink.InkParser+<>c__DisplayClass142_0.<Line>b__0 () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:147 
  at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 
  at Ink.StringParser.OneOf (Ink.StringParser+ParseRule[] array) [0x0000d] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:270 
  at Ink.InkParser.StatementAtLevel (Ink.InkParser+StatementLevel level) [0x0000a] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:38 
  at Ink.InkParser+<>c__DisplayClass137_0.<StatementsAtLevel>b__0 () [0x00000] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:30 
  at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 
  at Ink.StringParser.Interleave[T] (Ink.StringParser+ParseRule ruleA, Ink.StringParser+ParseRule ruleB, Ink.StringParser+ParseRule untilTerminator, System.Boolean flatten) [0x00063] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:383 
  at Ink.InkParser.StatementsAtLevel (Ink.InkParser+StatementLevel level) [0x0004e] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:28 
  at Ink.InkParser.Parse () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser.cs:46 
  at Ink.Compiler.Parse () [0x00034] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\Compiler.cs:35 
  at Ink.Compiler.Compile () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\Compiler.cs:41 
  at Ink.UnityIntegration.InkCompiler.CompileInkThreaded (System.Object itemObj) [0x00094] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\Editor\Core\Compiler\InkCompiler.cs:339 
--------

Ink Compiler threw exception 
Error: Index was outside the bounds of the array.
---- Trace ----
  at System.Collections.Generic.HashSet`1[T].AddIfNotPresent (T value) [0x000d9] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Collections.Generic.HashSet`1[T].Add (T item) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at Ink.CharacterRange.ToCharacterSet () [0x00032] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\CharacterRange.cs:32 
  at Ink.InkParser.ExtendIdentifierCharacterRanges (Ink.CharacterSet identifierCharSet) [0x00013] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_CharacterRanges.cs:34 
  at Ink.InkParser.get_identifierCharSet () [0x00040] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Logic.cs:403 
  at Ink.InkParser.Identifier () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Logic.cs:375 
  at Ink.StringParser.Parse[T] (Ink.StringParser+SpecificParseRule`1[T] rule) [0x00008] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:257 
  at Ink.InkParser.AuthorWarning () [0x00008] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_AuthorWarning.cs:11 
  at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 
  at Ink.InkParser+<>c__DisplayClass142_0.<Line>b__0 () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:147 
  at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 
  at Ink.StringParser.OneOf (Ink.StringParser+ParseRule[] array) [0x0000d] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:270 
  at Ink.InkParser.StatementAtLevel (Ink.InkParser+StatementLevel level) [0x0000a] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:38 
  at Ink.InkParser+<>c__DisplayClass137_0.<StatementsAtLevel>b__0 () [0x00000] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:30 
  at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 
  at Ink.StringParser.Interleave[T] (Ink.StringParser+ParseRule ruleA, Ink.StringParser+ParseRule ruleB, Ink.StringParser+ParseRule untilTerminator, System.Boolean flatten) [0x00063] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:383 
  at Ink.InkParser.StatementsAtLevel (Ink.InkParser+StatementLevel level) [0x0004e] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:28 
  at Ink.InkParser.Parse () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser.cs:46 
  at Ink.Compiler.Parse () [0x00034] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\Compiler.cs:35 
  at Ink.Compiler.Compile () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\Compiler.cs:41 
  at Ink.UnityIntegration.InkCompiler.CompileInkThreaded (System.Object itemObj) [0x00094] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\Editor\Core\Compiler\InkCompiler.cs:339 
--------


UnityEngine.Debug:LogError(Object)
Ink.UnityIntegration.InkCompiler:DelayedComplete() (at Library/PackageCache/[email protected]/Editor/Core/Compiler/InkCompiler.cs:395)
Ink.UnityIntegration.InkCompiler:Update() (at Library/PackageCache/[email protected]/Editor/Core/Compiler/InkCompiler.cs:116)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Unhandled error(s) occurred compiling Ink file 'Assets/_Game/Stories/NegativeNancy.ink'! Please report following error(s) as a bug:
Ink Compiler threw exception 
Error: Index was outside the bounds of the array.
---- Trace ----
  at System.Collections.Generic.HashSet`1+Enumerator[T].MoveNext () [0x0001e] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at Ink.CharacterSet.AddCharacters (System.Collections.Generic.IEnumerable`1[T] chars) [0x0001c] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\CharacterSet.cs:37 
  at Ink.InkParser.ExtendIdentifierCharacterRanges (Ink.CharacterSet identifierCharSet) [0x00013] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_CharacterRanges.cs:34 
  at Ink.InkParser.get_identifierCharSet () [0x00040] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Logic.cs:403 
  at Ink.InkParser.Identifier () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Logic.cs:375 
  at Ink.StringParser.Parse[T] (Ink.StringParser+SpecificParseRule`1[T] rule) [0x00008] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:257 
  at Ink.InkParser.AuthorWarning () [0x00008] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_AuthorWarning.cs:11 
  at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 
  at Ink.InkParser+<>c__DisplayClass142_0.<Line>b__0 () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:147 
  at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 
  at Ink.StringParser.OneOf (Ink.StringParser+ParseRule[] array) [0x0000d] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:270 
  at Ink.InkParser.StatementAtLevel (Ink.InkParser+StatementLevel level) [0x0000a] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:38 
  at Ink.InkParser+<>c__DisplayClass137_0.<StatementsAtLevel>b__0 () [0x00000] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:30 
  at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 
  at Ink.StringParser.Interleave[T] (Ink.StringParser+ParseRule ruleA, Ink.StringParser+ParseRule ruleB, Ink.StringParser+ParseRule untilTerminator, System.Boolean flatten) [0x00063] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:383 
  at Ink.InkParser.StatementsAtLevel (Ink.InkParser+StatementLevel level) [0x0004e] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:28 
  at Ink.InkParser.Parse () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser.cs:46 
  at Ink.Compiler.Parse () [0x00034] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\Compiler.cs:35 
  at Ink.Compiler.Compile () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\Compiler.cs:41 
  at Ink.UnityIntegration.InkCompiler.CompileInkThreaded (System.Object itemObj) [0x00094] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\Editor\Core\Compiler\InkCompiler.cs:339 
--------


UnityEngine.Debug:LogError(Object)
Ink.UnityIntegration.InkCompiler:DelayedComplete() (at Library/PackageCache/[email protected]/Editor/Core/Compiler/InkCompiler.cs:395)
Ink.UnityIntegration.InkCompiler:Update() (at Library/PackageCache/[email protected]/Editor/Core/Compiler/InkCompiler.cs:116)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Ink compilation completed with errors at 9:32:48 AM
Files compiled:
Assets/_Game/Stories/UltraNance.ink (0.0759646s) (With unhandled error)
Assets/_Game/Stories/NegativeNancy.ink (0.0391835s) (With unhandled error)
UnityEngine.Debug:LogError(Object)
Ink.UnityIntegration.InkCompiler:DelayedComplete() (at Library/PackageCache/[email protected]/Editor/Core/Compiler/InkCompiler.cs:432)
Ink.UnityIntegration.InkCompiler:Update() (at Library/PackageCache/[email protected]/Editor/Core/Compiler/InkCompiler.cs:116)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

rhys-vdw avatar Jan 06 '21 22:01 rhys-vdw

Is this a one off or is it consistent? I’ve seen this before, when compiling several stories at the same time on different threads. This shouldn’t happen on latest though!

On Wed, 6 Jan 2021 at 22:39, Rhys van der Waerden [email protected] wrote:

ink-unity-integration 0.9.71

These are probably errors in the compiler itself, but I'm not sure. This is the order they appeared.

[image: image] https://user-images.githubusercontent.com/822105/103827048-32c12000-50cc-11eb-946b-b5fb4addb1bb.png

Unhandled error(s) occurred compiling Ink file 'Assets/_Game/Stories/UltraNance.ink'! Please report following error(s) as a bug: Ink Compiler threw exception Error: length ---- Trace ---- at System.Array.Copy (System.Array sourceArray, System.Int32 sourceIndex, System.Array destinationArray, System.Int32 destinationIndex, System.Int32 length) [0x000c3] in <9577ac7a62ef43179789031239ba8798>:0 at System.Collections.Generic.HashSet1[T].SetCapacity (System.Int32 newSize) [0x0000f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Collections.Generic.HashSet1[T].IncreaseCapacity () [0x00020] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Collections.Generic.HashSet1[T].AddIfNotPresent (T value) [0x000b3] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Collections.Generic.HashSet1[T].Add (T item) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at Ink.CharacterRange.ToCharacterSet () [0x00032] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\CharacterRange.cs:32 at Ink.InkParser.ExtendIdentifierCharacterRanges (Ink.CharacterSet identifierCharSet) [0x00013] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_CharacterRanges.cs:34 at Ink.InkParser.get_identifierCharSet () [0x00040] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Logic.cs:403 at Ink.InkParser.Identifier () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Logic.cs:375 at Ink.StringParser.Parse[T] (Ink.StringParser+SpecificParseRule`1[T] rule) [0x00008] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:257 at Ink.InkParser.AuthorWarning () [0x00008] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_AuthorWarning.cs:11 at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 at Ink.InkParser+<>c__DisplayClass142_0.<Line>b__0 () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:147 at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 at Ink.StringParser.OneOf (Ink.StringParser+ParseRule[] array) [0x0000d] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:270 at Ink.InkParser.StatementAtLevel (Ink.InkParser+StatementLevel level) [0x0000a] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:38 at Ink.InkParser+<>c__DisplayClass137_0.<StatementsAtLevel>b__0 () [0x00000] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:30 at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 at Ink.StringParser.Interleave[T] (Ink.StringParser+ParseRule ruleA, Ink.StringParser+ParseRule ruleB, Ink.StringParser+ParseRule untilTerminator, System.Boolean flatten) [0x00063] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:383 at Ink.InkParser.StatementsAtLevel (Ink.InkParser+StatementLevel level) [0x0004e] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:28 at Ink.InkParser.Parse () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser.cs:46 at Ink.Compiler.Parse () [0x00034] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\Compiler.cs:35 at Ink.Compiler.Compile () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\Compiler.cs:41 at Ink.UnityIntegration.InkCompiler.CompileInkThreaded (System.Object itemObj) [0x00094] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\Editor\Core\Compiler\InkCompiler.cs:339

Ink Compiler threw exception Error: Index was outside the bounds of the array. ---- Trace ---- at System.Collections.Generic.HashSet1[T].AddIfNotPresent (T value) [0x000d9] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Collections.Generic.HashSet1[T].Add (T item) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at Ink.CharacterRange.ToCharacterSet () [0x00032] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\CharacterRange.cs:32 at Ink.InkParser.ExtendIdentifierCharacterRanges (Ink.CharacterSet identifierCharSet) [0x00013] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_CharacterRanges.cs:34 at Ink.InkParser.get_identifierCharSet () [0x00040] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Logic.cs:403 at Ink.InkParser.Identifier () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Logic.cs:375 at Ink.StringParser.Parse[T] (Ink.StringParser+SpecificParseRule`1[T] rule) [0x00008] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:257 at Ink.InkParser.AuthorWarning () [0x00008] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_AuthorWarning.cs:11 at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 at Ink.InkParser+<>c__DisplayClass142_0.<Line>b__0 () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:147 at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 at Ink.StringParser.OneOf (Ink.StringParser+ParseRule[] array) [0x0000d] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:270 at Ink.InkParser.StatementAtLevel (Ink.InkParser+StatementLevel level) [0x0000a] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:38 at Ink.InkParser+<>c__DisplayClass137_0.<StatementsAtLevel>b__0 () [0x00000] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:30 at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 at Ink.StringParser.Interleave[T] (Ink.StringParser+ParseRule ruleA, Ink.StringParser+ParseRule ruleB, Ink.StringParser+ParseRule untilTerminator, System.Boolean flatten) [0x00063] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:383 at Ink.InkParser.StatementsAtLevel (Ink.InkParser+StatementLevel level) [0x0004e] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:28 at Ink.InkParser.Parse () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser.cs:46 at Ink.Compiler.Parse () [0x00034] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\Compiler.cs:35 at Ink.Compiler.Compile () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\Compiler.cs:41 at Ink.UnityIntegration.InkCompiler.CompileInkThreaded (System.Object itemObj) [0x00094] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\Editor\Core\Compiler\InkCompiler.cs:339

UnityEngine.Debug:LogError(Object) Ink.UnityIntegration.InkCompiler:DelayedComplete() (at Library/PackageCache/[email protected]/Editor/Core/Compiler/InkCompiler.cs:395) Ink.UnityIntegration.InkCompiler:Update() (at Library/PackageCache/[email protected]/Editor/Core/Compiler/InkCompiler.cs:116) UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Unhandled error(s) occurred compiling Ink file 'Assets/_Game/Stories/NegativeNancy.ink'! Please report following error(s) as a bug: Ink Compiler threw exception Error: Index was outside the bounds of the array. ---- Trace ---- at System.Collections.Generic.HashSet1+Enumerator[T].MoveNext () [0x0001e] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at Ink.CharacterSet.AddCharacters (System.Collections.Generic.IEnumerable1[T] chars) [0x0001c] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\CharacterSet.cs:37 at Ink.InkParser.ExtendIdentifierCharacterRanges (Ink.CharacterSet identifierCharSet) [0x00013] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_CharacterRanges.cs:34 at Ink.InkParser.get_identifierCharSet () [0x00040] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Logic.cs:403 at Ink.InkParser.Identifier () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Logic.cs:375 at Ink.StringParser.Parse[T] (Ink.StringParser+SpecificParseRule`1[T] rule) [0x00008] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:257 at Ink.InkParser.AuthorWarning () [0x00008] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_AuthorWarning.cs:11 at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 at Ink.InkParser+<>c__DisplayClass142_0.<Line>b__0 () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:147 at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 at Ink.StringParser.OneOf (Ink.StringParser+ParseRule[] array) [0x0000d] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:270 at Ink.InkParser.StatementAtLevel (Ink.InkParser+StatementLevel level) [0x0000a] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:38 at Ink.InkParser+<>c__DisplayClass137_0.<StatementsAtLevel>b__0 () [0x00000] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:30 at Ink.StringParser.ParseObject (Ink.StringParser+ParseRule rule) [0x00014] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:240 at Ink.StringParser.Interleave[T] (Ink.StringParser+ParseRule ruleA, Ink.StringParser+ParseRule ruleB, Ink.StringParser+ParseRule untilTerminator, System.Boolean flatten) [0x00063] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\StringParser\StringParser.cs:383 at Ink.InkParser.StatementsAtLevel (Ink.InkParser+StatementLevel level) [0x0004e] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser_Statements.cs:28 at Ink.InkParser.Parse () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\InkParser\InkParser.cs:46 at Ink.Compiler.Parse () [0x00034] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\Compiler.cs:35 at Ink.Compiler.Compile () [0x00001] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\InkLibs\InkCompiler\Compiler.cs:41 at Ink.UnityIntegration.InkCompiler.CompileInkThreaded (System.Object itemObj) [0x00094] in C:\Users\rhysv\Projects\negative-nancy\Library\PackageCache\[email protected]\Editor\Core\Compiler\InkCompiler.cs:339

UnityEngine.Debug:LogError(Object) Ink.UnityIntegration.InkCompiler:DelayedComplete() (at Library/PackageCache/[email protected]/Editor/Core/Compiler/InkCompiler.cs:395) Ink.UnityIntegration.InkCompiler:Update() (at Library/PackageCache/[email protected]/Editor/Core/Compiler/InkCompiler.cs:116) UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Ink compilation completed with errors at 9:32:48 AM Files compiled: Assets/_Game/Stories/UltraNance.ink (0.0759646s) (With unhandled error) Assets/_Game/Stories/NegativeNancy.ink (0.0391835s) (With unhandled error) UnityEngine.Debug:LogError(Object) Ink.UnityIntegration.InkCompiler:DelayedComplete() (at Library/PackageCache/[email protected]/Editor/Core/Compiler/InkCompiler.cs:432) Ink.UnityIntegration.InkCompiler:Update() (at Library/PackageCache/[email protected]/Editor/Core/Compiler/InkCompiler.cs:116) UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/inkle/ink-unity-integration/issues/147, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJR3UBL6ULCBXHUHS5JUS3SYTRDDANCNFSM4VYFBC3A .

tomkail avatar Jan 06 '21 22:01 tomkail

A one-off. I couldn't find an existing issue for it.

rhys-vdw avatar Jan 07 '21 02:01 rhys-vdw

Believe this to be fixed by commit ac49eb

tomkail avatar Oct 23 '22 22:10 tomkail