-
Notifications
You must be signed in to change notification settings - Fork 166
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
AutoColumnize throws an Exception with multiple files if no bookmarks are found #102
Comments
removed Text from ILogLineColumnizer interface moved GetPriority from ILogLineColumnizer to IColumnizerPriority interface
Workaround could be to set the default columnizer again to "Default (single line)" in the Settings under Tools -> Settings Was one or both files already opened and did you create some bookmarks for this? Currently I'm not able to reproduce this error. Maybe it could help to delete the "session" directory located here |
Currently trying to reproduce the exception, did It once today, but can not figure out what the problem seems to be. Last time I had 5 Instances open and the same exception occurred. Seems to happen, if a Bookmark is created in one instance and somehow the new instance trys to find the bookmark in the new logfile. Will be testing a little bit more. Hopefully I can find a way to easily recreate it. |
Here the full exception from the dialog: The method or operation is not implemented. |
Ok, I think I'm able to reproduce your error.
I understand this is a error, but is this a use case? Or do I miss a point? |
Hi guys, I am able to reproduce it. I'll working on this if you don't mind. |
Feel free, I really appreciate this help! |
So far I find it's easy to reproduce this problem in 1.6.14 but not in latest master or development branch. To reproduce this problem on 1.6.14:
I believe this problem has been fixed in 1.7.0. @Hirogen please try it here https://github.com/zarunbal/LogExpert/releases/tag/v1.7.0 However, I'll submit a refactor anyway. |
… are found zarunbal#102 Update the AutoColumnizer logic to fix the bug.
… are found zarunbal#102 Update the AutoColumnizer logic to fix the bug.
… are found zarunbal#102 Update the AutoColumnizer logic to fix the bug.
… are found zarunbal#102 Update the AutoColumnizer logic to fix the bug.
I will test it on monday |
So with 1.7.0 i couldn't recreate the exception, currently It seems to be fixed. Regarding the use case. I work a lot with big logfiles in different folders, we have between 1 and 10 Workstations that generate Logfiles and sometimes I need to check 3-4, so I just drag and drop the logfiles in the window and sometimes I forget that files in a folder structure are not opened (I create a separate issue for that) |
Thank you @Hirogen for the testing! |
… are found zarunbal#102 Update the AutoColumnizer logic to fix the bug.
… are found zarunbal#102 Update the AutoColumnizer logic to fix the bug.
… are found zarunbal#102 Update the AutoColumnizer logic to fix the bug.
… are found zarunbal#102 Update the AutoColumnizer logic to fix the bug.
… are found zarunbal#102 All UI control operations should happens when the parent is loaded.
Drag and Dropped 2 logfiles in the empty (new instance) of logexpert
This did happen a few Times, due to an important log analysis I had to switch to 1.6.13, after that I couldn't reproduce the error :/
The Exception in the bottom have been thrown (logexpert needed to be closed shutdown), after restarting the same problem.
1.) 350mb
2.) 250mb
Feature
AutoColumnicer
IMPORTANT NOTE:
Filename + Folders was about 244 Characters long!
The method or operation is not implemented.
NotImplementedException
at LogExpert.AutoColumnizer.GetColumnNames()
at LogExpert.PaintHelper.SetColumnizer(ILogLineColumnizer columnizer, DataGridView gridView)
at LogExpert.Dialogs.BookmarkWindow.SetColumnizer(ILogLineColumnizer columnizer)
at LogExpert.Dialogs.BookmarkWindow.SetCurrentFile(FileViewContext ctx)
at LogExpert.LogTabWindow.dockPanel_ActiveContentChanged(Object sender, EventArgs e)
at WeifenLuo.WinFormsUI.Docking.DockPanel.OnActiveContentChanged(EventArgs e)
at WeifenLuo.WinFormsUI.Docking.DockPanel.FocusManagerImpl.RefreshActiveWindow()
at WeifenLuo.WinFormsUI.Docking.DockPanel.FocusManagerImpl.HookEventHandler(Object sender, HookEventArgs e)
at WeifenLuo.WinFormsUI.Docking.DockPanel.FocusManagerImpl.LocalWindowsHook.OnHookInvoked(HookEventArgs e)
at WeifenLuo.WinFormsUI.Docking.DockPanel.FocusManagerImpl.LocalWindowsHook.CoreHookProc(Int32 code, IntPtr wParam, IntPtr lParam)
Luckily Logexpert logs its own logfile in the app-data of the user following exception was inserted there:
2019-04-12 10:29:10.3165|ERROR|LogExpert.LogWindow|Error loading bookmarks: Could not find file 'C:\Users\Username\Documents\LogExpert\LOGFILEWITHLONGNAME(244characters).log.lxp'. System.IO.FileNotFoundException System.IO.FileNotFoundException: Could not find file 'LOGFILEWITHLONGNAME(360characters).log.lxp'.
File name: 'LOGFILEWITHLONGNAME(360characters).log.lxp'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
at System.Xml.XmlTextReaderImpl.OpenUrl()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at LogExpert.Persister.Load(String fileName)
at LogExpert.LogWindow.LoadPersistenceData()
2019-04-12 10:32:07.1623|ERROR|LogExpert.LogWindow|Error loading bookmarks: Could not find file 'C:\Users\Username\Documents\LogExpert\LOGFILEWITHLONGNAME(244characters).log.lxp'. System.IO.FileNotFoundException System.IO.FileNotFoundException: Could not find file 'LOGFILEWITHLONGNAME(244characters).log.lxp'.
File name: 'LOGFILEWITHLONGNAME(244characters).log.lxp'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
at System.Xml.XmlTextReaderImpl.OpenUrl()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at LogExpert.Persister.Load(String fileName)
at LogExpert.LogWindow.LoadPersistenceData()
2019-04-12 10:35:55.2753|INFO|Program|
2019-04-12 10:37:30.9754|ERROR|LogExpert.LogWindow|Error loading bookmarks: Could not find file 'C:\Users\Username\Documents\LogExpert\D__Logs_nlog.log.lxp'. System.IO.FileNotFoundException System.IO.FileNotFoundException: Could not find file 'C:\Users\Username\Documents\LogExpert\D__Logs_nlog.log.lxp'.
File name: 'C:\Users\Username\Documents\LogExpert\D__Logs_nlog.log.lxp'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials credentials, IWebProxy proxy, RequestCachePolicy cachePolicy)
at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String role, Type ofObjectToReturn)
at System.Xml.XmlTextReaderImpl.OpenUrlDelegate(Object xmlResolver)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.CompressedStack.Run(CompressedStack compressedStack, ContextCallback callback, Object state)
at System.Xml.XmlTextReaderImpl.OpenUrl()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.Load(String filename)
at LogExpert.Persister.Load(String fileName)
at LogExpert.LogWindow.LoadPersistenceData()
The text was updated successfully, but these errors were encountered: