Window just disappears after opening session (Windows)

fcunited's profile image fcunited posted 4 days ago in General Permalink

I have latest version. Everything worked like a charm for ages. Today window just disappears after I click Open (session).

When I do it more and more, new processes run, but I see no window at all. Alt+tab doesn't show any Heidi window.

Any ideas? I reinstalled Heidi and rebooted PC.

2 attachment(s):
  • 2024-10-18-14_11_26
  • 2024-10-18-14_12_12
ansgar's profile image ansgar posted 4 days ago Permalink

There are a few known situations where that can happen. One of them is when you had a second (or third..) screen connected before, and after you disconnected one of them, HeidiSQL starts with its main window on the no longer existing area.

Another cause is when HeidiSQL restores your query tab backups, which is in some rare cases very slow. And I mean really slow, this can take up several minutes. Newer versions show a dialog when one of the tab files took longer than 10 seconds to load.

fcunited's profile image fcunited posted 4 days ago Permalink

There are a few known situations where that can happen. One of them is when you had a second (or third..) screen connected before, and after you disconnected one of them, HeidiSQL starts with its main window on the no longer existing area.

In this case window has to appear on Alt+tab, and it doesn't

Another cause is when HeidiSQL restores your query tab backups, which is in some rare cases very slow. And I mean really slow, this can take up several minutes. Newer versions show a dialog when one of the tab files took longer than 10 seconds to load.

I had only few query tabs, nothing fancy. I wait for a long time, no window. And. I guess, in this case it also has to appear when Alt+tabbing. It is not even in Apps list of Taks Manager.

PS: I've downloaded portable version and it works!

fcunited's profile image fcunited posted 4 days ago Permalink

Nothing in Apps list of Task Manager

2 attachment(s):
  • 2024-10-18-15_01_22
  • 2024-10-18-15_01_51
fcunited's profile image fcunited posted 4 days ago Permalink

It magically works if I connect external monitor.

And doesn't work when I disconnect it.

Any ideas how to fix this?

ansgar's profile image ansgar posted 4 days ago Permalink

I notice the background process is taking 20% CPU load - that tells me it's quite possible it's busy loading one of your tab files. Note there does not need to be many of them, and they don't need to be large. It's a mysterious issue to me - some files take forever to load. But not longer than 1 or 2 minutes.

When you connect your external monitor, does HeidiSQL appear on that one, or on your first one? If it's on the external one, then move it to the first one, once. I expect it to stay there when you restart without the external monitor.

fcunited's profile image fcunited posted 3 days ago Permalink

When I connect second monitor, I don't use 2 monitors. I use only external (larger) monitor.

What helped me:

  1. Open initial Heidi wondow
  2. Resize it
  3. Only then open session

Probably, has something to do with different (larger) resolution on external monitor.

But I used same monitor for ages and had no issues. So may be related to latest Heidi releases.

ansgar's profile image ansgar posted 3 days ago Permalink

Normally, the code in HeidiSQL's window creation event should prevent the window from staying on a nonexistent monitor. The code also depends on what you have in the registry value HKEY_CURRENT_USER\Software\HeidiSQL\MainWinOnMonitor - perhaps you can post its value here so I can have a look.

fcunited's profile image fcunited posted 3 days ago Permalink

"0"

1 attachment(s):
  • 2024-10-19-18_12_05
ansgar's profile image ansgar posted 2 days ago Permalink

Thanks. MainWinOnMonitor=0 means the window gets placed on the first monitor, counting starts at 0 here, so that's very normal so far.

I cannot find anything wrong in the code. I also tested again with my two screens, switching one off and restarting HeidiSQL. But the window is always fully visible.

Please login to leave a reply, or register at first.