Heidi restores all previously saved queries (20+)

aSystemOverload's profile image aSystemOverload posted 5 years ago in General Permalink

After Heidi tries to max out my RAM, I end-task'd it. When I re-open it, Heidi restores every window previously saved, not just those that were open when I end-task'd it.

ansgar's profile image ansgar posted 5 years ago Permalink

Well what do you expect when you terminate an application via "end-tasking" - for which I guess you mean you kill it via task manager?

aSystemOverload's profile image aSystemOverload posted 5 years ago Permalink

I expect it to either start afresh (no query windows), or it to restore those query windows that were present when I end-task'd it (due to being non-responsive). Not to restore every query I've created in the last two weeks (and most of which not been used {and have been closed} for several days).

Don't get me wrong, I like the auto-restore, but only for those windows that were live at the time of program termination. I can't handle having to close twenty windows each time Heidi crashes, which is getting more frequent again (the maxing ram issue), don't know if there's been an update for that, but I will be checking for one tomorrow.

ansgar's profile image ansgar posted 5 years ago Permalink

Yes, you should update to the latest build, as this auto-restore feature is new and I shipped a few bugfixes for it afterwards.

And yes, closed tabs should not get auto-restored. In such cases I will probably need more details from you, or I have to simulate what you did. But at first please update and report back if that issue is already fixed.

aSystemOverload's profile image aSystemOverload posted 5 years ago Permalink

I updated Heidi yesterday and there is still a stability issue when Heidi is left open with a good connection and then activating sleep and later resuming that results in a crash. But the issue of all previous windows opening, did not repeat itself. I'll report back if I encounter this again.

aSystemOverload's profile image aSystemOverload posted 5 years ago Permalink

Hey Ansgar, Heidi is restoring unnecessary query tabs again. I closed down all, bar the default tab. Closed down cleanly, re-opened and all the tabs I'd closed, re-opened. I've just updated to 10.1.0.5566

ansgar's profile image ansgar posted 5 years ago Permalink

That's odd, as I cannot reproduce this here. Something must be different on your side. Maybe the temporary tab-file cannot be deleted using your user privileges. Please watch for files in this directory:

C:\Users(yourUserName)\AppData\Roaming\HeidiSQL\Backups\

Probably make a test deletion with a file you created there.

And have a look into the tabs.ini, one folder up.

ilpssun's profile image ilpssun posted 5 years ago Permalink

I also have problems with the restore tabs feature: Heidi keeps restoring tabs that I explicitly closed. I can’t really detect a system there but when I close all open tabs, clear the main query tab and close Heidi, the next time I open it, it restores some tabs. Previously, it used to accumulate more and more tabs, but this seems to have become better in 10.1.0.5881. Still, it reopens the closed files, which is annoying.

ilpssun's profile image ilpssun posted 5 years ago Permalink

I did the following test to reproduce the behavior:

  1. Delete tabs.ini from my profile.
  2. Open Heidi → no open tabs
  3. Open three random sql files → three open tabs
  4. Close Heidi, reopen Heidi → three tabs restored (ok)
  5. Close one tab, close Heidi, reopen Heidi → three tabs restored (not okay)
  6. Look at tabs.ini: No changes since first save (wrong)
ilpssun's profile image ilpssun posted 5 years ago Permalink

It seems to me that after the first time the tabs.ini file is saved, Heidi fails to update the file afterwards.

aSystemOverload's profile image aSystemOverload posted 5 years ago Permalink

Still also an issue for me. After I previously deleted the contents of the tabs.ini file, I'd had quite a few tabs open. I started Heidi up this morning, everything was there, including some tabs i didn't have open on Friday. So I closed all of them down, opened two.

Remembered I'd not updated this morning, so updated to 10.1.0.5581. It restarts as usual after update, all the tabs are back. I again removed all the tabs, closed heidi, re-opened, everything is back again.

There are entries in tab.ini going back to 21st May, there is also an update from 5 min ago when I closed heidi down.

ansgar's profile image ansgar posted 5 years ago Permalink

@ilpssun thanks for consistent test results. I'm now sure I forgot to add a logic for removing a tab when it has a "normal" file from disk, not an unsaved one.

ansgar's profile image ansgar posted 5 years ago Permalink

Should be fixed in the next build.

ilpssun's profile image ilpssun posted 5 years ago Permalink

I installed build 5585 and this issue seems to be fixed. Thanks for the quick response!

aSystemOverload's profile image aSystemOverload posted 5 years ago Permalink

Just updated to 10.1.0.5585 and as prev poster, seems to be fixed. Thanks.

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