Page MenuHome

Crash when a volume shader is plugged into the volume output of a smoke domain when no smoke is present.
Open, ConfirmedPublic

Description

System Information:
CPU: Rzyen 5 2600
GPU: RX 570 4GB
OS: Windows 10 Home

Blender Version:
Broken: Blender 2.8 Beta 925380050d0

Short description of error:
When a smoke domain has no smoke and a volume shader is plugged into the volume output for the nodes material while viewport rendering for Cycles is activated, Blender will crash.

Exact steps for others to reproduce the error:

  1. Open Blender and change the render engine to Cycles if you haven't already.
  2. Select the default cube and give it smoke domain properties.

  1. Enter rendered viewport mode and open a shader editor in another window.
  2. Add a volume shader of any kind (Principled Volume, Volume Absorption, or Volume Scatter) and plug the shader into the "Volume" input of the material output node.
  3. Blender will crash. This does not occur on non-smoke domain objects or smoke domains with smoke in it.

File with a smoke domain with no smoke:

Details

Type
Bug

Event Timeline

Jacques Lucke (JacquesLucke) triaged this task as Confirmed priority.Mon, Dec 3, 2:43 PM

Can confirm.
(Only the case though we you are already in rendered view -- does not crash if you plug in the volume shader prior to going into rendered view)

assert(i < datasize_);
in my case i is 15, datasize_ is 0

1   raise                                                                                                                                                                                                                                                                                                                                                                                        0x7ffff466853f 
2   abort                                                                                                                                                                                                                                                                                                                                                                                        0x7ffff4652895 
3   __assert_fail_base.cold.0                                                                                                                                                                                                                                                                                                                                                                    0x7ffff4652769 
4   __assert_fail                                                                                                                                                                                                                                                                                                                                                                                0x7ffff46609f6 
5   ccl::array<int, 16ul>::operator[]                                                                                                                                                                                                                                                                                                                                        util_array.h   210  0x32f5357      
6   ccl::Mesh::get_triangle                                                                                                                                                                                                                                                                                                                                                  mesh.h         83   0x331873a      
7   ccl::BVH::pack_triangle                                                                                                                                                                                                                                                                                                                                                  bvh.cpp        275  0x34eabfb      
8   ccl::BVH::pack_primitives                                                                                                                                                                                                                                                                                                                                                bvh.cpp        312  0x34eb071      
9   ccl::BVH::refit                                                                                                                                                                                                                                                                                                                                                          bvh.cpp        159  0x34e9dc3      
10  ccl::Mesh::compute_bvh                                                                                                                                                                                                                                                                                                                                                   mesh.cpp       1066 0x341fb82      
11  std::__invoke_impl<void, void (ccl::Mesh:: *&)(ccl::Device *, ccl::DeviceScene *, ccl::SceneParams *, ccl::Progress *, int, int), ccl::Mesh *&, ccl::Device *&, ccl::DeviceScene *&, ccl::SceneParams *&, ccl::Progress *&, unsigned long&, unsigned long&>                                                                                                              invoke.h       73   0x342c418      
12  std::__invoke<void (ccl::Mesh:: *&)(ccl::Device *, ccl::DeviceScene *, ccl::SceneParams *, ccl::Progress *, int, int), ccl::Mesh *&, ccl::Device *&, ccl::DeviceScene *&, ccl::SceneParams *&, ccl::Progress *&, unsigned long&, unsigned long&>                                                                                                                         invoke.h       95   0x342bd87      
13  std::_Bind<void (ccl::Mesh:: *(ccl::Mesh *, ccl::Device *, ccl::DeviceScene *, ccl::SceneParams *, ccl::Progress *, unsigned long, unsigned long))(ccl::Device *, ccl::DeviceScene *, ccl::SceneParams *, ccl::Progress *, int, int)>::__call<void, int&&, 0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul>(std::tuple<int&&>&&, std::_Index_tuple<0ul, 1ul, 2ul, 3ul, 4ul, 5ul, 6ul>) functional     400  0x342b577      
14  std::_Bind<void (ccl::Mesh:: *(ccl::Mesh *, ccl::Device *, ccl::DeviceScene *, ccl::SceneParams *, ccl::Progress *, unsigned long, unsigned long))(ccl::Device *, ccl::DeviceScene *, ccl::SceneParams *, ccl::Progress *, int, int)>::operator()<int, void>(int&&)                                                                                                      functional     484  0x342acc3      
15  std::_Function_handler<void (int), std::_Bind<void (ccl::Mesh:: *(ccl::Mesh *, ccl::Device *, ccl::DeviceScene *, ccl::SceneParams *, ccl::Progress *, unsigned long, unsigned long))(ccl::Device *, ccl::DeviceScene *, ccl::SceneParams *, ccl::Progress *, int, int)>>::_M_invoke(std::_Any_data const&, int&&)                                                       std_function.h 297  0x3429d00      
16  std::function<void (int)>::operator()(int) const                                                                                                                                                                                                                                                                                                                         std_function.h 687  0x6233932      
17  ccl::TaskPool::wait_work                                                                                                                                                                                                                                                                                                                                                 util_task.cpp  94   0x6232139      
18  ccl::MeshManager::device_update                                                                                                                                                                                                                                                                                                                                          mesh.cpp       2232 0x342532b      
19  ccl::Scene::device_update                                                                                                                                                                                                                                                                                                                                                scene.cpp      233  0x34b6df5      
20  ccl::Session::update_scene                                                                                                                                                                                                                                                                                                                                               session.cpp    889  0x34bd296