Skip to content

Load session & Open new window crashes LogExpert #156

Description

@spacemanspiff2007

Important questions

  • 1.8.5
  • 7 + 10
  • Lokal file
  • Used Columnizer: Default

Steps:

  1. File -> Load Session
  2. Select saved session
  3. Select "Open new window"
  4. Observe crash
Invalid Content: ActiveContent must be one of the visible contents, or null if there is no visible content.


InvalidOperationException
   bei WeifenLuo.WinFormsUI.Docking.DockPane.set_ActiveContent(IDockContent value)
   bei WeifenLuo.WinFormsUI.Docking.DockContentHandler.Activate()
   bei WeifenLuo.WinFormsUI.Docking.DockContentHandler.SetParent(Control value)
   bei WeifenLuo.WinFormsUI.Docking.DockContentHandler.SetPane(DockPane pane)
   bei WeifenLuo.WinFormsUI.Docking.DockContentHandler.SetDockState(Boolean isHidden, DockState visibleState, DockPane oldPane)
   bei WeifenLuo.WinFormsUI.Docking.DockPanel.Persistor.LoadFromXml(DockPanel dockPanel, Stream stream, DeserializeDockContent deserializeContent, Boolean closeStream)
   bei LogExpert.LogTabWindow.RestoreLayout(String layoutXml)
   bei LogExpert.LogTabWindow.LoadProject(String projectFileName, Boolean restoreLayout)
   bei LogExpert.LogTabWindow.LogTabWindow_Load(Object sender, EventArgs e)
   bei System.Windows.Forms.Form.OnLoad(EventArgs e)
   bei System.Windows.Forms.Form.OnCreateControl()
   bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   bei System.Windows.Forms.Control.CreateControl()
   bei System.Windows.Forms.Control.WmShowWindow(Message& m)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.Form.WmShowWindow(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

With "Close existing tabs" instead of "Open new window" everything works fine.

Activity

  1. added
    bugPesky little gritter, needs squashing
    on May 11, 2020
  2. spacemanspiff2007 commented on Oct 22, 2020

    @spacemanspiff2007
    Author

    It would be really great if this could be fixed for the next release.
    I need to switch between favorites quite often so this os quite annoying.

  3. spacemanspiff2007 commented on Dec 14, 2020

    @spacemanspiff2007
    Author

    @Hirogen Can you reproduce this issue or do you need more information from me?

  4. spacemanspiff2007 commented on Nov 12, 2021

    @spacemanspiff2007
    Author

    Bump for visibility

  5. Hirogen commented on Nov 14, 2021

    @Hirogen
    Member

    I'll give it a try on Monday

  6. self-assigned this
    on Nov 14, 2021
  7. spacemanspiff2007 commented on Mar 31, 2022

    @spacemanspiff2007
    Author

    Could this be included in the next release?

  8. Hirogen commented on Apr 1, 2022

    @Hirogen
    Member

    I'll try to get it into the 1.8.9 release, currently with corona at home... so might take 2-3 weeks before a new RC or the 1.8.9 is out

  9. spacemanspiff2007 commented on Apr 1, 2022

    @spacemanspiff2007
    Author

    No worries! I hope you get well soon!

  10. daniel-matheis-vivavis commented on Feb 12, 2025

    @daniel-matheis-vivavis

    I have seen the same problem in version 1.9.0.
    Would be great if it gets fixed!
    If it helps: this is how such session file looks (stripped the real paths though):

    <logexpert>
      <project>
        <members>
          <member fileName=".......path.lxp" />
          <member fileName=".......anotherpath.lxp" />
        </members>
      </project>
      <layout>
        <!--DockPanel configuration file. Author: Weifen Luo, all rights reserved.-->
    <!--!!! AUTOMATICALLY GENERATED FILE. DO NOT MODIFY !!!-->
    <DockPanel FormatVersion="1.0" DockLeftPortion="0.25" DockRightPortion="0.25" DockTopPortion="0.25" DockBottomPortion="0.25" ActiveDocumentPane="0" ActivePane="0">
      <Contents Count="2">
        <Content ID="0" PersistString="LogWindow#......path.log" AutoHidePortion="0.25" IsHidden="False" IsFloat="False" />
        <Content ID="1" PersistString="LogWindow#......antotherpath.log" AutoHidePortion="0.25" IsHidden="False" IsFloat="False" />
      </Contents>
      <Panes Count="2">
        <Pane ID="0" DockState="Document" ActiveContent="0">
          <Contents Count="1">
            <Content ID="0" RefID="0" />
          </Contents>
        </Pane>
        <Pane ID="1" DockState="Document" ActiveContent="1">
          <Contents Count="1">
            <Content ID="0" RefID="1" />
          </Contents>
        </Pane>
      </Panes>
      <DockWindows>
        <DockWindow ID="0" DockState="Document" ZOrderIndex="1">
          <NestedPanes Count="2">
            <Pane ID="0" RefID="0" PrevPane="-1" Alignment="Right" Proportion="0.5" />
            <Pane ID="1" RefID="1" PrevPane="0" Alignment="Bottom" Proportion="0.5" />
          </NestedPanes>
        </DockWindow>
        <DockWindow ID="1" DockState="DockLeft" ZOrderIndex="3">
          <NestedPanes Count="0" />
        </DockWindow>
        <DockWindow ID="2" DockState="DockRight" ZOrderIndex="4">
          <NestedPanes Count="0" />
        </DockWindow>
        <DockWindow ID="3" DockState="DockTop" ZOrderIndex="5">
          <NestedPanes Count="0" />
        </DockWindow>
        <DockWindow ID="4" DockState="DockBottom" ZOrderIndex="6">
          <NestedPanes Count="0" />
        </DockWindow>
      </DockWindows>
      <FloatWindows Count="0" />
    </DockPanel></layout>
    </logexpert>
    

    And when choose "close existing tabs" then the windows for the two files are stacked in the upper left corner without real body visible:

    Image

  11. Hirogen commented on Feb 12, 2025

    @Hirogen
    Member

    yeah this can happen, if the session log doesn't find the log file and gets confused, will try to fix in the .net 8 branch

  12. linked a pull request that will close this issueupdate settings, should now no longer be lost #485on Nov 24, 2025
  13. linked a pull request that will close this issuePersister in json #472on Nov 24, 2025
  14. linked a pull request that will close this issue380 configure port used by logexpert #389on Nov 24, 2025
  15. Hirogen commented on Jan 7, 2026

    @Hirogen
    Member

    this should be fixed in the newest version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugPesky little gritter, needs squashing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions