Closed bstrr closed 7 years ago
Thanks, can you confirm which version of the colorizer extension you are using? Issue #5 had a similar description. If you are on the latest version, it's most likely an overly greedy regex that needs to be fixed, but I'll need to double check.
Nevermind... using your log text I can see the same issue. Let me look into it...
Thanks! Fixed it and pushed an update. Can you download v0.0.11 and let me know if its working again? Was an overly greedy regex that caused 'catastrophic backtracking'.
Works perfectly! Thanks for fixing quickly!
The following output (and similar) hangs VS Code when using the colorizer:
LOG: (): System.ArgumentException: start_index + length > array length Parameter name: length at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:copy_from_unmanaged (intptr,int,System.Array,int) at System.Runtime.InteropServices.Marshal.Copy (IntPtr source, System.Byte[] destination, Int32 startIndex, Int32 length) <0x2419cad0 + 0x00027> in <filename unknown>:0 at Fuse.Video.Mono.PixelBuffer.UpdateTexture (Int32 textureName, Fuse.Video.Mono.VideoHandle handle) <0x2419c500 + 0x000e3> in <filename unknown>:0 at Fuse.Video.Mono.VideoImpl.UpdateTexture (Fuse.Video.Mono.VideoHandle handle, Int32 textureHandle) <0x2419be38 + 0x00143> in <filename unknown>:0 at Fuse.Video.Mono.MonoImpl.UpdateTexture (Int32 textureHandle) <0x2419be08 + 0x0001b> in <filename unknown>:0 at Fuse.Video.Graphics.CIL.VideoImpl.UpdateTexture (Fuse.Video.Graphics.CIL.VideoHandle handle, Int32 textureHandle) <0x2419bde0 + 0x00021> in <filename unknown>:0 at Fuse.Controls.VideoImpl.CIL.VideoPlayer.Update () <0x2419b2d0 + 0x001af> in <filename unknown>:0 at Fuse.Controls.VideoImpl.GraphicsVideoService.Fuse.Controls.VideoImpl.IVideoService.Update () <0x24193d40 + 0x0002c> in <filename unknown>:0 at Fuse.Controls.VideoImpl.VideoVisual.OnUpdate () <0x24193cc0 + 0x0001c> in <filename unknown>:0 at Fuse.UpdateListener.Invoke () <0x167e4600 + 0x00053> in <filename unknown>:0 at Fuse.UpdateManager.ProcessListeners (Fuse.Stage stage, System.Collections.Generic.List
1& _exceptions) <0x167e4440 + 0x00057> in1& _exceptions) <0x167e4440 + 0x00057> in <filename unknown>:0 EXCEPTION: (Simulator): System.ArgumentException: start_index + length > array length Parameter name: length StackTrace: at (wrapper managed-to-native) System.Runtime.InteropServices.Marshal:copy_from_unmanaged (intptr,int,System.Array,int) at System.Runtime.InteropServices.Marshal.Copy (IntPtr source, System.Byte[] destination, Int32 startIndex, Int32 length) <0x2419cad0 + 0x00027> in <filename unknown>:0 at Fuse.Video.Mono.PixelBuffer.UpdateTexture (Int32 textureName, Fuse.Video.Mono.VideoHandle handle) <0x2419c500 + 0x000e3> in <filename unknown>:0 at Fuse.Video.Mono.VideoImpl.UpdateTexture (Fuse.Video.Mono.VideoHandle handle, Int32 textureHandle) <0x2419be38 + 0x00143> in <filename unknown>:0 at Fuse.Video.Mono.MonoImpl.UpdateTexture (Int32 textureHandle) <0x2419be08 + 0x0001b> in <filename unknown>:0 at Fuse.Video.Graphics.CIL.VideoImpl.UpdateTexture (Fuse.Video.Graphics.CIL.VideoHandle handle, Int32 textureHandle) <0x2419bde0 + 0x00021> in <filename unknown>:0 at Fuse.Controls.VideoImpl.CIL.VideoPlayer.Update () <0x2419b2d0 + 0x001af> in <filename unknown>:0 at Fuse.Controls.VideoImpl.GraphicsVideoService.Fuse.Controls.VideoImpl.IVideoService.Update () <0x24193d40 + 0x0002c> in <filename unknown>:0 at Fuse.Controls.VideoImpl.VideoVisual.OnUpdate () <0x24193cc0 + 0x0001c> in <filename unknown>:0 at Fuse.UpdateListener.Invoke () <0x167e4600 + 0x00053> in <filename unknown>:0 at Fuse.UpdateManager.ProcessListeners (Fuse.Stage stage, System.Collections.Generic.List
1& _exceptions) <0x167e4440 + 0x00057> in