Skip to content

Uncaught exception: [lime.utils.Preloader] ERROR: There is no asset library with an ID of "default" #1757

@T1mL3arn

Description

@T1mL3arn
<?xml version="1.0" encoding="utf-8"?>
<project>
	
	<meta title="TestPath" package="com.sample.testpath" version="1.0.0" company="Company Name" />
	<app main="Main" path="Export" file="TestPath" />
	
	<source path="Source" />
	
	<haxelib name="openfl" />
	
	<assets path="Assets" rename="assets" preload="false"  embed="false"/>
	
</project>

Asset file

Assets/hello.txt
package;

import openfl.display.Sprite;

class Main extends Sprite
{
	public function new()
	{
		super();

		var f = openfl.Assets.loadText('assets/hello.txt');
		f.onError(e -> {
			trace("ERROR");
			trace(e);
		});
		f.onComplete(text -> {
			trace('LOAD COMPLETE');
			trace(text);
		});

		trace('Main created');
		graphics.beginFill(0xFF0000);
		graphics.drawCircle(200, 300, 50);
	}
}
  • lime build hl -debug and rename bin to фыва (non ascii cyryllic chars).
  • try to run app
  • get this error
Uncaught exception: [lime.utils.Preloader] ERROR: There is no asset library with an ID of "default"
Called from lime.utils.$Log.error(lime/utils/Log.hx:37)
Called from lime.utils.Preloader.~updateProgress.3(lime/utils/Preloader.hx:293)
Called from lime.app.Future.onError(lime/app/Future.hx:156)
Called from lime.utils.Preloader.updateProgress(lime/utils/Preloader.hx:241)
Called from lime.utils.Preloader.load(lime/utils/Preloader.hx:183)
Called from $ApplicationMain.create(ApplicationMain.hx:135)
Called from $ApplicationMain.main(ApplicationMain.hx:26)
Called from .init(?:1)

Lime 8.1.1

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