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

SetModelScale + Collisions lead to infinite loops and server crash #6042

Open
BlackOverride opened this issue Oct 28, 2024 · 0 comments
Open
Labels
Dependency: IVP The issue resides with IVP (Ipion Virtual Physics/Havok).

Comments

@BlackOverride
Copy link

BlackOverride commented Oct 28, 2024

Steps to re-produce ->

create a prop physics model normally and scale it to some big size and let it collide multiple times fast cause instant infinite loop and crash -

local dome = ents.Create("prop_physics")
dome:SetModel("models/props_phx/construct/glass/glass_dome360.mdl")
dome:SetPos(self.Owner:GetPos())
dome:SetCollisionGroup(COLLISION_GROUP_NONE)
dome:SetMoveType(MOVETYPE_NONE)
dome:SetHealth(1000)
dome:SetModelScale(dome:GetModelScale() * 180) -- High values (x50+ on that model) cause infinite loop crash when collides more than once with other props
dome:Spawn()
dome:Activate()

Just like that, try to collide it multiple times per sec will cause overflow, infinite loop, and instant crash.

Same thing happens when using tools like -
https://github.com/Metastruct/advresize
or spawning from dupes

I also noticed that issue from long time ago which not sure why it was closed since it's not really fixed
#3547

I just want a reliable way to scale props with their collisions boxes for server side because I do need it to collide but there seems to be no way to do that?

@robotboy655 robotboy655 added the Dependency: IVP The issue resides with IVP (Ipion Virtual Physics/Havok). label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependency: IVP The issue resides with IVP (Ipion Virtual Physics/Havok).
Projects
None yet
Development

No branches or pull requests

2 participants