Error when opening new windows

Reporting and discussion about bugs.

Moderator: lpaatero

Post Reply
kvasir
Posts: 2
Joined: Wed Apr 17, 2024 4:08 pm

Error when opening new windows

Post by kvasir »

Hi,
I have this issue that GoWrite2 gives some error when I try to open new windows. This isn't something that happened before but I'm not sure when it started but I did update to version 3.2.0 thinking that might fix the issue (which it did not).

Usually I can open some new windows right after I start the program but after awhile it will show an error prompt and the log instead of opening a new window. I mean the main window with the go board, I can always open some preference/options windows. It doesn't seem to matter what I try, I can never open a new window unless I first close the program and kill it in task manager.

Here is the error log:

Code: Select all

240417 140400.002 net.gowrite.sgf.SGFUtil log INFO: Log to C:\Users\Thor\.gowrite enabled
240417 140400.069 net.gowrite.sgf.SGFUtil log INFO: Native Support: gowrite.platf.windows.WindowsUtil
240417 140402.335 net.gowrite.sgf.SGFUtil log INFO: command "-delayexit"
240417 140402.336 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 140402.336 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 140402.336 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140402.337 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140402.355 net.gowrite.sgf.SGFUtil log INFO: Accelerators: gowrite/text/Accelerator-Windows
240417 140402.356 net.gowrite.sgf.SGFUtil log INFO: Accelerators: gowrite/text/Accelerator
240417 140409.415 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 140409.415 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 140409.415 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140412.364 net.gowrite.sgf.SGFUtil log INFO: Main ends.
240417 140412.536 net.gowrite.sgf.SGFUtil log INFO: h2database version: 1.3.176 (2014-04-05) / 1.3.176 (2014-04-05)
240417 140413.600 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 140413.602 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 140413.602 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140414.678 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 140414.679 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 140414.679 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140415.399 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 140415.399 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 140415.399 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140416.041 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 140416.041 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 140416.042 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140416.693 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 140416.693 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 140416.693 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140417.323 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 140417.324 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 140417.324 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140417.923 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 140417.923 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 140417.924 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140418.528 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 140418.528 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 140418.528 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140419.124 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 140419.124 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 140419.124 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140424.594 net.gowrite.sgf.SGFUtil log SEVERE: Uncaught exception in Thread-3
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.base/java.util.LinkedList.checkElementIndex(LinkedList.java:559)
	at java.base/java.util.LinkedList.remove(LinkedList.java:529)
	at java.base/java.util.Collections$SynchronizedList.remove(Collections.java:2507)
	at net.gowrite.database.FileIndexer.updateDirCanonical(FileIndexer.java:132)
	at gowrite.gui.database.SearchManager.updateChangeQueue(SearchManager.java:464)
	at gowrite.gui.database.SearchManager$BackroundUpdate.run(SearchManager.java:136)
240417 140426.694 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 140426.694 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 140426.694 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 140426.747 net.gowrite.sgf.SGFUtil log SEVERE: Starting
java.lang.NullPointerException: Cannot invoke "String.length()" because "lbl" is null
	at gowrite.gui.EditingPane.init(EditingPane.java:73)
	at gowrite.gui.TopFrame.<init>(TopFrame.java:56)
	at gowrite.gui.FrameManager.createTopFrame(FrameManager.java:299)
	at gowrite.gui.FrameManager$createFrame.run(FrameManager.java:196)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
240417 203001.391 net.gowrite.sgf.SGFUtil log INFO: command "-workdir"
240417 203001.397 net.gowrite.sgf.SGFUtil log INFO: command "-open"
240417 203001.397 net.gowrite.sgf.SGFUtil log INFO: command "-endOpen"
240417 203001.532 net.gowrite.sgf.SGFUtil log SEVERE: Starting
java.lang.NullPointerException: Cannot invoke "String.length()" because "lbl" is null
	at gowrite.gui.EditingPane.init(EditingPane.java:73)
	at gowrite.gui.TopFrame.<init>(TopFrame.java:56)
	at gowrite.gui.FrameManager.createTopFrame(FrameManager.java:299)
	at gowrite.gui.FrameManager$createFrame.run(FrameManager.java:196)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
lpaatero
Go liiton hallitus
Posts: 529
Joined: Fri May 21, 2004 12:20 pm
Location: Finland

Re: Error when opening new windows

Post by lpaatero »

Hi,

It seems your gowrite settings are somehow damaged.

Problem relates to what is show as label for main continuation of the game. The code around this looks bad, and can fail multiple ways. There are probably quite ancient bugs, need to dig this a bit more.

You can fix the problem by renaming (or deleting) file .gowrite\gowrite31.cfg to revert gowrite to default settings.

regards
Lauri
kvasir
Posts: 2
Joined: Wed Apr 17, 2024 4:08 pm

Re: Error when opening new windows

Post by kvasir »

It does seem to work with a new gowrite31.cfg. Thanks!

I noticed that the property "gowrite.gui.view.mainvariation=" was followed by a null character (i.e. "\0") in the cfg file.

I don't encounter the problem when I only change this property to "Z", following the new config file, and I do encounter the problem when I change it back. The problem only seems to occur after opening some files and maybe jumping into the middle of the sgf tree, which makes it unclear when exactly it will fail to open a window. So I tried to change it back and forth a couple of times and the result was always that there was a problem when "gowrite.gui.view.mainvariation=\0" and not when "gowrite.gui.view.mainvariation=Z".

Hope this is useful information :)
Post Reply