If altitude is set too hight, ArmA will crash.
Description
Details
- Legacy ID
- 3011128626
- Severity
- None
- Resolution
- Unable To Duplicate
- Reproducibility
- Always
- Category
- Scripting
- Place a unit in the map (editor)
- Name it (i will use myself, "player")
- Start preview
- Write in console: [player,200000000000] call BIS_fnc_setHeight;
- Run it
The game will crash in a couple of seconds, an error about paging (memory) will pop up.
Error displayed: http://oi58.tinypic.com/k55w3.jpg
Rpt PasteBin related: http://pastebin.com/3xZN1J8y
RPT-BIDmp Full Files(rar archive): http://www.filedropper.com/arma3_1
Event Timeline
Hello,
I could not reproduce the problem. Could you please send a DX-Diag file?
http://www.matrixgames.com/forums/tm.asp?m=1597548
We expect function will limit itself to a maximum altitude if there is a risk to make program crash, this is of course a test, a "bug hunting", and will never be used in a real script (I hope), however is better to fix it.
I provided all infos required and in my hands, now it's your work to fix it (and decide how) ;)
Added a .RAR with requested file (mdmp not found in AppData): http://www.filedropper.com/arma3_1
Crash confirmed on Win7 64bits.
It is not directly linked to BIS_fnc_setHeight but to the setPos* commands.
On my computer crashed appears for player's altitude equals to 1000000000000 or 10000000000000.
Just before the CTD, arma3.exe uses all the available memory (4GB).
Looks like a memory overflow, maybe a temporary fix could be to limit altitude in setPos command (that madbull spotted as a source of the bug)