PyC_IsInterpreterActive fails w/ Py3.5+, (was: Export UV Layout to PNG not working) #46365
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#46365
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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'
Added subscriber: @djreep81
Added subscribers: @ideasman42, @BrendonMurphy
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
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.
Changed status from 'Open' to: 'Resolved'
This issue was referenced by
30b619e765
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'
blender/blender@4aad17c622 needs to be backported to the release.
Re-opening and assigning to regressions so we dont forget.
Export UV Layout to PNG not workingto PyC_IsInterpreterActive fails w/ Py3.5+, (was: Export UV Layout to PNG not working)Changed status from 'Open' to: 'Resolved'
Backported blender/blender@a3cf9c54d8