[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [53262] trunk/blender/source/gameengine/ Ketsji/KX_Scene.cpp: BGE: The PyGILState_Ensure() call in KX_Scene was causing a segfault in the Blenderplayer even when being run in the main thread .

Mitchell Stokes mogurijin at gmail.com
Sat Dec 22 09:59:16 CET 2012


Revision: 53262
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=53262
Author:   moguri
Date:     2012-12-22 08:59:11 +0000 (Sat, 22 Dec 2012)
Log Message:
-----------
BGE: The PyGILState_Ensure() call in KX_Scene was causing a segfault in the Blenderplayer even when being run in the main thread. I'm removing it for now since I don't think it will really cause a problem. 

Modified Paths:
--------------
    trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp

Modified: trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp	2012-12-22 08:37:34 UTC (rev 53261)
+++ trunk/blender/source/gameengine/Ketsji/KX_Scene.cpp	2012-12-22 08:59:11 UTC (rev 53262)
@@ -227,13 +227,9 @@
 	}
 	
 #ifdef WITH_PYTHON
-	// We might be running in a separate thread (async libload) so
-	// try and grab the GIL to avoid issues
-	PyGILState_STATE gstate = PyGILState_Ensure();
 	m_attr_dict = PyDict_New(); /* new ref */
 	m_draw_call_pre = NULL;
 	m_draw_call_post = NULL;
-	PyGILState_Release(gstate);
 #endif
 }
 




More information about the Bf-blender-cvs mailing list