amitkumar3968 / raptor-chess-interface

Automatically exported from code.google.com/p/raptor-chess-interface
0 stars 0 forks source link

Error in game analysis #790

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Analyse a history game with an engine

What is the expected output? What do you see instead?
window opens up with following java exception:
Error in ThreadService Runnable.
SWTException: Failed to execute runnable (java.lang.NullPointerException)
org.eclipse.swt.SWTException: Failed to execute runnable 
(java.lang.NullPointerException)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.SWT.error(Unknown Source)
    at org.eclipse.swt.widgets.Synchronizer.syncExec(Unknown Source)
    at org.eclipse.swt.widgets.Display.syncExec(Unknown Source)
    at raptor.swt.chess.controller.AutomaticAnalysisController$1.run(Unknown Source)
    at raptor.service.ThreadService$RunnableExceptionDecorator.run(Unknown Source)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
    at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.NullPointerException
    at raptor.swt.chess.controller.AutomaticAnalysisController$1$3.run(Unknown Source)
    at org.eclipse.swt.widgets.RunnableLock.run(Unknown Source)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Unknown Source)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Unknown Source)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at raptor.Raptor.main(Unknown Source)

What version of the product are you using? On what operating system and
what environment?
 Raptor .98u3f5 on mac os x yosemite

Please provide any additional information below.

Analysis stops but rest of the features seem ok

Original issue reported on code.google.com by nascorr...@gmail.com on 2 Dec 2014 at 5:00

GoogleCodeExporter commented 9 years ago
Hello and thank you for reporting this issue.

Unfortunately, it seems to be an instance of a known problem with the current 
Raptor source base (multithreading problems where several parts of the program 
are working on the same data items without proper synchronization) and there 
will be no quick fix because it would take much more time to fix those problems 
than I currently want to spend on Raptor maintenance.

Regards.

Original comment by evil...@gmail.com on 3 Dec 2014 at 6:28