Page 1 of 1

Crash Upon Opening Second Instance

Posted: Sun Feb 13, 2011 5:17 pm
by gwport
GW 2.3.43.

When opening a second instance of GW (IIRC, rarely also when starting GW as a first instance), GW creates a Java language error log window that needs to be closed before one can proceed with using GW (but GW as a whole does not crash entirely). Afterwards working appears to be normal. IOW, there seems to be at least one bug in an initialization or a garbage collection routine. Unfortunaly, I cannot give more precise error details yet. If you wish, I will wait for the next occurrence and try to copy and paste the error log.

Re: Crash Upon Opening Second Instance

Posted: Mon Feb 14, 2011 9:11 am
by lpaatero
It would be good to get screenshot (or text) of error message.

- Lauri

Re: Crash Upon Opening Second Instance

Posted: Mon Feb 14, 2011 9:50 am
by gwport
GW was not open (I did not check if it was still running as a process). Then I double click on an SGF and get this log. When closing GW and then double clicking on the same SGF again, GW starts normal without any error log.



110214 084451.263 gowrite.sgf.SGFUtil log INFO: start 1.6.0_22 / 2.3.43 in Windows 7/6.1
110214 084451.341 gowrite.sgf.SGFUtil log INFO: Native Support: gowrite.platf.windows.WindowsUtil
110214 084452.105 gowrite.sgf.SGFUtil log INFO: command "-delayexit"
110214 084452.105 gowrite.sgf.SGFUtil log INFO: command "-workdir"
110214 084452.105 gowrite.sgf.SGFUtil log INFO: command "-open"
110214 084452.105 gowrite.sgf.SGFUtil log INFO: command "-endOpen"
110214 084452.105 gowrite.sgf.SGFUtil log INFO: command "-endOpen"
110214 084452.152 gowrite.sgf.SGFUtil log INFO: Accelerators: gowrite/text/Accelerator-Windows
110214 084452.152 gowrite.sgf.SGFUtil log INFO: Accelerators: gowrite/text/Accelerator
110214 084452.651 gowrite.sgf.SGFUtil log WARNING: database.cfgx settings not found.
110214 084452.667 gowrite.sgf.SGFUtil log SEVERE: Starting
java.lang.NullPointerException
at gowrite.gui.view.BoardCharSequence.split(BoardCharSequence.java:175)
at gowrite.gui.view.BoardCharSequence.getPrefix(BoardCharSequence.java:260)
at gowrite.gui.GameView.nextFreeNodeLabel(GameView.java:1041)
at gowrite.gui.GameView.resetNodeEditing(GameView.java:1075)
at gowrite.gui.GameView.setCurrentLocationRange(GameView.java:570)
at gowrite.gui.GameView.setNodeLocation(GameView.java:523)
at gowrite.gui.GameView.setCurrentLocation(GameView.java:513)
at gowrite.gui.GameView.setGame(GameView.java:343)
at gowrite.gui.EditingPane.setCurrentGame(EditingPane.java:211)
at gowrite.gui.TopFrame$PropertyEventHandler.propertyChange(TopFrame.java:46)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at gowrite.gui.FileView.firePropertyChange(FileView.java:41)
at gowrite.gui.FileView.setCurrentGame(FileView.java:112)
at gowrite.gui.FileView.setFile(FileView.java:125)
at gowrite.gui.TopFrame$PropertyEventHandler.propertyChange(TopFrame.java:43)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at gowrite.gui.FileOperations.firePropertyChange(FileOperations.java:421)
at gowrite.gui.FileOperations.setCurrentFile(FileOperations.java:917)
at gowrite.gui.FileOperations.openFile(FileOperations.java:687)
at gowrite.gui.TopFrame.loadInitialFile(TopFrame.java:321)
at gowrite.gui.FrameManager$createFrame.run(FrameManager.java:198)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Re: Crash Upon Opening Second Instance

Posted: Mon Feb 14, 2011 12:31 pm
by lpaatero
These two problems are due to same bug.
I will create corrected installation package later today.

- Lauri

Re: Crash Upon Opening Second Instance

Posted: Sun Mar 06, 2011 8:31 am
by gwport
After some usage of the corrected GW version, it appears that indeed the bug has been fixed, thank you! Just curious: What kind of bug was it?

Re: Crash Upon Opening Second Instance

Posted: Mon Mar 07, 2011 10:43 am
by lpaatero
Nothing interesting there :)
One method dealing with finding first free label in node was not handling null value.

- Lauri