scrolling in tableview application crash
948681Jul 11 2012 — edited Jul 13 2012I found if i put more than 4000 row in a TableView. Then I scroll in that TableView
the exception comes out:
java.lang.NullPointerException
at com.sun.t2k.T2KFontFactory.getFontResourceByFileName(T2KFontFactory.java:498)
at com.sun.t2k.T2KFontFactory.getFontResource(T2KFontFactory.java:423)
at com.sun.t2k.LogicalFont.getSlotResource(LogicalFont.java:235)
at com.sun.t2k.CompositeGlyphMapper.getSlotMapper(CompositeGlyphMapper.java:52)
at com.sun.t2k.CompositeGlyphMapper.convertToGlyph(CompositeGlyphMapper.java:73)
at com.sun.t2k.CompositeGlyphMapper.getGlyphCode(CompositeGlyphMapper.java:129)
at com.sun.t2k.CharToGlyphMapper.charToGlyph(CharToGlyphMapper.java:116)
at com.sun.javafx.sg.prism.NGText.getTabExpandedAdvance(NGText.java:652)
at com.sun.javafx.sg.prism.NGText.buildTextLines(NGText.java:2335)
at com.sun.javafx.sg.prism.NGText.updateText(NGText.java:2026)
at com.sun.javafx.sg.prism.NGText.computeBoundsLogical(NGText.java:1389)
at com.sun.javafx.sg.prism.NGText.computeLayoutBounds(NGText.java:1348)
at com.sun.javafx.tk.quantum.PrismTextHelper.computeLayoutBounds(PrismTextHelper.java:37)
at javafx.scene.text.Text.impl_computeLayoutBoundsInt(Text.java:1158)
at javafx.scene.text.Text.impl_computeLayoutBounds(Text.java:1173)
at javafx.scene.Node$15.computeBounds(Node.java:2534)
at javafx.scene.Node$LazyBoundsProperty.get(Node.java:6603)
at javafx.scene.Node$LazyBoundsProperty.get(Node.java:6573)
at javafx.scene.Node.getLayoutBounds(Node.java:2549)
at com.sun.javafx.scene.control.skin.Utils.computeTextHeight(Utils.java:69)
at com.sun.javafx.scene.control.skin.LabeledSkinBase.computePrefHeight(LabeledSkinBase.java:704)
at javafx.scene.Parent.prefHeight(Parent.java:865)
at javafx.scene.layout.Region.prefHeight(Region.java:1384)
at javafx.scene.control.Control.computePrefHeight(Control.java:802)
at javafx.scene.Parent.prefHeight(Parent.java:865)
at javafx.scene.control.Control.prefHeight(Control.java:684)
at com.sun.javafx.scene.control.skin.TableRowSkin.layoutChildren(TableRowSkin.java:179)
at javafx.scene.Parent.layout(Parent.java:999)
at com.sun.javafx.scene.control.skin.TableRowSkin.handleControlPropertyChanged(TableRowSkin.java:111)
at com.sun.javafx.scene.control.skin.SkinBase$3.changed(SkinBase.java:282)
at javafx.beans.value.WeakChangeListener.changed(WeakChangeListener.java:107)
at com.sun.javafx.binding.ExpressionHelper$SingleChange.fireValueChangedEvent(ExpressionHelper.java:196)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:100)
at javafx.beans.property.ObjectPropertyBase.fireValueChangedEvent(ObjectPropertyBase.java:123)
at javafx.beans.property.ObjectPropertyBase.markInvalid(ObjectPropertyBase.java:130)
at javafx.beans.property.ObjectPropertyBase.set(ObjectPropertyBase.java:163)
at javafx.scene.control.Cell.setItem(Cell.java:328)
at javafx.scene.control.Cell.updateItem(Cell.java:553)
at javafx.scene.control.TableRow.updateItem(TableRow.java:243)
at javafx.scene.control.TableRow.indexChanged(TableRow.java:92)
at javafx.scene.control.TableRow$1.invalidated(TableRow.java:85)
at com.sun.javafx.binding.ExpressionHelper$SingleInvalidation.fireValueChangedEvent(ExpressionHelper.java:155)
at com.sun.javafx.binding.ExpressionHelper.fireValueChangedEvent(ExpressionHelper.java:100)
at javafx.beans.property.ReadOnlyIntegerWrapper$ReadOnlyPropertyImpl.fireValueChangedEvent(ReadOnlyIntegerWrapper.java:195)
at javafx.beans.property.ReadOnlyIntegerWrapper.fireValueChangedEvent(ReadOnlyIntegerWrapper.java:161)
at javafx.beans.property.IntegerPropertyBase.markInvalid(IntegerPropertyBase.java:130)
at javafx.beans.property.IntegerPropertyBase.set(IntegerPropertyBase.java:163)
at javafx.scene.control.IndexedCell.updateIndex(IndexedCell.java:112)
at com.sun.javafx.scene.control.skin.VirtualFlow.setCellIndex(VirtualFlow.java:1537)
at com.sun.javafx.scene.control.skin.VirtualFlow.getCell(VirtualFlow.java:1441)
at com.sun.javafx.scene.control.skin.VirtualFlow.getCellLength(VirtualFlow.java:1464)
at com.sun.javafx.scene.control.skin.VirtualFlow$3.call(VirtualFlow.java:478)
at com.sun.javafx.scene.control.skin.VirtualFlow$3.call(VirtualFlow.java:476)
at com.sun.javafx.scene.control.skin.PositionMapper.computeViewportOffset(PositionMapper.java:143)
at com.sun.javafx.scene.control.skin.VirtualFlow.layoutChildren(VirtualFlow.java:978)
at javafx.scene.Parent.layout(Parent.java:999)
at javafx.scene.Scene.layoutDirtyRoots(Scene.java:492)
at javafx.scene.Scene.doLayoutPass(Scene.java:465)
at javafx.scene.Scene.access$3000(Scene.java:152)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:1853)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:357)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:458)
at com.sun.javafx.tk.quantum.QuantumToolkit$8.run(QuantumToolkit.java:325)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
at java.lang.Thread.run(Unknown Source)
Exception in thread "AWT-Windows" java.lang.OutOfMemoryError: OutOfMemoryError
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
is this exception related to short of heap memory ? or this is a bug of FX
Edited by: 945678 on Jul 11, 2012 12:01 AM
Edited by: 945678 on Jul 11, 2012 12:01 AM