Bug 26375 - contents of java applications not displaying
Summary: contents of java applications not displaying
Status: RESOLVED NOTOURBUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: 7.4 (2008.09)
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-01 20:13 UTC by Brian Paterni
Modified: 2010-04-06 15:15 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
maple screenshot (84.87 KB, image/png)
2010-02-01 20:13 UTC, Brian Paterni
no flags Details

Description Brian Paterni 2010-02-01 20:13:50 UTC
Created attachment 32987 [details]
maple screenshot

I'm not sure where this bug originates at. Whether it's a java bug, radeon bug, or something else is causing it. Nevertheless, I'm having problems viewing the content of java applications (eg. Maple). These java apps seem to start up fine since a window is displayed to the screen, but this window is just blank white. No text, tool bars, buttons, and such are being rendered. I'll provide a screen shot in an attachment so you can see what I'm seeing and maybe determine what is happening.
Comment 1 Alex Deucher 2010-02-01 22:28:08 UTC
Is this an OpenGL app?  Does it display correctly using the vesa driver?
Comment 2 Brian Paterni 2010-02-02 10:37:59 UTC
* bugzilla-daemon@freedesktop.org <bugzilla-daemon@freedesktop.org> [2010-02-01 22:28:08 -0800]:
> --- Comment #1 from Alex Deucher <agd5f@yahoo.com>  2010-02-01 22:28:08 PST ---
> Is this an OpenGL app? 

I'm not sure if Maple uses OpenGL. It's math software so it is possible that it
uses it to render 3d plots, etc.

> Does it display correctly using the vesa driver?

I haven't tested it with vesa yet... Is it possible to get it running on kms?
Comment 3 Clemens Eisserer 2010-02-02 10:39:39 UTC
No, maple is a "normal" Java application using Swing which is based on Java2D.
Comment 4 Alex Deucher 2010-02-02 10:53:03 UTC
(In reply to comment #2)
> 
> I haven't tested it with vesa yet... Is it possible to get it running on kms?
> 

You'll have to disable kms to try vesa.  disable kms and set the driver line in your xorg.conf to vesa.
Comment 5 Brian Paterni 2010-02-02 11:21:40 UTC
* bugzilla-daemon@freedesktop.org <bugzilla-daemon@freedesktop.org> [2010-02-02 10:53:04 -0800]:
> --- Comment #4 from Alex Deucher <agd5f@yahoo.com>  2010-02-02 10:53:03 PST ---
> (In reply to comment #2)
> > 
> > I haven't tested it with vesa yet... Is it possible to get it running on kms?
> > 
> 
> You'll have to disable kms to try vesa.  disable kms and set the driver line in
> your xorg.conf to vesa.

Okay thanks, I'm still getting the same results with vesa...
Comment 6 Alex Deucher 2010-02-02 11:28:43 UTC
(In reply to comment #5)

> Okay thanks, I'm still getting the same results with vesa...
> 

Looks like a java or xserver bug then rather than a radeon bug.
Comment 7 Michel Dänzer 2010-02-03 01:33:43 UTC
If you're using compositing, Java was traditionally known to have bugs which made it not work correctly with that.
Comment 8 Brian Paterni 2010-02-04 11:19:08 UTC
* bugzilla-daemon@freedesktop.org <bugzilla-daemon@freedesktop.org> [2010-02-03 01:33:44 -0800]:

> --- Comment #7 from Michel Dänzer <michel@daenzer.net>  2010-02-03 01:33:43 PST ---
> If you're using compositing, Java was traditionally known to have bugs which
> made it not work correctly with that.

Actually, I'm running plain old xmonad, no compositing.
Comment 9 Brian Paterni 2010-02-14 21:07:05 UTC
OK, I've tried several different versions of java (even the early access java 7 package listed on java.sun.com). However all experience the same problem which leads me to believe that it might be something in the xserver that's causing this.

Wondering if anybody has any further inside on this issue.
Comment 10 Brian Paterni 2010-04-06 15:15:51 UTC
Turns out this bug does not have anything to do with xorg/xserver. I was browsing through xmonad's FAQ today and they now have a section about this exact issue. ( http://haskell.org/haskellwiki/Xmonad/Frequently_asked_questions#Problems_with_Java_applications.2C_Applet_java_console )

The preferred solution of $export _JAVA_AWT_WM_NONREPARENTING=1 however did not work for me so I ended up having to edit my xmonad configuration to lie about the window manager in use. This is what fixed the problem for me:

import XMonad.Hooks.SetWMName

main do ...
...
startupHook = setWMName "LG3D"

If anyone else has this problem or is interested, more information is provided in the link above.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.