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 90319 - Need synchronization for output window
Summary: Need synchronization for output window
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: BlueJ (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-30 00:39 UTC by ascholer
Modified: 2007-02-22 10:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ascholer 2006-11-30 00:39:57 UTC
It seems as if output is not well synchronized. For console style programs, the
echo from the input field often appears many lines after it should, sometimes in
the middle of a line of output from a System.out.println.

Possibly significant: I have never seen this bug at home, only at the lab at
school which is running dual core processors, where it is a fairly common and
unpredictable occurance. One run of a program will go fine, the next will echo
input 3 lines later than it should appear.
Comment 1 Milos Kleint 2006-11-30 11:06:40 UTC
would it be possible for you run the standard project instead of the bluej one
and report if the behaviour is the same?
the output of default j2se project is handled by ant itself, in the bluej
project type, I do some hacks to make the project's output appear in the
sseparate output tab. That would help me locate the area where the code is wrong
a bit. thanks.
Comment 2 Milos Kleint 2006-12-05 09:12:00 UTC
ascholer: "Running a standard project does appear to work fine. Let me know if
you have anything else you want me to try."
Comment 3 Milos Kleint 2007-02-22 10:34:28 UTC
should be fixed in the 5.5.1 version. 
the problem was 2 threads each writing single characters to the output window.
now the writing is cached by lines with a small timeout trigger for prints of
non-complete lines (eg. System.out.print("Enter name:"); )