panda3d-kivy icon indicating copy to clipboard operation
panda3d-kivy copied to clipboard

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Open stefanagapie opened this issue 4 years ago • 4 comments

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

stefanagapie avatar Jan 17 '21 18:01 stefanagapie

It's hard to tell - segfaults can mean a lot of things. Did you eventually manage to fix this?

Cheaterman avatar Apr 04 '21 13:04 Cheaterman

You could try updating to the latest Panda version, 1.10.9.

rdb avatar Apr 04 '21 15:04 rdb

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.

fdr2 avatar May 22 '22 23:05 fdr2

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!

Cheaterman avatar Sep 18 '22 11:09 Cheaterman