EricHigdon / datasoul

Automatically exported from code.google.com/p/datasoul
0 stars 0 forks source link

The AutomaticChanger thread dies with a NullPointerException after running for a while #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Enable the "Change every X seconds" feature and let it run for some period 
of time.

What is the expected output? What do you see instead?
I expect the slides to continue to change, but instead they stop advancing.

What version of the product are you using? On what operating system?
datasoul 2.0 beta 3 on Arch Linux using openjdk6 (Icedtea) version 
6.b18_1.8.1-1.  I repackaged the deb file for use on Arch Linux. 

Please provide any additional information below.
Here is the resultant stack trace when the AutomaticChanger thread dies.

Exception in thread "Thread-3" java.lang.NullPointerException
        at javax.swing.BufferStrategyPaintManager.prepare(BufferStrategyPaintManager.java:533)
          at javax.swing.BufferStrategyPaintManager.copyArea(BufferStrategyPaintManager.java:329)
          at javax.swing.RepaintManager.copyArea(RepaintManager.java:1160)
          at javax.swing.JViewport.blitDoubleBuffered(JViewport.java:1621)
          at javax.swing.JViewport.windowBlitPaint(JViewport.java:1590)
          at javax.swing.JViewport.setViewPosition(JViewport.java:1135)
          at javax.swing.JViewport.scrollRectToVisible(JViewport.java:432)
          at javax.swing.JComponent.scrollRectToVisible(JComponent.java:3065)
          at datasoul.serviceitems.ServiceItemTable.valueChanged(ServiceItemTable.java:318)
          at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
          at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
          at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
          at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
          at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
          at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
          at javax.swing.JTable.changeSelectionModel(JTable.java:2374)
          at javax.swing.JTable.changeSelection(JTable.java:2443)
          at datasoul.serviceitems.ServiceItemTable.setSlideIndex(ServiceItemTable.java:295)
          at datasoul.datashow.LivePanel$AutomaticChanger.change(LivePanel.java:305)
          at datasoul.datashow.LivePanel$AutomaticChanger.run(LivePanel.java:326)

I am not certain of how long it normally takes to reproduce this issue.  I set 
datasoul to loop through a set of slides unattended, and when I come back no 
more than 45 minutes later, I find the loop stopped.

Original issue reported on code.google.com by benjamin...@gmail.com on 22 Aug 2010 at 6:27

GoogleCodeExporter commented 8 years ago

Original comment by samuelme...@gmail.com on 22 Aug 2010 at 8:14

GoogleCodeExporter commented 8 years ago
Fixed in commit c7f276edb7.

Original comment by samuelme...@gmail.com on 24 Aug 2010 at 1:06