PDA

View Full Version : [FNR] StackOverflowError on column show/hide



dno
28 Oct 2011, 4:57 AM
I have a grid, with a LiveGridView with setForceFit(true). If I add/remove columns on this grid, I get a StackOverflowError, like follows.....

I'm using GWT 2.4.0 and GXT 2.2.5.

java.lang.StackOverflowError: null
at java.lang.StringBuilder.append(StringBuilder.java:136)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:109)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeShort(ModuleSpace.java:277)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeShort(JavaScriptHost.java:99)
at com.google.gwt.dom.client.Node$.getNodeType$(Node.java)
at com.extjs.gxt.ui.client.core.El.findParentElement(El.java:712)
at com.extjs.gxt.ui.client.core.El.findParent(El.java:693)
at com.extjs.gxt.ui.client.widget.grid.ColumnHeader$Head.updateWidth(ColumnHeader.java:293)
at com.extjs.gxt.ui.client.widget.grid.ColumnHeader.updateColumnWidth(ColumnHeader.java:890)
at com.extjs.gxt.ui.client.widget.grid.GridView.updateAllColumnWidths(GridView.java:1971)
at com.extjs.gxt.ui.client.widget.grid.LiveGridView.updateAllColumnWidths(LiveGridView.java:437)
at com.extjs.gxt.ui.client.widget.grid.GridView.fitColumns(GridView.java:1045)
at com.extjs.gxt.ui.client.widget.grid.GridView.layout(GridView.java:1409)
at com.extjs.gxt.ui.client.widget.grid.GridView.layout(GridView.java:533)
at com.extjs.gxt.ui.client.widget.grid.LiveGridView.calculateVBar(LiveGridView.java:213)
at com.extjs.gxt.ui.client.widget.grid.GridView.refresh(GridView.java:578)
at com.extjs.gxt.ui.client.widget.grid.LiveGridView.refresh(LiveGridView.java:134)
at com.extjs.gxt.ui.client.widget.grid.GridView.onClear(GridView.java:1516)
at com.extjs.gxt.ui.client.widget.grid.GridView$6.storeClear(GridView.java:1318)
at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:24)
at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.callListener(BaseObservable.java:178)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:86)
at com.extjs.gxt.ui.client.store.Store.removeAll(Store.java:472)
at com.extjs.gxt.ui.client.widget.grid.LiveGridView.updateRows(LiveGridView.java:496)
at com.extjs.gxt.ui.client.widget.grid.LiveGridView.updateAllColumnWidths(LiveGridView.java:439)
at com.extjs.gxt.ui.client.widget.grid.GridView.fitColumns(GridView.java:1045)
at com.extjs.gxt.ui.client.widget.grid.GridView.layout(GridView.java:1409)
at com.extjs.gxt.ui.client.widget.grid.GridView.layout(GridView.java:533)
at com.extjs.gxt.ui.client.widget.grid.LiveGridView.calculateVBar(LiveGridView.java:213)
at com.extjs.gxt.ui.client.widget.grid.GridView.refresh(GridView.java:578)
at com.extjs.gxt.ui.client.widget.grid.LiveGridView.refresh(LiveGridView.java:134)
at com.extjs.gxt.ui.client.widget.grid.GridView.onClear(GridView.java:1516)
at com.extjs.gxt.ui.client.widget.grid.GridView$6.storeClear(GridView.java:1318)
at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:24)
at com.extjs.gxt.ui.client.store.StoreListener.handleEvent(StoreListener.java:1)
at com.extjs.gxt.ui.client.event.BaseObservable.callListener(BaseObservable.java:178)
at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:86)
at com.extjs.gxt.ui.client.store.Store.removeAll(Store.java:472)
at com.extjs.gxt.ui.client.widget.grid.LiveGridView.updateRows(LiveGridView.java:496)
at com.extjs.gxt.ui.client.widget.grid.LiveGridView.updateAllColumnWidths(LiveGridView.java:439)
at com.extjs.gxt.ui.client.widget.grid.GridView.fitColumns(GridView.java:1045)
at com.extjs.gxt.ui.client.widget.grid.GridView.layout(GridView.java:1409)
at com.extjs.gxt.ui.client.widget.grid.GridView.layout(GridView.java:533)
at com.extjs.gxt.ui.client.widget.grid.LiveGridView.calculateVBar(LiveGridView.java:213)
at com.extjs.gxt.ui.client.widget.grid.GridView.refresh(GridView.java:578)
at com.extjs.gxt.ui.client.widget.grid.LiveGridView.refresh(LiveGridView.java:134)
at com.extjs.gxt.ui.client.widget.grid.GridView.onClear(GridView.java:1516)
......

dno
28 Oct 2011, 5:01 AM
I should have said, if I set setForceFit(false) the error goes away.

sven
28 Oct 2011, 5:01 AM
Moved to the correct forum

sven
28 Oct 2011, 5:25 AM
This should be fixed in SVN now as of revision 2474