Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335917

Summary: Memory leak using XML editor
Product: [WebTools] WTP Source Editing Reporter: bugsquisher
Component: wst.xmlAssignee: wst.xml <wst.xml-inbox>
Status: RESOLVED WORKSFORME QA Contact: Nitin Dahyabhai <thatnitind>
Severity: minor    
Priority: P3 CC: nsand.dev, thatnitind
Version: unspecifiedKeywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
error screenshot none

Description bugsquisher CLA 2011-01-31 17:53:49 EST
Build Identifier: Build id: I20090611-1540

Use of the XML editor (making edits, undoing, or redoing) causes a rapid increase in memory usage, ending in crashes where files cannot be saved ("no handles"). 

The Java editor doesn't appear share this defect.

Note: I'm using the "Catdroid" ADK package below, and the XML files in question are Android layout descriptions. 

http://catdroid.org/?p=210&lang=en

Reproducible: Always

Steps to Reproduce:
1. Open an XML editor and keep your eye on the task manager
2. Make a small edit, e.g. insert a space. Memory usage jumps by several MB
3. Make a large edit, e.g. hold down space. Memory consumption continues until Eclipse crashes.
Comment 1 bugsquisher CLA 2011-01-31 17:58:38 EST
Created attachment 188017 [details]
error screenshot
Comment 2 Nitin Dahyabhai CLA 2011-01-31 21:03:45 EST
Are you able to reproduce this with WTP 3.1.2 or WTP 3.2.2 and *without* ADK installed?
Comment 3 bugsquisher CLA 2011-02-01 18:10:33 EST
(In reply to comment #2)
> Are you able to reproduce this with WTP 3.1.2 or WTP 3.2.2 and *without* ADK
> installed?

Hi Nitin,

Not sure what you mean by WTP. I grabbed Helios and the issue seems to be mitigated. Small edits cause similar spikes in memory usage as reported by the task manager, but the space is reclaimed shortly, preventing any crashes.
Comment 4 Nick Sandonato CLA 2011-02-18 11:01:19 EST
I have not been able to reproduce these problems myself. If this continues and can be determined to be a problem with the Webtools Platform editor, and not Catdroid or its associated plug-ins, then please reopen the defect.