Krom icon indicating copy to clipboard operation
Krom copied to clipboard

createRenderTarget crashes

Open RblSb opened this issue 6 years ago • 7 comments

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

RblSb avatar Nov 05 '19 11:11 RblSb

Did you compile an up to date Krom version?

RobDangerous avatar Nov 05 '19 11:11 RobDangerous

Tested artifact from my PR, very latest.

RblSb avatar Nov 05 '19 11:11 RblSb

Try to build one with the latest Kinc revision.

RobDangerous avatar Nov 05 '19 13:11 RobDangerous

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

RblSb avatar Nov 14 '19 02:11 RblSb

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

RobDangerous avatar Nov 14 '19 18:11 RobDangerous

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

RblSb avatar Nov 14 '19 21:11 RblSb

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

RobDangerous avatar Nov 14 '19 21:11 RobDangerous