Page MenuHome

Crash when baking a normal map from procedural materials
Confirmed, NormalPublicBUG

Description

System Information
Operating system:
Manjaro w/ KDE
Graphics card:
Nvidia GTX 1060 6GB

Blender Version
Broken: 2.80 Beta, 5e626e766459, branch: blender2.7, 2019-06-13

Short description of error

I've sculpted a high poly model from the lowpoly one - baking normals from that works fine.
When I created procedural materials using Geometry Pointiness, Noise, a painted texture and other sources to create additional normal information - the baking crashes.

Here's the project file. It's huge (781 MB), but compresses very well (turns out the painted texture was wasting a lot of space), without it the file is only 12 MB).

Normal map baked from Highpoly model to Lowpoly model:


If you disconnect the two materials on the highpoly model and just use a default Principled shader, it bakes fine.

The baking process crashes at various stages. First bake crashed after an hour or so, next attempts crashed much quicker.

Crash logs:

Event Timeline

I've unpacked the painted texture, compressed it properly, and I'm trying this again, this time baking to a 1024x1024 image, not into a 4096x4096 one.

Here's the files:

Also crashed. Here's the log:

Sebastian Parborg (zeddb) lowered the priority of this task from 90 to 50.

Backtrace:

Thread 43 "blender" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff767f8700 (LWP 20496)]
0x000055555abce747 in ccl::scene_intersect_local (max_hits=0, lcg_state=0x0, local_object=0, local_isect=0x0, ray=..., kg=0x7fff767f6e20)
    at /home/zed/prog/blender/intern/cycles/kernel/../kernel/bvh/bvh.h:254
254	    local_isect->num_hits = 0;
(gdb) bt
#0  0x000055555abce747 in ccl::scene_intersect_local (max_hits=0, lcg_state=0x0, local_object=0, local_isect=0x0, ray=..., kg=0x7fff767f6e20)
    at /home/zed/prog/blender/intern/cycles/kernel/../kernel/bvh/bvh.h:254
#1  ccl::svm_ao (kg=0x7fff767f6e20, sd=0x7fff767f2030, N=..., state=0x7fff767f14f0, max_dist=16, num_samples=16, flags=1)
    at /home/zed/prog/blender/intern/cycles/kernel/../kernel/svm/svm_ao.h:67
#2  0x000055555abcf43c in ccl::svm_node_ao (kg=0x7fff767f6e20, sd=0x7fff767f2030, state=0x7fff767f14f0, stack=0x7fff767ea640, node=...)
    at /home/zed/prog/blender/intern/cycles/kernel/../kernel/svm/svm_ao.h:93
#3  0x000055555abdc377 in ccl::svm_eval_nodes (kg=0x7fff767f6e20, sd=0x7fff767f2030, state=0x7fff767f14f0, type=ccl::SHADER_TYPE_SURFACE, path_flag=0)
    at /home/zed/prog/blender/intern/cycles/kernel/../kernel/svm/svm.h:500
#4  0x000055555abfb33c in ccl::shader_eval_surface (kg=0x7fff767f6e20, sd=0x7fff767f2030, state=0x7fff767f14f0, path_flag=0)
    at /home/zed/prog/blender/intern/cycles/kernel/../kernel/kernel_shader.h:1106
#5  0x000055555ad0739c in ccl::kernel_bake_evaluate (kg=0x7fff767f6e20, input=0x7fffb8685020, output=0x7fff567ed020, type=ccl::SHADER_EVAL_NORMAL,
    pass_filter=0, i=160, offset=143360, sample=4) at /home/zed/prog/blender/intern/cycles/kernel/../kernel/kernel_bake.h:335
#6  0x000055555ad0de73 in ccl::kernel_cpu_avx2_shader (kg=0x7fff767f6e20, input=0x7fffb8685020, output=0x7fff567ed020, type=3, filter=0, i=160,
    offset=143360, sample=4) at /home/zed/prog/blender/intern/cycles/kernel/../kernel/kernels/cpu/kernel_cpu_impl.h:145
#7  0x000055555962ebce in ccl::CPUDevice::thread_shader (this=0x7fffb7a16800, task=...) at /home/zed/prog/blender/intern/cycles/device/device_cpu.cpp:990
#8  0x000055555962b636 in ccl::CPUDevice::thread_run (this=0x7fffb7a16800, task=0x7fffb8537e00)
    at /home/zed/prog/blender/intern/cycles/device/device_cpu.cpp:511
#9  0x0000555559641058 in std::__invoke_impl<void, void (ccl::CPUDevice::*&)(ccl::DeviceTask*), ccl::CPUDevice*&, ccl::CPUDevice::CPUDeviceTask*&> (__f=
    @0x7fff5cf0b100: (void (ccl::CPUDevice::*)(ccl::CPUDevice * const, ccl::DeviceTask *)) 0x55555962b5c6 <ccl::CPUDevice::thread_run(ccl::DeviceTask*)>,
    __t=@0x7fff5cf0b118: 0x7fffb7a16800, __args#0=@0x7fff5cf0b110: 0x7fffb8537e00) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/invoke.h:73
#10 0x000055555963f704 in std::__invoke<void (ccl::CPUDevice::*&)(ccl::DeviceTask*), ccl::CPUDevice*&, ccl::CPUDevice::CPUDeviceTask*&> (__fn=
    @0x7fff5cf0b100: (void (ccl::CPUDevice::*)(ccl::CPUDevice * const, ccl::DeviceTask *)) 0x55555962b5c6 <ccl::CPUDevice::thread_run(ccl::DeviceTask*)>,
    __args#0=@0x7fff5cf0b118: 0x7fffb7a16800, __args#1=@0x7fff5cf0b110: 0x7fffb8537e00)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/invoke.h:95
#11 0x000055555963e1b0 in std::_Bind<void (ccl::CPUDevice::*(ccl::CPUDevice*, ccl::CPUDevice::CPUDeviceTask*))(ccl::DeviceTask*)>::__call<void, int&&, 0ul, 1ul>(std::tuple<int&&>&&, std::_Index_tuple<0ul, 1ul>) (this=0x7fff5cf0b100, __args=...)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/functional:400
#12 0x000055555963ad6a in std::_Bind<void (ccl::CPUDevice::*(ccl::CPUDevice*, ccl::CPUDevice::CPUDeviceTask*))(ccl::DeviceTask*)>::operator()<int, void>(int&&) (this=0x7fff5cf0b100, __args#0=@0x7fff767f7944: 1) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/functional:484
#13 0x0000555559638205 in std::_Function_handler<void (int), std::_Bind<void (ccl::CPUDevice::*(ccl::CPUDevice*, ccl::CPUDevice::CPUDeviceTask*))(ccl::DeviceTask*)> >::_M_invoke(std::_Any_data const&, int&&) (__functor=..., __args#0=@0x7fff767f7944: 1)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/std_function.h:297
#14 0x000055555c6e8968 in std::function<void (int)>::operator()(int) const (this=0x7fffb8537e08, __args#0=1)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/std_function.h:687
#15 0x000055555c6e792b in ccl::TaskScheduler::thread_run (thread_id=1) at /home/zed/prog/blender/intern/cycles/util/util_task.cpp:396
#16 0x000055555c6eb6c6 in std::__invoke_impl<void, void (*&)(int), int&> (__f=@0x7fffbc052850: 0x55555c6e78ec <ccl::TaskScheduler::thread_run(int)>,
    __args#0=@0x7fffbc052858: 1) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/invoke.h:60
#17 0x000055555c6eb2a0 in std::__invoke<void (*&)(int), int&> (__fn=@0x7fffbc052850: 0x55555c6e78ec <ccl::TaskScheduler::thread_run(int)>,
    __args#0=@0x7fffbc052858: 1) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/invoke.h:95
#18 0x000055555c6eac2f in std::_Bind<void (*(int))(int)>::__call<void, , 0ul>(std::tuple<>&&, std::_Index_tuple<0ul>) (this=0x7fffbc052850, __args=...)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/functional:400
#19 0x000055555c6ea39d in std::_Bind<void (*(int))(int)>::operator()<, void>() (this=0x7fffbc052850)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/functional:484
#20 0x000055555c6e99b3 in std::_Function_handler<void (), std::_Bind<void (*(int))(int)> >::_M_invoke(std::_Any_data const&) (__functor=...)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/std_function.h:297
#21 0x0000555558286f94 in std::function<void ()>::operator()() const (this=0x7fffbc0142b0)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/std_function.h:687
#22 0x000055555c6ebfa2 in ccl::thread::run (arg=0x7fffbc0142b0) at /home/zed/prog/blender/intern/cycles/util/util_thread.cpp:52
#23 0x000055555c6ec515 in std::__invoke_impl<void*, void* (*)(void*), ccl::thread*> (__f=@0x7fffbc051690: 0x55555c6ebf68 <ccl::thread::run(void*)>,
    __args#0=@0x7fffbc051688: 0x7fffbc0142b0) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/invoke.h:60
#24 0x000055555c6ec20c in std::__invoke<void* (*)(void*), ccl::thread*> (__fn=@0x7fffbc051690: 0x55555c6ebf68 <ccl::thread::run(void*)>,
    __args#0=@0x7fffbc051688: 0x7fffbc0142b0) at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/bits/invoke.h:95
#25 0x000055555c6eca53 in std::thread::_Invoker<std::tuple<void* (*)(void*), ccl::thread*> >::_M_invoke<0ul, 1ul> (this=0x7fffbc051688)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/thread:244
#26 0x000055555c6ec9f9 in std::thread::_Invoker<std::tuple<void* (*)(void*), ccl::thread*> >::operator() (this=0x7fffbc051688)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/thread:253
#27 0x000055555c6ec9ce in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void* (*)(void*), ccl::thread*> > >::_M_run (this=0x7fffbc051680)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/include/g++-v8/thread:196
#28 0x00007ffff2f01bde in std::execute_native_thread_routine (__p=0x7fffbc051680)
    at /var/tmp/portage/sys-devel/gcc-8.3.0-r1/work/gcc-8.3.0/libstdc++-v3/src/c++11/thread.cc:80
#29 0x00007ffff6a09458 in start_thread () from /lib64/libpthread.so.0
#30 0x00007ffff326b71f in clone () from /lib64/libc.so.6
Richard Antalik (ISS) changed the subtype of this task from "Report" to "Bug".