Forum C# Thread was being aborted.

Thread was being aborted.

Postby kustrle » March 27th, 2011, 7:00 pm

>Error: Thread was being aborted.
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at d7.a(Boolean A_0)
at d7.b(fq A_0)
at ee.Send(Message message)
at PlayerIO.GameLibrary.BasePlayer.Send(Message message)
at mb.Broadcast(Message message, BasePlayer[] players, Int32 playerCount)
at PlayerIO.GameLibrary.Game`1.Broadcast(String type, Object[] parameters)
at MyGame.GameCode.UserJoined(Player player)
at PlayerIO.GameLibrary.Game`1.<AttemptSetup>b__a(BasePlayer player)
at mb.a(d A_0, BasePlayer A_1, Message A_2, Action A_3)

What this means? I guess function UserJoined was being executed for too long. The strange thing is I don't have any infinite loops or anything else that could cause that in function UserJoined. Here's the code from the function:

Code: Select all
Broadcast("playerCount",PlayerCount);
player.Send("roomData", roomName, roomPassword);
player.name = player.JoinData["username"];
player.Send("state", state);
if (state == "waiting"){
   if (PlayerCount < 2){
      SetSubstate("onlyPlayer");
   }else{
      if (subState != "startDelay"){
         InitStartDelay();
      }
      SetSubstate("startDelay");
   }
}
if (PlayerCount > 5){
   player.Disconnect();
}
kustrle
 
Posts: 10
Joined: February 11th, 2011, 10:16 pm

Re: Thread was being aborted.

Postby wildbunny » March 28th, 2011, 10:28 am

I'm seeing the same thing - but only occasionally...

Anyone know whats going on here?

GameStarted() RoomIdIc8QAQ1SmEmRBDnKOq-WCw
>User GuestUser (1): Joined game
>Error: Thread was being aborted.

Cheers, Paul.
wildbunny
 
Posts: 217
Joined: March 9th, 2011, 10:35 am

Re: Thread was being aborted.

Postby wildbunny » March 28th, 2011, 1:57 pm

Actually, this is now firing as well, while i'm debugging!

I presume (like the OP) that its the watchdog making sure the thread isn't taking too much time - but really, while i'm debugging i would like this to be disabled, how can i do it?

Cheers, Paul.
wildbunny
 
Posts: 217
Joined: March 9th, 2011, 10:35 am

Re: Thread was being aborted.

Postby wildbunny » April 1st, 2011, 1:59 pm

Bump....

Any news on what this means? I'm seeing it a *lot* and my messages from server to client are being aborted because of it :|

Cheers, Paul.
wildbunny
 
Posts: 217
Joined: March 9th, 2011, 10:35 am

Re: Thread was being aborted.

Postby wildbunny » April 14th, 2011, 1:54 pm

Come on guys - any clarity on what this means? :)

I'm worried the deployed live server is going to have the same issues....

Cheers, Paul.
wildbunny
 
Posts: 217
Joined: March 9th, 2011, 10:35 am

Re: Thread was being aborted.

Postby wildbunny » April 14th, 2011, 6:04 pm

Code: Select all
>Error: Thread was being aborted.

   at System.Threading.Thread.AbortInternal()
   at System.Threading.Thread.Abort(Object stateInfo)
   at d7.a(Boolean A_0)
   at d7.b(fq A_0)
   at PlayerIO.ServerCore.PlayerIOClient.PlayerIOChannel.ProtobufHttp.Call[A,O,E](Int32 method, A args, Callback`1 success, Callback`1 error)
   at mi.Call[A,O,E](Int32 methodId, A args, Callback`1 successCallback, Callback`1 errorCallback)
   at PlayerIO.ServerCore.PlayerIOClient.PlayerIOChannel.CreateObjectsCaller`1.CallAsync(Callback`1 onSuccess, Callback`1 onError)
   at PlayerIO.ServerCore.PlayerIOClient.BigDBImpl.CreateObject(String table, String key, DatabaseObject obj, Callback`1 successCallback, Callback`1 errorCallback)
   at PlayerIO.GameLibrary.BigDB.CreateObject(String table, String key, DatabaseObject obj, Callback`1 successCallback)
   at GameCode.Populous.Populous.CreateUser(String userName, PlayerContainer player) in C:\Documents and Settings\Administrator\My Documents\My Dropbox\Projects\Populous\ServerSide\GameCode\Populous\Populous.cs:line 417
   at GameCode.Populous.Populous.GotMessage(PlayerContainer player, Message message) in C:\Documents and Settings\Administrator\My Documents\My Dropbox\Projects\Populous\ServerSide\GameCode\Populous\Populous.cs:line 225
   at PlayerIO.GameLibrary.Game`1.AttemptGotMessage(BasePlayer player, Message message)
   at mb.a(d A_0, BasePlayer A_1, Message A_2, Action A_3)
wildbunny
 
Posts: 217
Joined: March 9th, 2011, 10:35 am

Re: Thread was being aborted.

Postby wildbunny » April 14th, 2011, 6:19 pm

I am now totally stuck because of this error - i cannot continue developing until i can understand whats going on....

Any help is really appreciated? :)

Cheers, Paul.
wildbunny
 
Posts: 217
Joined: March 9th, 2011, 10:35 am

Re: Thread was being aborted.

Postby default0 » April 15th, 2011, 10:26 am

I'm getting a similar error, take a look at this: http://screencast.com/t/pvLTJCI5Ryz

Anyways, it happens consistently, if a new Room-Type is created for the first time in the development server.
So, to clarify:
-Started DevelopmentServer
-Tried to create Room Type: Z_10
-Saw this error
-Tried again (same Room Type): Success!
-Tried to create Room Type: Z_20
-Saw this error again
-Tried again (same Room Type): Success!
-etc pp
-Closed DevelopmentServer
-start over at the top to see how it went on

Also, it ALWAYS is being aborted with this exact error (when I create the timer) and always only once for every room type...

Hope you can look into it, its kind of annoying :|

Edit: I know it aborts at 100 ms, but even if it does, it shouldnt in the development server (and I think it only gives a code ran for too long warning but doesnt abort...)

Best Regards
Try to play my Game: -->BlackGalaxy<--
User avatar
default0
 
Posts: 115
Joined: February 2nd, 2010, 6:46 pm
Location: Germany

Re: Thread was being aborted.

Postby Oliver » April 15th, 2011, 12:57 pm

Hey,

Would you be willing to zip over the project (client+server) along with reproduce steps so i can reproduce the error here?

Best,
Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Thread was being aborted.

Postby default0 » April 15th, 2011, 1:52 pm

Oliver wrote:Hey,

Would you be willing to zip over the project (client+server) along with reproduce steps so i can reproduce the error here?

Best,
Oliver


PMd you explanation + project.
Try to play my Game: -->BlackGalaxy<--
User avatar
default0
 
Posts: 115
Joined: February 2nd, 2010, 6:46 pm
Location: Germany


Return to C#



cron