Jonas,

We've added additional checking therein #533. Thank you for reporting this!
BTW, it was really the font problem - it's metrics returns lineHeight = 0.

Best regards,
  Sergey Dmitriev
-----------------------------------------------------------
IntelliJ Software, "Develop with pleasure!"
http://www.intellij.com/


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Jonas Kvarnstr�m
Sent: Thursday, December 06, 2001 5:51 PM
To: IDEA Early Access Program
Subject: [Eap-list] NPE when changing fonts in #531


I thought I'd take a look at the fonts available for the editor (Editor
/ Colors & Fonts), so I selected another one at random ("Alexandria").
This is build 531, Linux, Sun JDK 1.3.1.

I got an internal assertion dialog and the following stack traces
(multiple exceptions, the last one keeps repeating).  This appears to be
repeatable, I just tested it once more.  Possibly the font is faulty,
but you might still want to add some error checking there.


Exception occurred during event dispatching:
java.lang.ArithmeticException: / by zero
        at com.intellij.editor.b.t.I(t.java:533)
        at com.intellij.editor.b.t.e(t.java:600)
        at com.intellij.editor.b.t.g(t.java:543)
        at com.intellij.editor.b.t.a(t.java:342)
        at com.intellij.editor.b.cz.paintComponent(cz.java:14)
        at javax.swing.JComponent.paint(JComponent.java:687)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JViewport.paint(JViewport.java:674)
        at javax.swing.JComponent.paintWithBuffer(JComponent.java:3878)
        at javax.swing.JComponent._paintImmediately(JComponent.java:3821)
        at javax.swing.JComponent.paintImmediately(JComponent.java:3672)
        at
javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:370)   at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQu
eueUtilities.java:124)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)
        at java.awt.Dialog.show(Dialog.java:380)
        at java.awt.Component.show(Component.java:946)
        at java.awt.Component.setVisible(Component.java:903)
        at
com.intellij.ide.actions.IdeOptionsAction.actionPerformed(IdeOptionsAction.j
ava:0)
        at com.intellij.jd.actions.j.run(j.java:2)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Exception occurred during event dispatching:
java.lang.ArithmeticException: / by zero
        at com.intellij.editor.b.t.e(t.java:299)
        at com.intellij.editor.b.t.a(t.java:586)
        at com.intellij.editor.b.cz.paintComponent(cz.java:14)
        at javax.swing.JComponent.paint(JComponent.java:687)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JViewport.paint(JViewport.java:674)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1006)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:546)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:669)
        at
java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:23)   at
sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:54)
        at
sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:91)
        at java.awt.Container.paint(Container.java:960)
        at sun.awt.RepaintArea.paint(RepaintArea.java:298)
        at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:349)
        at java.awt.Component.dispatchEventImpl(Component.java:2663)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Window.dispatchEventImpl(Window.java:914)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)
        at java.awt.Dialog.show(Dialog.java:380)
        at java.awt.Component.show(Component.java:946)
        at java.awt.Component.setVisible(Component.java:903)
        at
com.intellij.ide.actions.IdeOptionsAction.actionPerformed(IdeOptionsAction.j
ava:0)
        at com.intellij.jd.actions.j.run(j.java:2)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
[command] IntelliJ IDEA 25 build #531
[command] JDK: 1.3.1
[command] VM: Java HotSpot(TM) Client VM
[command] Vendor: Sun Microsystems Inc.
[command] OS: Linux
[command] java.lang.ArithmeticException: / by zero
[command]       at com.intellij.editor.b.t.e(t.java:731)
[command]       at com.intellij.editor.b.t.i(t.java:623)
[command]       at com.intellij.editor.b.t.f(t.java:1184)
[command]       at com.intellij.editor.b.t.i(t.java:362)
[command]       at com.intellij.editor.b.bc.run(bc.java:2)
[command]       at com.intellij.command.a.c.a(c.java:12)
[command]       at com.intellij.editor.b.t.a(t.java:1055)
[command]       at com.intellij.editor.b.t.a(t.java:744)
[command]       at com.intellij.editor.b.d.mousePressed(d.java:1)
[command]       at java.awt.Component.processMouseEvent(Component.java:3712)
[command]       at java.awt.Component.processEvent(Component.java:3544)
[command]       at java.awt.Container.processEvent(Container.java:1164)
[command]       at java.awt.Component.dispatchEventImpl(Component.java:2593)
[command]       at java.awt.Container.dispatchEventImpl(Container.java:1213)
[command]       at java.awt.Component.dispatchEvent(Component.java:2497)
[command]       at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
[command]       at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2210)
[command]       at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
[command]       at java.awt.Container.dispatchEventImpl(Container.java:1200)
[command]       at java.awt.Window.dispatchEventImpl(Window.java:914)
[command]       at java.awt.Component.dispatchEvent(Component.java:2497)
[command]       at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
[command]       at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)
[command]       at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)
[command]       at java.awt.Dialog.show(Dialog.java:380)
[command]       at java.awt.Component.show(Component.java:946)
[command]       at java.awt.Component.setVisible(Component.java:903)
[command]       at
com.intellij.ide.actions.IdeOptionsAction.actionPerformed(IdeOptionsAction.j
ava:0)
[command]       at com.intellij.jd.actions.j.run(j.java:2)
[command]       at
java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
[command]       at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
[command]       at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)
[command]       at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)
[command]       at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
[command]       at
java.awt.EventDispatchThread.run(EventDispatchThread.java:85)Exception
occurred during event dispatching:
java.lang.ArithmeticException: / by zero
        at com.intellij.editor.b.t.e(t.java:299)
        at com.intellij.editor.b.t.a(t.java:586)
        at com.intellij.editor.b.cz.paintComponent(cz.java:14)
        at javax.swing.JComponent.paint(JComponent.java:687)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JViewport.paint(JViewport.java:674)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1006)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:696)
        at javax.swing.JLayeredPane.paint(JLayeredPane.java:546)
        at javax.swing.JComponent.paintChildren(JComponent.java:498)
        at javax.swing.JComponent.paint(JComponent.java:669)
        at
java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:23)   at
sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:54)
        at
sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:91)
        at java.awt.Container.paint(Container.java:960)
        at sun.awt.RepaintArea.paint(RepaintArea.java:298)
        at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:349)
        at java.awt.Component.dispatchEventImpl(Component.java:2663)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Window.dispatchEventImpl(Window.java:914)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)
        at java.awt.Dialog.show(Dialog.java:380)
        at java.awt.Component.show(Component.java:946)
        at java.awt.Component.setVisible(Component.java:903)
        at
com.intellij.ide.actions.IdeOptionsAction.actionPerformed(IdeOptionsAction.j
ava:0)
        at com.intellij.jd.actions.j.run(j.java:2)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)



_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to