Kode / Krom

Other
96 stars 23 forks source link

createRenderTarget crashes #137

Open RblSb opened 4 years ago

RblSb commented 4 years ago

Segmentation fault: 11

var img:Image;
...
this.img = Image.createRenderTarget(20, 20);
var g = this.img.g2;
g.begin(true, 0xff000000);
g.fillCircle(20, 20, 20);
g.end();

Without fillCircle: -[_MTLCommandEncoder dealloc]:75: failed assertion `Command encoder released without endEncoding'

Without this block works, but crashes with krom --watch arg on Empty project. macos 10.14.6

RobDangerous commented 4 years ago

Did you compile an up to date Krom version?

RblSb commented 4 years ago

Tested artifact from my PR, very latest.

RobDangerous commented 4 years ago

Try to build one with the latest Kinc revision.

RblSb commented 4 years ago

macOS CI has same error as here https://github.com/Kode/Krom/issues/129, but Linux compiles =)

RobDangerous commented 4 years ago

Uhm, what? But that error is in Chakra and that's still the same.

RblSb commented 4 years ago

Maybe new Kinc wants clang v8 that is broken with old version of Chakra?

RobDangerous commented 4 years ago

No, it does not set a clang version. Will give it a try myself next time I boot macOS.