Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception parsing log #44

Open
dtavolato opened this issue Jan 14, 2025 · 3 comments
Open

Exception parsing log #44

dtavolato opened this issue Jan 14, 2025 · 3 comments

Comments

@dtavolato
Copy link

It happened so often that LogJoint crashing parsing a log with a tailing option.

The log itself has been writing during the parsing by LogJoint

Attached a screenshot of the GUI during the exception.
2025-01-14 13 21 19

here it is the error messages:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
at System.Drawing.Graphics.MeasureCharacterRanges(String text, Font font, RectangleF layoutRect, StringFormat stringFormat)
at LogJoint.Drawing.Graphics.MeasureCharacterRangeImp(String str, Font font, StringFormat format, CharacterRange range, RectangleF& ret)
at LogJoint.UI.DrawingUtils.GetTextSubstringBounds(Graphics g, RectangleF messageRect, String msg, Int32 substringBegin, Int32 substringEnd, Font font, Single textDrawingXPosition, StringFormat format)
at LogJoint.UI.DrawingVisitor.DoInplaceHighlighting(IMessage msg, Font font, PointF location, StringFormat format, StringSlice text, Int32 lineBegin, Int32 lineEnd, Func`2 handler, Brush brush)
at LogJoint.UI.DrawingVisitor.DrawStringWithInplaceHightlight(IMessage msg, Boolean showRawMessages, Int32 msgLineIndex, Font font, Brush brush, PointF location, StringFormat format)
at LogJoint.UI.DrawingVisitor.Visit(IContent msg)
at LogJoint.UI.DrawingUtils.PaintControl(DrawContext drawContext, IPresentationDataAccess presentationDataAccess, SelectionInfo selection, Boolean controlIsFocused, Rectangle dirtyRect, Int32& maxRight, VisibleMessagesIndexes& messagesToDraw)
at LogJoint.UI.LogViewerControl.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4770.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

logjoint
Assembly Version: 2.0.7.0
Win32 Version: 2.0.7.0
CodeBase: file:///C:/tools/LogJointPortable/logjoint.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4739.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4770.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

logjoint.model
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0
CodeBase: file:///C:/tools/LogJointPortable/logjoint.model.DLL

logjoint.presenters
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/tools/LogJointPortable/logjoint.presenters.DLL

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4762.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3761.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll

Ionic.Zip.Reduced
Assembly Version: 1.9.1.8
Win32 Version: 1.9.1.8
CodeBase: file:///C:/tools/LogJointPortable/Ionic.Zip.Reduced.DLL

fclregex
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/tools/LogJointPortable/fclregex.DLL

UserCodec7b755350495401d873d53c06ca62b56
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Users/davide.tavolato/AppData/Local/Temp/3/LogJoint/3517d9c8-699a-4b1b-849f-42ca55a2aead.tmp/UserCodec7b755350495401d873d53c06ca62b56.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

@dtavolato
Copy link
Author

w3wp-all_CS.zip

this is a log that trigger the exception also in a static mode (no edit to the log during the parsing by LogJoint)

@sergey-su
Copy link
Owner

I can not reproduce with a simple format defintion that just recognizes the timestamp.

Please attach youformat defintion XML that you have for this kind of log. It can be found in C:\Users%USER%\AppData\Local\LogJoint\bin\Formats if the installation directoty was default.

@sergey-su
Copy link
Owner

Djudging by the screenshot from the top message, you not running the latest version. Try the latest by installing it from https://publogjoint.blob.core.windows.net/updates/logjoint.web.installer.exe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants