Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't export extenstion. #581

Open
CsloudX opened this issue Nov 21, 2023 · 2 comments
Open

Can't export extenstion. #581

CsloudX opened this issue Nov 21, 2023 · 2 comments
Labels
bug GDExtension Relates to the GDExtension version of this project

Comments

@CsloudX
Copy link

CsloudX commented Nov 21, 2023

Describe the bug
I'm not sure is this a bug, or maybe only I'm in the wrong way.
I'm try use godot_voxel with gdextension.
where was my voxel.gdextension:
image
and I'm download this file in https://github.com/Zylann/godot_voxel/actions/runs/6939448002 and put addons\zylann.voxel\bin
image
and in editor, it work ok.
image
But when export without debug, it crash and report
image

To Reproduce

Expected behavior
Can export project.

Environment

  • OS: Windows10 64bit
  • Graphics card (NVIDIA GeForce RTX 2060)
  • Godot version [v4.2.rc1.mono.official [ad72de508]]
  • Module version (or commit hash if you got it from Github directly)
  • Renderer used
@Zylann
Copy link
Owner

Zylann commented Nov 21, 2023

GDExtension is not well supported at the moment. I'm actually impressed it worked fine in editor, considering there was very little testing so far.

The error message might not explain the crash.
The voxel engine had some issues in the past due to Godot not really providing any reliable module/extension initialization method that can access singletons such as RenderingServer (godotengine/godot-cpp#1180). So currently, there are checks in place to avoid accessing it if it is null. But due to the fact the singleton is still checked for null, the getter is still called, so the error Failed to retrieve non-existent singleton will print anyways, even if the singleton is not actually being accessed (if it was, it would be the cause of the crash because it is null). The error message alone doesnt create a crash though.
So the cause of the crash could be something else entirely. It needs to be investigated, but it isn't my current focus at the moment.

If you need a more reliable option, you should try using the module version instead of GDExtension.

@Zylann Zylann added the bug label Nov 21, 2023
@CsloudX
Copy link
Author

CsloudX commented Nov 22, 2023

Thank you for providing such a detailed answer

@Zylann Zylann added the GDExtension Relates to the GDExtension version of this project label Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug GDExtension Relates to the GDExtension version of this project
Projects
None yet
Development

No branches or pull requests

2 participants