Pet movement or possibly owner crash

Support forum for questions about compiling and running EQ2Emulator on Linux.

Moderator: Team Members

Post Reply
User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Pet movement or possibly owner crash

Post by Gangrenous » Mon Apr 10, 2017 4:45 am

Starting to get this while testing. It seems to happen when camping only, at least from testing. The crash dump shows this line being the culprit.

Code: Select all

// If owner is a player and player has stay set then return out
	if (GetBody()->GetOwner()->IsPlayer() && ((Player*)GetBody()->GetOwner())->GetInfoStruct()->pet_movement == 1)
		return;
Could this have to do with the pet being around but the owner camping out?
Resident Dirty Hippy

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: Pet movement or possibly owner crash

Post by Jabantiz » Mon Apr 10, 2017 3:10 pm

If the player is gone but the pet is still in the world then the GetOwner() will not be valid and crash. This was a bug a while back but I thought it was fixed as I forcefully nuked pets when a player was zoning/camping. You can put a check above that to see if owner is valid but I have a feeling the check will pass in most cases and still crash.

User avatar
Gangrenous
Posts: 812
Joined: Sun Apr 24, 2016 6:54 am
Characters: Dinsmoor

Re: Pet movement or possibly owner crash

Post by Gangrenous » Mon Apr 10, 2017 3:16 pm

I did that earlier today and I pretty much think it fixed it. Waiting on someone to check it since I am out of town.
Resident Dirty Hippy

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests