[FIXED] UOX3 v0.99.4[RC3] (Win 64) Violated Me!

Found a bug in UOX3? Or experienced a server crash? Perhaps you've noticed a broken feature? Post the details here!
Post Reply
Mindless Automaton
UOX3 Apprentice
Posts: 189
Joined: Wed May 10, 2006 3:48 am
Has thanked: 0
Been thanked: 1 time
Contact:

UOX3 v0.99.4[RC3] (Win 64) Violated Me!

Post by Mindless Automaton »

Ok, fresh build this morning, dropped in community spawn and world files and then splat at end of server startup:

Code: Select all

>	UOX3.exe!CSocket::Send(CPUOXBuffer * toSend) Line 1439	C++
 	UOX3.exe!cItem::PlaceItem(CSocket * mSock, CChar * mChar, CItem * iCreated, const bool inPack) Line 638	C++
 	UOX3.exe!cItem::CreateScriptItem(CSocket * mSock, CChar * mChar, const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & item, const unsigned short iAmount, const ObjectType itemType, bool inPack, const unsigned short iColor) Line 443	C++
 	UOX3.exe!cCharStuff::ApplyNpcSection(CChar * applyTo, ScriptSection * NpcCreation, std::basic_string<char,std::char_traits<char>,std::allocator<char> > sectionID, bool isGate) Line 880	C++
 	UOX3.exe!cCharStuff::CreateBaseNPC(UString ourNPC) Line 117	C++
 	UOX3.exe!CSpawnRegion::RegionSpawnChar() Line 620	C++
 	UOX3.exe!CSpawnRegion::doRegionSpawn(unsigned short & itemsSpawned, unsigned short & npcsSpawned) Line 598	C++
 	UOX3.exe!CWorldMain::CheckAutoTimers() Line 1264	C++
 	UOX3.exe!main(int argc, char * * argv) Line 2808	C++
 	[External Code]	
So I removed spawn/world, server starts ok. Add world files back, seems ok. Put spawn.dfn back and crash.

I deleted entries to spawn.dfn and narrowed it down to just Britain spawn.
m_animaltrainer, m_fisher & f_fisher cause a crash. (f_animaltrainer works fine).

For both fisher, removing PACKITEM=0x0dbf stops crash.
For m_animaltrainer removing GOLD=0 50 stops crash.

That cleared up the Britain spawns 0-49, however when I added all the other ones back, it crashes again. There are various lists and what not that contain creatures that use GOLD so I assume its related to that one.

Thanks!
Mindless Automaton
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

Thanks for testing, and for highlighting this! Easy fix, thankfully - just needed a null-check for socket before sending a tooltip update in the PlaceItem() function in items.cpp. It was trying to send container updates to a non-existent player :) Committed fix to branch.
-= Ho Eyo He Hum =-
Mindless Automaton
UOX3 Apprentice
Posts: 189
Joined: Wed May 10, 2006 3:48 am
Has thanked: 0
Been thanked: 1 time
Contact:

Post by Mindless Automaton »

Thanks for testing, and for highlighting this! Easy fix, thankfully - just needed a null-check for socket before sending a tooltip update in the PlaceItem() function in items.cpp. It was trying to send container updates to a non-existent player :) Committed fix to branch.
No problemo, glad I can help narrow it done and get it fixed. I was able to build again and put in the spawn.dfn & wsc files and it seems to be running ok. Thanks!
Mindless Automaton
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
Post Reply