View Issue Details

IDProjectCategoryView StatusLast Update
0009897Multi Theft Auto : San AndreasVehiclespublic2018-07-16 20:17
ReportermyonlakeAssigned Tomyonlake 
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformPCOSWindowsOS Version10
Product Version1.5.5 
Target Version1.5.6Fixed in Version1.5.6 
Summary0009897: Calling getVehicleModelExhaustFumesPosition or setVehicleModelExhaustFumesPosition crashes the client
Description

Wiki example is enough to reproduce this crash:

local x, y, z = getVehicleModelExhaustFumesPosition( 411 ) -- Get its exhaust fumes position
setVehicleModelExhaustFumesPosition( 411, x, y, z + 1 ) -- Set its exhaust fumes position
local vehicle = createVehicle( 411, 0, 0, 3 ) -- Create a vehicle

TagsNo tags attached.

Activities

myonlake

2018-07-06 13:40

updater   ~~0026634

-- Unhandled exception --

Version = 1.5.5-release-12349.0.000
Time = Fri Jul 6 14:36:24 2018
Module = Q:\Program Files\MTA San Andreas 1.5\mta\game_sa.dll
Code = 0xC0000005
Offset = 0x000361C5

EAX=0177EE78 EBX=00000BF4 ECX=00000000 EDX=0F151318 ESI=21EE2058
EDI=00000000 EBP=0177ED94 ESP=0177ED94 EIP=0F0E61C5 FLG=00010202
CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B

-- End of unhandled exception --

myonlake

2018-07-06 16:55

updater   ~~0026636

Last edited: 2018-07-06 16:56

View 3 revisions

To fix this in Lua it seems as if you must have the vehicle model created at some point in time before the calls.

For example:
<pre>
createVehicle(545, 0, 0, 3)
setTimer(function()
local x, y, z = getVehicleModelExhaustFumesPosition(545)
setVehicleModelExhaustFumesPosition(545, x, y, z + 1)
-- No crash
end, 5000, 1)
</pre>

StifflersMom

2018-07-06 17:12

updater   ~~0026637

Another shorter variant without getting any vehicle:

  • start map editor
  • start runcode
  • crun setVehicleModelExhaustFumesPosition( 411, 0, 0,1 )
  • exit the client
  • crash

Version = 1.5.5-release-12349.0.000
Time = Fri Jul 6 17:09:49 2018
Module = C:\Program Files (x86)\MTA San Andreas 1.5\mta\game_sa.dll
Code = 0xC0000005
Offset = 0x00037C6F

EAX=00000000 EBX=00B217AC ECX=6E3E7838 EDX=050E8C80 ESI=050E8C80
EDI=050B4BD0 EBP=0028EB28 ESP=0028EB00 EIP=6E347C6F FLG=00210246
CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B

myonlake

2018-07-06 18:04

updater   ~~0026638

PR created at https://github.com/multitheftauto/mtasa-blue/pull/224

Issue History

Date Modified Username Field Change