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

setWaterLevel causes clientcrash after some time #447

Open
ArranTuna opened this issue Sep 11, 2018 · 1 comment
Open

setWaterLevel causes clientcrash after some time #447

ArranTuna opened this issue Sep 11, 2018 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@ArranTuna
Copy link
Collaborator

Describe the bug
Dunno why, but if I use some flood script, it'll crash all clients after some time. I don't know a reason.

See steps to reproduce for serverside script I used. It's from the wiki, lol

To Reproduce
-- Setting water properties.
local level = 0
local SizeVal = 2998
-- Defining variables.
local southWest_X = -SizeVal
local southWest_Y = -SizeVal
local southEast_X = SizeVal
local southEast_Y = -SizeVal
local northWest_X = -SizeVal
local northWest_Y = SizeVal
local northEast_X = SizeVal
local northEast_Y = SizeVal

water = createWater ( southWest_X, southWest_Y, level, southEast_X, southEast_Y, level, northWest_X, northWest_Y, level, northEast_X, northEast_Y, level )

function part2( )
setElementPosition(localPlayer, -780, 463, 0)
for i=1, 100 do
a = createPed(0, -780 + math.random(-10, 10), 463 + math.random(-10, 10), 0)
setTimer(setPedControlState, 1000, 1, a, "fire", true)
end
setTimer(drainSomeWater, 50, 35000)
end
setTimer(part2, 2000, 1)

function drainSomeWater()
level = level + 0.1
setWaterLevel ( water, level )
end

Expected behavior
no crash

Screenshots
Crash dump:
https://bugs.mtasa.com/file_download.php?file_id=1421&type=bug

MTA Client (please complete the following information):
v1.5.5-release-13182.

MTA Server (please complete the following information):
n/a

Additional context
https://bugs.mtasa.com/view.php?id=5693

@ArranTuna ArranTuna added the bug Something isn't working label Sep 11, 2018
@botder botder added this to the Backlog milestone Mar 3, 2019
@TracerDS
Copy link
Contributor

TracerDS commented Jun 1, 2024

Still happening in 1.6
RpAnimBlendClumpGetAssociation fails for some reason (most likely nullptr), causing this crash

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants