Orama-Interactive / Pixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or just express yourself in the language of pixel art, this software will realize your pixel-perfect dreams with a vast toolbox of features. Available on Windows, Linux, macOS and the Web!
https://orama-interactive.itch.io/pixelorama
MIT License
7.03k stars 381 forks source link

Can't preload resources #375

Closed highvoltage closed 2 months ago

highvoltage commented 3 years ago

Pixelorama version: 0.8.1

OS/device including version: Debian testing, nvidia graphics

Issue description: I'm working on packaging Godot for debian. I downloaded the 0.8.1 tag and tried to run it with godot3-runner (version 3.2.3). It seems like it can't find a bunch of resources, even though the files are clearly there:

godot3-runner project.godot
Godot Engine v3.2.3.stable.custom_build - https://godotengine.org
OpenGL ES 2.0 Renderer: GeForce GTX 1050 Ti/PCIe/SSE2
OpenGL ES 2.0 Batching: ON

ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
SCRIPT ERROR: GDScript::reload: Parse Error: Can't preload resource at path: res://assets/graphics/cursor_icons/cursor.png
   At: res://src/Autoload/Global.gd:33.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
ERROR: start: Condition "!valid_type" is true. Continuing.
   At: main/main.cpp:1766.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
SCRIPT ERROR: GDScript::reload: Parse Error: Can't preload resource at path: res://assets/graphics/pixel_image.png
   At: res://src/UI/BrushesPopup.gd:16.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
SCRIPT ERROR: GDScript::reload: Parse Error: The class "Brushes" couldn't be fully loaded (script error or cyclic dependency).
   At: res://src/Autoload/Import.gd:322.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
ERROR: start: Condition "!valid_type" is true. Continuing.
   At: main/main.cpp:1766.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
SCRIPT ERROR: GDScript::reload: Parse Error: Can't preload resource at path: res://assets/graphics/pixel_image.png
   At: res://src/UI/BrushesPopup.gd:16.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
SCRIPT ERROR: GDScript::reload: Parse Error: The class "Brushes" couldn't be fully loaded (script error or cyclic dependency).
   At: res://src/UI/Dialogs/PreviewDialog.gd:226.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
SCRIPT ERROR: GDScript::reload: Parse Error: Can't preload resource at path: res://assets/graphics/dotted_line.png
   At: res://src/UI/Canvas/Rulers/SymmetryGuide.gd:4.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
SCRIPT ERROR: GDScript::reload: Parse Error: Can't preload resource at path: res://assets/graphics/dotted_line.png
   At: res://src/UI/Canvas/Rulers/SymmetryGuide.gd:4.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
SCRIPT ERROR: GDScript::reload: Parse Error: The class "SymmetryGuide" couldn't be fully loaded (script error or cyclic dependency).
   At: res://src/Classes/Project.gd:21.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
SCRIPT ERROR: GDScript::reload: Parse Error: The class "Project" couldn't be fully loaded (script error or cyclic dependency).
   At: res://src/Autoload/OpenSave.gd:123.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
ERROR: start: Condition "!valid_type" is true. Continuing.
   At: main/main.cpp:1766.
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
SCRIPT ERROR: GDScript::reload: Parse Error: Can't preload resource at path: res://assets/graphics/dotted_line.png
   At: res://src/UI/Canvas/Rulers/SymmetryGuide.gd:4.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
SCRIPT ERROR: GDScript::reload: Parse Error: Can't preload resource at path: res://assets/graphics/dotted_line.png
   At: res://src/UI/Canvas/Rulers/SymmetryGuide.gd:4.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
SCRIPT ERROR: GDScript::reload: Parse Error: The class "SymmetryGuide" couldn't be fully loaded (script error or cyclic dependency).
   At: res://src/Classes/Project.gd:21.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
SCRIPT ERROR: GDScript::reload: Parse Error: The class "Project" couldn't be fully loaded (script error or cyclic dependency).
   At: res://src/Autoload/Tools.gd:193.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
ERROR: start: Condition "!valid_type" is true. Continuing.
   At: main/main.cpp:1766.
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
SCRIPT ERROR: GDScript::reload: Parse Error: Can't preload resource at path: res://assets/graphics/dotted_line.png
   At: res://src/UI/Canvas/Rulers/SymmetryGuide.gd:4.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
SCRIPT ERROR: GDScript::reload: Parse Error: The class "SymmetryGuide" couldn't be fully loaded (script error or cyclic dependency).
   At: res://src/UI/TopMenuContainer.gd:389.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
SCRIPT ERROR: GDScript::reload: Parse Error: Can't preload resource at path: res://assets/graphics/dotted_line.png
   At: res://src/UI/Canvas/Rulers/SymmetryGuide.gd:4.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
SCRIPT ERROR: GDScript::reload: Parse Error: Can't preload resource at path: res://assets/graphics/dotted_line.png
   At: res://src/UI/Canvas/Rulers/SymmetryGuide.gd:4.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
SCRIPT ERROR: GDScript::reload: Parse Error: The class "SymmetryGuide" couldn't be fully loaded (script error or cyclic dependency).
   At: res://src/Classes/Project.gd:21.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
SCRIPT ERROR: GDScript::reload: Parse Error: The class "Project" couldn't be fully loaded (script error or cyclic dependency).
   At: res://src/UI/Canvas/CanvasPreview.gd:8.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
SCRIPT ERROR: GDScript::reload: Parse Error: Can't preload resource at path: res://assets/graphics/dotted_line.png
   At: res://src/UI/Canvas/Rulers/SymmetryGuide.gd:4.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
SCRIPT ERROR: GDScript::reload: Parse Error: Can't preload resource at path: res://assets/graphics/dotted_line.png
   At: res://src/UI/Canvas/Rulers/SymmetryGuide.gd:4.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
SCRIPT ERROR: GDScript::reload: Parse Error: The class "SymmetryGuide" couldn't be fully loaded (script error or cyclic dependency).
   At: res://src/Classes/Project.gd:21.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
SCRIPT ERROR: GDScript::reload: Parse Error: The class "Project" couldn't be fully loaded (script error or cyclic dependency).
   At: res://src/SelectionRectangle.gd:40.
ERROR: reload: Method failed. Returning: ERR_PARSE_ERROR
   At: modules/gdscript/gdscript.cpp:599.
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: poll: res://src/UI/UI.tscn:11 - Parse Error: [ext_resource] referenced nonexistent resource at: res://assets/graphics/dark_themes/tools/bucket.png
   At: scene/resources/resource_format_text.cpp:440.
ERROR: load: Condition "err != OK" is true. Returned: RES()
   At: core/io/resource_loader.cpp:208.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: poll: res://src/Main.tscn:6 - Parse Error: [ext_resource] referenced nonexistent resource at: res://src/UI/UI.tscn
   At: scene/resources/resource_format_text.cpp:440.
ERROR: load: Condition "err != OK" is true. Returned: RES()
   At: core/io/resource_loader.cpp:208.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.
ERROR: start: Condition "!scene" is true. Returned: false
   At: main/main.cpp:1944.
ERROR: ~List: Condition "_first != __null" is true.
   At: ./core/self_list.h:112.
ERROR: ~List: Condition "_first != __null" is true.
   At: ./core/self_list.h:112.
WARNING: cleanup: ObjectDB instances leaked at exit (run with --verbose for details).
   At: core/object.cpp:2135.
ERROR: clear: Resources still in use at exit (run with --verbose for details).
   At: core/resource.cpp:477.

I don't have this problem with version 0.8. Any tips?

novhack commented 2 years ago

Does this still happen with Pixelorama v0.9?

OverloadedOrama commented 2 months ago

Closing since this is an old issue, although this issue may still be around in the form of #1053.