You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'FormBrowse'.
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.ContainerControl.FocusActiveControlInternal()
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at GitUI.GitUICommands.StartBrowseDialog(IWin32Window owner, BrowseArguments args) in C:\projects\gitextensions\GitUI\GitUICommands.cs:line 1163
at GitUI.GitUICommands.RunBrowseCommand(IReadOnlyList`1 args) in C:\projects\gitextensions\GitUI\GitUICommands.cs:line 1606
at GitUI.GitUICommands.RunCommandBasedOnArgument(IReadOnlyList`1 args, IReadOnlyDictionary`2 arguments) in C:\projects\gitextensions\GitUI\GitUICommands.cs:line 1460
at GitUI.GitUICommands.RunCommand(IReadOnlyList`1 args) in C:\projects\gitextensions\GitUI\GitUICommands.cs:line 1433
at GitExtensions.Program.RunApplication() in C:\projects\gitextensions\GitExtensions\Program.cs:line 204
at GitExtensions.Program.Main() in C:\projects\gitextensions\GitExtensions\Program.cs:line 105
Closed window right after starting.
Steps to reproduce
Start gitextensions inside a folder with a git repository. Close it right away, while the UI still seems to be loading by middle clicking (press mouse wheel) on the window preview from the Windows taskbar. Seems to be 100% reliably reproducible for me that way.
Note that this does not seem to work by clicking the X button, as there is seems to block that until the UI is fully loaded.
Did this work in previous version of GitExtensions?
I never observed this with earlier versions, but I might also not have run into the case.
Diagnostics
No response
The text was updated successfully, but these errors were encountered:
Thank you for providing the repro steps. I can't seem able to replicate but I may not be fast enough... For me the preview on the taskbar becomes available after the app has already loaded.
As a workaround - don't try to close it that fast :) A PR with a fix is welcome too.
I had a second instance open before launching the one I closed (that was the reason I closed it actually). Maybe that makes the taskbar hover preview appear sooner. OS is Windows 11.
Yeah "don't try to close it that fast" is a good workaround. 🙂
(The root cause would be solved by a feature request: If starting gitex and the repo is already opened in another instance, focus that instance instead of starting a new one)
Environment
Issue description
Closed window right after starting.
Steps to reproduce
Start gitextensions inside a folder with a git repository. Close it right away, while the UI still seems to be loading by middle clicking (press mouse wheel) on the window preview from the Windows taskbar. Seems to be 100% reliably reproducible for me that way.
Note that this does not seem to work by clicking the X button, as there is seems to block that until the UI is fully loaded.
Did this work in previous version of GitExtensions?
I never observed this with earlier versions, but I might also not have run into the case.
Diagnostics
No response
The text was updated successfully, but these errors were encountered: