You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the table driving a plot shrinks, Plot2D.GenPlotXY can run off the end of the data, causing a segfault. The problematic code (that I know of) is at line 205 of xyplot.go:
199// Use string labels for X axis if X is a string200xc:=pl.Table.Table.Cols[xi]
201ifxc.DataType() == etensor.STRING {
202xcs:=xc.(*etensor.String)
203vals:=make([]string, pl.Table.Len())
204fori, dx:=rangepl.Table.Idxs {
205vals[i] =xcs.Values[dx]
206 }
207plt.NominalX(vals...)
208 }
In the case that I've seen, the table had 15 entries for the first phase of a run, and was then resized to only 10 rows for the second phase. I've worked around the issue in the calling code by calling IdxView.DeleteInvalid after shrinking the data source table, but I really think there should be a check somewhere in etable itself.
The text was updated successfully, but these errors were encountered:
If the table driving a plot shrinks,
Plot2D.GenPlotXY
can run off the end of the data, causing a segfault. The problematic code (that I know of) is at line 205 of xyplot.go:In the case that I've seen, the table had 15 entries for the first phase of a run, and was then resized to only 10 rows for the second phase. I've worked around the issue in the calling code by calling
IdxView.DeleteInvalid
after shrinking the data source table, but I really think there should be a check somewhere in etable itself.The text was updated successfully, but these errors were encountered: