Skip to content

WEBP image errors on Windows #62

@SKBotNL

Description

@SKBotNL

Expected Behavior

The resource should load

Current Behavior

When using an external image/web address as the resource of an image the built program for Windows errors with:
haxe/ui/backend/AssetsImpl.hx:95: [IOErrorEvent type="ioError" bubbles=true cancelable=false text="Unknown error" errorID=0]

Steps to Reproduce (for bugs)

  1. Create an Image
  2. Build the project for Windows
  3. See error

Test app / minimal test case

package;

import haxe.ui.containers.VBox;
import haxe.ui.components.Image;
import haxe.ui.HaxeUIApp;

class Main {
    public static function main() {
        var app = new HaxeUIApp();
        app.ready(function() {
            var vbox = new VBox();
            vbox.percentHeight = 100;
            vbox.percentWidth = 100;

            var image = new Image();
            image.resource = "https://cdn.discordapp.com/icons/613425648685547541/a_08b73e86d3c5661db3e397e4c557f751.webp";
            image.width = 128;
            image.height = 128;

            vbox.addComponent(image);
            app.addComponent(vbox);
            app.start();
        });
    }
}

Your Environment

  • Version used: 1.6.0
  • Operating System and version (desktop or mobile): Windows 10

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