Skip to content

Image.fromEncodedBytes gets recycled before callback #135

@mundusnine

Description

@mundusnine

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions