BrettMayson / HEMTT

Build System for Arma 3
https://brettmayson.github.io/HEMTT
GNU General Public License v2.0
109 stars 40 forks source link

Memory leak on empty foreach script #101

Closed jonpas closed 5 years ago

jonpas commented 5 years ago

HEMTT Version: 0.6.0 (stable) Project: ACE3 (only main)

Description:

Running ACE3 with a releasebuild script which just echoes all the targets causes a memory leak and infinite run of a script.

Steps to reproduce:

[scripts] [scripts.launchableoptionals] steps = [ "echo \"{{target}} | {{addon}}\"" ] show_output = true foreach = true


- Run with `hemtt build --release -f main`
- Experience infinite run of `launchableoptionals` script and memory leak

**Additional information:**

/

**HEMTT Output:**

Stuck at `Script launchableoptionals`.
jonpas commented 5 years ago

Further testing shows it gets stuck on one of the PBOs, because they were not built. So instead of going through what was actually build in the script, it runs for all that are in the project?

Scratch that, gets stuck one a random one that was built.

jonpas commented 5 years ago

Looks like it happens even if you use eg.:

 "if [ $(dirname optionals/x) == 'optionals' ]; then echo yes; fi"

Mind, no templating used at all.

BrettMayson commented 5 years ago

Can't reproduce with Bash 4.4.23 on Windows 10

jonpas commented 5 years ago

I can't reproduce anymore either.