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

[12.1.0.6537] Crash when closing Query-TAB #1640

Closed
Commifreak opened this issue Aug 15, 2022 · 8 comments
Closed

[12.1.0.6537] Crash when closing Query-TAB #1640

Commifreak opened this issue Aug 15, 2022 · 8 comments
Assignees
Labels
Milestone

Comments

@Commifreak
Copy link

Preconditions

  • HeidiSQL version: 12.1.0.6537
  • Database type and version: MySQL 5.7
  • OS: Win10

Describe the bug

I just upgraded to the new version, started it and just wanted to close one single Query tab (which was left open last time). Just after hit the X a crash appeared:
bugreport.txt

To Reproduce

Close any Query tab in new version

Screenshots or Crash reports

@Commifreak
Copy link
Author

Not always reproducible. With current new tabs, it works. Maybe an issue with query tabs from older stable release?

@ansgarbecker
Copy link
Collaborator

The callstack points towards some MouseUp event, but the close button on it does not call any of the contained methods. Scratching my head.

@jbrunette
Copy link

jbrunette commented Aug 23, 2022

I can reproduce this. It's related to the width of the SQL editor panel in some way.

On my 4K monitor, I can trigger the issue if the SQL editor panel is between 3048 and 3326 pixels wide (approximately, not sure exactly where the panel UI element starts/ends). Any skinnier/wider and the issue doesn't occur.

I'm assuming it's the SQL editor panel because the issue can be triggered by adjusting either the left gripper (separating the tree from the rest of the UI) or the right gripper (separating the SQL editor panel from the "helper" panel that has "Columns", "SQL functions", etc) to change the width of the SQL editor panel.

So, a work around is to adjust the widths of either the left panel or the right helper panel until the problem no longer happens.

Interestingly, the problem does not occur if the SQL editor panel is not visible. So, if the width is correctly set but a non-Query tab is active, closing a Query tab does not trigger the error.

@jbrunette
Copy link

Also, it only happens if the X is clicked on the tab. Double-clicking or middle-clicking the tab doesn't trigger the error.

@ansgarbecker
Copy link
Collaborator

I am not able to reproduce it here, even not with a very wide editor panel, with a click on the X of a previously opened tab.

@ansgarbecker ansgarbecker self-assigned this Oct 23, 2023
@ansgarbecker
Copy link
Collaborator

Still happening for some users, in the latest builds. And still I have no clue what's happening.

006b2836 heidisql.exe Vcl.Controls           TControl.GetClientWidth
008761a7 heidisql.exe Vcl.Buttons            TCustomSpeedButton.MouseUp
006b6822 heidisql.exe Vcl.Controls           TControl.DoMouseUp
006b68e6 heidisql.exe Vcl.Controls           TControl.WMLButtonUp
0040f621 heidisql.exe System                 TObject.Dispatch
006b5aad heidisql.exe Vcl.Controls           TControl.WndProc
006b55b0 heidisql.exe Vcl.Controls           TControl.Perform
006bc48a heidisql.exe Vcl.Controls           TWinControl.IsControlMouseMsg
006bcd17 heidisql.exe Vcl.Controls           TWinControl.WndProc
006bc09a heidisql.exe Vcl.Controls           TWinControl.MainWndProc
005d43f3 heidisql.exe System.Classes         StdWndProc
7ffd776e USER32.dll                          DispatchMessageW
00857a4e heidisql.exe Vcl.Forms              TApplication.ProcessMessage
00857ac3 heidisql.exe Vcl.Forms              TApplication.HandleMessage
00857f1a heidisql.exe Vcl.Forms              TApplication.Run
011c5e98 heidisql.exe heidisql       115 +41 initialization
7ffd7906 KERNEL32.DLL                        BaseThreadInitThunk
7ffd7960 ntdll.dll                           RtlUserThreadStart

ansgarbecker added a commit that referenced this issue Oct 23, 2023
… button, through closing/freeing the tab and button through a timer event
@ansgarbecker
Copy link
Collaborator

Hopefully fixed in the current build... crossing finger.

@ansgarbecker ansgarbecker added this to the v12.6 milestone Oct 23, 2023
@jbrunette
Copy link

Looks good. I was able to reliably reproduce it but I cannot with heidisql64.r6744.exe.

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

No branches or pull requests

3 participants