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 236032 - Broken repainting after scrolling on JDK8
Summary: Broken repainting after scrolling on JDK8
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords: JDK_8
Depends on:
Blocks:
 
Reported: 2013-09-16 14:01 UTC by Vladimir Riha
Modified: 2013-10-10 13:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
video with issue (5.21 MB, video/ogg)
2013-09-16 14:01 UTC, Vladimir Riha
Details
sample file (81.65 KB, application/javascript)
2013-09-16 14:02 UTC, Vladimir Riha
Details
IDE log (55.77 KB, text/x-log)
2013-09-16 14:03 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2013-09-16 14:01:29 UTC
Created attachment 140134 [details]
video with issue

Please check the video, if I horizontally scroll in editor (JavaScript file in this case), it becomes "broken", if I stop scrolling and and click inside editor, it recovers after a very short time (< 1sec)

I does not happen with every file though, I'm attaching one where you can reproduce it.



Product Version: NetBeans IDE 7.4 RC1 (Build 201309152201)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b49
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b107
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2013-09-16 14:02:11 UTC
Created attachment 140135 [details]
sample file

Sample file to reproduce.
Comment 2 Vladimir Riha 2013-09-16 14:03:05 UTC
Created attachment 140136 [details]
IDE log

IDE, please note that

java.lang.NoSuchMethodException: java.lang.UNIXProcess.destroyProcess(int)

is not related.
Comment 3 Vladimir Riha 2013-09-16 14:12:48 UTC
If you format the attached file, the issue is reproducible also on vertical scrolling. One thing I noticed is the gray background color, which should be white as in any other JS file
Comment 4 Vladimir Riha 2013-09-16 14:40:17 UTC
I saw it on multiple CSS/JS files and it is pretty ugly, especially when it happens during e.g. debugging
Comment 5 Miloslav Metelka 2013-09-16 15:02:44 UTC
It looks that for some reason the background is not cleared when painting the text. We could add an extra background clearing and see whether it resolves the problem.
Comment 6 Miloslav Metelka 2013-09-20 14:14:13 UTC
I'm unable to reproduce the problem on the given file on Ubuntu 13.04

  Java; VM; Vendor        = 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b48; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.8.0-ea-b106

I'd like to ask QE to possibly test other platforms as well. Thanks.
Comment 7 Vladimir Riha 2013-09-20 17:32:33 UTC
I'll try it on Win and different Ubuntu. Maybe it is only 32bit JDK issue
Comment 8 Vladimir Riha 2013-09-23 08:40:32 UTC
Unfortunately I cannot reproduce it on other OS than mine. I've tried latest trunk build on Win8 (both 32b and 64b JDK) and on another Ubuntu 12.04 with 32b JDK and it works there. But I still can reproduce it on mine machine...
Comment 9 Vladimir Riha 2013-09-26 07:31:26 UTC
I'm not sure if it's related but I just saw the same problem in output window as well once its content became too long (e.g. after running ant clean on nbbuild)
Comment 10 Miloslav Metelka 2013-09-30 11:56:40 UTC
Could you possibly run java notepad:

java -jar <jdk>/demo/jfc/Notepad/Notepad.jar

and paste the large content there and test whether the problem is showing or not? Thanks.

Since it's likely a jdk problem downgrading to P2.
Comment 11 Vladimir Riha 2013-10-01 07:14:10 UTC
Yes, the same problem is with the Notepad except NetBeans recovers if I click inside text but notepad doesn't


java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-b109)
Java HotSpot(TM) Server VM (build 25.0-b51, mixed mode)
Comment 12 Miloslav Metelka 2013-10-07 08:59:40 UTC
Reassigning to platform/jdk. Since this is a visible problem this should imho be given a higher priority among jdk issues.
Comment 13 Antonin Nebuzelsky 2013-10-10 13:36:59 UTC
JDK bug #8026261 created.

https://bugs.openjdk.java.net/browse/JDK-8026261