-
Notifications
You must be signed in to change notification settings - Fork 193
Description
使用场景:
需要接入5个COM,同时记录 5 台机器的工作日志。6 个小时后,3台机器正常关机,2台还在继续工作,几分钟后软件崩溃。
软件崩溃日志如下:
[2026-01-19 13:38:16.093][I] [GetAllPorts/182] COM4 - USB-SERIAL CH340 (COM4)
[2026-01-19 13:38:16.093][I] [GetAllPorts/182] COM16 - USB-SERIAL CH340 (COM16)
[2026-01-19 13:38:16.093][I] [GetAllPorts/182] COM21 - USB-SERIAL CH340 (COM21)
[2026-01-19 13:38:16.093][I] [GetAllPorts/182] COM174 - USB-SERIAL CH340 (COM174)
[2026-01-19 13:38:16.093][I] [GetAllPorts/182] COM175 - USB-SERIAL CH340 (COM175)
[2026-01-19 13:38:16.094][I] [Hide/70] set port[COM4] hide: False
[2026-01-19 13:38:16.094][I] [RetainSidePortValue/155] [1/5]retain side com port: COM4, remark: , hide: False
[2026-01-19 13:38:16.095][I] [Hide/70] set port[COM16] hide: False
[2026-01-19 13:38:16.095][I] [RetainSidePortValue/155] [2/5]retain side com port: COM16, remark: , hide: False
[2026-01-19 13:38:16.095][I] [Hide/70] set port[COM21] hide: False
[2026-01-19 13:38:16.095][I] [RetainSidePortValue/155] [3/5]retain side com port: COM21, remark: , hide: False
[2026-01-19 13:43:01.514][I] [GetAllPorts/173] get all ports:
[2026-01-19 13:43:01.644][I] [GetAllPorts/182] COM4 - USB-SERIAL CH340 (COM4)
[2026-01-19 13:43:01.644][I] [GetAllPorts/182] COM16 - USB-SERIAL CH340 (COM16)
[2026-01-19 13:43:01.645][I] [GetAllPorts/182] COM21 - USB-SERIAL CH340 (COM21)
[2026-01-19 13:43:01.645][I] [GetAllPorts/182] COM174 - USB-SERIAL CH340 (COM174)
[2026-01-19 13:43:01.645][I] [GetAllPorts/182] COM175 - USB-SERIAL CH340 (COM175)
[2026-01-19 13:43:01.645][I] [GetAllPorts/182] COM176 - USB-SERIAL CH340 (COM176)
[2026-01-19 13:43:01.646][I] [Hide/70] set port[COM4] hide: False
[2026-01-19 13:43:01.646][I] [RetainSidePortValue/155] [1/6]retain side com port: COM4, remark: , hide: False
[2026-01-19 13:43:01.646][I] [Hide/70] set port[COM16] hide: False
[2026-01-19 13:43:01.646][I] [RetainSidePortValue/155] [2/6]retain side com port: COM16, remark: , hide: False
[2026-01-19 13:43:01.646][I] [Hide/70] set port[COM21] hide: False
[2026-01-19 13:43:01.646][I] [RetainSidePortValue/155] [3/6]retain side com port: COM21, remark: , hide: False
[2026-01-19 13:43:05.034][I] [ConnectAllPort/174] proc tab bar: COM176, connect: True
[2026-01-19 13:43:05.649][I] [PrintSetting/391] {
"BaudRate": 1000000,
"DataBits": 8,
"Encoding": "ASMO-708",
"StopBits": "One",
"Parity": "None",
"DTR": false,
"Handshake": 0,
"ReadTimeout": 2000,
"WriteTimeout": 1000,
"SubcontractingTimeout": 10,
"DiscardNull": false,
"Remark": "",
"Pinned": false,
"Hide": false,
"TextFontSize": 15.0,
"HighLightIndex": 0,
"DataCheck": "{\r\n "Enabled": false,\r\n "SelectedIndex": 0,\r\n "UseCustom": false,\r\n "CustomStart": 0,\r\n "CustomEnd": -1,\r\n "CustomInsert": -1\r\n}",
"RTS": false
}
[2026-01-19 13:43:05.652][I] [OpenPort/596] success open port:COM176
[2026-01-19 13:54:42.594][I] [ClosePort/660] close port:COM176 ret: True
[2026-01-19 13:54:44.577][I] [ClearDataByPortName/861] clear data: COM176
[2026-01-19 14:02:18.224][I] [PrintSetting/391] {
"BaudRate": 1000000,
"DataBits": 8,
"Encoding": "ASMO-708",
"StopBits": "One",
"Parity": "None",
"DTR": false,
"Handshake": 0,
"ReadTimeout": 2000,
"WriteTimeout": 1000,
"SubcontractingTimeout": 10,
"DiscardNull": false,
"Remark": "",
"Pinned": false,
"Hide": false,
"TextFontSize": 15.0,
"HighLightIndex": 0,
"DataCheck": "{\r\n "Enabled": false,\r\n "SelectedIndex": 0,\r\n "UseCustom": false,\r\n "CustomStart": 0,\r\n "CustomEnd": -1,\r\n "CustomInsert": -1\r\n}",
"RTS": false
}
[2026-01-19 14:02:18.226][I] [OpenPort/596] success open port:COM176
[2026-01-19 14:29:05.356][I] [ClosePort/660] close port:COM176 ret: True
[2026-01-19 14:29:06.386][I] [ClearDataByPortName/861] clear data: COM176
[2026-01-19 14:29:07.102][I] [PrintSetting/391] {
"BaudRate": 1000000,
"DataBits": 8,
"Encoding": "ASMO-708",
"StopBits": "One",
"Parity": "None",
"DTR": false,
"Handshake": 0,
"ReadTimeout": 2000,
"WriteTimeout": 1000,
"SubcontractingTimeout": 10,
"DiscardNull": false,
"Remark": "",
"Pinned": false,
"Hide": false,
"TextFontSize": 15.0,
"HighLightIndex": 0,
"DataCheck": "{\r\n "Enabled": false,\r\n "SelectedIndex": 0,\r\n "UseCustom": false,\r\n "CustomStart": 0,\r\n "CustomEnd": -1,\r\n "CustomInsert": -1\r\n}",
"RTS": false
}
[2026-01-19 14:29:07.104][I] [OpenPort/596] success open port:COM176
[2026-01-19 14:29:36.916][I] [ClosePort/660] close port:COM176 ret: True
[2026-01-19 14:29:38.326][I] [ClearDataByPortName/861] clear data: COM176
[2026-01-19 14:43:39.471][I] [PrintSetting/391] {
"BaudRate": 1000000,
"DataBits": 8,
"Encoding": "ASMO-708",
"StopBits": "One",
"Parity": "None",
"DTR": false,
"Handshake": 0,
"ReadTimeout": 2000,
"WriteTimeout": 1000,
"SubcontractingTimeout": 10,
"DiscardNull": false,
"Remark": "",
"Pinned": false,
"Hide": false,
"TextFontSize": 15.0,
"HighLightIndex": 0,
"DataCheck": "{\r\n "Enabled": false,\r\n "SelectedIndex": 0,\r\n "UseCustom": false,\r\n "CustomStart": 0,\r\n "CustomEnd": -1,\r\n "CustomInsert": -1\r\n}",
"RTS": false
}
[2026-01-19 14:43:39.474][I] [OpenPort/596] success open port:COM176
[2026-01-19 14:43:58.794][I] [ClosePort/660] close port:COM176 ret: True
[2026-01-19 14:43:59.559][I] [ClearDataByPortName/861] clear data: COM176
[2026-01-19 15:54:34.575][I] [GetNotices/106] begin pull notice
[2026-01-19 15:54:34.575][I] [AsyncSend/103] HTTP [GET] URL = https://superstudio.github.io/SuperCom-Upgrade/notice.json
[2026-01-19 15:54:34.784][W] [GetNotices/139] notice not change
[2026-01-19 19:19:39.040][E] [.cctor/55] System.OutOfMemoryException: 引发类型为“System.OutOfMemoryException”的异常。
在 System.Windows.Media.RenderData.EnsureBuffer(Int32 cbRequiredSize)
在 System.Windows.Media.RenderData.WriteDataRecord(MILCMD id, Byte* pbRecord, Int32 cbRecordSize)
在 System.Windows.Media.RenderDataDrawingContext.Pop()
在 MS.Internal.TextFormatting.SimpleTextLine.DrawTextLine(DrawingContext drawingContext, Point origin)
在 MS.Internal.TextFormatting.SimpleTextLine.Draw(DrawingContext drawingContext, Point origin, InvertAxes inversion)
在 System.Windows.Media.FormattedText.DrawAndCalculateMetrics(DrawingContext dc, Point drawingOffset, Boolean getBlackBoxMetrics)
在 System.Windows.Media.FormattedText.Draw(DrawingContext dc, Point origin)
在 System.Windows.Media.DrawingContext.DrawText(FormattedText formattedText, Point origin)
在 ICSharpCode.AvalonEdit.Editing.LineNumberMargin.OnRender(DrawingContext drawingContext)
在 System.Windows.UIElement.Arrange(Rect finalRect)
在 System.Windows.ContextLayoutManager.UpdateLayout()
在 System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
在 System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
在 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
在 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)