Hi,
The errors:
Error.log:
Exceptionlog:
Error en thread Room cycle task for room 29060:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.HashSet`1.Enumerator.MoveNext()
at Mercury.HabboHotel.Rooms.RoomManager.UnloadRoom(Room Room) in C:\Users\Administrator\Desktop\Emulador\HabboHotel\Rooms\RoomManager.cs:line 629
at Mercury.HabboHotel.Rooms.Room.ProcessRoom() in C:\Users\Administrator\Desktop\Emulador\HabboHotel\Rooms\Room.cs:line 772
Error en thread Room cycle task for room 23712:
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.Dictionary`2.ValueCollection.Enumerator.MoveNext()
at Mercury.HabboHotel.Rooms.RoomUserManager.OnCycle(Int32& idleCount) in C:\Users\Administrator\Desktop\Emulador\HabboHotel\Rooms\RoomUserManager.cs:line 1293
at Mercury.HabboHotel.Rooms.Room.ProcessRoom() in C:\Users\Administrator\Desktop\Emulador\HabboHotel\Rooms\Room.cs:line 757
THIS IS ROOM.CS INVOID FOR ERROR LINE 772:Exception logged 11/27/2014 10:08:03 PM in Room.SqAbsoluteHeight:
System.NullReferenceException: Object reference not set to an instance of an object.
at Mercury.HabboHotel.Items.RoomItem.get_TotalHeight() in C:\Users\Administrator\Desktop\Emulador\HabboHotel\Items\RoomItem.cs:line 143
at Mercury.HabboHotel.Rooms.Gamemap.SqAbsoluteHeight(Int32 X, Int32 Y, List`1 ItemsOnSquare) in C:\Users\Administrator\Desktop\Emulador\HabboHotel\Rooms\Gamemap.cs:line 981
Source:
Mercury
Data:
Message:
Object reference not set to an instance of an object.
Stack trace:
at Mercury.HabboHotel.Items.RoomItem.get_TotalHeight() in C:\Users\Administrator\Desktop\Emulador\HabboHotel\Items\RoomItem.cs:line 143
at Mercury.HabboHotel.Rooms.Gamemap.SqAbsoluteHeight(Int32 X, Int32 Y, List`1 ItemsOnSquare) in C:\Users\Administrator\Desktop\Emulador\HabboHotel\Rooms\Gamemap.cs:line 981
This only happens when many users try to enter the room.internal void ProcessRoom()
{
try
{
if (isCrashed || mDisposed)
return;
try
{
int idle = 0;
GetRoomItemHandler().OnCycle();
GetRoomUserManager().OnCycle(ref idle);
if (idle > 0)
{
IdleTime++;
}
else
{
IdleTime = 0;
}
if (!mCycleEnded)
{
if (this.IdleTime >= 60/* && usersQueueToEnter.Count == 0*/)
{
MercuryEnvironment.GetGame().GetRoomManager().UnloadRoom(this);
return;
}
else
{
ServerMessage serverMessage = this.GetRoomUserManager().SerializeStatusUpdates(false);
if (serverMessage != null)
SendMessage(serverMessage);
}
}
if (gameItemHandler != null)
gameItemHandler.OnCycle();
if (game != null)
{ game.OnCycle(); }
if (GotBanzai())
{ banzai.OnCycle(); }
if (GotSoccer())
{ soccer.OnCycle(); }
roomUserManager.UserList.OnCycle();
GetWiredHandler().OnCycle();
WorkRoomKickQueue();
}
catch (Exception e)
{
OnRoomCrash(e);
}
}
catch (Exception e)
{
Logging.LogCriticalException("Sub crash in room cycle: " + e.ToString());
}
}
Multiple users take dc.
Thxa.


Reply With Quote


