[Bug]Crash occurs when switching back and forth to view changes in the json file in the change page.
Closed this issue · 4 comments
zpeggle commented
在本地更改页面频繁切换查看一个较大的json文件(11.4MB)和一个其他文件,切换两三次就崩了。
Crash::: System.NullReferenceException: Object reference not set to an instance of an object.
----------------------------
Version: 2025.2.0.0
OS: Unix 14.6.1
Framework: .NETCoreApp,Version=v9.0
Source: <unknown>
---------------------------
at TextMateSharp.Model.TMModel.InvalidateLine(Int32) + 0x30
at TextMateSharp.Model.TMModel.TokenizerThread.ThreadWorker(Object state) + 0x1bc
at System.Threading.ThreadPoolWorkQueue.Dispatch() + 0x264
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() + 0x13c
at System.Threading.Thread.StartThread(IntPtr) + 0xe0
at System.Threading.Thread.ThreadEntryPoint(IntPtr) + 0x20
love-linger commented
已知问题,这个是TextMateSharp的BUG,目前没有看到有相关的ISSUE修复。建议对于DIFF视图,不要太频繁的切换(等语法高亮启作用后,再切换)或是直接关闭语法高亮功能。
love-linger commented
哦,不好意思,看了一下TextMateSharp,最新的 1.0.66 修复了这个问题。
love-linger commented
love-linger commented
您可从Github Action中下载最新的编译结果。