IBM-Cloud / vscode-log-output-colorizer

Language extension for VSCode that adds syntax colorization for both the output/debug/extensions panel and *.log files.
https://marketplace.visualstudio.com/items?itemName=IBM.output-colorizer
MIT License
111 stars 28 forks source link

Text hangs VS Code when using colorizer #15

Closed bstrr closed 7 years ago

bstrr commented 7 years ago

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.List1& _exceptions) <0x167e4440 + 0x00057> in :0 LOG: (Simulator): 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 :0 at Fuse.Video.Mono.PixelBuffer.UpdateTexture (Int32 textureName, Fuse.Video.Mono.VideoHandle handle) <0x2419c500 + 0x000e3> in :0 at Fuse.Video.Mono.VideoImpl.UpdateTexture (Fuse.Video.Mono.VideoHandle handle, Int32 textureHandle) <0x2419be38 + 0x00143> in :0 at Fuse.Video.Mono.MonoImpl.UpdateTexture (Int32 textureHandle) <0x2419be08 + 0x0001b> in :0 at Fuse.Video.Graphics.CIL.VideoImpl.UpdateTexture (Fuse.Video.Graphics.CIL.VideoHandle handle, Int32 textureHandle) <0x2419bde0 + 0x00021> in :0 at Fuse.Controls.VideoImpl.CIL.VideoPlayer.Update () <0x2419b2d0 + 0x001af> in :0 at Fuse.Controls.VideoImpl.GraphicsVideoService.Fuse.Controls.VideoImpl.IVideoService.Update () <0x24193d40 + 0x0002c> in :0 at Fuse.Controls.VideoImpl.VideoVisual.OnUpdate () <0x24193cc0 + 0x0001c> in :0 at Fuse.UpdateListener.Invoke () <0x167e4600 + 0x00053> in :0 at Fuse.UpdateManager.ProcessListeners (Fuse.Stage stage, System.Collections.Generic.List1& _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.List1& _exceptions) <0x167e4440 + 0x00057> in :0 `

triceam commented 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.

triceam commented 7 years ago

Nevermind... using your log text I can see the same issue. Let me look into it...

triceam commented 7 years ago

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'.

bstrr commented 7 years ago

Works perfectly! Thanks for fixing quickly!