This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Automatic tests fails with OutOfMemoryError | ||
---|---|---|---|
Product: | editor | Reporter: | soldatov <soldatov> |
Component: | Painting & Printing | Assignee: | issues@editor <issues> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dstrupl, troodon |
Priority: | P1 | Keywords: | TEST |
Version: | 7.0 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Document at time of endless loop |
Description
soldatov
2010-08-19 11:42:59 UTC
/net/vvv-qa.russia.sun.com/export/home/tester/dump/heapdump.hprof Valera, does turning off line wrapping helps? As I understand test started to fail exactly after the first NB version with line wrapping on? Yes. If I add such line into code: System.setProperty("org.netbeans.editor.linewrap", "false"); then OutOfMemoryError disappeares Thanks for the dump. There's 19 NbEditorDocument instances, they are mostly <1K. There's 1,955,223 instances of ParagraphView and they are all created from a single ViewBuilder so the code if (doCreateViews) { // Create all new views while (createNextView()) { } } have endless-looped. I have reconstructed the document's text and I'll attempt to reproduce the problem so that I can fix it. Created attachment 101640 [details]
Document at time of endless loop
I would like to ask CND people if they could direct me to the test that fails? Thanks. (In reply to comment #6) > I would like to ask CND people if they could direct me to the test that fails? > Thanks. Very very thanks, Miloslav Now I can reproduce bug. Scenario: - Start NetBeans with fresh user directory and with -J-da - Push Tools|Options - Select Editor > Formatting tab - Select C language - Select ANSI, Apache, ... styles - Select C++ language - Select ANSI, Apache, ... styles - Press OK button ==> OOM I was unable to reproduce OOME however when running with assertions enabled an assertion in ViewBuilder triggered. I have found the problem and I expect to have a fix within 2 hours. Integrated into 'main-golden', will be available in build *201008260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/12fdd8f7fa12 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #189681 - Automatic tests fails with OutOfMemoryError. I launched automatic tests on 201008260001 build and tests finished without OOME. P.S. Also I see empty "Preview" text area for C/C++/Fortran language (before and after fix). Is it other or related bug? I think that the preview bug is unrelated to this. http://hg.netbeans.org/jet-main/rev/12fdd8f7fa12 transplanted into release610_m1: http://hg.netbeans.org/releases/rev/83347c556099 *** Bug 187330 has been marked as a duplicate of this bug. *** |