Windows 10: Windows 10.017763 (1809) Memory Leak TextBox.Text set with Multi Line

Discus and support Windows 10.017763 (1809) Memory Leak TextBox.Text set with Multi Line in Windows 10 BSOD Crashes and Debugging to solve the problem; I have raised this issue on the Visual Studio forum but after 3 months they have just closed it and told me to post on here. Please see original posts... Discussion in 'Windows 10 BSOD Crashes and Debugging' started by Chris Vanstone, Feb 28, 2019.

  1. Windows 10.017763 (1809) Memory Leak TextBox.Text set with Multi Line


    I have raised this issue on the Visual Studio forum but after 3 months they have just closed it and told me to post on here. Please see original posts and follow up comments here - Visual Studio Issue Report


    Issue Report

    I have found a critical memory leak in Windows 10 - 1809 update regarding line feed characters in a TextBox. Setting a text value that ends in "\r\n" and then replacing it with a value that ends "\n" results in a 1.2GiB to 2GiB Working Set memory leak which ramps linearly with max CPU for around 30 to 60s depending on the spec of the machine it is running on.

    The application attached on the Visual Studio forum post (I can't seem to attach here) highlights the exact failure point with strings that are only a few bytes in length.

    Process for replication
    - Define a TextBox as MultiLine = true
    - Write to the Text property a message with a "\r\n" line feed present (i.e "a\r\n")
    - Write over the message with a string ending in "\r" (i.e "a\r")
    - Application will freeze and memory will leak

    Clearing the TextBox before setting doesn't seem to fix the issue, but cycling the MultiLine property between Write operations does. This can be replicated in the application using the check box options.

    This cannot be replicated on any systems that have not been updated to Windows 10 1809.

    Wondering if the line feed method in the first Text set ("\r\n") is cached, and any subsequent Text updates that do not use the same pattern cause a search through the rest of the heap looking for the next "\n"?


    I also noted that this update brought in support for non-Windows line feeds in Notepad and wondered if this had any overlap?


    This was initially uncovered in a much larger application where one small component is MultiLine TextBox as a scrolling log which is reduced by 20% when it gets over 100000 chars. The TextBox.Append (for each new line) never seems to cause an issue, but when I overwrite the entire contents (TextBox.Text = ...) with the top 20% removed, the memory leak situation may or may not start depending upon the final linefeed of the message.

    :)
     
    Chris Vanstone, Feb 28, 2019
    #1
  2. BulldogXX Win User

    Possible Memory Leaks in Windows 10

    A memory leak occurs when an application closes and fails to release all its RAM back to the operating system.

    The first step in dealing with a memory leak is to determine which application is leaking memory.

    The next step is to contact that application's technical support with complete details of the memory leak, since the developers will want to fix the problem ASAP.
     
    BulldogXX, Feb 28, 2019
    #2
  3. Windows Media Player in Windows 10 build 1809 - 17763.55 has a memory leak

    Windows Media Player in Windows 10 build 1809 - 17763.55 has a memory leak and eventually runs out of memory and stops playing.

    What can I do to fix this?
     
    mikeyhalla, Feb 28, 2019
    #3
  4. BulldogXX Win User

    Windows 10.017763 (1809) Memory Leak TextBox.Text set with Multi Line

    Memory leak issue

    The term "memory leak" means that an application fails to return all its RAM to the operating system when it exits. The leftover RAM is unusable to the operating system.

    Step one is to identify the application that is leaking memory. Step two is to contact the application's developers and provide as much detailed data on the memory leak as you can. For example: which processes are still in RAM after the application exits
    and how much RAM they occupy. Application developers never want their applications to leak memory and they will be grateful for the details you provide, particularly if they can replicate the leak on their own computers.
     
    BulldogXX, Feb 28, 2019
    #4
Thema:

Windows 10.017763 (1809) Memory Leak TextBox.Text set with Multi Line

Loading...
  1. Windows 10.017763 (1809) Memory Leak TextBox.Text set with Multi Line - Similar Threads - 017763 1809 Memory

  2. Windows 10 - Memory Leaks

    in Windows 10 Support
    Windows 10 - Memory Leaks: I'm trying to determine what is causing a memory leak on my Work PC - its an old machine running Win 10 Pro - i7-5930, 64GB ram, Gigabyte X99 motherboard. The issue has only started a few months ago, but can't for the life of me work out what the issue is. I thought it could...
  3. Windows 10 memory leak

    in Windows 10 Installation and Upgrade
    Windows 10 memory leak: I recently purchased a new laptop and when transferring my old files from my previous one I used a new backup program and accidentally cloned my old laptop onto the new one. This gave me a whole bunch of errors and my new key was lost so I torrented a copy of windows and did...
  4. Windows 10 - memory leak

    in Windows 10 Ask Insider
    Windows 10 - memory leak: I just recently started to notice that my ram usage went up without any apparent reason and my PC started to lag and even to freeze, something that didn't happened before. So i did some digging and found out this strange behavior using RAMMap something i couldn't see with a...
  5. Windows 10 1809 Memory Leak

    in Windows 10 Ask Insider
    Windows 10 1809 Memory Leak: Windows 10 v1809 Intel i5-8250U 8GB RAM I updated to v1809 from v1803 back in December, and since then, I've noticed that my Memory used at idle is significantly more than it used to be, particularly after my computer has been running for awhile. Prior to the update, my...
  6. WIndows 10 Memory leak

    in Windows 10 BSOD Crashes and Debugging
    WIndows 10 Memory leak: Good day , In the last week, my pc start presenting memory issues and i have been investigating and trying to solve them. the first one appeared was High use of memory like 98% when having nothing running, just pc in stand by. the problem of that was NonPaged Memory was...
  7. Windows 10 Memory leak on 1809 and 1903

    in Windows 10 BSOD Crashes and Debugging
    Windows 10 Memory leak on 1809 and 1903: Recently I started having high memory usage on my systems, since updates to 1809. I went through all the normal steps of virus checking and driver updates even to the point of replacing a video card to afford most recent Nvidia updates. I have one system running 1809 and my...
  8. Windows 10 Memory leak on 1809 and 1903

    in Windows 10 Drivers and Hardware
    Windows 10 Memory leak on 1809 and 1903: Recently I started having high memory usage on my systems, since updates to 1809. I went through all the normal steps of virus checking and driver updates even to the point of replacing a video card to afford most recent Nvidia updates. I have one system running 1809 and my...
  9. Multiline TextBox Issue in Windows 10 1809

    in Windows 10 BSOD Crashes and Debugging
    Multiline TextBox Issue in Windows 10 1809: After installing Windows 10 1809, the last visible line in the Windows Form TextBox is truncated vertically. Repro Steps: 1. Create a winforms application with a textbox control. 2.Setting the multiline is true. 3 .Re-size the textbox controls Actual Results: the last...
  10. EDGE memory leak - W10 Version 1809

    in Windows 10 Software and Apps
    EDGE memory leak - W10 Version 1809: I've been trying to use Edge for several years, and still cannot keep it running a full day. I've reverted to only using it now to stream music and video, but am going to take a 6 month vacation (again) from Edge to see if the MS team can get it right. (Although IE11 was...