Page 3 of 3

Re: New Server Crash Thread

Posted: Mon Apr 04, 2016 10:44 pm
by Starcrusher
about 10:40PM Pacific 04/04/16 CTD both machines

Re: New Server Crash Thread

Posted: Tue Apr 05, 2016 4:41 am
by Nilso
Server hangs on .rift command (time of this post) which makes the rest unusable.

Re: New Server Crash Thread

Posted: Wed Apr 13, 2016 1:41 pm
by Xinux

Code: Select all

 	WorldServer.exe!operator delete(void * pUserData) Line 52	C++
 	WorldServer.exe!std::allocator<char>::deallocate(char * _Ptr, unsigned __int64 __formal) Line 587	C++
 	WorldServer.exe!std::_Wrap_alloc<std::allocator<char> >::deallocate(char * _Ptr, unsigned __int64 _Count) Line 888	C++
 	WorldServer.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Tidy(bool _Built, unsigned __int64 _Newsize) Line 2265	C++
 	WorldServer.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >() Line 965	C++
>	WorldServer.exe!Item::~Item() Line 71	C++
 	WorldServer.exe!Item::`scalar deleting destructor'(unsigned int)	C++
 	WorldServer.exe!Inventory::~Inventory() Line 73	C++
 	WorldServer.exe!Inventory::`scalar deleting destructor'(unsigned int)	C++
 	WorldServer.exe!std::default_delete<Inventory>::operator()(Inventory * _Ptr) Line 1152	C++
 	WorldServer.exe!std::unique_ptr<Inventory,std::default_delete<Inventory> >::_Delete() Line 1445	C++
 	WorldServer.exe!std::unique_ptr<Inventory,std::default_delete<Inventory> >::~unique_ptr<Inventory,std::default_delete<Inventory> >() Line 1400	C++
 	WorldServer.exe!WorldCharacter::~WorldCharacter() Line 203	C++
 	WorldServer.exe!WorldCharacter::`vector deleting destructor'(unsigned int)	C++
 	WorldServer.exe!std::_Ref_count_obj<WorldCharacter>::_Destroy() Line 885	C++
 	WorldServer.exe!std::_Ref_count_base::_Decref() Line 121	C++
 	WorldServer.exe!std::_Ptr_base<UnrealActor>::_Decref() Line 347	C++
 	WorldServer.exe!std::shared_ptr<UnrealActor>::~shared_ptr<UnrealActor>() Line 624	C++
 	WorldServer.exe!std::shared_ptr<UnrealActor>::`scalar deleting destructor'(unsigned int)	C++
 	WorldServer.exe!std::allocator<std::shared_ptr<UnrealActor> >::destroy<std::shared_ptr<UnrealActor> >(std::shared_ptr<UnrealActor> * _Ptr) Line 624	C++
 	WorldServer.exe!std::allocator_traits<std::allocator<std::shared_ptr<UnrealActor> > >::destroy<std::shared_ptr<UnrealActor> >(std::allocator<std::shared_ptr<UnrealActor> > & _Al, std::shared_ptr<UnrealActor> * _Ptr) Line 758	C++
 	WorldServer.exe!std::_Wrap_alloc<std::allocator<std::shared_ptr<UnrealActor> > >::destroy<std::shared_ptr<UnrealActor> >(std::shared_ptr<UnrealActor> * _Ptr) Line 910	C++
 	WorldServer.exe!std::_Destroy_range<std::_Wrap_alloc<std::allocator<std::shared_ptr<UnrealActor> > > >(std::shared_ptr<UnrealActor> * _First, std::shared_ptr<UnrealActor> * _Last, std::_Wrap_alloc<std::allocator<std::shared_ptr<UnrealActor> > > & _Al, std::_Nonscalar_ptr_iterator_tag __formal) Line 89	C++
 	WorldServer.exe!std::_Destroy_range<std::_Wrap_alloc<std::allocator<std::shared_ptr<UnrealActor> > > >(std::shared_ptr<UnrealActor> * _First, std::shared_ptr<UnrealActor> * _Last, std::_Wrap_alloc<std::allocator<std::shared_ptr<UnrealActor> > > & _Al) Line 81	C++
 	WorldServer.exe!std::vector<std::shared_ptr<UnrealActor>,std::allocator<std::shared_ptr<UnrealActor> > >::_Destroy(std::shared_ptr<UnrealActor> * _First, std::shared_ptr<UnrealActor> * _Last) Line 1481	C++
 	WorldServer.exe!std::vector<std::shared_ptr<UnrealActor>,std::allocator<std::shared_ptr<UnrealActor> > >::_Tidy() Line 1541	C++
 	WorldServer.exe!std::vector<std::shared_ptr<UnrealActor>,std::allocator<std::shared_ptr<UnrealActor> > >::~vector<std::shared_ptr<UnrealActor>,std::allocator<std::shared_ptr<UnrealActor> > >() Line 901	C++
 	WorldServer.exe!ChunkServer::CheckSpawnRemovals() Line 135	C++
 	WorldServer.exe!ChunkServer::ProcessSpawn() Line 438	C++
 	WorldServer.exe!SpawnProcessThread(void * data) Line 217	C++
 	WorldServer.exe!ThreadRun(void * arg) Line 83	C++
 	WorldServer.exe!_callthreadstart() Line 257	C
 	WorldServer.exe!_threadstart(void * ptd) Line 239	C
 	kernel32.dll!00007ffbacb713d2()	Unknown
 	ntdll.dll!00007ffbaddb54e4()	Unknown


Re: New Server Crash Thread

Posted: Wed Apr 13, 2016 2:07 pm
by Xinux

Code: Select all

>	WorldServer.exe!std::_Container_base12::_Orphan_all() Line 216	C++
 	WorldServer.exe!std::_String_alloc<0,std::_String_base_types<char,std::allocator<char> > >::_Free_proxy() Line 681	C++
 	WorldServer.exe!std::_String_alloc<0,std::_String_base_types<char,std::allocator<char> > >::~_String_alloc<0,std::_String_base_types<char,std::allocator<char> > >() Line 656	C++
 	WorldServer.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::~basic_string<char,std::char_traits<char>,std::allocator<char> >() Line 965	C++
 	WorldServer.exe!Item::~Item() Line 71	C++
 	WorldServer.exe!Item::`scalar deleting destructor'(unsigned int)	C++
 	WorldServer.exe!Inventory::~Inventory() Line 73	C++
 	WorldServer.exe!Inventory::`scalar deleting destructor'(unsigned int)	C++
 	WorldServer.exe!std::default_delete<Inventory>::operator()(Inventory * _Ptr) Line 1152	C++
 	WorldServer.exe!std::unique_ptr<Inventory,std::default_delete<Inventory> >::_Delete() Line 1445	C++
 	WorldServer.exe!std::unique_ptr<Inventory,std::default_delete<Inventory> >::~unique_ptr<Inventory,std::default_delete<Inventory> >() Line 1400	C++
 	WorldServer.exe!WorldCharacter::~WorldCharacter() Line 203	C++
 	WorldServer.exe!WorldCharacter::`vector deleting destructor'(unsigned int)	C++
 	WorldServer.exe!std::_Ref_count_obj<WorldCharacter>::_Destroy() Line 885	C++
 	WorldServer.exe!std::_Ref_count_base::_Decref() Line 121	C++
 	WorldServer.exe!std::_Ptr_base<UnrealActor>::_Decref() Line 347	C++
 	WorldServer.exe!std::shared_ptr<UnrealActor>::~shared_ptr<UnrealActor>() Line 624	C++
 	WorldServer.exe!std::shared_ptr<UnrealActor>::`scalar deleting destructor'(unsigned int)	C++
 	WorldServer.exe!std::allocator<std::shared_ptr<UnrealActor> >::destroy<std::shared_ptr<UnrealActor> >(std::shared_ptr<UnrealActor> * _Ptr) Line 624	C++
 	WorldServer.exe!std::allocator_traits<std::allocator<std::shared_ptr<UnrealActor> > >::destroy<std::shared_ptr<UnrealActor> >(std::allocator<std::shared_ptr<UnrealActor> > & _Al, std::shared_ptr<UnrealActor> * _Ptr) Line 758	C++
 	WorldServer.exe!std::_Wrap_alloc<std::allocator<std::shared_ptr<UnrealActor> > >::destroy<std::shared_ptr<UnrealActor> >(std::shared_ptr<UnrealActor> * _Ptr) Line 910	C++
 	WorldServer.exe!std::_Destroy_range<std::_Wrap_alloc<std::allocator<std::shared_ptr<UnrealActor> > > >(std::shared_ptr<UnrealActor> * _First, std::shared_ptr<UnrealActor> * _Last, std::_Wrap_alloc<std::allocator<std::shared_ptr<UnrealActor> > > & _Al, std::_Nonscalar_ptr_iterator_tag __formal) Line 89	C++
 	WorldServer.exe!std::_Destroy_range<std::_Wrap_alloc<std::allocator<std::shared_ptr<UnrealActor> > > >(std::shared_ptr<UnrealActor> * _First, std::shared_ptr<UnrealActor> * _Last, std::_Wrap_alloc<std::allocator<std::shared_ptr<UnrealActor> > > & _Al) Line 81	C++
 	WorldServer.exe!std::vector<std::shared_ptr<UnrealActor>,std::allocator<std::shared_ptr<UnrealActor> > >::_Destroy(std::shared_ptr<UnrealActor> * _First, std::shared_ptr<UnrealActor> * _Last) Line 1481	C++
 	WorldServer.exe!std::vector<std::shared_ptr<UnrealActor>,std::allocator<std::shared_ptr<UnrealActor> > >::_Tidy() Line 1541	C++
 	WorldServer.exe!std::vector<std::shared_ptr<UnrealActor>,std::allocator<std::shared_ptr<UnrealActor> > >::~vector<std::shared_ptr<UnrealActor>,std::allocator<std::shared_ptr<UnrealActor> > >() Line 901	C++
 	WorldServer.exe!ChunkServer::CheckSpawnRemovals() Line 135	C++
 	WorldServer.exe!ChunkServer::ProcessSpawn() Line 438	C++
 	WorldServer.exe!SpawnProcessThread(void * data) Line 217	C++
 	WorldServer.exe!ThreadRun(void * arg) Line 83	C++
 	WorldServer.exe!_callthreadstart() Line 257	C
 	WorldServer.exe!_threadstart(void * ptd) Line 239	C
 	kernel32.dll!00007ffbacb713d2()	Unknown
 	ntdll.dll!00007ffbaddb54e4()	Unknown


Something is really wrong with the inventory unique_id should not be that number.
inv.JPG
Rev 1982 is the problem



Update

Issues was in the Inventory.cpp this section.

[quote]
Inventory::Inventory() {
m_inventory_items.SetName("Inventory::m_Inventory");
money_balance = 0;

// This causes unique_id of saved items to be wrong.
//for (int i = 0; i < NUM_BANKS; i++){
// bank_balance = 0;
//}
}
[/quote]


Did not fix it.

Ok i reverted everything in the inventory.cpp file back and it seem's to be fixed now here is the two sections i commented out.

Code: Select all

Inventory::Inventory() {
	m_inventory_items.SetName("Inventory::m_Inventory");	
	money_balance = 0;
	//for (int i = 0; i < NUM_BANKS; i++){
	//	bank_balance[i] = 0;
	//}
}

Code: Select all

	//for (auto& itr : equipped_bags){
	//	delete itr;
	//}

Re: New Server Crash Thread

Posted: Thu Apr 14, 2016 10:12 am
by Xinux
.reload items

Code: Select all

 	WorldServer.exe!Mutex::ReadLock() Line 108	C++
>	WorldServer.exe!ItemInfoList::GetItemById(unsigned int item_id) Line 123	C++
 	WorldServer.exe!WorldDatabase::LoadCharSelectInventory(unsigned int character_id, WorldCharacter * character) Line 4254	C++
 	WorldServer.exe!Net::SendCharacterInfo(std::shared_ptr<Client> & client, WorldCharacter * characters, int count) Line 433	C++
 	WorldServer.exe!Net::HandleCharacterSelected(std::shared_ptr<Client> & client, PacketStruct * packet_struct) Line 625	C++
 	WorldServer.exe!Net::Process() Line 233	C++
 	WorldServer.exe!main(int argc, char * * argv) Line 302	C++
 	WorldServer.exe!__tmainCRTStartup() Line 240	C
 	WorldServer.exe!mainCRTStartup() Line 164	C
 	kernel32.dll!00007ffbacb713d2()	Unknown
 	ntdll.dll!00007ffbaddb54e4()	Unknown

item_list was empty on GetItemById

Re: New Server Crash Thread

Posted: Mon Apr 18, 2016 4:32 pm
by Xinux

Code: Select all

 	KernelBase.dll!00007ffbab258a5c()	Unknown
>	WorldServer.exe!_CxxThrowException(void * pExceptionObject, const _s__ThrowInfo * pThrowInfo) Line 152	C++
 	WorldServer.exe!BitStreamWriter::SerializeInt(unsigned long Value, unsigned __int64 ValueMax) Line 107	C++
 	WorldServer.exe!BitStreamWriter::WriteInt(unsigned long Value, unsigned __int64 ValueMax) Line 112	C++
 	WorldServer.exe!SGOUnrealPawn::WriteDifferencesFromDefault(BitStreamWriter & writer, std::shared_ptr<Client> & client) Line 269	C++
 	WorldServer.exe!SGOPCPawn::WriteDifferencesFromDefault(BitStreamWriter & writer, std::shared_ptr<Client> & client) Line 224	C++
 	WorldServer.exe!SGOPCPawn::OpenReplicate(BitStreamWriter & writer, int zone_offset, std::shared_ptr<Client> & client) Line 292	C++
 	WorldServer.exe!SGOPCPawn::SendSpawnPacket(std::shared_ptr<Client> & client, int chunk_export_count, UnrealChannel * chan) Line 311	C++
 	WorldServer.exe!ChunkServer::SendPlayerSGOPCPawnSpawn(std::shared_ptr<UnrealActor> & actor, std::shared_ptr<Client> & client, std::shared_ptr<UnrealClientChannelList> & c_list) Line 2093	C++
 	WorldServer.exe!ChunkServer::SendPlayerInitPackets(std::shared_ptr<Client> & client) Line 1333	C++
 	WorldServer.exe!ChunkServer::HandleClientAuthConfirm(std::shared_ptr<Client> & client, PacketStruct * packet_struct) Line 1608	C++
 	WorldServer.exe!ChunkServer::ProcessPackets() Line 494	C++
 	WorldServer.exe!ChunkPacketThread(void * data) Line 122	C++
 	WorldServer.exe!ThreadRun(void * arg) Line 83	C++
 	WorldServer.exe!_callthreadstart() Line 257	C
 	WorldServer.exe!_threadstart(void * ptd) Line 239	C
 	kernel32.dll!00007ffbacb713d2()	Unknown
 	ntdll.dll!00007ffbaddb54e4()	Unknown

Re: New Server Crash Thread

Posted: Mon Apr 18, 2016 5:51 pm
by Xinux

Code: Select all

 	WorldServer.exe!Mutex::WriteLock() Line 184	C++
>	WorldServer.exe!ChunkServer::AddMovedSpawn(std::shared_ptr<UnrealActor> & spawn_that_moved) Line 7014	C++
 	WorldServer.exe!ChunkServer::ProcessMovement() Line 2312	C++
 	WorldServer.exe!ChunkServer::ProcessMovements() Line 455	C++
 	WorldServer.exe!MovementProcessThread(void * data) Line 232	C++
 	WorldServer.exe!ThreadRun(void * arg) Line 83	C++
 	WorldServer.exe!_callthreadstart() Line 257	C
 	WorldServer.exe!_threadstart(void * ptd) Line 239	C
 	kernel32.dll!00007ffbacb713d2()	Unknown
 	ntdll.dll!00007ffbaddb54e4()	Unknown

Code: Select all

17:24:30.136 E Chunk    Unhandled opcode 0x000003E5 (997) from 68.41.253.137 in ChunkServer::ProcessPackets
17:51:23.628 E Mutex    Timeout trying to acquire mutex ChunkServer::m_MovedSpawns's write lock lock after 10000 millise
conds

Re: New Server Crash Thread

Posted: Wed May 04, 2016 1:40 pm
by Xinux

Code: Select all

 	WorldServer.exe!std::_Ref_count_base::_Incref_nz() Line 78	C++
 	WorldServer.exe!std::_Ptr_base<SGOUnrealPawn>::_Reset(SGOUnrealPawn * _Other_ptr, std::_Ref_count_base * _Other_rep, bool _Throw) Line 416	C++
 	WorldServer.exe!std::_Ptr_base<SGOUnrealPawn>::_Reset<SGOUnrealPawn>(const std::_Ptr_base<SGOUnrealPawn> & _Other, bool _Throw) Line 364	C++
 	WorldServer.exe!std::shared_ptr<SGOUnrealPawn>::shared_ptr<SGOUnrealPawn><SGOUnrealPawn>(const std::weak_ptr<SGOUnrealPawn> & _Other, bool _Throw) Line 552	C++
 	WorldServer.exe!std::weak_ptr<SGOUnrealPawn>::lock() Line 1051	C++
>	WorldServer.exe!SpellProcess::ProcessTickTimer(TickTimer * ticker) Line 1381	C++
 	WorldServer.exe!SpellProcess::CheckSpellTickTimers() Line 1336	C++
 	WorldServer.exe!SpellProcess::Process() Line 87	C++
 	WorldServer.exe!ProcessSpellThread(void * data) Line 156	C++
 	WorldServer.exe!ThreadRun(void * arg) Line 83	C++
 	WorldServer.exe!_callthreadstart() Line 257	C
 	WorldServer.exe!_threadstart(void * ptd) Line 239	C
 	kernel32.dll!00007ffbacb713d2()	Unknown
 	ntdll.dll!00007ffbaddb54e4()	Unknown

[quote][13:38] <OncaLupe> When I tried my HOT, I had the trainer targeted and the icon showed up on their buff list.[/quote]

Code: Select all

	shared_ptr<SGOUnrealPawn> current_target = ticker->target.lock();
	if (!current_target || current_target->GetIsDead()) {
		return false;
	}
current_target showed empty

Re: New Server Crash Thread

Posted: Wed May 04, 2016 3:41 pm
by theFoof
[quote="Xinux"]

Code: Select all

 	WorldServer.exe!std::_Ref_count_base::_Incref_nz() Line 78	C++
 	WorldServer.exe!std::_Ptr_base<SGOUnrealPawn>::_Reset(SGOUnrealPawn * _Other_ptr, std::_Ref_count_base * _Other_rep, bool _Throw) Line 416	C++
 	WorldServer.exe!std::_Ptr_base<SGOUnrealPawn>::_Reset<SGOUnrealPawn>(const std::_Ptr_base<SGOUnrealPawn> & _Other, bool _Throw) Line 364	C++
 	WorldServer.exe!std::shared_ptr<SGOUnrealPawn>::shared_ptr<SGOUnrealPawn><SGOUnrealPawn>(const std::weak_ptr<SGOUnrealPawn> & _Other, bool _Throw) Line 552	C++
 	WorldServer.exe!std::weak_ptr<SGOUnrealPawn>::lock() Line 1051	C++
>	WorldServer.exe!SpellProcess::ProcessTickTimer(TickTimer * ticker) Line 1381	C++
 	WorldServer.exe!SpellProcess::CheckSpellTickTimers() Line 1336	C++
 	WorldServer.exe!SpellProcess::Process() Line 87	C++
 	WorldServer.exe!ProcessSpellThread(void * data) Line 156	C++
 	WorldServer.exe!ThreadRun(void * arg) Line 83	C++
 	WorldServer.exe!_callthreadstart() Line 257	C
 	WorldServer.exe!_threadstart(void * ptd) Line 239	C
 	kernel32.dll!00007ffbacb713d2()	Unknown
 	ntdll.dll!00007ffbaddb54e4()	Unknown

[quote][13:38] <OncaLupe> When I tried my HOT, I had the trainer targeted and the icon showed up on their buff list.[/quote]

Code: Select all

	shared_ptr<SGOUnrealPawn> current_target = ticker->target.lock();
	if (!current_target || current_target->GetIsDead()) {
		return false;
	}
current_target showed empty[/quote]

ticker was an invalid object, committed a fix.

Re: New Server Crash Thread

Posted: Wed May 04, 2016 4:15 pm
by Faux
Thats very strange, it should have defaulted to you if you had the trainer targetted.