-
-
Notifications
You must be signed in to change notification settings - Fork 499
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
For some reason, using processLineAgainstMesh with an array of buildings will crash the game, but only if the amount of buildings tested is "high". I managed to make it crash with under 25 buildings, but on the test I uploaded I am using 100 buildings just to be sure it works.
This doesn't happen with objects.
Steps to reproduce
- Download the test resource and run it, you should crash.
Otherwise, run this code
local x, y, z = getElementPosition(localPlayer)
local buildings = {}
for i=1,25 do
buildings[i] = createBuilding(1337, x, y+2*i, z)
end
setTimer(function()
local px, py, pz = getElementPosition(localPlayer)
for i=1,#buildings do
local building = buildings[i]
local hit, u, v, texture, frame, wx, wy, wz = processLineAgainstMesh(building, px, py, pz, x, y+2*i, z)
iprint(i, hit, u, v, texture, frame, wx, wy, wz)
end
end, 1000, 1)Version
Client: Multi Theft Auto v1.7-untested-25596
Additional context
** -- Unhandled exception -- **
Version = 1.7-untested-25596.0.000
Time = Mon Sep 22 21:19:27 2025
Module = D:\MTA San Andreas 1.7\mta\game_sa.dll
Code = 0xC0000005
Offset = 0x00084B86
EAX=0177F48C EBX=0177F458 ECX=00000000 EDX=0177F474 ESI=0177F48C
EDI=250B1EB0 EBP=0177F450 ESP=0177F2C0 EIP=53564B86 FLG=00010282
CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B
** -- End of unhandled exception -- **
Relevant log output
Security Policy
- I have read and understood the Security Policy and this issue is not security related.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working