sumatrapdf icon indicating copy to clipboard operation
sumatrapdf copied to clipboard

Sometimes Sumatra does not remember opened documents

Open akontsevich opened this issue 10 years ago • 15 comments

Sometimes Sumatra does not remember opened documents, opens empty. Not sure why, probably during PC shutdown, restart. If I just open, close - it remembers.

akontsevich avatar Mar 08 '16 07:03 akontsevich

Exactly. This can happen when 1: The computer suffered an unexpected shutdown (BSOD, forced shutdown by power button, ...) 2: The files you had opened were temporarily saved to a temp folder (like when they're "opened from browser" like shown here: https://imgur.com/0JvUpNe ) Those files seems to disappear after unexpected shutdowns for example (at least happens on my Win. 7 x64 system).

I opened two tickets to air suggestions/possible workarounds, but they were closed due to what I think were misunderstandings: https://github.com/sumatrapdfreader/sumatrapdf/issues/452 Here I should have said temp folder and elaborated further. https://github.com/sumatrapdfreader/sumatrapdf/issues/451

Hope the issue can be fixed some way -- it would be nice to have robust "session" or "remember" functionality.

Murplugg avatar Mar 08 '16 17:03 Murplugg

Same problem here - after a forced reboot of some installer (didn't asked for unsaved files) no tabs were remembered after the reboot. I also noticed that when I have only one tab open, it will not be remembered, only when there are at least two tabs open.

voidray avatar Mar 14 '16 09:03 voidray

I have similar problem, but much worser. Last opened documents are saved ONLY if I exit using File-Exit command. Closing window with [X] causes start from empty page. Same with windows shutdown etc.

All PDFs are opened from local hard drive folder (not temporary). SumatraPDF version 3.1.1 64-bit, OS: Windows 7 Pro x64.

gshadows avatar Mar 24 '16 07:03 gshadows

Correction: it does not remember opened document only if single document was opened. Two or more documents remembered correctly.

gshadows avatar Mar 28 '16 12:03 gshadows

Does not depend of number of openned documents. I always have few documents

  • does not remember them.

С Любовью, Алексей.

Blessings, Aleksey.

2016-03-28 15:29 GMT+03:00 Denis [email protected]:

Correction: it does not remember opened document only if single document was opened. Two or more documents remembered correctly.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/sumatrapdfreader/sumatrapdf/issues/458#issuecomment-202364756

akontsevich avatar Mar 28 '16 16:03 akontsevich

I have this issue as well. Open documents are only remembered if there is more than one open.

EpicWolverine avatar Mar 29 '16 14:03 EpicWolverine

for me too it remembers openend pdf only when two o more (win10 x64)

stefanocaselli avatar Apr 23 '16 10:04 stefanocaselli

The odd part about the session loss is that it doesn't even remember the previously loaded session. That is, if you close SumatraPDF normally and then reopen it, it remembers the session. So it must have loaded that from somewhere. Yet if it closes abnormally, I don't necessarily expect ti to remember changes I made in that session.

But there's no excuse for it not loading the old session data that it previously loaded.

NicolBolas avatar May 27 '16 13:05 NicolBolas

Update on this? @kjk

FlameFractal avatar Apr 07 '17 07:04 FlameFractal

The issue of not remembering due to windows reboot should be fixed.

Not reopening when there was only 1 document opened is expected behavior.

kjk avatar May 14 '17 08:05 kjk

Last opened documents are saved ONLY if I exit using File-Exit command. Closing window with [X] causes start from empty page.

This is should be fixed to behave the same way, no?

Not reopening when there was only 1 document opened is expected behavior.

I didn't expect it and was just trying to find out why RememberOpenedFiles doesn't work until I landed here... At least there should be some comment in the settings or SumatraPDF-settings.txt to avoid confusion.

vogler avatar Jan 10 '19 17:01 vogler

I exit using File-Exit command but unfortunately Last opened documents are not saved! I use latest version, and yes I have RememberOpenedFiles=true.

csengh avatar Jan 30 '19 22:01 csengh

@csengh Ensure that in advanced options RestoreSession = true Then when TWO or more windows or tabs in a session are closed they will open when restarting SumatraPDF by opening any one of them or even another, beware this can be affected by dual or more sessions since if any session has only one file open in each window it will not meet the two or more per session criteria.

GitHubRulesOK avatar Jan 31 '19 00:01 GitHubRulesOK

Oh Yeah, resolved! Thank you very much!

csengh avatar Jan 31 '19 08:01 csengh

if any session has only one file open in each window it will not meet the two or more per session criteria.

That's a bug and should be fixed.

vogler avatar Jan 31 '19 09:01 vogler