Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error CSV export and index error when changing simulation time and print interval #611

Open
Fontanapink opened this issue Jan 7, 2021 · 0 comments
Milestone

Comments

@Fontanapink
Copy link
Contributor

When changing simulation time (Time Limit, from 8.0 to 50.0) and print interval (from 0.015 to 1) got an index error. Full error description here:

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at edu.utah.ece.async.ibiosim.dataModels.util.dataparser.DataParser.outputTSD(DataParser.java:83)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.calculateAverageVarianceDeviation(GraphData.java:1004)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.readData(GraphData.java:732)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.loadDataFiles(GraphData.java:1302)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.refresh(Graph.java:5193)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.open(Graph.java:5013)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.(Graph.java:271)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisView.createGraph(AnalysisView.java:1472)
at edu.utah.ece.async.ibiosim.gui.Gui.openAnalysisView(Gui.java:8119)
at edu.utah.ece.async.ibiosim.gui.Gui.executeMouseClickEvent(Gui.java:7398)
at edu.utah.ece.async.ibiosim.gui.Gui.mouseClicked(Gui.java:8168)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)
at java.awt.Component.processMouseEvent(Component.java:6542)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at edu.utah.ece.async.ibiosim.dataModels.util.dataparser.DataParser.outputTSD(DataParser.java:83)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.calculateAverageVarianceDeviation(GraphData.java:1005)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.readData(GraphData.java:732)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.loadDataFiles(GraphData.java:1302)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.refresh(Graph.java:5193)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.open(Graph.java:5013)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.(Graph.java:271)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisView.createGraph(AnalysisView.java:1472)
at edu.utah.ece.async.ibiosim.gui.Gui.openAnalysisView(Gui.java:8119)
at edu.utah.ece.async.ibiosim.gui.Gui.executeMouseClickEvent(Gui.java:7398)
at edu.utah.ece.async.ibiosim.gui.Gui.mouseClicked(Gui.java:8168)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)
at java.awt.Component.processMouseEvent(Component.java:6542)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at edu.utah.ece.async.ibiosim.dataModels.util.dataparser.DataParser.outputTSD(DataParser.java:83)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.calculateAverageVarianceDeviation(GraphData.java:1006)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.readData(GraphData.java:732)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.loadDataFiles(GraphData.java:1302)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.refresh(Graph.java:5193)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.open(Graph.java:5013)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.(Graph.java:271)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisView.createGraph(AnalysisView.java:1472)
at edu.utah.ece.async.ibiosim.gui.Gui.openAnalysisView(Gui.java:8119)
at edu.utah.ece.async.ibiosim.gui.Gui.executeMouseClickEvent(Gui.java:7398)
at edu.utah.ece.async.ibiosim.gui.Gui.mouseClicked(Gui.java:8168)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:270)
at java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:269)
at java.awt.Component.processMouseEvent(Component.java:6542)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at edu.utah.ece.async.ibiosim.dataModels.util.dataparser.DataParser.outputTSD(DataParser.java:83)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.calculateAverageVarianceDeviation(GraphData.java:1004)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.readData(GraphData.java:732)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.loadDataFiles(GraphData.java:1302)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.refresh(Graph.java:5193)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisView.updateTSDGraph(AnalysisView.java:3214)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisView.run(AnalysisView.java:945)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisThread.run(AnalysisThread.java:43)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at edu.utah.ece.async.ibiosim.dataModels.util.dataparser.DataParser.outputTSD(DataParser.java:83)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.calculateAverageVarianceDeviation(GraphData.java:1005)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.readData(GraphData.java:732)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.loadDataFiles(GraphData.java:1302)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.refresh(Graph.java:5193)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisView.updateTSDGraph(AnalysisView.java:3214)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisView.run(AnalysisView.java:945)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisThread.run(AnalysisThread.java:43)
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at edu.utah.ece.async.ibiosim.dataModels.util.dataparser.DataParser.outputTSD(DataParser.java:83)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.calculateAverageVarianceDeviation(GraphData.java:1006)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.readData(GraphData.java:732)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.loadDataFiles(GraphData.java:1302)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.refresh(Graph.java:5193)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisView.updateTSDGraph(AnalysisView.java:3214)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisView.run(AnalysisView.java:945)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisThread.run(AnalysisThread.java:43)
java.lang.IndexOutOfBoundsException: Index: 2, Size: 0
at java.util.ArrayList.rangeCheck(ArrayList.java:657)
at java.util.ArrayList.get(ArrayList.java:433)
at edu.utah.ece.async.ibiosim.dataModels.graphData.GraphData.loadDataFiles(GraphData.java:1307)
at edu.utah.ece.async.ibiosim.gui.graphEditor.Graph.refresh(Graph.java:5193)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisView.updateTSDGraph(AnalysisView.java:3214)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisView.run(AnalysisView.java:945)
at edu.utah.ece.async.ibiosim.gui.analysisView.AnalysisThread.run(AnalysisThread.java:43)

@LukasBuecherl LukasBuecherl added this to the 3.2 milestone Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants