Community
    • Login

    Memory overload crash?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 2.3k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • BartB Offline
      Bart
      last edited by

      Hello people,

      I was playing a bit in the editor and kept copying the same bit of text over and over till I had over 1 million lines text or something just to see what effect it would have on my RAM and CPU. Then the program crashed. I started the program again but I lost my unsaved text tabs. Is this proglem fixeble? Maybe in a new patch?

      1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones
        last edited by

        Unfortunately, we need more to go on.

        • What version of Notepad++ are you using?
        • What plugins are installed?
          • these first two, as described in the linked FAQ, can be found in the ? > Debug Info menu
        • How much memory does your PC have? What is your memory usage before you start the experiment? (Ctrl+Shift+Esc > Performance > Memory)
        • What is the exact procedure you use, and is it reproducible for you?
          • You said you “kept copying the same bit of information”.
            • How big is the block you are reproducing?
            • Did you copy once, paste N times? Or did you copy-all, paste, copy-all, paste (to double size each time)?
            • Does it matter what’s in the text, or does it only happen with a certain string?
          • Was it a new / unnamed file? Or did you start with a previously-saved/named file?
          • What are your settings for Settings > Preferences > Backup

        For example, I could not repeat your circumstance by using:

        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 10 (64-bit)
        Plugins : ComparePlugin.dll dbgpPlugin.dll DSpellCheck.dll MarkdownViewerPlusPlus.dll NppConverter.dll NppExec.dll NppFTP.dll PluginManager.dll PreviewHTML.dll PythonScript.dll XMLTools.dll mimeTools.dll NppExport.dll 
        
        1. My Task Manager > Performance > Memory shows about 4.2G / 7.8G used… before I start.

        2. Create new (unnamed file)

        3. Typing a single line followed by a newline:

          This song is just six words long.
          
        4. Ctrl+A (select all), Ctrl+C (copy), Ctrl+END (goto end), Ctrl+V (paste)

        5. Repeat #3 until I had 2097152 lines (that’s 2M, so it goes over your “over 1 million lines”.)

        6. From about the 500k-line version, the copy/paste got slow. When I tried to copy the 2M lines, and paste, I never saw the result of the paste (though it never crashed).

        7. I started over (after closing the file, exiting, and reloading NPP), and this time my last copy was on the 524288-line copy. I then only pasted from then on out… The paste when my blank line was 5767169 never seemed to finish. But once again, I didn’t get a crash.

        I cannot replicate your problem. So, unless you can show us exactly how to replicate your problem, it’s going to be hard for us to help you.

        Scott SumnerS 1 Reply Last reply Reply Quote 1
        • BartB Offline
          Bart
          last edited by

          Update:

          I found my lost files in the “N++RECOV” folder inside %temp%. But i’m still curious if the crash could be prevented.

          1 Reply Last reply Reply Quote 0
          • Scott SumnerS Offline
            Scott Sumner @PeterJones
            last edited by

            @PeterJones

            I guess TLDR… :-)

            1 Reply Last reply Reply Quote 0
            • BartB Offline
              Bart
              last edited by

              Thanks for your elaborated response. Here are some specs:

              • My pc has 32GB RAM (windows 7 enterprise)
              • Notepad version: 7.5.9 (64 bit)
              • no plugins installed.

              The last crash i just copied some random text and pasted it allot of times.

              I tried you experiment and got a crash again (https://imgur.com/a/n1NYHhB). This picture also shows the exact error.

              1 Reply Last reply Reply Quote 1

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors