Arma 3 Feedback Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013719Arma 3Scriptingpublic2013-08-31 17:152013-10-01 15:23
ReporterSaOk 
Assigned ToAstaroth 
PriorityurgentSeveritycrashReproducibilityalways
StatusclosedResolutionfixed 
PlatformPCOSWindows 7OS Version64 bit
Product Version0.76.109.065 
Target VersionFixed in Version1.02.110.654 
38 vote(s) 100,00%
vote(s) 0,00%
Summary0013719: nearestBuilding crashes the game with Altis
DescriptionEverytime I try to copy building class with this code, the game halts so that it needs to forced to shut down. The same identical code worked with Stratis without problems. Also other nearestObjects-type command seem to be unstable with Altis. Including NearestObjects [player, ["house"], 200];
Steps To ReproduceUse this code, e.g. next to the tower fortress building (even I think it crashes the game everywhere).

_nul = [[nearestBuilding getposATL thistrigger]] execVM "copyclass.sqf";

Copyclass.sqf:
private ["_array","_unit"];
_array = _this select 0;
_unit = [];
{_unit = _unit + [typeof _x];} foreach _array;
copyToClipboard format["%1",_unit];
hint "Classes copied!";
TagsNo tags attached.
Game Version
Attached Fileszip file icon wallside_crashfiles.zip (8,038 bytes) 2013-09-02 16:06
zip file icon ArmA3_error_nearestBuilding.zip (1,233,687 bytes) 2013-09-02 22:33

- Relationships

-  Notes
(0051488)
Killzone_Kid (reporter)
2013-08-31 20:45

confirmed, seems to only happen on Altis
(0051609)
Curetia (reporter)
2013-09-01 17:01

confirmed and yes it is only on Altis
(0051632)
austin_medic (reporter)
2013-09-01 19:42
edited on: 2013-09-01 19:43

It seems almost all of the nearest commands (nearestObject,nearestBuilding) are broken so they crash the game. Even more strange is that not everybody has the issue. Some people only get lag, others have the whole game crash back to the desktop. This problem is ONLY on Altis. On Stratis the command works as it should with no issues. It never shows any errors, nothing. Theres nothing in the RPT log. I think they might be something if the game creates a dump file somewhere...

(0051678)
ceeeb (reporter)
2013-09-02 02:01
edited on: 2013-09-02 02:26

Confirmed, although nearestBuilding only causes Arma3.exe to hang for several minutes (it becomes unresponsive, stuck at 0 FPS, CPU load 100% on one core). When it finishes, the command returns the expected result and the game returns to normal.

I have not had any problems with nearObjects, nearestObject or nearestObjects.

(0051686)
ViperMaul (reporter)
2013-09-02 07:25

I ran into this problem today during development as well.
No problems testing on Stratis.
Also Nou reports "nearEntities is fairly quick"
(0051723)
Astaroth (Bohemia Interactive - manager)
2013-09-02 14:18
edited on: 2013-09-02 14:18

We need dxdiag and files from this folder for solve your problem. C:\Users\<Name>\AppData\Local\Arma 3\
Can you upload somewhere in winrar package please?
When package will be smaller than 2,097k, so you can attach here. When package will be bigger, please use some free sharing service and post link here. Thank you.

http://feedback.arma3.com/how-to-user.html.html [^]

I wanted reproduce this crash, but game didn't crash me and when I use example from Steps the reproduce, so I have this errror:
Error in expression <0;
_unit = [];
{_unit = _unit + [typeof _x];} foreach _array;
copyToClipboard fo>
  Error position: <_x];} foreach _array;
copyToClipboard fo>
  Error Undefined variable in expression: _x
File C:\Users\astaroth\Documents\Arma 3\missions\copy_test.Altis\copyclass.sqf, line 4

(0051735)
Curetia (reporter)
2013-09-02 14:43
edited on: 2013-09-02 15:01

Ok I have done what you explained and here is my file:
http://www.fungamer-2.net/downloads/ArmA3_error_nearestBuilding.zip [^]

(0051742)
wallside (reporter)
2013-09-02 16:06

I placed myself on Altis and entered "nearestBuilding player" in the Debug console.
After pressing Enter game froze (i killed it after 1min).
Dxdiag and rpt file appended as "wallside_crashfiles.zip"
(0051791)
MulleDK19 (reporter)
2013-09-03 01:26

Confirmed.
(0051806)
ceeeb (reporter)
2013-09-03 03:28
edited on: 2013-09-05 12:51

Astaroth, the repro steps above are over complicated. Most of that script has nothing to do with the problem.

Clean Repro:
1. In mission editor, create a new mission on Altis.
2. Place the player as any soldier unit, anywhere on the map.
3. Preview mission.
4. Open debug console.
5. In any watch field, type "myBuilding"
6. In execute field, type "myBuilding = nearestBuilding player"
7. On pushing enter, observe game hang or crash.
8. If game has hung, wait several minutes. Game should return to normal operation, and the "myBuilding" watch field should contain an expected building object.
9. Repeat steps from 1, using Stratis instead of Altis. Note the game does not hang or crash, the nearestBuilding command returns the result near instantly as expected.

10. (optional) Repeat all 9 again steps using other commands in place of nearestBuilding (nearObjects, nearestObject, etc). I can not personally create any problems with these commands, but others have reported having similar hangs.

(0051863)
Astaroth (Bohemia Interactive - manager)
2013-09-03 15:21

Thank you for clearer repro steps.
(0052406)
Killzone_Kid (reporter)
2013-09-06 00:28

Dunno if this helps, I have noticed that when nearestBuilding executed for the first time it takes longer then when it is executed subsequently. It is almost as the game caches the buildings around player. Because Altis is so big could this be the cause?
(0052455)
dom.stb (reporter)
2013-09-06 12:29

Re-confirmed - it has killed all the scripts that spawn AI in buildings, which is a huge problem for mission-making for me.

Can repro with the following in unit init:
this setPos ((nearestBuilding this) buildingPos 1)
(0052542)
JW Custom (reporter)
2013-09-06 18:02

This really needs to get fixed, it ruins a lot of scripts.

Executing nearestBuilding freezes my game for 30-60 seconds then it runs again.
(0053598)
wallside (reporter)
2013-09-12 18:49

Still present in release version.
(0054184)
JW Custom (reporter)
2013-09-16 15:25

Seems fixed with todays update.
(0054721)
NecroMech (reporter)
2013-09-19 11:29

This still happens for me.
(0054730)
blackjack.tom (reporter)
2013-09-19 12:08

Would adding a parameter for the radius of the area searched like nearObjects has fix this?
(0054742)
dom.stb (reporter)
2013-09-19 13:00
edited on: 2013-09-19 13:01

This is fixed in dev branch but not in stable for me. I haven't tested it fully, but as of the last update to dev branch, my scripts started working again. Went back to stable and got the same crash I used to get.

(0054766)
Astaroth (Bohemia Interactive - manager)
2013-09-19 15:07

Fix is in dev version now only. Fix for stable version will be in first patch.
(0054858)
ViperMaul (reporter)
2013-09-20 09:18

Confirmed fixed for me on 03.110218 dev branch using ceeeb's repo steps.
(0054981)
SaOk (ticket author)
2013-09-21 00:14

Thanks for the fix (working instantly now, so far). :)
(0056411)
Astaroth (Bohemia Interactive - manager)
2013-10-01 15:23

Fixed.

- Issue History
Date Modified Username Field Change
2013-08-31 17:15 SaOk New Issue
2013-08-31 20:45 Killzone_Kid Note Added: 0051488
2013-09-01 17:01 Curetia Note Added: 0051609
2013-09-01 19:42 austin_medic Note Added: 0051632
2013-09-01 19:43 ProGamer Status new => reviewed
2013-09-01 19:43 austin_medic Note Edited: 0051632 View Revisions
2013-09-01 19:46 ProGamer Category Game Crash => Scripting
2013-09-02 02:01 ceeeb Note Added: 0051678
2013-09-02 02:17 ceeeb Note Edited: 0051678 View Revisions
2013-09-02 02:22 ceeeb Note Edited: 0051678 View Revisions
2013-09-02 02:26 ceeeb Note Edited: 0051678 View Revisions
2013-09-02 07:25 ViperMaul Note Added: 0051686
2013-09-02 12:33 Fireball Priority none => urgent
2013-09-02 12:33 Fireball Severity none => crash
2013-09-02 14:18 Astaroth Note Added: 0051723
2013-09-02 14:18 Astaroth Assigned To => Astaroth
2013-09-02 14:18 Astaroth Status reviewed => need more info
2013-09-02 14:18 Astaroth Note Edited: 0051723 View Revisions
2013-09-02 14:43 Curetia Note Added: 0051735
2013-09-02 14:43 Curetia Note Edited: 0051735 View Revisions
2013-09-02 15:01 Curetia Note Edited: 0051735 View Revisions
2013-09-02 16:06 wallside Note Added: 0051742
2013-09-02 16:06 wallside File Added: wallside_crashfiles.zip
2013-09-02 22:33 Fireball File Added: ArmA3_error_nearestBuilding.zip
2013-09-03 01:26 MulleDK19 Note Added: 0051791
2013-09-03 03:28 ceeeb Note Added: 0051806
2013-09-03 03:31 ceeeb Note Edited: 0051806 View Revisions
2013-09-03 03:34 ceeeb Note Edited: 0051806 View Revisions
2013-09-03 03:36 ceeeb Note Edited: 0051806 View Revisions
2013-09-03 15:21 Astaroth Note Added: 0051863
2013-09-03 15:21 Astaroth Status need more info => assigned
2013-09-05 12:51 ceeeb Note Edited: 0051806 View Revisions
2013-09-06 00:28 Killzone_Kid Note Added: 0052406
2013-09-06 12:29 dom.stb Note Added: 0052455
2013-09-06 18:02 JW Custom Note Added: 0052542
2013-09-12 18:49 wallside Note Added: 0053598
2013-09-16 15:25 JW Custom Note Added: 0054184
2013-09-16 15:45 SkaceKachna Note Added: 0054191
2013-09-16 16:06 SkaceKachna Note Deleted: 0054191
2013-09-19 11:29 NecroMech Note Added: 0054721
2013-09-19 12:08 blackjack.tom Note Added: 0054730
2013-09-19 13:00 dom.stb Note Added: 0054742
2013-09-19 13:01 dom.stb Note Edited: 0054742 View Revisions
2013-09-19 15:07 Astaroth Note Added: 0054766
2013-09-20 09:18 ViperMaul Note Added: 0054858
2013-09-21 00:14 SaOk Note Added: 0054981
2013-10-01 15:23 Astaroth Game Version Arma 3 Beta Dev =>
2013-10-01 15:23 Astaroth Note Added: 0056411
2013-10-01 15:23 Astaroth Status assigned => closed
2013-10-01 15:23 Astaroth Resolution open => fixed
2013-10-01 15:23 Astaroth Fixed in Version => 1.02.110.654


Copyright © 2000 - 2014 MantisBT Team