firebelley / godot-export

Automatically exports your Godot games.
MIT License
461 stars 53 forks source link

ERROR: initialize: X11 Display is not available #59

Closed telmotrooper closed 3 years ago

telmotrooper commented 3 years ago

I've set up a GitHub action using godot-export in my repository, the problem is when I get to the "export game" step I get the following error:

Using project file at /home/runner/work/squash-the-creeps/squash-the-creeps/my-3d-squash-the-creeps/project.godot
/home/runner/.local/share/godot/godot_executable/godot /home/runner/work/squash-the-creeps/squash-the-creeps/my-3d-squash-the-creeps/project.godot --export Linux/X11 /home/runner/.local/share/godot/builds/LinuxX11/squash_01-06-2021_01-06.x86_64 --verbose
ERROR: initialize: X11 Display is not available
   At: platform/x11/os_x11.cpp:129.
Godot Engine v3.3.2.stable.official - https://godotengine.org
Error: The process '/home/runner/.local/share/godot/godot_executable/godot' failed with exit code 255

I don't see anything obviously wrong in my action (which was based in the example configuration) and the export settings used work locally.

Can someone lend me a hand? Thank you a lot!

firebelley commented 3 years ago

Hi, can you please make sure you are using the headless version of Godot in your action?

On Thu, Jun 3, 2021, 6:25 PM telmotrooper @.***> wrote:

I've set up a GitHub action https://github.com/telmotrooper/squash-the-creeps/blob/main/.github/workflows/main.yml using godot-export in my repository, the problem is when I get to the "export game" step I get the following error:

Using project file at /home/runner/work/squash-the-creeps/squash-the-creeps/my-3d-squash-the-creeps/project.godot /home/runner/.local/share/godot/godot_executable/godot /home/runner/work/squash-the-creeps/squash-the-creeps/my-3d-squash-the-creeps/project.godot --export Linux/X11 /home/runner/.local/share/godot/builds/LinuxX11/squash_01-06-2021_01-06.x86_64 --verbose ERROR: initialize: X11 Display is not available At: platform/x11/os_x11.cpp:129. Godot Engine v3.3.2.stable.official - https://godotengine.org Error: The process '/home/runner/.local/share/godot/godot_executable/godot' failed with exit code 255

I don't see anything obviously wrong in my action (which was based in the example configuration https://github.com/firebelley/godot-export#example-configuration) and the export settings used work locally.

Can someone lend me a hand? Thank you a lot!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/firebelley/godot-export/issues/59, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDIUTK6HZRG52EAEWS5SULTQ76PJANCNFSM46BT7NWQ .

telmotrooper commented 3 years ago

@firebelley This was indeed the issue. Replacing the value of godot_executable_download_url from:

https://downloads.tuxfamily.org/godotengine/3.3.2/Godot_v3.3.2-stable_x11.64.zip

to:

https://downloads.tuxfamily.org/godotengine/3.3.2/Godot_v3.3.2-stable_linux_headless.64.zip

solved my issue.

Thank you for the help and for implementing this very useful action. :slightly_smiling_face:

firebelley commented 3 years ago

Great! You're welcome, happy to help 🙂

On Thu, Jun 3, 2021, 7:31 PM telmotrooper @.***> wrote:

@firebelley https://github.com/firebelley This was indeed the issue. Replacing the value of godot_executable_download_url from:

https://downloads.tuxfamily.org/godotengine/3.3.2/Godot_v3.3.2-stable_x11.64.zip

to:

https://downloads.tuxfamily.org/godotengine/3.3.2/Godot_v3.3.2-stable_linux_headless.64.zip

solved my issue.

Thank you for the help and for implementing this very useful action. 🙂

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/firebelley/godot-export/issues/59#issuecomment-854251199, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDIUTOKG2NCRBVZ2XGLGBTTRAGGHANCNFSM46BT7NWQ .