Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

createRenderTarget crashes #137

Open
RblSb opened this issue Nov 5, 2019 · 7 comments
Open

createRenderTarget crashes #137

RblSb opened this issue Nov 5, 2019 · 7 comments

Comments

@RblSb
Copy link

RblSb commented Nov 5, 2019

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
Copy link
Member

Did you compile an up to date Krom version?

@RblSb
Copy link
Author

RblSb commented Nov 5, 2019

Tested artifact from my PR, very latest.

@RobDangerous
Copy link
Member

Try to build one with the latest Kinc revision.

@RblSb
Copy link
Author

RblSb commented Nov 14, 2019

macOS CI has same error as here #129, but Linux compiles =)

@RobDangerous
Copy link
Member

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

@RblSb
Copy link
Author

RblSb commented Nov 14, 2019

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

@RobDangerous
Copy link
Member

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants