<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Hibernation Wakeup: UNC File Removed]]></title><description><![CDATA[<p dir="auto">An issue rig specific to an <a href="https://support.hp.com/us-en/product/setup-user-guides/hp-elite-sff-600-g9-desktop-pc/model/2100888648" rel="nofollow ugc">HP</a>, specs <a href="https://valid.x86.fr/pkm8wh" rel="nofollow ugc">here</a> where files loaded in from the Synology NAS are removed from the editor after hibernation wake-up. The effects of the lost connection doesn’t repro (at least with N++) on other machines connected to the NAS here, where all explorer windows opened on the NAS bounce back to “This PC” or equivalent. The outage time before recovery is very short, so manually navigating back to the UNC path in explorer, or opening the path in N++ works almost immediately.<br />
A slightly awkward workaround could be requesting an option for UNC pathnames to be saved in a special section of the MRU somehow. Or, yes, I hear you, avoid hibernation altogether as it tends to be discouraged by many these days. :)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/26087/hibernation-wakeup-unc-file-removed</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 05:51:45 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/26087.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 06 Sep 2024 10:05:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hibernation Wakeup: UNC File Removed on Tue, 10 Sep 2024 08:14:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6636">@Laurie-Stearn</a> said in <a href="/post/96490">Hibernation Wakeup: UNC File Removed</a>:</p>
<blockquote>
<p dir="auto">triggers a clean boot out of the S4 state, which necessitates the relaunching of N++</p>
</blockquote>
<p dir="auto">With this info, I already have an idea of ​​what might be going on. The clean boot means that all the N++ process data, previously saved by the hibernation process to the Windows file “C:\hiberfil.sys”, is thrown away. So no previously opened files/tabs buffers in N++ available, N++ will start from the scratch with opening its files according to its session.xml file. Unfortunately N++ is updating its session.xml file content only at its regular exit (I was once <a href="https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14781#issuecomment-1973286194" rel="nofollow ugc">considering</a> the session.xml update after every successful file opening, but that was rejected for good reasons), not continuously right when a file is opened. So then the N++, after its re-launch, does not have the actual info needed for the opening of all your previous N++ files…</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6636">@Laurie-Stearn</a> said in <a href="/post/96490">Hibernation Wakeup: UNC File Removed</a>:</p>
<blockquote>
<p dir="auto">Even in this scenario, all local files are still loaded with the relaunch</p>
</blockquote>
<p dir="auto">It will depend on the previous state of your session.xml file. Simple test - if every time you finish work and are about to hibernate, you first exit the N++ and then re-launch it before the Windows hibernation itself - I bet that the session.xml will contain the complete information about your session files and there will not be your described issue…</p>
<p dir="auto">You can also use the N++ menu &gt; File &gt; Save Session… to always have a fresh backup for your session.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/5329">@mkupper</a> said in <a href="/post/96505">Hibernation Wakeup: UNC File Removed</a>:</p>
<blockquote>
<p dir="auto">nppLogNetworkDriveIssue.xml</p>
</blockquote>
<p dir="auto">That logging trigger is intended for something else (detection of the last write timestamps for network files), it will not help us here.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96508</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96508</guid><dc:creator><![CDATA[xomx]]></dc:creator><pubDate>Tue, 10 Sep 2024 08:14:20 GMT</pubDate></item><item><title><![CDATA[Reply to Hibernation Wakeup: UNC File Removed on Tue, 10 Sep 2024 00:35:42 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6636">@Laurie-Stearn</a> One thing that may provide additional information is to create a <code>%AppData%\Notepad++\nppLogNetworkDriveIssue.xml</code> configuration file. It’s mentioned in the <a href="https://npp-user-manual.org/docs/config-files/#other-configuration-files" rel="nofollow ugc">https://npp-user-manual.org/docs/config-files/#other-configuration-files</a> section of the Notepad++ manual.</p>
<p dir="auto">I suspect nothing will get logged as you mentioned there have been no pop-ups and I suspect that <code>c:\temp\nppLogNetworkDriveIssue.log</code> is only updated when for certain pop-ups.</p>
<p dir="auto">It’s strange that tabs are disappearing. My understanding of hibernation was that running processes were suspended and the RAM used by the applications was saved to disk. A power outage during hibernation should not bother Windows itself or the suspended applications, including Notepad++.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96505</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96505</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Tue, 10 Sep 2024 00:35:42 GMT</pubDate></item><item><title><![CDATA[Reply to Hibernation Wakeup: UNC File Removed on Mon, 09 Sep 2024 10:45:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/5329">@mkupper</a>: Hi, N++ running, file tab was not there on wake-up.<br />
Closing N++ prior to hibernate and restarting at any time is fine, if the NAS is down there will be, of course a “Keep non existing file” popup on tab activation for the file.<br />
No other popups/errors noted -here’s the debug:</p>
<pre><code>Notepad++ v8.6.9   (64-bit)
Build time : Jul 12 2024 - 05:09:25
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 11 Pro (64-bit)
OS Version : 23H2
OS Build : 22631.4037
Current ANSI codepage : 1252
Plugins : 
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)

</code></pre>
<p dir="auto">Do apologise for not explaining that this is, in fact, an intermittent issue, for instance after hibernation yesterday (and again today) the loaded NAS files are still in the editor.<br />
There is an issue related to AC power with this rig  that triggers a clean boot out of the S4 state, which necessitates the relaunching of N++. There is a good chance the NAS files have gone AWOL at that time, in which case I may not have noticed they were gone until after next hibernation.<br />
Even in this scenario, all local files are still loaded with the relaunch, sometimes the NAS files are not, in any case do not expect a sudden plug pull to N++ (or any program for that matter) for consistent results.<br />
The NAS Diskstation also has a periodic login timeout, this usually won’t affect direct access to files, there could be other reasons for <a href="https://learn.microsoft.com/en-us/troubleshoot/windows-client/networking/mapped-drive-connection-to-network-share-lost" rel="nofollow ugc">lost connections</a> though.</p>
<p dir="auto">Have daisy chained a power switch to the UPS, thus manually shutting off power after each hibernate prevents the thing from rebooting.<br />
Thanks for your interest, this is one to watch, and will update the thread once more information comes to hand.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96490</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96490</guid><dc:creator><![CDATA[Laurie Stearn]]></dc:creator><pubDate>Mon, 09 Sep 2024 10:45:29 GMT</pubDate></item><item><title><![CDATA[Reply to Hibernation Wakeup: UNC File Removed on Sun, 08 Sep 2024 15:55:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6636">@Laurie-Stearn</a> , Please clarify what you mean by “removed from the editor” in your initial post.</p>
<p dir="auto">Is Notepad++ running at the time you hibernate and if so, does the file tab just vanish without any message, or … what?</p>
<p dir="auto">If you exit/close Notepad++ prior to hibernate and you then restart Notepad++ once you are running do all of the tabs other than the ones for files stored on the NAS reopen at the positions where you were at in the files prior to exit/close Notepad++?</p>
<p dir="auto">Notepad++ does not keep files open when you are editing them. However, it is checking regularly to see if the modified time stamp for the file on disk, or its size change and if so alerts the user asking if they want to continue editing with the copy in the editor or to reload what’s on disk into the editor. Are you getting Reload pop-ups that mention “This file has been modified by another program?”</p>
<p dir="auto">Are you getting pop-ups about “Keep non existing file / The file “(file path)” doesn’t exist anymore. Keep this file in editor?”</p>
<p dir="auto">Please post the debug info from your editor. See <a href="https://community.notepad-plus-plus.org/topic/21965/please-read-this-before-posting">Please Read This Before Posting</a> for more about this.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96480</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96480</guid><dc:creator><![CDATA[mkupper]]></dc:creator><pubDate>Sun, 08 Sep 2024 15:55:02 GMT</pubDate></item><item><title><![CDATA[Reply to Hibernation Wakeup: UNC File Removed on Sun, 08 Sep 2024 13:47:39 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/288">@xomx</a>: Not just me, rather a combination of the effects of hibernation on the <em>UNC</em> pathnames, rig, Network Sharing and N++.<br />
No issues at all with files on the local disks as you have just illustrated.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96479</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96479</guid><dc:creator><![CDATA[Laurie Stearn]]></dc:creator><pubDate>Sun, 08 Sep 2024 13:47:39 GMT</pubDate></item><item><title><![CDATA[Reply to Hibernation Wakeup: UNC File Removed on Sat, 07 Sep 2024 20:44:29 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6636">@Laurie-Stearn</a> said in <a href="/post/96463">Hibernation Wakeup: UNC File Removed</a>:</p>
<blockquote>
<p dir="auto">could it be N++ has a problem retrieving these UNC pathnames during the commencement of hibernation?</p>
</blockquote>
<p dir="auto">So I tried to test somehow (N++ not being able to check the file path for an opened file) … and no such problem for me:</p>
<p dir="auto"><img src="/assets/uploads/files/1725741323727-npp-hibernationtest1-before.png" alt="npp-hibernationtest1-before.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1725741334130-npp-hibernationtest2-after.png" alt="npp-hibernationtest2-after.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1725741339750-npp-hibernationtest3-activated-npp.png" alt="npp-hibernationtest3-activated-npp.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Maybe you are doing something different than me(?).</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96468</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96468</guid><dc:creator><![CDATA[xomx]]></dc:creator><pubDate>Sat, 07 Sep 2024 20:44:29 GMT</pubDate></item><item><title><![CDATA[Reply to Hibernation Wakeup: UNC File Removed on Sat, 07 Sep 2024 17:13:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/288">@xomx</a> said in <a href="/post/96460">Hibernation Wakeup: UNC File Removed</a>:</p>
<blockquote>
<p dir="auto">So this means that all the running process of the N++ and all its data (open docs tabs) will be stored temporarily on the system HDD, regardless of where the original files came from. So there will not be a reason for an edited file/tab to be missing in N++ after waking up from the hibernation.</p>
</blockquote>
<p dir="auto">In that case, could it be N++ has a problem retrieving these UNC pathnames during the commencement of hibernation?</p>
<p dir="auto">Thanks, never used sessions, thus it might be a good idea to do so. Would also definitely be more comfortable with a little more flexibility in hibernation, means extras like BCDEdit or HORM though.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96463</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96463</guid><dc:creator><![CDATA[Laurie Stearn]]></dc:creator><pubDate>Sat, 07 Sep 2024 17:13:31 GMT</pubDate></item><item><title><![CDATA[Reply to Hibernation Wakeup: UNC File Removed on Sat, 07 Sep 2024 14:57:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6636">@Laurie-Stearn</a> said in <a href="/post/96450">Hibernation Wakeup: UNC File Removed</a>:</p>
<blockquote>
<p dir="auto">where files loaded in from the Synology NAS are removed from the editor after hibernation wake-up</p>
</blockquote>
<p dir="auto">You can either leave the N++ opened with its files/tabs before the hibernation or use the N++ Preferences &gt; Backup &gt; Remember inaccessible files from past session.</p>
<p dir="auto">Notepad++ is an in-memory editor. So while editing a loaded file in N++, the N++ does not keep the original file handle opened (until one tries to save the edited file/tab data). Hibernation then moves everything from the volatile computer memory (RAM) to a permanent storage (HDD). So this means that all the running process of the N++ and all its data (open docs tabs) will be stored temporarily on the system HDD, regardless of where the original files came from. So there will not be a reason for an edited file/tab to be missing in N++ after waking up from the hibernation.</p>
<p dir="auto">If you mean a situation when someone closes the N++ app (with opened files/tabs in it), then does the hibernation/waking up sequence and open N++ while the files for the opened N++ session are not ready yet - then use this setting in N++:<br />
<img src="/assets/uploads/files/1725720251338-npp-preferences-backup-placeholders.png" alt="npp-Preferences-Backup-Placeholders.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">With this, after the N++ has been re-launched (after the waking up), you will obtain this msg:<br />
<img src="/assets/uploads/files/1725720315301-npp-placeholders-in-action.png" alt="npp-Placeholders-in-action.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Choose yes and when your files will be available again, N++ automatically replaces temporarily created read-only empty placeholder tabs with its real counterparts.</p>
<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.notepad-plus-plus.org/uid/6636">@Laurie-Stearn</a> said in <a href="/post/96450">Hibernation Wakeup: UNC File Removed</a>:</p>
<blockquote>
<p dir="auto">Or, yes, I hear you, avoid hibernation altogether as it tends to be discouraged by many these days. :)</p>
</blockquote>
<p dir="auto">I use it often without any problems.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/96460</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/96460</guid><dc:creator><![CDATA[xomx]]></dc:creator><pubDate>Sat, 07 Sep 2024 14:57:34 GMT</pubDate></item></channel></rss>