• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Error when a player try's to log into the server

Status
Not open for further replies.

Ghostcrawler336

Epic Member
Hello,

Can someone explain to me why I'm getting this error when a player try's to log into the server.

6f90.png


Error in code box:
Code:
/home/ghost-core/src/server/shared/Utilities/Util.cpp:37 in urand ASSERTION FAILED:
  max >= min
./worldserver(_ZN10GameObject6CreateEjjP3Mapjffffffffj7GOStatej+0x950) [0xaf0920]
./worldserver(_ZN10GameObject20LoadGameObjectFromDBEjP3Mapb+0xeb) [0xaf0cbb]
./worldserver(_ZN16ObjectGridLoader5VisitER14GridRefManagerI10GameObjectE+0x127) [0xf114b7]
./worldserver(_ZN16ObjectGridLoader5LoadNEv+0x13f) [0xf118ef]
./worldserver(_ZN3Map16EnsureGridLoadedERK4Cell+0x1e1) [0xd18591]
./worldserver(_ZNK4Cell11VisitCircleIN7Trinity24PlayerRelocationNotifierE16TypeMapContainerI8TypeListI6PlayerS4_I8CreatureS4_I6CorpseS4_I13DynamicObject8TypeNullEEEEEEEvR20TypeContainerVisitorIT_T0_ER3MapRK9CoordPairILj512EESP_+0x766) [0xc5feb6]
./worldserver(_ZN7Trinity21DelayedUnitRelocation5VisitER14GridRefManagerI6PlayerE+0x1cf9) [0xc5f3f9]
./worldserver(_ZN3Map25ProcessRelocationNotifiesEj+0x6fc) [0xd1957c]
./worldserver(_ZN3Map6UpdateEj+0x280) [0xd1d960]
./worldserver(_ZN16MapUpdateRequest4callEv+0x11) [0xf8dd71]
./worldserver(_ZN13DelayExecutor3svcEv+0x31) [0x1046941]
/usr/local/lib/libACE-6.0.3.so(_ZN13ACE_Task_Base7svc_runEPv+0x37) [0x7f3c42cbf5a7]
/usr/local/lib/libACE-6.0.3.so(_ZN18ACE_Thread_Adapter8invoke_iEv+0x105) [0x7f3c42cc0a05]
/usr/local/lib/libACE-6.0.3.so(_ZN18ACE_Thread_Adapter6invokeEv+0x54) [0x7f3c42cc0ac4]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) [0x7f3c41e2ce9a]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f3c413473fd]

Any staff member can login, it's just when a player try's to log in.
 

Tommy

Founder
Are you calling the urand function anywhere where the max amount is less than the minimum amount?

Example:

Code:
int random = urand(4, 3); // min/max (Min is higher than MAX)
 

Ghostcrawler336

Epic Member
Is your server set to GM only?

I have never seen an error like this on a worldserver crash

It isn't set up for GM only. I have never seen an error like this before.

Are you calling the urand function anywhere where the max amount is less than the minimum amount?

Example:

Code:
int random = urand(4, 3); // min/max (Min is higher than MAX)

I haven't touched the urand function, but the lines between 37 are:
Code:
uint32 urand(uint32 min, uint32 max)
{
    ASSERT(max >= min);
    return sfmtRand->URandom(min, max);
}

It worked before, however the only recent major change I've done would have to be changing racemask and classmask back to race and class inside the database. Which I'm starting to think that is the issue.
 

Tommy

Founder
It isn't set up for GM only. I have never seen an error like this before.



I haven't touched the urand function, but the lines between 37 are:
Code:
uint32 urand(uint32 min, uint32 max)
{
    ASSERT(max >= min);
    return sfmtRand->URandom(min, max);
}

It worked before, however the only recent major change I've done would have to be changing racemask and classmask back to race and class inside the database. Which I'm starting to think that is the issue.

I wasn't referring to the urand function in general, I was asking if you called it anywhere where the minimum amount is greater than the maximum amount? Custom scripts, etc..
 

Ghostcrawler336

Epic Member
I wasn't referring to the urand function in general, I was asking if you called it anywhere where the minimum amount is greater than the maximum amount? Custom scripts, etc..

Sorry I misunderstood your question. But no I didn't call it anywhere else, non of my custom scripts or nothing.
 

Tommy

Founder
Seems to me like the errors are pointing towards gameobject, gameobject create and gameobject load from database. Are there any particular gameobjects spawned that could cause this for players? I don't know, kinda hard to tell with limited information.
 

Ghostcrawler336

Epic Member
Seems to me like the errors are pointing towards gameobject, gameobject create and gameobject load from database. Are there any particular gameobjects spawned that could cause this for players? I don't know, kinda hard to tell with limited information.

Hmm, I'll look into the gameobjects and see if I can find anything.
 

Hyperion

Founder
You say, 'a player' is this just one person or is it any player? If it's any player is it existing players or new players? New characters?
 

Ghostcrawler336

Epic Member
You say, 'a player' is this just one person or is it any player? If it's any player is it existing players or new players? New characters?

Just tested it. It's any new player, but characters already made can login, etc. The only recent changes I did for player creation would be add the all race / class.
 
Status
Not open for further replies.
Top