dbenamy / threes-company

Our project for VG Design 4995 at Columbia University
0 stars 0 forks source link

SocketException during network play #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start network game across computers
2. play for ~5 minutes
3. NullPointerException from server, SocketException on trace.

i'm trying to playtest with my girlfriend across our laptops and we're
getting a SocketException on the server after a ~5 minutes. 
NullPointerException dialog comes up and then the server closes.

Exception in thread "main" java.net.SocketException: Connection reset
    at java.net.SocketInputStream.read(Unknown Source)
    at java.net.SocketInputStream.read(Unknown Source)
    at java.io.ObjectInputStream$PeekInputStream.peek(Unknown Source)
    at java.io.ObjectInputStream$BlockDataInputStream.peek(Unknown Source)
    at java.io.ObjectInputStream$BlockDataInputStream.peekByte(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Unknown Source)
    at java.io.ObjectInputStream.readObject(Unknown Source)
    at
edu.columbia.threescompany.client.communication.ServerConnection.receiveMessage(
ServerConnection.java:41)
    at edu.columbia.threescompany.client.BlobsClient.main(BlobsClient.java:63)

Original issue reported on code.google.com by morales....@gmail.com on 12 Dec 2007 at 1:33

GoogleCodeExporter commented 9 years ago
John - need more info:

1.  It's happening consistently, right?
2.  What was the exact setup - 2 machines (1 w/client&server, 1 w/other 
client), or
3?  Any firewalls/routers involved?

Original comment by gene...@gmail.com on 12 Dec 2007 at 3:38

GoogleCodeExporter commented 9 years ago
Also, do you by any chance have the NullPointer stacktrace as well?

Original comment by gene...@gmail.com on 12 Dec 2007 at 3:42

GoogleCodeExporter commented 9 years ago
hey-- good questions.

* the problem happened all 3 times we tried playing.
* we have a router in our apartment.
* i hosted the server and client on my laptop and opened port 3444 on my 
firewall.
* she connected with the client (no firewall changes for her)
* (both machines running win xp)
* everything would connect fine and we would play for a while (~5 minutes)
* NullPointerException from server (but no trace that i could find)
* SocketException trace in the eclipse console that i pasted above.

i don't think it's a router/firewall issue since we connected at all.  (i'm 
trying to
remember, but i think it maybe have happened the 3 times after someone executed 
a
turn, but damned if i can be sure if that's true or what moves were performed 
before
the crash.)

Original comment by morales....@gmail.com on 12 Dec 2007 at 4:38

GoogleCodeExporter commented 9 years ago
edit: i (want to think, but really not sure) that the errors happened after the
*simulation* of the turn, not just after clicking done, if that wasn't clear.

Original comment by morales....@gmail.com on 12 Dec 2007 at 4:41

GoogleCodeExporter commented 9 years ago
Which JDK versions(s)?  1.5 or 1.6?  This bug in 1.5 could be related to it:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5076772
http://quickserver.org/forum/viewtopic.php?t=512

I haven't been able to reproduce it running 2 clients + server all on one 
machine.

Original comment by gene...@gmail.com on 12 Dec 2007 at 6:47

GoogleCodeExporter commented 9 years ago
sorry, i meant to add that.  we're both using 1.6.  (in fact, something to note 
in
general, blobs jar doesn't run with 1.5)

Original comment by morales....@gmail.com on 12 Dec 2007 at 6:56

GoogleCodeExporter commented 9 years ago
Yeah, noticed that with the JAR as well.

Does this really happen after 5 mins every time? If so, I'm leaning toward 
blaming
QuickServer.

Original comment by zac...@gmail.com on 12 Dec 2007 at 8:43

GoogleCodeExporter commented 9 years ago
yeah, could very well be with QuickServer, although i'll admit i wasn't 
watching the
time that closely-- 5 mins is more of an approximation, so it could be 
something with
the combination of game moves we were doing. *shrug*

Original comment by morales....@gmail.com on 12 Dec 2007 at 9:52

GoogleCodeExporter commented 9 years ago
it appears to be related to exploding an exploding blob.  i haven't figured out 
the
consistency.

Original comment by morales....@gmail.com on 12 Dec 2007 at 11:33

GoogleCodeExporter commented 9 years ago
20+ minutes of automated play (no explosions), and no crash so far.  I'll try to
script in explosions.  Can someone else try to reproduce this?

Original comment by gene...@gmail.com on 13 Dec 2007 at 1:33

GoogleCodeExporter commented 9 years ago
I played a couple of network games including a few explosions and didn't see 
this.

Original comment by dbenamy on 15 Dec 2007 at 6:08

GoogleCodeExporter commented 9 years ago
Cannot reproduce, therefore closing.  Reopen if it happens again.

Original comment by gene...@gmail.com on 15 Dec 2007 at 3:02