amitkumar3968 / raptor-chess-interface

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

Connection crash due to error in visualizing games #774

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. log in to fics (port 23)
2. click on: fics, tabs, games
3.

What is the expected output? 
I should see all the games played on the server in the games quadrant 

What do you see instead?
Instead it starts writing all the games in the main tab

What version of the product are you using? .98u3f5
On what operating system and what environment? Apple Inc 1.6.0_65 Mac OS X 
10.9.4

Please provide any additional information below.
This is what happens:

Present company includes: Agatha LightKnight.
Error occured! We are trying to make Raptor bug free and we need your help! 
Please take a moment to report this issue by selecting the menu:
  Help -> Report Issue 

TimesealSocketMessageProducer Connector Error in DaemonRun Thwoable
java.lang.RuntimeException: Error occured parsing message: 
  1 (Exam.    0 Gheorghiu      0 Kinmark   ) [ uu  0   0] W:  1
 21 (Exam.    0 GuestYMVB      0 puzzlebot ) [ uu  0   0] B:  2
 31 (Exam.    0 GuestXVMM      0 puzzlebot ) [ uu  0   0] W:  1
 34 (Exam.    0 GuestHYHB      0 puzzlebot ) [ uu  0   0] W:  2
 91 (Exam.    0 puzzlebot      0 GuestMFVM ) [ uu  0   0] B:  1
209 (Exam.    0 puzzlebot      0 GuestMHRP ) [ uu  0   0] B:  1
244 (Exam.    0 GuestYFSY      0 puzzlebot ) [ uu  0   0] B:  2
248 (Exam.    0 GuestWCMJ      0 puzzlebot ) [ uu  0   0] W:  1
349 (Exam.    0 puzzlebot      0 GuestTQYN ) [ uu  0   0] B:  1
434 (Exam.    0 puzzlebot      0 GuestYGZD ) [ uu  0   0] B:  1
470 (Exam.    0 puzzlebot      0 karthikg  ) [ uu  0   0] W:  2
179 (Exam. 1273 inemuri      953 Hardstone ) [ br  5   0] B: 26
265 (Exam. 1242 mirsultankh 1372 qedsimon  ) [ br  5   5] B: 36
676 (Exam. 1431 Haddock     1431 Haddock   ) [ uu  0   0] W:  1
 96 (Exam. 1421 jimhickey   1455 jerrysong ) [ uu  0   0] B:  7
175 (Exam. 1424 groovyhassl 1552 meganew   ) [ sr 30   0] B: 27
 15 (Exam. 1790 cica        1607 EDolphy   ) [ br  3   0] W:  1
162 (Exam. 1998 scamfest    1998 scamfest  ) [ uu  0   0] B: 30
420 (Exam. 2065 Stockfish(C 2065 NakaH_Rybk) [ uu  0   0] W: 56
  3 ++++ GuestKHPD   ++++ Lenoir     [ bu  5  12]   5:02 -  3:31 (11-15) W: 36
  4 ++++ GuestWXFW   ++++ GuestDBJW  [ bu 10   0]   7:54 -  3:48 (28-29) B: 20
  7 ++++ GuestDMCW   ++++ GuestSLSM  [ su 15   0]   9:58 - 11:57 (36-36) W: 20
 16 ++++ Crysty      ++++ BlaccabdGO [ bu  5   0]   2:23 -  2:25 (32-30) W: 30
 17 ++++ GuestVBTH   ++++ GuestDNKB  [ bu  4   1]   3:58 -  3:57 (39-39) B:  3
 18 ++++ mumpelgrump ++++ GuestKZBH  [ bu  5   0]   3:59 -  3:42 (32-32) B: 16
 19 ++++ guestl      ++++ GuestCWRM  [ bu  3   0]   1:15 -  2:08 (27-27) B: 24
 20 ++++ GuestVKPK   ++++ GuestBWWP  [ bu 10   5]   8:30 -  8:27 (37-37) B: 15
 23 ++++ frecco      ++++ GuestSCGJ  [ bu  2  12]   2:30 -  2:10 (39-39) B:  7
 28 ++++ Barboszs    ++++ GuestJNCR  [ bu  2   6]   1:52 -  1:16 (39-39) B:  9
 41 ++++ GuestWFQL   ++++ GuestHWPD  [ bu 10   0]   9:56 -  9:55 (39-39) B:  4
 52 ++++ GuestLRXZ   ++++ GuestHBLJ  [ bu  5   5]   4:37 -  4:52 (39-39) W:  3
...
other TONS of games...
…
552 2536 GMAHorvath  2626 GMRakhmano [ su120   0]  15:05 - 21:00 ( 8- 7) W: 58
139 2638 GMAGupta    2527 GMAbasov   [ su120   0]  24:00 - 11:19 ( 9- 9) B: 45
702 2641 GMEfimenko  2558 GMGopal    [ su120   0]  30:00 -  4:37 ( 7- 6) B: 49
414 2583 GMVolkov    2631 GMPashikia [ su120   0]  32:00 -  2:07 (18-14) W: 54
691 2656 GMIstratesc 2574 GMParligra [ su120   0]   0:00 - 59:00 ( 9- 9) B: 32
213 2591 GMSalem     2641 GMTPetrosi [ su120   0]  14:46 -  7:04 ( 7- 8) W: 42
148 2667 GMKuzubov   2589 GMIordache [ su120   0]   0:00 - 47:00 ( 9- 9) B: 32
595 2708 GMKryvoruch 2602 GMVidit    [ su120   0]  35:00 -  0:00 (18-18) B: 43

  504 games displayed.
fics% 
    at raptor.connector.ics.IcsConnector.parseMessage(Unknown Source)
    at raptor.connector.ics.IcsConnector.messageArrived(Unknown Source)
    at raptor.connector.ics.timeseal.TimesealSocketMessageProducer.messageLoop(Unknown Source)
    at raptor.connector.ics.timeseal.TimesealSocketMessageProducer$1.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:695)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of 
range: -1
    at java.lang.String.substring(String.java:1937)
    at raptor.connector.ics.GameInfoParser.parse(Unknown Source)
    at raptor.connector.ics.IcsParser.processGameInfo(Unknown Source)
    at raptor.connector.ics.IcsParser.parse(Unknown Source)
    ... 5 more

Disconnected

Original issue reported on code.google.com by euge...@dalpane.com on 23 Aug 2014 at 9:42

GoogleCodeExporter commented 9 years ago
Thank you for the report, it was helpful. The reason is a problem in parsing 
the lines containing the active games, notably this one:

420 (Exam. 2065 Stockfish(C 2065 NakaH_Rybk) [ uu  0   0] W: 56

The problem is "(C" (truncated "(C)") that contains a "(" which is used as a 
field delimiter by Raptor. Unfortunately, there is no workaround at this point 
in time: if one of the player names contains a "(" then the parsing code will 
fail. The good news is that the problem has been identified so that it can be 
fixed.

Original comment by evil...@gmail.com on 24 Aug 2014 at 12:30

GoogleCodeExporter commented 9 years ago
Thank you very much for the fast answer
I only partially understood your message, unfortunately I do not understand a 
lot of informatics. 

I hope you can fix as soon as possible :)
Will you update the version then? Will I be automatically notified or should I 
periodically look at the raptor page?
Cheers

Original comment by euge...@dalpane.com on 24 Aug 2014 at 1:55

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2458.

Original comment by evil...@gmail.com on 24 Aug 2014 at 5:39

GoogleCodeExporter commented 9 years ago
Hi,

I think that I just fixed the problem that gave you the above problem. However, 
I'm not the project leader and I wouldn't even know how to create a new 
release. Your best chance is to follow the guidelines in the wiki for checking 
out the latest sources and run them from Eclipse. You might even create an 
updated Jar from there, but I'm not an Eclipse user, so I cannot help you there.

Regards.

Original comment by evil...@gmail.com on 24 Aug 2014 at 5:42

GoogleCodeExporter commented 9 years ago
I did not understand almost everything D:

I found the Wiki. OK

I think I can not find the "guidelines". X
I do not know what the sources are. X
I do not know anything about how to use or run the sources. X
I do not know what Eclipse is. X
I do not know anything about the Jar. X

Is there any hope for me? 

However, mysteriously, Raptor started working yesterday...

Original comment by euge...@dalpane.com on 25 Aug 2014 at 3:51