AWT painting problem on Linux

Questions, answers, tips and ideas on Servoy Client

AWT painting problem on Linux

Postby notsew » Tue Sep 19, 2006 9:38 pm

When I load our application on Linux (Fedora Core 3) the screen doesn't paint properly. Only portions of the window show up. No one else running the application on Window or Mac has this problem. The error is always a div-by-zero in the AWT event queue. Anyone seen this before?

Thanks,
Jason


Exception in thread "AWT-EventQueue-0" java.lang.ArithmeticException: / by zero
at javax.swing.text.PlainView.paint(PlainView.java:256)
at javax.swing.text.FieldView.paint(FieldView.java:171)
at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1338)
at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:643)
at javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:781)
at javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:760)
at javax.swing.JComponent.paintComponent(JComponent.java:742)
at javax.swing.JComponent.paint(JComponent.java:1005)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at com.servoy.j2db.dataui.m.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JViewport.paint(JViewport.java:728)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at com.servoy.j2db.dataui.m.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JViewport.paint(JViewport.java:728)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paint(JComponent.java:1014)
at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
at javax.swing.JComponent.paintChildren(JComponent.java:842)
at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4970)
at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4916)
at javax.swing.JComponent.paint(JComponent.java:995)
at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
at java.awt.Container.paint(Container.java:1709)
at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
at sun.awt.X11.XRepaintArea.paintComponent(XRepaintArea.java:56)
at sun.awt.RepaintArea.paint(RepaintArea.java:224)
at sun.awt.X11.XComponentPeer.handleEvent(XComponentPeer.java:645)
at java.awt.Component.dispatchEventImpl(Component.java:4031)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
notsew
 
Posts: 9
Joined: Tue Sep 19, 2006 7:45 pm

Postby cybersack » Wed Sep 20, 2006 11:36 am

which JVM ?
User avatar
cybersack
 
Posts: 302
Joined: Sun Jan 02, 2005 1:17 am

RE: which JVM?

Postby notsew » Wed Sep 20, 2006 2:34 pm

I've tried with 1.5.0-03, -06, -08 and 1.6 beta 2. Have also since posting installed Ubuntu 6.06 but no luck.
notsew
 
Posts: 9
Joined: Tue Sep 19, 2006 7:45 pm

Postby cybersack » Wed Sep 20, 2006 10:40 pm

User avatar
cybersack
 
Posts: 302
Joined: Sun Jan 02, 2005 1:17 am

Postby notsew » Wed Sep 20, 2006 11:24 pm

That's interesting to see, although the related bug on that page indicates that both have been fixed (closed on 7/18/06). Still, makes me wonder if mucking with my fonts might help.

Thanks,
Jason
notsew
 
Posts: 9
Joined: Tue Sep 19, 2006 7:45 pm

Postby cybersack » Thu Sep 21, 2006 11:21 am

reading between the lines....the specified font cannot be found and so a font size of 0 is being specified...so, playing with your fonts will probably resolve the problem :)
User avatar
cybersack
 
Posts: 302
Joined: Sun Jan 02, 2005 1:17 am

Postby notsew » Fri Sep 22, 2006 1:22 am

Wish it turned out to be that simple. Have tried now a number of fonts, not only present on my system but the currently selected font in my desktop environment (app, document, desktop, window, and monospace).
notsew
 
Posts: 9
Joined: Tue Sep 19, 2006 7:45 pm


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 9 guests