PyC_IsInterpreterActive fails w/ Py3.5+, (was: Export UV Layout to PNG not working) #46365

Closed
opened 2015-10-03 23:47:43 +02:00 by David Reepmeyer · 14 comments

System Information
Archlinux + nvidia driver

Blender Version
Broken: 2.76 RC (from official standard archlinux repos)
Worked: (not sure which version. used to work fine in earlier version though because i used it all the time)

Short description of error
segementation fault when doing "export UV layout" for a png.
*work around for now, I export to a SVG then manually convert to png for now. That seems to work OK.

Exact steps for others to reproduce the error
I have UV coords visible on the uv screen. I click "UVs" -> "Export UV Layout." I select png and execute. segfault.


Here is my output from console:
PyContext 'window' not found
Fatal Python error: PyThreadState_Get: no current thread
Writing: /tmp/bugs.crash.txt
Segmentation fault (core dumped)

Here is the /tmp/bugs.crash.txt file
//# Blender 2.76 (sub 0), Commit date: 2015-09-23 14:02, Hash e24ea81
bpy.data.window_managers["WinMan"].(null) = 'SVG' # Property
bpy.ops.object.editmode_toggle() # Operator
bpy.ops.object.editmode_toggle() # Operator
bpy.ops.uv.export_layout(filepath="/home/david/git/jeweled/data-src/blender/bugs.png.svg", mode='SVG', size=(1024, 1024)) # Operator
bpy.ops.uv.cursor_set(location=(0.28125, -0.0830078)) # Operator
bpy.data.screens["UV Editing"].(null) = 'BLACK' # Property
bpy.ops.uv.cursor_set(location=(0.611328, -0.157226)) # Operator
bpy.data.window_managers["WinMan"].(null) = 'PNG' # Property
bpy.data.window_managers["WinMan"].(null) = 0 # Property
bpy.ops.object.editmode_toggle() # Operator

//# backtrace
blender(BLI_system_backtrace+0x30) [0x12d38a0]
blender() [0x96431b]
/usr/lib/libc.so.6(+0x33680) [0x7fe4983c9680]
/usr/lib/libpython3.5m.so.1.0(PyErr_Fetch+0xa) [0x7fe4a1f843ca]
/usr/lib/libpython3.5m.so.1.0(Py_FatalError+0x85) [0x7fe4a1f957d5]
/usr/lib/libpython3.5m.so.1.0(PyThreadState_Get+0x25) [0x7fe4a1f977b5]
blender(PyC_IsInterpreterActive+0x9) [0xd7fc79]
blender(BPY_context_member_get+0x1c) [0xd4720c]
blender() [0xfb6ce6]
blender() [0x96da29]
blender(WM_operator_call_py+0x5a) [0x96df1a]
blender() [0xd59a43]
/usr/lib/libpython3.5m.so.1.0(PyCFunction_Call+0xc9) [0x7fe4a1eff959]
/usr/lib/libpython3.5m.so.1.0(PyEval_EvalFrameEx+0x7e5c) [0x7fe4a1f7766c]
/usr/lib/libpython3.5m.so.1.0(+0x128a62) [0x7fe4a1f78a62]
/usr/lib/libpython3.5m.so.1.0(PyEval_EvalCodeEx+0x23) [0x7fe4a1f78b43]
/usr/lib/libpython3.5m.so.1.0(+0x92f65) [0x7fe4a1ee2f65]
/usr/lib/libpython3.5m.so.1.0(PyObject_Call+0x6a) [0x7fe4a1eb843a]
/usr/lib/libpython3.5m.so.1.0(+0x7f114) [0x7fe4a1ecf114]
/usr/lib/libpython3.5m.so.1.0(PyObject_Call+0x6a) [0x7fe4a1eb843a]
/usr/lib/libpython3.5m.so.1.0(+0xc5080) [0x7fe4a1f15080]
/usr/lib/libpython3.5m.so.1.0(PyObject_Call+0x6a) [0x7fe4a1eb843a]
/usr/lib/libpython3.5m.so.1.0(PyEval_EvalFrameEx+0x1d3c) [0x7fe4a1f7154c]
/usr/lib/libpython3.5m.so.1.0(+0x128a62) [0x7fe4a1f78a62]
/usr/lib/libpython3.5m.so.1.0(PyEval_EvalFrameEx+0x5f60) [0x7fe4a1f75770]
/usr/lib/libpython3.5m.so.1.0(+0x128a62) [0x7fe4a1f78a62]
/usr/lib/libpython3.5m.so.1.0(PyEval_EvalCodeEx+0x23) [0x7fe4a1f78b43]
/usr/lib/libpython3.5m.so.1.0(+0x92e78) [0x7fe4a1ee2e78]
/usr/lib/libpython3.5m.so.1.0(PyObject_Call+0x6a) [0x7fe4a1eb843a]
blender() [0xd5015e]
blender() [0x1231146]
blender() [0x96e060]
blender() [0x96f161]
blender() [0x96f1d8]
blender(wm_event_do_handlers+0x1d9) [0x96f4e9]
blender(WM_main+0x18) [0x966648]
blender(main+0xef4) [0x94bd94]
/usr/lib/libc.so.6(__libc_start_main+0xf0) [0x7fe4983b6610]
blender(_start+0x29) [0x963b99]

**System Information** Archlinux + nvidia driver **Blender Version** Broken: 2.76 RC (from official standard archlinux repos) Worked: (not sure which version. used to work fine in earlier version though because i used it all the time) **Short description of error** segementation fault when doing "export UV layout" for a png. *work around for now, I export to a SVG then manually convert to png for now. That seems to work OK. **Exact steps for others to reproduce the error** I have UV coords visible on the uv screen. I click "UVs" -> "Export UV Layout." I select png and execute. segfault. ``` ``` **Here is my output from console:** PyContext 'window' not found Fatal Python error: PyThreadState_Get: no current thread Writing: /tmp/bugs.crash.txt Segmentation fault (core dumped) **Here is the /tmp/bugs.crash.txt file** //# Blender 2.76 (sub 0), Commit date: 2015-09-23 14:02, Hash e24ea81 bpy.data.window_managers["WinMan"].(null) = 'SVG' # Property bpy.ops.object.editmode_toggle() # Operator bpy.ops.object.editmode_toggle() # Operator bpy.ops.uv.export_layout(filepath="/home/david/git/jeweled/data-src/blender/bugs.png.svg", mode='SVG', size=(1024, 1024)) # Operator bpy.ops.uv.cursor_set(location=(0.28125, -0.0830078)) # Operator bpy.data.screens["UV Editing"].(null) = 'BLACK' # Property bpy.ops.uv.cursor_set(location=(0.611328, -0.157226)) # Operator bpy.data.window_managers["WinMan"].(null) = 'PNG' # Property bpy.data.window_managers["WinMan"].(null) = 0 # Property bpy.ops.object.editmode_toggle() # Operator //# backtrace blender(BLI_system_backtrace+0x30) [0x12d38a0] blender() [0x96431b] /usr/lib/libc.so.6(+0x33680) [0x7fe4983c9680] /usr/lib/libpython3.5m.so.1.0(PyErr_Fetch+0xa) [0x7fe4a1f843ca] /usr/lib/libpython3.5m.so.1.0(Py_FatalError+0x85) [0x7fe4a1f957d5] /usr/lib/libpython3.5m.so.1.0(PyThreadState_Get+0x25) [0x7fe4a1f977b5] blender(PyC_IsInterpreterActive+0x9) [0xd7fc79] blender(BPY_context_member_get+0x1c) [0xd4720c] blender() [0xfb6ce6] blender() [0x96da29] blender(WM_operator_call_py+0x5a) [0x96df1a] blender() [0xd59a43] /usr/lib/libpython3.5m.so.1.0(PyCFunction_Call+0xc9) [0x7fe4a1eff959] /usr/lib/libpython3.5m.so.1.0(PyEval_EvalFrameEx+0x7e5c) [0x7fe4a1f7766c] /usr/lib/libpython3.5m.so.1.0(+0x128a62) [0x7fe4a1f78a62] /usr/lib/libpython3.5m.so.1.0(PyEval_EvalCodeEx+0x23) [0x7fe4a1f78b43] /usr/lib/libpython3.5m.so.1.0(+0x92f65) [0x7fe4a1ee2f65] /usr/lib/libpython3.5m.so.1.0(PyObject_Call+0x6a) [0x7fe4a1eb843a] /usr/lib/libpython3.5m.so.1.0(+0x7f114) [0x7fe4a1ecf114] /usr/lib/libpython3.5m.so.1.0(PyObject_Call+0x6a) [0x7fe4a1eb843a] /usr/lib/libpython3.5m.so.1.0(+0xc5080) [0x7fe4a1f15080] /usr/lib/libpython3.5m.so.1.0(PyObject_Call+0x6a) [0x7fe4a1eb843a] /usr/lib/libpython3.5m.so.1.0(PyEval_EvalFrameEx+0x1d3c) [0x7fe4a1f7154c] /usr/lib/libpython3.5m.so.1.0(+0x128a62) [0x7fe4a1f78a62] /usr/lib/libpython3.5m.so.1.0(PyEval_EvalFrameEx+0x5f60) [0x7fe4a1f75770] /usr/lib/libpython3.5m.so.1.0(+0x128a62) [0x7fe4a1f78a62] /usr/lib/libpython3.5m.so.1.0(PyEval_EvalCodeEx+0x23) [0x7fe4a1f78b43] /usr/lib/libpython3.5m.so.1.0(+0x92e78) [0x7fe4a1ee2e78] /usr/lib/libpython3.5m.so.1.0(PyObject_Call+0x6a) [0x7fe4a1eb843a] blender() [0xd5015e] blender() [0x1231146] blender() [0x96e060] blender() [0x96f161] blender() [0x96f1d8] blender(wm_event_do_handlers+0x1d9) [0x96f4e9] blender(WM_main+0x18) [0x966648] blender(main+0xef4) [0x94bd94] /usr/lib/libc.so.6(__libc_start_main+0xf0) [0x7fe4983b6610] blender(_start+0x29) [0x963b99]

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @djreep81

Added subscriber: @djreep81
Member

Added subscribers: @ideasman42, @BrendonMurphy

Added subscribers: @ideasman42, @BrendonMurphy
Campbell Barton was assigned by Brendon Murphy 2015-10-04 10:05:07 +02:00
Member

hi,
I cannot confirm this on osx. works ok here. Please drag drop error files to git rather than paste wall of text.
Assigning to @ideasman42

hi, I cannot confirm this on osx. works ok here. Please drag drop error files to git rather than paste wall of text. Assigning to @ideasman42

This issue was referenced by e1d8c70bbb

This issue was referenced by e1d8c70bbb5776041383335f986b28b33d18f8ff

Added subscriber: @mont29

Added subscriber: @mont29

Fixed the 'missing xxx pycontext' messages, would not really expect those to cause the crash though.

Also, please try with latest RC3 from our website, we cannot accept reports based on packages from linux distros, only those based on our own official builds.

Fixed the 'missing xxx pycontext' messages, would not really expect those to cause the crash though. Also, please try with latest RC3 **from our website**, we cannot accept reports based on packages from linux distros, only those based on our own official builds.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'

This issue was referenced by 30b619e765

This issue was referenced by 30b619e76529a5ca99f96683f1b4a512d18cd519

This is infact unrelated to "Export UV Layout" script.

The problem is that official Blender builds use Python3.4, but Archlinux used Python3.5, which changes behavior WRT PyThreadState_GET.

We have a fix so Blender works with Python3.5 and 3.6, so Ill just back-port that to the release.

This is infact unrelated to "Export UV Layout" script. The problem is that official Blender builds use Python3.4, but Archlinux used Python3.5, which changes behavior WRT `PyThreadState_GET`. We have a fix so Blender works with Python3.5 and 3.6, so Ill just back-port that to the release.

Changed status from 'Resolved' to: 'Open'

Changed status from 'Resolved' to: 'Open'

blender/blender@4aad17c622 needs to be backported to the release.

Re-opening and assigning to regressions so we dont forget.

blender/blender@4aad17c622 needs to be backported to the release. Re-opening and assigning to **regressions** so we dont forget.
Campbell Barton changed title from Export UV Layout to PNG not working to PyC_IsInterpreterActive fails w/ Py3.5+, (was: Export UV Layout to PNG not working) 2015-10-05 00:44:47 +02:00

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Backported blender/blender@a3cf9c54d8
Sign in to join this conversation.
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#46365
No description provided.