Skip to main content

Painting issues in b23?

10 replies [Last post]
ljnelson
Offline
Joined: 2003-08-04
Points: 0

Has anyone else experienced disappearing components in b23? I just ran Squirrel SQL Client and the application came up completely blank (no menus, etc.) but when I hovered over where the menus should have been, some painting activity took place.

I saw this before as well with one of my own applications that I know for a fact is doing everything correct with regards to the EDT.

Before I dig and file a careful bug report I wanted to see if I am alone in this.

Thanks,
Laird

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
trembovetski
Offline
Joined: 2003-12-31
Points: 0

Thanks for the information. It's likely a driver-related issue caused by the new Direct3D pipeline introduced in 6u10. A work around is to disable it with -Dsun.java2d.d3d=false (or set global env. variable J2D_D3D=false).

> Driver Version : 6.14.10.5401

Do you know if that the latest available version of the video driver? Could you check on your board or system manufacturer's site if there's anything newer?

I have filed this bug to track this issue (should appear on bugs.sun.com in a day)
6714579: D3D: intermittent rendering issues on [Nvidia GeForce FX Go5600]

Dmitri

trembovetski
Offline
Joined: 2003-12-31
Points: 0

Any update on this?

Dmitri

ljnelson
Offline
Joined: 2003-08-04
Points: 0

No update; I checked the nVidia site and they don't even have the chip listed. It's the graphics chip installed by default on an HP pavilion zd7000 in case that matters (probably not), and it's probably about what, eight years old? So they probably aren't going to update it.

Thanks,
Laird

trembovetski
Offline
Joined: 2003-12-31
Points: 0

Any chance you could try the drivers from this website:
http://www.laptopvideo2go.com/drivers

They have the same bits as the nvidia website, but with modified .inf files so that the driver works on all nvidia hardware. Nvidia drivers have a "unified driver architecture", which means they work on pretty much any nvidia board, but the system manufacturers force them not to allow users to download/install the generic drivers..

Thanks,
Dmitri

trembovetski
Offline
Joined: 2003-12-31
Points: 0

Please try the latest build (b25), see if it helps.

Did it work in previous builds?

What's your configuration? Please run your application (or any swing app) with
the following environment variable set:
J2D_TRACE_LEVEL=4
and post the output.

Thanks,
Dmitri
Java2D Team

ljnelson
Offline
Joined: 2003-08-04
Points: 0

> Please try the latest build (b25), see if it helps.

OK.

> Did it work in previous builds?

Well, in JDK6 update 5. But I haven't tried previous builds of update 10.

> What's your configuration?

Windows XP, Pentium 4, nVidia GeForce FX Go5600 graphics chip.

> Please run your
> application (or any swing app) with
> the following environment variable set:
> J2D_TRACE_LEVEL=4
> d post the output.

OK; I cannot reproduce this reliably (it happens intermittently, but fairly regularly) so the next time it happens on any application I'll post the output.

Best,
Laird

trembovetski
Offline
Joined: 2003-12-31
Points: 0

> OK; I cannot reproduce this reliably (it happens intermittently, but fairly regularly) so the next time it happens on any application I'll post the output.

Actually, I'd like to have the output even when it doesn't reproduce - it'll just print out the driver version, stuff like that, which may be usable in debugging.

Also, next time it happens, could you take a screenshot?

Thanks,
Dmitri

ljnelson
Offline
Joined: 2003-08-04
Points: 0

Hi there.

I downloaded and ran UMLet 8.0.1, which has never had painting problems in the past on released JDKs. (http://www.umlet.com/umlet_8_01/umlet801.zip)

The program loads and paints fine.

I double clicked on the SimpleClass template. That's it; no other gestures, interaction, etc.

The program suffers from all sorts of painting artifacts and incomplete paints.

Here is the console output:
[code]
E:\umlet801\com.umlet.plugin>java -jar umlet.jar
[I] OS Version = OS_WINXP Pro
[I] CheckAdaptersInfo
[I] ------------------
[I] Adapter Ordinal : 0
[I] Adapter Handle : 0x10001
[I] Description : NVIDIA GeForce FX Go5600
[I] GDI Name, Driver : \\.\DISPLAY1, nv4_disp.dll
[I] Vendor Id : 0x10de
[I] Device Id : 0x031a
[I] SubSys Id : 0x6a103c
[I] Driver Version : 6.14.10.5401
[I] GUID : {D7B71E3E-405A-11CF-9566-602000C2CB35}
[I] D3DPPLM::CheckDeviceCaps: adapter 0: Passed
[I] ------------------
[I] D3DGD_getDeviceCapsNative
[I] D3DContext::InitContext device 0
[I] D3DContext::ConfigureContext device 0
[V] dwBehaviorFlags=D3DCREATE_FPU_PRESERVE|D3DCREATE_HARDWARE_VERTEXPROCESSING
[I] D3DContext::ConfigureContext: successfully created device: 0
[I] D3DContext::InitDevice: device 0
[I] D3DContext::InitDefice: successfully initialized device 0
[V] | CAPS_DEVICE_OK
[V] | CAPS_RT_PLAIN_ALPHA
[V] | CAPS_RT_TEXTURE_ALPHA
[V] | CAPS_RT_TEXTURE_OPAQUE
[V] | CAPS_LCD_SHADER | CAPS_BIOP_SHADER | CAPS_PS20
[V] | CAPS_MULTITEXTURE
[V] | CAPS_TEXNONSQUARE
[/code]

I've also attached the resulting screenshot.

Finally, here's my java -version output:
[code]
E:\umlet801\com.umlet.plugin>java -version
java version "1.6.0_10-beta"
Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b25)
Java HotSpot(TM) Client VM (build 11.0-b12, mixed mode, sharing)
[/code]

Let me know if I can provide anything else.

Best,
Laird

ljnelson
Offline
Joined: 2003-08-04
Points: 0

The only other data point that might be of interest (class data sharing?) is that I [i]think[/i] (cannot be sure) that these painting issues happen only when I'm running two JVMs. So for example I have NetBeans open as well. That doesn't mean that every time I run UMLet in this kind of scenario it fails, but I think that the only times it has failed has been when I run it when NetBeans is also running.

Thanks,
Laird

ljnelson
Offline
Joined: 2003-08-04
Points: 0

(Well, it's not class sharing; java -Xshare:off gives the same result.)