Notepad++ crashes and erases the file being worked on.



  • Which Notepad++ version are you using. The phrase “I am using the very last version provided” is not precise.



  • This post is deleted!


  • I just encounter the exact same problem today, notepad++ crashes and erases my file. As a general notice i have to say that notepad++ from a stable must use tool for the last 1-2 year it’s an unstable tool that crashes quite often, but so far i didn’t loose any work until today.
    I’m using notepad++ in 3 different machines one with windows 10, one windows 7 and one which is an iMac with windows 7).
    The problem today appeared on my imac windows 7 installation (works perfectly for 3 years), anyway here is my debug info from notepad++
    Notepad++ v7.5.7 (32-bit)
    Build time : Jun 29 2018 - 00:46:55
    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 7 (64-bit)
    Plugins : AutoSave.dll ComparePlugin.dll CSSExplorerAdapter.UNICODE.dll HTMLTag_unicode.dll JSMinNPP.dll NPPJSONViewer.dll NppSaveAsAdmin.dll PluginManager.dll XMLTools.dll DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll



  • sorry for reposting after searching in google i find a solution, my missing data from the file was there %AppData%\Roaming\Notepad++\backup. solution link https://stackoverflow.com/questions/21712139/notepad-how-to-recover-a-deleted-file



  • @Dimitris-Stefanakis
    Thanks man, this helped me a lot!
    Just pressed ctrl+s and boom! Crash and file is empty

    Notepad++ v7.5.8 (32-bit)
    Build time : Jul 23 2018 - 02:03:53
    Path : C:\Program Files (x86)\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 8.1 (64-bit)
    Plugins : ComparePlugin.dll DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll



  • MINE AS WELL. I too have had the problem of notepad++ crashing and erasing my programs. I back my stuff up very regularly, but not always daily. At one point I know I had entirely too many open programs which did understandably crash it a couple times with no loss of data ( programs erased). I since refrained from excessive open programs. but after that, and with reinstalled newest version it started eating my programs. Html & javascript webGL locally ran applications I was developing. Twice it occurred while attempting to make 3D iframe alpha-transparent. First time I was able to save the open firefox instance of it and straighten out the DOM rearranged stuff. Second time it occurred I lost a weeks worth of work and was unable to save in that manner. Third time I wasn’t working on the 3D html, but a newest Three.js library test scene. I have started creating a little stack of three exact same versions of anything important I put in there now. It has been (notepad++) deleted and reinstalled ea time except this last time. The Toshiba windows 10 does not go online for any reason ever. I also would like this matter considered seriously. I LIKE my notepad++, I LIKE the dark background and light code script, styles. Why would I want to use windows notepad. I don’t have a clue what to use for alternative code editor, any proprietary-ware is out of the question. I wouldn’t even know where to start at troubleshooting why this would occur, I have looked for months for a post of this nature to begin addressing this very serious problem and only now just found it ( this post). I hope my reporting it here is in some way helpful, any additional information someone might need I have overlooked I will be happy to add. Thanks, freemnemoryerror (mike)



  • @Mike-Depping ,

    What is your Notepad++ version and could you briefly describe what exactly happened?



  • Sorry for delayed response. This site would not let me edit or
    repost. I also appologize for not more thouroughly reading entire post before posting.

    current version: Notepad++v7.2 (64-bit)
    listed under plugins: Converter, MIME Tools
    Path 1st and 2nd instance of: C:\Program Files (x86)\Notepad++\notepad++.exe
    Path 3rd instance of: somewhere else, on hard drive.
    Admin mode : not sure and I can’t find where that would be listed
    Local Conf mode : not sure and I can’t find where that would be listed
    OS : Windows 10 (64-bit)

    No changes, no reicently installed programs, Notepad++'s machine never goes online.

    saves were ‘Save’ not ‘Save as’

    No use of online cloud anything ever.
    First 2 deletions large file 3821 lines (145 KB)
    Third deletion was small file.
    The spellcorrect/suggestions thing was acting oddly between 2nd and third deletion incidents,
    changing things on occasion.

    wifi was active in vacinity during all deletion incidents but not connected on machine. ( I’m Mike above)



  • @Mike-Depping , @logic-error ,

    Does the problem occur often?
    Is your Notepad++ periodic backup feature turned ON?

    Notepad++ version 7.6 has fix for this issue (or similar) so I’m trying to figure out if the fix covers your case as well.
    Please update Notepad++ if you can and try with it.
    I have to warn you though that the plugins installation and location paths have changed in 7.6 and that may lead to problems finding your plugins. You might need to manually fix that but there is nothing to worry about. You can find info about the new 7.6 plugin handling and paths in the community posts or here as well: https://notepad-plus-plus.org/news/notepad-7.6-released.html .



  • Three times, or three deletions of my file being edited.
    Under Settings > Preferences > Backup, I have:
    Backup every 7 seconds, then it’s path does correspond with my current path.
    Then under ‘Backup on save’ , NONE is selected with no custom backup directory added



  • @logic-error

    If you are going to stick with your version 7.2, I would suggest you turn all “backup” options off…and see what happens going forward…good luck.



  • I’m sorry again for slow responses, I get site error ‘HERE’
    if I do anything other than enter a preprepared response.
    This site won’t let me edit or immediate reply. prefer not to get wrapped up in all that as I already
    have a nice little problem to work on.

    If not the v7.2 is there a version attainable you might recommend?

    Thank you, So if I have this correct, I will go to my version 7.2 under:
    Settings > Preferences > Backup
    and uncheck the ‘Remember current session for next launch’? and
    uncheck the 'Enable session snapshot and periodic backup,
    remove the timer variables if they need removed after these are unchecked (I’m assuming they wont)
    remove path, and leave None as None.

    Erasing ones programs is beyond MESSED UP, I would expect that kind of thing as a ploy for an
    application to get one to turn pro/ proprietary ware, or a competitors taking advantage
    of a weakness or vulnerability. thank you all again for your time. I see no real
    altermative but to try to find another useable code editor, preferably one
    that doesn’t just up and erase my stuff.



  • @logic-error ,

    I’m sorry, I couldn’t understand well your last post.
    You know, every program has it’s flaws (some might be really critical), they stay dormant and unnoticed but when they appear and are known they get fixed and the cycle repeats.

    If you decide to continue using Notepad++ get version 7.6 or bigger and you shouldn’t have problems like the one you described.


Log in to reply