Kode / Krom

Other
96 stars 23 forks source link

Image.fromEncodedBytes gets recycled before callback #135

Open mundusnine opened 4 years ago

mundusnine commented 4 years ago

This issue as been observed in this.

The issue does not appear when using Kore/kinc. When testing was done with Krom in debug mode(built with vscode2019) it was observed that the data seemed to be recycled or was junked by the Js engine before returning the data to haxe/js.

Tested making the data readable but this did not solve the issue as it's probably an issue with the js engine.

The issue is not only present in Krom, it also happens in Kromx, so maybe not the js engine's fault.

I have no idea where to look for now and a temporary solution was implemented in haxeui-kha. It is not ideal and so for long-term considerations we should fix this in Krom.