Win10x64, NPP 7.6.4 32bit, restoring last session not work after reboot



  • Restore last session on next box is checked.

    After reboot, session.xml becomes empty
    If not reboot, the function works.

    Tired 7.3.3(the last one have plugin manager) portable 32bit and latest 7.6.4 portable 32bit
    Is there any issue using portable 32bit on 64bit system?
    Also, 7.3.3 the session function worked well on win7x64,2008r2

    Now I have to save session manually.



  • welcome to the notepad++ community, @shama-shii

    there is no known issue of using an official portable notepad++ version on 64 bit systems.

    there are however known issues if you downloaded your notepad++ 7.6.4 from an unofficial source like portableapps.com, instead of the official version from >>> notepad-plus-plus.org <<<

    please also check, that your settings at settings > preferences > backup > session snapshot and periodic backup look like the screenshot below.

    Imgur

    important note: please make sure you do not put a portable notepad++ version inside %ProgramFiles% or %ProgramFiles(x86)%.



  • Of course official zip release, and the configs are checked no mistake.



  • @shama-shii

    very strange, especially that the session works and you can close and re-open notepad++ and the session will be loaded correctly,
    but after a reboot, you session is empty.

    please try to:

    • close your existing notepad++ portable.
    • download a fresh npp.7.6.4.bin.zip from >>> here <<<.
    • extract it to your desktop.
    • run notepad++.exe inside of the extracted npp.7.6.4.bin folder at your desktop.
    • open some files.
    • close the new notepad++ and run it again from extracted npp.7.6.4.bin folder, to see if all previously opened files are re-opened, to know if the session works without a reboot.
    • reboot your pc.
    • close the new notepad++ and run it again from extracted npp.7.6.4.bin folder, to * * run notepad++.exe inside of the extracted npp.7.6.4.bin folder at your desktop, to see if notepad++ opens up all previously opened files after a reboot.

    if it behaves the same, please check if you have some software tools installed, that could clean up or revert any file changes to a previous state on reboot.
    (like tools used at e.g. internet cafe’s, to keep the pcs clean and restore selected folders to a previous state)



  • Seems fixed, I don’t konw why
    Keep testing



  • @shama-shii

    Seems fixed

    great, thanks for reporting back.



  • @Meta-Chuh Oh no , after another fresh install win10, the issue replayed.
    It seems occur when there’s an accident shut down
    Is there any auto backup fuction for session.xml or something similair?



  • @shama-shii

    Is there any auto backup fuction for session.xml or something similair?

    no, it’s just saved every 7 seconds (default value), but there is no extra backup of it.

    you could make a periodic backup of session.xml manually, if you go to file > save session, or create a batch file that copies session.xml somewhere else from time to time, so at least you will have an older session.xml backup if you have another accidental shutdown or windows update reboots by itself.


Log in to reply