Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

player:LogoutPlayer(true) case Server crash #123

Open
kissingers opened this issue Apr 9, 2023 · 8 comments
Open

player:LogoutPlayer(true) case Server crash #123

kissingers opened this issue Apr 9, 2023 · 8 comments

Comments

@kissingers
Copy link

this is crash log
https://pastebin.com/NwSDEgMb

@r-o-b-o-t-o
Copy link
Member

r-o-b-o-t-o commented Apr 9, 2023

Hi, could you please share a minimal reproducible example script?

@kissingers
Copy link
Author

OnResetflag=function(event, player)
player:SetAtLoginFlag(0x1)
player:LogoutPlayer( true)
end

RegisterPlayerEvent(28, OnResetflag)

then change the player map

@New-HavenWotLK
Copy link

New-HavenWotLK commented May 29, 2023

i can confirm this!

it is the same if u do it via event 42 hooked to a command...
hooked as Itemhook at OnUseItem also crashed the server...

i solved it in the end via doing a logout npc via gossip interaction at my former server... ^^

@GoMateoGo
Copy link

I tested it

When changing the map, the old player object has been uninstalled~ Object

At this point, when operating the player object, uint32 * m needs to be used_ Uint32value. However, in reality, this value is already null ptr Eventually leading to collapse

@GoMateoGo
Copy link

For example, if your item is hung on gossipSelect and the item object status is new before gossipselect is completed At this point, if you remove an item It can also cause downtime, similar to the problems you encounter. It's all due to Uint32 * m_ Uint32Values is nullptr

@Nefertumm
Copy link
Member

@New-HavenWotLK do you know how to reproduce the OnUseItem crash? If so, please open another issue.

@kissingers
Copy link
Author

I use Kick( player ) replace the fun

@New-HavenWotLK
Copy link

@New-HavenWotLK do you know how to reproduce the OnUseItem crash? If so, please open another issue.

can look to reproduce it again bit later today and open then another issue with it if i was able to reproduce it =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants