Page MenuHome

Crash when opening user preferences if Cycles CUDA binaries are built on Arch Linux
Closed, DuplicatePublic

Description

System Information
Arch Linux 64-bit, Nvidia GeForce GTX 1070, Nvidia driver version 370.23

Blender Version
Broken: master (commit 0a8344e843633815c833aef64e4edf28d24fbf72) as well as repository build (2.77a) and official 2.77a.

Short description of error
When Blender has Cycles CUDA binaries built, opening user preferences to enable GPU rendering causes a segmentation fault. Attached is a backtrace. When CUDA binaries aren't built, no crash occurs and no compute devices show up for Cycles to use. The error appears to be related to compute device enumeration.

Here is a backtrace on my machine. This is a RelWithDebInfo backtrace so some things are optimized out.

#0 0x00007fffe7d97ad0 in pthread_mutex_lock () from /usr/lib/libpthread.so.0
#1 0x00007fffafba0d98 in ?? () from /usr/lib/libnvidia-opencl.so.1
#2 0x00007fffafc56c41 in ?? () from /usr/lib/libnvidia-opencl.so.1
#3 0x00007fffafc56db5 in ?? () from /usr/lib/libnvidia-opencl.so.1
#4 0x00007fffafba6ad4 in ?? () from /usr/lib/libnvidia-opencl.so.1
#5 0x00007fffafba8327 in ?? () from /usr/lib/libnvidia-opencl.so.1
#6 0x00007fffafb7c4f6 in ?? () from /usr/lib/libnvidia-opencl.so.1
#7 0x00007fffafa7bd7d in ?? () from /usr/lib/libnvidia-opencl.so.1
#8 0x00007fffafa7bd18 in ?? () from /usr/lib/libnvidia-opencl.so.1
#9 0x00007fffb03f7019 in ?? () from /usr/lib/libOpenCL.so
#10 0x00007fffb03f7d7c in clGetPlatformIDs () from /usr/lib/libOpenCL.so
#11 0x0000000001953fda in ccl::(anonymous namespace)::opencl_get_usable_devices

(usable_devices=usable_devices@entry=0x7fffffffd870)
at /home/spencer/blender-git/blender/intern/cycles/device/device_opencl.cpp:251

#12 0x0000000001955170 in ccl::device_opencl_info (devices=...)

at /home/spencer/blender-git/blender/intern/cycles/device/device_opencl.cpp:3311

#13 0x0000000001934501 in ccl::Device::available_devices ()

at /home/spencer/blender-git/blender/intern/cycles/device/device.cpp:331

#14 0x0000000001840125 in ccl::compute_device_list (type=ccl::DEVICE_CUDA)

at /home/spencer/blender-git/blender/intern/cycles/blender/blender_python.cpp:721

#15 0x0000000001840358 in CCL_compute_device_list (

device_type=device_type@entry=0)
at /home/spencer/blender-git/blender/intern/cycles/blender/blender_python.cpp:814

#16 0x00000000012f9ab1 in rna_userdef_compute_device_type_itemf (

UNUSED_C=<optimized out>, UNUSED_ptr=<optimized out>, 
UNUSED_prop=<optimized out>, r_free=0x7fffffffdd47)
at /home/spencer/blender-git/blender/source/blender/makesrna/intern/rna_userdef.c:488

#17 0x0000000001210a10 in RNA_property_enum_items_ex (C=<optimized out>,

ptr=ptr@entry=0x7fffbe0a4dd8, 
prop=prop@entry=0x32e2320 <rna_UserPreferencesSystem_compute_device_type>, 
use_static=use_static@entry=false, r_item=r_item@entry=0x7fffffffdd48, 
r_totitem=r_totitem@entry=0x0, r_free=0x7fffffffdd47)
at /home/spencer/blender-git/blender/source/blender/makesrna/intern/rna_access.c:1230

#18 0x0000000001210a33 in RNA_property_enum_items (C=<optimized out>,

ptr=ptr@entry=0x7fffbe0a4dd8, 
prop=prop@entry=0x32e2320 <rna_UserPreferencesSystem_compute_device_type>, 
r_item=r_item@entry=0x7fffffffdd48, r_totitem=r_totitem@entry=0x0, 
r_free=r_free@entry=0x7fffffffdd47)
at /home/spencer/blender-git/blender/source/blender/makesrna/intern/rna_access.c:1257

#19 0x00000000012174b6 in RNA_property_enum_identifier (C=<optimized out>,

ptr=ptr@entry=0x7fffbe0a4dd8, 
prop=prop@entry=0x32e2320 <rna_UserPreferencesSystem_compute_device_type>, 
value=value@entry=0, identifier=identifier@entry=0x7fffffffdd78)
at /home/spencer/blender-git/blender/source/blender/makesrna/intern/rna_access.c:1478

#20 0x0000000000e0091b in pyrna_enum_to_py (ptr=ptr@entry=0x7fffbe0a4dd8,

prop=prop@entry=0x32e2320 <rna_UserPreferencesSystem_compute_device_type>, 
val=0)
at /home/spencer/blender-git/blender/source/blender/python/intern/bpy_rna.c:1393

#21 0x0000000000e09c48 in pyrna_prop_to_py (ptr=ptr@entry=0x7fffbe0a4dd8,

prop=0x32e2320 <rna_UserPreferencesSystem_compute_device_type>)
at /home/spencer/blender-git/blender/source/blender/python/intern/bpy_rna.c:1504

#22 0x0000000000e09d0f in pyrna_struct_getattro (self=0x7fffbe0a4dc8,

pyname=0x7fffbe59c8e8)
at /home/spencer/blender-git/blender/source/blender/python/intern/bpy_rna.c:3854

#23 0x00007ffff73203d7 in ?? () from /usr/lib/libpython3.5m.so.1.0
#24 0x00007ffff72b38a9 in PyCFunction_Call ()

from /usr/lib/libpython3.5m.so.1.0

#25 0x00007ffff732b47b in PyEval_EvalFrameEx ()

from /usr/lib/libpython3.5m.so.1.0

#26 0x00007ffff732c2c3 in ?? () from /usr/lib/libpython3.5m.so.1.0
#27 0x00007ffff732c3a3 in PyEval_EvalCodeEx ()

from /usr/lib/libpython3.5m.so.1.0

#28 0x00007ffff7297008 in ?? () from /usr/lib/libpython3.5m.so.1.0
#29 0x00007ffff726c2d7 in PyObject_Call () from /usr/lib/libpython3.5m.so.1.0
#30 0x0000000000e08e9e in bpy_class_call (C=<optimized out>,

ptr=<optimized out>, func=<optimized out>, parms=<optimized out>)
at /home/spencer/blender-git/blender/source/blender/python/intern/bpy_rna.c:7603

#31 0x00000000012eb67f in panel_draw (C=<optimized out>, pnl=0x7fffbff850c8)

at /home/spencer/blender-git/blender/source/blender/makesrna/intern/rna_ui.c:146

#32 0x0000000000cf0d72 in ED_region_panels (C=0x7fffd302ce08,

ar=0x7fffbff5fb88, context=<optimized out>, contextnr=<optimized out>, 
vertical=true)
at /home/spencer/blender-git/blender/source/blender/editors/screen/area.c:1911

#33 0x0000000000cefd97 in ED_region_do_draw (C=C@entry=0x7fffd302ce08,

ar=ar@entry=0x7fffbff5fb88)
at /home/spencer/blender-git/blender/source/blender/editors/screen/area.c:518

#34 0x0000000000a272e6 in wm_method_draw_triple (win=0x7fffbff85208,
---Type <return> to continue, or q <return> to quit---

C=0x7fffd302ce08)
at /home/spencer/blender-git/blender/source/blender/windowmanager/intern/wm_draw.c:557

#35 wm_draw_update (C=C@entry=0x7fffd302ce08)

at /home/spencer/blender-git/blender/source/blender/windowmanager/intern/wm_draw.c:956

#36 0x0000000000a22a78 in WM_main (C=C@entry=0x7fffd302ce08)

at /home/spencer/blender-git/blender/source/blender/windowmanager/intern/wm.c:495

#37 0x0000000000a0397b in main (argc=1, argv=0x7fffffffe818)

at /home/spencer/blender-git/blender/source/creator/creator.c:527

Exact steps for others to reproduce the error

  1. Build Blender with CUDA binaries
  2. Open User Preferences
  3. It may be necessary to go to the System tab.

This should work on any blend file.

Details

Type
Bug

Event Timeline

Hi, there was bug reports about driver issues in the 370 series:

This is then most likely the same error as reported with another 370 series driver in there T49113. As you mention, the driver was released prior the bug report was fired to NVidia so it can't have discovered bug fixed.
For the time being you can roll back to 367 which is known to be stable.