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

Immediate crash on install: *** stack smashing detected ***: terminated #187

Open
AimiIsFat opened this issue Sep 21, 2024 · 7 comments
Open
Labels
bug Something isn't working

Comments

@AimiIsFat
Copy link

Environment:

  • OS: Manjaro Linux
  • Godot version: 4.3 Stable Custom Build
    • Using the voxel tools module which may be relevant since it also uses SQLite to store data.
  • godot-sqlite version: 4.4

Issue description:
Project immediately crashed on install. Re-opening the project causes it to crash immediately as well.

Running Godot from the terminal shows just one single line on the crash.
*** stack smashing detected ***: terminated

Steps to reproduce:

  • Make a new project
  • Download
  • Install
  • Wait for the install to finish
  • Crash

Additional context
A pre-built version of voxel tools can be found here: https://github.com/Zylann/godot_voxel/releases/tag/v1.3.0

@AimiIsFat AimiIsFat added the bug Something isn't working label Sep 21, 2024
@2shady4u
Copy link
Owner

Hello @AimiIsFat

Currently, I don't have a native Linux machine available to test this.
Could you confirm that this is also happens without having the voxel plugin installed?

@AimiIsFat
Copy link
Author

I just tested it with a couple different versions of Godot.

I forgot to mention that the custom version I'm using is also double precision.

Here's the test results:

  • My custom version (voxel, double precision): Crash
  • Default Godot: Works
  • Voxel tools, single precision: Works
  • Voxel tools, double precision: Crash
  • Double precision Godot: Crash

I believe the issue is related to double precision, since voxel tools apparently doesn't affect whether it crashes or not.

@2shady4u
Copy link
Owner

Hi @AimiIsFat,

Seeing as you are seemingly using double precision Godot, you'll have to use a double precision version of the godot-sqlite library as well.
I have compiled a linux version with double precision here:
https://github.com/2shady4u/godot-sqlite/actions/runs/11001156952

Could you tell me if that solves your issue?

@AimiIsFat
Copy link
Author

AimiIsFat commented Sep 23, 2024

Thanks. How do I use these files?

EDIT: Think I figured it out since it seems to be running fine now. Are Mac and Windows versions available (assuming they are needed for other OSes to edit or play the game)?

@2shady4u
Copy link
Owner

You can easily build a double precision windows binary.
For Mac I am not sure what it takes to get a binary that allows double precision

@fragro
Copy link

fragro commented Sep 28, 2024

@2shady4u Hey I forked and built double precision for macos.

However I am only getting the libmacos.libgdsqlite.template_debug and libmacos.libgdsqlite.template_release binaries and there are no libgdsqlite.macos.template_debug and libgdsqlite.macos.template_release files in the output. Can you advise? Adding the precision=double flag usually works for me when I am building Godot and related projects with scons. I am also trying to get over this crashing issue. Any ideas?

https://github.com/agentforge/godot-sqlite/actions/runs/11086935436

EDIT: I simply renamed the files to match what the project expected and the demo cases were successfully run.

@2shady4u
Copy link
Owner

Hello @fragro

I am not sure that I understand the issue?
The Github Actions should add the libmacos.libgdsqlite.template_debug- and libmacos.libgdsqlite.template_release-binaries into the framework folders and everything should be fine that way.

I noticed that I do need to rework my build system a bit to correctly merge the debug and release binaries for macos, but other than that I don't see any issues?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants