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.

Bug 190174 - Logging to System.err broken
Summary: Logging to System.err broken
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.0
Hardware: PC Linux
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 190206 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-06 08:12 UTC by Jan Lahoda
Modified: 2010-09-08 03:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test project. (4.89 KB, application/zip)
2010-09-06 08:12 UTC, Jan Lahoda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Lahoda 2010-09-06 08:12:16 UTC
Created attachment 101882 [details]
Test project.

After #189801, output printed to System.err is never printed to console, and (even worse) leaks in the memory.

To reproduce:
-download, unpack, open and run the attached test project
-use File/Print Little to print a bit of System.err output - it does not appear on the console (for me)
-use File/Print a Lot (which tries to print quite a lot output to the System.err) and wait for a little while - the IDE runs out of memory, without printing the expected output

(Note that if there is forgotten debug output that prints a lot of data, it is difficult to find it [as nothing is printed] and it is difficult to understand why the IDE crashes with OOME.)
Comment 1 Jaroslav Tulach 2010-09-07 11:59:06 UTC
core-main#31e6ad5848d5
Comment 2 Jaroslav Tulach 2010-09-07 16:07:11 UTC
*** Bug 190206 has been marked as a duplicate of this bug. ***
Comment 3 Quality Engineering 2010-09-08 03:29:24 UTC
Integrated into 'main-golden', will be available in build *201009080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/31e6ad5848d5
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #190174: Refinement to original fix for 189801. We need to prevent holding locks at least in some common calls to print(s)