TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

[solved] 2.00.6 beta hangs

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Chicomecoatl



Joined: 08 Sep 2009
Posts: 73
Location: Kansas

PostPosted: Fri Mar 18, 2011 11:06 pm    Post subject: [solved] 2.00.6 beta hangs Reply with quote

Can't reproduce at a consistent rate to pinpoint the where this is happening, but since upgrading to the 2.00.6 beta, i've been noticing that the client randomly hangs. It's not server lag, or system lag on my part, but it seems to happen the most in rooms flagged as mazes. On Aardwolf, the maze rooms don't send GMCP messages as normal, but sent -1 for all fields, so i'm including my GMCP room handler below on the chance that it's the culprit.

Code:

#event {IAC SB GMCP room.info IAC SE}             
{
    #var GMCP[ROOM][INFO] {%0};
      #if {$wasMapping}
      {
         #var mapping 1;
         #var wasMapping 0
      };
    #if {$mapping}
    {
       #if {$GMCP[ROOM][INFO][num] != -1}
       {
          #var mapping 1
       }
       {
          #var mapping 0;
          #var wasMapping 1;
          #map leave;
       };
    };
   #if {$mapping}
   {
        #map goto {$GMCP[ROOM][INFO][num]} {dig}; 
        #map get roomname {result};       
      #if {"$result" == "{\d+}"}           
      {
              #map set roomname $GMCP[ROOM][INFO][name];
              #map set roomvnum $GMCP[ROOM][INFO][num];                 
              #map set roomcolor <178>                           
      };

      #foreach {$GMCP[ROOM][INFO][exits][]} {exit}                                         
      {
              #map get {roomexit} {result};

              #if {&result[$exit] == 0}
              {                       
                      #map get {roomvnum} {result} {$GMCP[ROOM][INFO][exits][$exit]};

                      #map dig {$exit} {$GMCP[ROOM][INFO][exits][$exit]};
                                                                 
                      #if {$result == 0}                         
                      {                 
                              #map set {roomcolor} {<fca>} {$GMCP[ROOM][INFO][exits][$exit]}
                      }                                                             
              }       
      }   
   };
   #if {$debug}
   {
      #showme %1
   };
   #nop;
}

_________________
Chico


Last edited by Chicomecoatl on Sun Mar 27, 2011 3:34 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3796

PostPosted: Sat Mar 19, 2011 8:57 pm    Post subject: Reply with quote

One thing worth trying is typing 'ps aux', find the process id (PID) and use kill <PID> and see if tt++ dumps its internal stack.

Also something worth trying is removing:

Code:

   #if {$debug}
   {
      #showme %1
   };


That's what I think was causing a crash in 2.00.5
Back to top
View user's profile Send private message Send e-mail
Chicomecoatl



Joined: 08 Sep 2009
Posts: 73
Location: Kansas

PostPosted: Sun Mar 27, 2011 3:34 pm    Post subject: Reply with quote

Wasn't quite the showme that was causing it, but i guess a number of things. The fix i found to that works is:

Code:

#event {IAC SB GMCP room.info IAC SE}             
{
    #var GMCP[ROOM][INFO] {%0};
   #if {$mapping}
   {
      #if {"$GMCP[ROOM][INFO][details]" != "%*maze%*" && $GMCP[ROOM][INFO][num] != -1}
      {   
          #map goto {$GMCP[ROOM][INFO][num]} {dig}; 
          #map get roomname {result};       
         #if {"$result" == "{\d+}"}           
         {
                #map set roomname $GMCP[ROOM][INFO][name];
                #map set roomvnum $GMCP[ROOM][INFO][num];                 
                #map set roomcolor <178>                           
         };

         #foreach {$GMCP[ROOM][INFO][exits][]} {exit}                                         
         {
                #map get {roomexit} {result};

                #if {&result[$exit] == 0}
                {                       
                        #map get {roomvnum} {result} {$GMCP[ROOM][INFO][exits][$exit]};

                        #map dig {$exit} {$GMCP[ROOM][INFO][exits][$exit]};
                                                                   
                        #if {$result == 0}                         
                        {                 
                                #map set {roomcolor} {<fca>} {$GMCP[ROOM][INFO][exits][$exit]}
                        }                                                             
                }       
         }   
      };
   }
}

_________________
Chico
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group