Comments (3)
Which version of godot-go are you using? It should not crash as of git version 69f026d512f5e5b3a8c10798b7a56d5761a70b09
.
Right now there is an open issue with instancing nodes. The latest version shouldn't crash with the Dodge the Creeps example.
In the future, if you want to get more debug information, you can do the following:
- Compile Godot with debug symbols:
git clone https://github.com/godotengine/godot.git
git fetch && git checkout 3.0
scons platform=<osx/x11> target=debug --jobs 4
- Then run Godot with GDB to catch any crashes or segfaults. You can install GDB with brew, then you can run the debug version of Godot with GDB:
gdb godot
- Then set following forked processes and run Godot in GDB:
(gdb) set follow-fork-mode child
(gdb) run
Now if you experience a segfault, you can print a backtrace with bt
:
#0 0x0000555557575e10 in Vector<SceneState::NodeData>::_get_size (this=0x148) at core/vector.h:61
#1 0x000055555757326c in Vector<SceneState::NodeData>::size (this=0x148) at core/vector.h:113
#2 0x0000555557565306 in SceneState::can_instance (this=0x0) at scene/resources/packed_scene.cpp:45
#3 0x0000555557571002 in PackedScene::can_instance (this=0x55555a0e4c70) at scene/resources/packed_scene.cpp:1670
#4 0x00005555562ec0e2 in MethodBind0RC<bool>::ptrcall (this=0x555559d88240, p_object=0x55555a0e4c70, p_args=0x55555a237380, r_ret=0xc420173a0c) at core/method_bind.gen.inc:565
#5 0x00005555564ba4ec in godot_method_bind_ptrcall (p_method_bind=0x555559d88240, p_instance=0x55555a0e4c70, p_args=0x55555a237380, p_ret=0xc420173a0c) at modules/gdnative/gdnative/gdnative.cpp:69
#6 0x00007fffd64093c8 in runtime.asmcgocall () at /usr/share/go-1.10/src/runtime/asm_amd64.s:688
#7 0x0000000000000810 in ?? ()
#8 0x0000000000000000 in ?? ()
from godot-go.
godot-go repo version:
$ git log -n 1
commit 69f026d512f5e5b3a8c10798b7a56d5761a70b09 (HEAD -> master, origin/master, origin/HEAD)
Author: William Edwards <[email protected]>
Date: Thu Mar 15 23:36:49 2018 -0700
Update README
Thanks for an introduction of the GDB stuff I will give it a try.
from godot-go.
Hi @1l0 ,
Thanks for providing the version of godot-go you're using. It's interesting that it crashed for you. Would you be able to try running it with GDB and posting the backtrace?
from godot-go.
Related Issues (20)
- Not work gdnative HOT 7
- Provide an example of using Go code for networking
- Readme example does not compile HOT 2
- Question about running on mac. HOT 1
- Error on android HOT 1
- Debugging HOT 1
- Doesn't compile under windows HOT 3
- Update README to be consistent with godot's
- Does not have a library for the current platform error HOT 1
- Path Error on Windows & gofmt error due to error generating type.
- Editor crashes after loading GDNative HOT 3
- Probelm with AnimationPlayer (suspecting gd.Real does not translate well) HOT 6
- Problem passing multiple parameters to "RegisterMethod" registered method HOT 1
- Windows compiled DLL closes without error Godot HOT 2
- Compiling for iOS and Android
- KinematicBody2D Move and Collide crashes game
- Has this branch stopped developing? HOT 4
- Has this project ceased maintenance? HOT 2
- does it support Godot v4? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godot-go.