java applications not displaying under clutter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
clutter-1.0 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Hello, I've recently installed 10.04 Netbook remix on my EeePc 901.
According to synaptic I've got libclutter-1.0-0 (version 1.2.4-0ubuntu1) installed.
I first noticed that the java console was comming up blank: it was opening and the close button was there in the top right but the text pane wasn't there and neither were any other buttons normally pressent. Then I noticed a similar problem when I tried running java which use a GUI - the window opens but no content other than the close window button on the title bar.
Initially I thought it might be a problem with java, however I've tried icedtea based on openjdk as well as the latest ubuntu sun package (6.20), and even an older version of java (1.4) and the same problem occurs across all of them with failure to display the GUI. I'm not sure about the 6.20 or icedtea, but 1.4 worked on ubuntu 9.10 netbook remix (although occasionally the GUI would fail to display, but restart the application and it would work).
So I'm assuming it's not a problem with java or it's variants.
If I logout and log back in but set the desktop to gnome. Now no problems, applications run fine with no problem with the GUI. Also the java console displays when I use a java applet in firefox.
Log out and back into netbook clutter desktop and the problem is back again.
So it's not a linux problem, or a java problem, but looks like either a clutter or maximus problem.
I wrote a java program to test the problem and to check the size to make sure it wasn't a problem with maximus. It can be run as either an applet (from in a browser using the html code <applet code="Test.class" height="384" width="
When I run it using something other than clutter and maximus it comes back at 512,384 as you'd expect and opens a window to display black at this size (this works under ubuntu netbook using gnome and windows). Under the clutter/maximus when I run as an application the size comes back as 1024,575 which is the size of the display minus the bar at the top which seems logical, but there is no displayed GUI. If I run it in a browser, it displays a black rectangle that although I haven't measured it looks as if it's 512 by 384. There's no output of course as the java console isn't working.
So I assume that maximus is working as it's setting the correct size for the window.
I may be wrong but it looks like it's some problem with clutter (possibly not unique to the latest version as there were intermittent display problems under ubuntu netbook remix 9.10)
I've tried using apport-bug but it won't recognise clutter, clutter-1.0, or libclutter....
Here's the java source code of the test program i used. There's no facility to add a file so I can't attach the compiled .class file. I'm not sure how familiar you are with java, but to compile it you need java development kit installed, and then the command 'javac Test.java' where Test.java is the code listed below, and javac is the java bytecode compiler in the bin directory of wherever java was installed.
import java.awt.event.*;
import javax.swing.*;
import java.awt.*;
final public class Test extends JApplet implements WindowListener {
public void init() {
System.
}
public void paint(Graphics g) {
update(g);
}
public void update(Graphics g) {
int w=getSize().width;
int h=getSize().height;
System.
g.setColor(
g.fillRect(
}
// WindowListener methods
public void windowActivated
public void windowClosed(
public void windowClosing(
System.exit(0);
}
public void windowDeactivat
public void windowDeiconifi
public void windowIconified
public void windowOpened(
public static void main(String args[]) {
JFrame f=new JFrame("Test");
Test t=new Test();
f.show();
java.awt.Insets in=f.getInsets();
System.
f.addWindowLi
// create frame big enough to hold area 512 by 384
f.setSize(
f.getContentP
t.init();
f.setVisible(
}
} //end of class
Sorry, just realized that I can add attachments but was hidden under extra options.
Here are the java source code, the compiled class file, and a html file that when opened in a browser will open the program as an applet.