Error: alloc.c(180) : out of memory - swf lib errors and build problems

Hi!
I’ve got a project that i recently moved to a new computer. Its built using OpenFL on Windows targeting cpp. But now i cant compile it anymore, i just get the cryptic message “Error: alloc.c(180) : out of memory” as soon as i try to run “openfl test windows”.

I’ve not had this issue before. Anyone have an idea as to whats causing it?

Could you try in verbose mode openfl test windows -v to see which step is causing the error.

Ok, so i’ve done more digging… using -v shows it is the SWF lib.
(I’m using lime 2.9.1 + openfl 3.6.1, haxe 3.3)

So downgrading swf from 2.2.3 to 2.2.2 i then get these errors:

./src/openfl/display3D/Context3D.cpp(1458): error C3861: ‘_hx_getEnumValueIndex’: identifier not found
./src/openfl/display3D/Context3D.cpp(1458): error C2050: switch expression not integral
./src/openfl/display3D/Context3D.cpp(1470): error C3861: ‘_hx_getEnumValueIndex’: identifier not found
./src/openfl/display3D/Context3D.cpp(1470): error C2050: switch expression not integral
./src/openfl/display3D/Context3D.cpp(1610): error C3861: ‘_hx_getEnumValueIndex’: identifier not found
./src/openfl/display3D/Context3D.cpp(1610): error C2050: switch expression not integral
./src/openfl/display3D/Context3D.cpp(1649): error C3861: ‘_hx_getEnumValueIndex’: identifier not found
./src/openfl/display3D/Context3D.cpp(1649): error C2050: switch expression not integral
./src/openfl/display3D/Context3D.cpp(1801): error C3861: ‘_hx_getEnumValueIndex’: identifier not found
./src/openfl/display3D/Context3D.cpp(1801): error C2050: switch expression not integral
./src/openfl/display3D/Context3D.cpp(1813): error C3861: ‘_hx_getEnumValueIndex’: identifier not found
./src/openfl/display3D/Context3D.cpp(1813): error C2050: switch expression not integral
./src/openfl/display3D/Context3D.cpp(1953): error C3861: ‘_hx_getEnumValueIndex’: identifier not found
./src/openfl/display3D/Context3D.cpp(1953): error C2050: switch expression not integral

so could uninstalling Haxe 3.3 and reinstalling Haxe 3.2 fix the problem? I’ve used Haxe 3.3 for quite a while without these kind of issues… but lets try…but then…it gets even stanger:

Building with Haxe 3.2 then Neko CRASHES during build.

In my project file i’v defined openfl to 3.6.1 and lime to 2.9.1 and downgraded swf from 2.2.3 to 2.2.2.
But it doesnt help.

But… using “haxelib set swf 2.2.2” fixes the problem and all compiles as it should.

So what is going on … I will try to sum up:

-SWF lib version 2.2.3 has issues it seems
-Haxe 3.3 seems to create alot of issues too.
-Using swf version=“2.2.2” in the project.xml file does not work properly, but openfl version=“3.6.1” and lime version=“2.9.1” seems to work just fine.

This is strange. So looking at the commit changes from 2.2.2 to 2.2.3 there seems to be not a lot of changes.

So digging more i found the problem to be the run.n neko build in 2.2.3.

Tried to manually rebuild from dev version, but it does not fix the problem.
Neko still crashes.

Anyone know what could be the issue here?
For now, building with swf seem to be stuck on Haxe 3.2.1 with swf 2.2.2

I would recommend Haxe 3.2.1 right now, if you using old versions of Lime and OpenFL, you might an older SWF library as well, perhaps 2.2.2 or 2.2.1?