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 114942 - Broken Repainting in editor for empty files
Summary: Broken Repainting in editor for empty files
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Painting & Printing (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
: 114979 115008 115072 115102 115239 115249 115253 115482 115510 115636 115661 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-06 20:44 UTC by Torbjorn Norbye
Modified: 2007-11-05 13:45 UTC (History)
7 users (show)

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 Torbjorn Norbye 2007-09-06 20:44:49 UTC
This is on OSX, with a trunk build fresh as of 3 hours ago (which means it includes the recent fix, 1.21, to
DrawEngineLineView).

To reproduce:

To reproduce:
(1) Create a new Ruby project
(2) Hit Command-A to select all text
(3) Hit Delete. The file is now empty with a blinking caret in the top left corner.
(4) Type "abc" (I was originally typing dc to reproduce your bug, but any text will do).

The caret moves over three letters, but the letters are invisible. Shift-arrowing over the text to select it also
doesn't expose it.

Perhaps related to all the performance optimizations in viewToModel, movelToView and DrawEngineLineView yesterday?

(I was trying to reproduce issue 114928 when I ran into this)
Comment 1 Vitezslav Stejskal 2007-09-07 08:20:46 UTC
I'll have a look, thanks for reporting this Tor.
Comment 2 Miloslav Metelka 2007-09-07 10:29:16 UTC
*** Issue 114979 has been marked as a duplicate of this issue. ***
Comment 3 Jiri Skrivanek 2007-09-07 13:19:28 UTC
*** Issue 115008 has been marked as a duplicate of this issue. ***
Comment 4 Torbjorn Norbye 2007-09-07 16:20:37 UTC
I'm seeing various other strange painting behavior too - not just in Ruby. As I was editing Java yesterday, I kept
getting  surprised by delayed screen repaints.

If I inserted a new line, it would take a full second before the screen contents below the caret would scroll down.
Also, the "expand selection" feature was broken and it looks like there's a caret updating notification that is now
firing asynchronously?

More seriously, it would sometimes tell me that I was at the bottom of the document (the scrollbar would say the same
thing) yet I -knew- I had a lot more file contents. Scrolling back up and then back down cleared it.

This is making the editor seem really broken - I think we're borderline P1 here. 
Comment 5 Torbjorn Norbye 2007-09-07 18:46:59 UTC
Upgrading to P1. Here's a post on dev@ruby:

Subject: This morning's builds (3749, 3754) editor nonfunctional?

I've tried on both 3749 and 3754 and I'm seeing the same in both.
Start typing, and pretty soon the it looks like the editor switches to
invisible white text against a white background.  Tried wiping out my
user directory, no change.  Selecting the text gives strange results,
but it's clear that the text is actually there.

Here's what I mean:

http://s3.amazonaws.com/world_readable/badeditor/badeditor.htm
Comment 6 Torbjorn Norbye 2007-09-09 16:04:08 UTC
*** Issue 115102 has been marked as a duplicate of this issue. ***
Comment 7 Vitezslav Stejskal 2007-09-10 13:47:36 UTC
*** Issue 115072 has been marked as a duplicate of this issue. ***
Comment 8 Vitezslav Stejskal 2007-09-10 13:50:14 UTC
Should be fixed now. I'm sorry for any inconveniences.

Checking in DrawEngineLineView.java;
/cvs/editor/libsrc/org/netbeans/editor/DrawEngineLineView.java,v  <--  DrawEngineLineView.java
new revision: 1.22; previous revision: 1.21
done
Comment 9 Max Sauer 2007-09-10 15:40:04 UTC
Verified.
---
Product Version: NetBeans IDE Dev (Build 070910)
 Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 
System: Linux version 2.6.12-1.1390_FC4smp running on i386; 
UTF-8; en_US (nb) Userdir: /home/ms159439/.netbeans/dev
Comment 10 Jiri Prox 2007-09-11 13:52:23 UTC
*** Issue 115249 has been marked as a duplicate of this issue. ***
Comment 11 Martin Krauskopf 2007-09-11 14:11:41 UTC
*** Issue 115253 has been marked as a duplicate of this issue. ***
Comment 12 kawazu428 2007-09-11 14:19:20 UTC
Seen the same behaviour in 200709101200's SQL editor window. Is this related to that issue or a whole new / different thing?
Comment 13 Vitezslav Stejskal 2007-09-11 15:06:38 UTC
Please try builds from 11th Sep or later. I think that the one you tried did not have the fix. It was from 1200 and my
fix went in at 1250 (aprox).
Comment 14 Vitezslav Stejskal 2007-09-11 15:09:44 UTC
*** Issue 115239 has been marked as a duplicate of this issue. ***
Comment 15 Vitezslav Stejskal 2007-09-14 07:14:11 UTC
*** Issue 115482 has been marked as a duplicate of this issue. ***
Comment 16 Jiri Prox 2007-09-14 08:40:37 UTC
*** Issue 115510 has been marked as a duplicate of this issue. ***
Comment 17 Jiri Skrivanek 2007-09-17 10:09:44 UTC
*** Issue 115661 has been marked as a duplicate of this issue. ***
Comment 18 Jiri Prox 2007-09-19 17:18:53 UTC
*** Issue 115636 has been marked as a duplicate of this issue. ***