panda3d-kivy
panda3d-kivy copied to clipboard
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
I'm getting a segmentation fault running the code from the README.md. Is there step not documented in the readme that I need to perform?
Some specs: panda3d 1.10.7 panda3d-kivy 0.2.2 (pip installed) Python 3.8.5 OS: macOS Big Sur
It's hard to tell - segfaults can mean a lot of things. Did you eventually manage to fix this?
You could try updating to the latest Panda version, 1.10.9.
I had the same problem and it seemed like for no reason, but on an M1 (arm64) Monterey (Panda3D==1.10.11.post1, panda3d-kivy==0.3.0, Python==3.9.12).
App worked, then I added this project and nearly identical implementation as in the readme and segfaulted until i recompiled kivy
python -m pip install "kivy[base]" kivy_examples --no-binary kivy
I used the kivy instructions to compile locally.
Is this still an issue? If not, I could close it and the associated PR? Otherwise, if someone can reproduce, could they try the "core" of #21, being
diff --git a/panda3d_kivy/monkey.py b/panda3d_kivy/monkey.py
index bc5503b..3b014f2 100644
--- a/panda3d_kivy/monkey.py
+++ b/panda3d_kivy/monkey.py
@@ -6,7 +6,7 @@ import kivy.core
def patch_kivy():
os.environ['KIVY_WINDOW'] = ''
- if sys.platform == 'linux':
+ if sys.platform in ('linux', 'darwin'):
os.environ['KIVY_GL_BACKEND'] = 'gl'
orig_core_select_lib = kivy.core.core_select_lib
Thanks in advance for your feedback!