Sky Texture for an OSL/Open Shading Language configured scene crashes Blender #82561

Closed
opened 2020-11-10 03:51:00 +01:00 by Garry R. Osgood · 11 comments

System Information

  1. Operating system: Windows-10-10.0.18362-SP0 64 Bits
 Graphics card: Intel(R) HD Graphics 4000 Intel 4.0.0 - Build 10.18.10.4252
  1. Operating system: Linux-5.9.6-gentoo-bertha-x86_64-Intel-R-_Xeon-R-CPU_E5-2630_v4@_2.20GHz-with-gentoo-2.7 64 Bits
 Graphics card: Radeon Pro WX 9100 (VEGA10, DRM 3.39.0, 5.9.6-gentoo-bertha, LLVM 9.0.1) X.Org 4.6 (Core Profile) Mesa 20.1.10

Blender Version
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-11-09 11:54, hash: 0c4d12986a (Daily build download of 2.92.0 Alpha for 09-N0V-2020)
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-11-09 12:41, (+0100) hash: 5da05dd627
Broken: First bad version from git bisect, branch: master, commit date: 2020-11-04 11:17 (+0100) hash: 31a620b942
Good: Last good version from git bisect, branch: master, commit date: 2020-11-04 22:16 (+1100) hash: 4a848d01b2

Short description of error
Using a sky texture in the World shader type for an Open Shading Language configured scene crashes Blender.

Exact steps for others to reproduce the error

  • Start Blender
  • Choose Shader Editor
  • Choose 'World' Shader Type from upper left pulldown menu.
    • Note: Initial shader graph 'Background' and 'World Output' nodes are already present.
  • Add a 'Sky Texture' node.
  • Connect 'Color' output of 'Sky Texture Node' to 'Color' input of 'Background' node
  • In Properties editor, choose 'Render Properties' tab.
  • Choose 'Cycles' as the Render Engine
    • Among other options, the 'Open Shading Language' (OSL) checkbox item appears.
  • Select OSL checkbox
  • Choose 3D Viewport editor
  • Using the 'Viewport Shading' selector in the upper right hand portion of the editor, choose 'Rendered' Viewport shading method.

Blender crashes with s SIGSEGV. See GDB

Alternatively, open this blend file and execute the last step in this procedure.
oslskybug.blend

GDB
Immediate point of failure: ##socket## parameter is not initialized as expected in ##osl.cpp in ccl::OSLCompiler::parameter##.
Breakpoint context: osl.cpp:790 in function ccl::OSLCompiler::parameter

(gdb) file /home/gosgood/git_repositories/build_linux_debug/bin/blender
Reading symbols from /home/gosgood/git_repositories/build_linux_debug/bin/blender...
(gdb) break /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:790
Breakpoint 1 at 0x7ba076c: file /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp, line 790.
(gdb) command 1
Type commands for breakpoint(s) 1, one per line.
End with a line saying just "end".
>silent
>print name
>continue
>end

(gdb) set print thread-events off
(gdb) set print pretty on
(gdb) run
Starting program: /home/gosgood/git_repositories/build_linux_debug/bin/blender 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Read prefs: /home/gosgood/.config/blender/2.92/config/userpref.blend
/run/user/500/gvfs/ non-existent directory
Comment: Through step 9: Choose 3D Viewport editor; 10:  Using the 'Viewport Shading' selector in the upper right hand portion of the editor, choose 'Rendered' Viewport shading method.
[Switching to Thread 0x7fff663ff640 (LWP 9144)]
$1 = 0xacff3ab "use_transform"
$2 = 0xacff3c5 "from_dupli"
$3 = 0xacfe86d "type"

Thread 124 "blender" received signal SIGSEGV, Segmentation fault.
0x0000000007ba07cf in ccl::OSLCompiler::parameter (this=0x7fff663fc8b0, node=0x7fff84636780, name=0xacfe86d "type") at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:793
793	  switch (socket.type) {
(gdb) print socket
$4 = (const ccl::SocketType &) <error reading variable>
(gdb) print *(node->type->find_input(uname))
Cannot access memory at address 0x0
(gdb) print name 
$5 = 0xacfe86d "type"
(gdb) print uname
$6 = {
  static npos = 18446744073709551615,
  m_chars = 0x7fffe40a9040 "type",
  static empty_std_string = {
    static npos = 18446744073709551615,
    _M_dataplus = {
      <std::allocator<char>> = {
        <__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, 
      members of std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Alloc_hider:
      _M_p = 0x7ffff6ffbd90 <OpenImageIO_v2_2::ustring::empty_std_string[abi:cxx11]+16> ""
    },
    _M_string_length = 0,
    {
      _M_local_buf = '\000' <repeats 15 times>,
      _M_allocated_capacity = 0
    }
  }
}
(gdb) bt 
#0  0x0000000007ba07cf in ccl::OSLCompiler::parameter(ccl::ShaderNode*, char const*) (this=0x7fff663fc8b0, node=0x7fff84636780, name=0xacfe86d "type")
    at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:793
- 1  0x0000000007b3845e in ccl::SkyTextureNode::compile(ccl::OSLCompiler&) (this=0x7fff84636780, compiler=...) at /home/gosgood/git_repositories/blender/intern/cycles/render/nodes.cpp:962
- 2  0x0000000007ba277f in ccl::OSLCompiler::generate_nodes(std::set<ccl::ShaderNode*, ccl::ShaderNodeIDComparator, std::allocator<ccl::ShaderNode*> > const&)
    (this=0x7fff663fc8b0, nodes=std::set with 3 elements = {...}) at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:1049
#3  0x0000000007ba2a57 in ccl::OSLCompiler::compile_type(ccl::Shader*, ccl::ShaderGraph*, ccl::ShaderType) (this=0x7fff663fc8b0, shader=0x7fff7bf87e40, graph=
    0x7fff7d55f340, type=ccl::SHADER_TYPE_SURFACE) at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:1092
#4  0x0000000007ba2e13 in ccl::OSLCompiler::compile(ccl::OSLGlobals*, ccl::Shader*) (this=0x7fff663fc8b0, og=0x7fff84bfdce0, shader=0x7fff7bf87e40)
    at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:1153
#5  0x0000000007b9ccfd in ccl::OSLShaderManager::device_update(ccl::Device*, ccl::DeviceScene*, ccl::Scene*, ccl::Progress&) (this=0x7fff83c9e400, device=
    0x7fff84bfd000, dscene=0x7fff7c852150, scene=0x7fff7c852000, progress=...) at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:132
#6  0x0000000007bad994 in ccl::Scene::device_update(ccl::Device*, ccl::Progress&) (this=0x7fff7c852000, device_=0x7fff84bfd000, progress=...)
    at /home/gosgood/git_repositories/blender/intern/cycles/render/scene.cpp:229
#7  0x0000000007bafe55 in ccl::Scene::update(ccl::Progress&, bool&) (this=0x7fff7c852000, progress=..., kernel_switch_needed=@0x7fff663fcb87: false)
    at /home/gosgood/git_repositories/blender/intern/cycles/render/scene.cpp:502
- 8  0x0000000007bbb2a7 in ccl::Session::update_scene() (this=0x7fff84c0c000) at /home/gosgood/git_repositories/blender/intern/cycles/render/session.cpp:1029
- 9  0x0000000007bba370 in ccl::Session::run_cpu() (this=0x7fff84c0c000) at /home/gosgood/git_repositories/blender/intern/cycles/render/session.cpp:789
- 10 0x0000000007bbaa57 in ccl::Session::run() (this=0x7fff84c0c000) at /home/gosgood/git_repositories/blender/intern/cycles/render/session.cpp:871
- 11 0x0000000007bc169e in std::__invoke_impl<void, void (ccl::Session::*&)(), ccl::Session*&>(std::__invoke_memfun_deref, void (ccl::Session::*&)(), ccl::Session*&)
    (__f=@0x7fff83c82060: (void (ccl::Session::*)(ccl::Session * const)) 0x7bba92a <ccl::Session::run()>, __t=@0x7fff83c82070: 0x7fff84c0c000)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/bits/invoke.h:73
#12 0x0000000007bc0e4b in std::__invoke<void (ccl::Session::*&)(), ccl::Session*&>(void (ccl::Session::*&)(), ccl::Session*&)
    (__fn=@0x7fff83c82060: (void (ccl::Session::*)(ccl::Session * const)) 0x7bba92a <ccl::Session::run()>) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/bits/invoke.h:95
#13 0x0000000007bc0031 in std::_Bind<void (ccl::Session::*(ccl::Session*))()>::__call<void, , 0ul>(std::tuple<>&&, std::_Index_tuple<0ul>) (this=0x7fff83c82060, __args=...)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/functional:400
- 14 0x0000000007bbf0a3 in std::_Bind<void (ccl::Session::*(ccl::Session*))()>::operator()<, void>() (this=0x7fff83c82060) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/functional:484
- 15 0x0000000007bbe3af in std::_Function_handler<void (), std::_Bind<void (ccl::Session::*(ccl::Session*))()> >::_M_invoke(std::_Any_data const&) (__functor=...)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/bits/std_function.h:300
- 16 0x0000000004c9197a in std::function<void ()>::operator()() const (this=0x7fff7c86d950) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/bits/std_function.h:688
- 17 0x000000000934ec4c in ccl::thread::run(void*) (arg=0x7fff7c86d950) at /home/gosgood/git_repositories/blender/intern/cycles/util/util_thread.cpp:52
#18 0x000000000934f386 in std::__invoke_impl<void*, void* (*)(void*), ccl::thread*>(std::__invoke_other, void* (*&&)(void*), ccl::thread*&&)
    (__f=@0x7fff7befafd0: 0x934ec12 <ccl::thread::run(void*)>) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/bits/invoke.h:60
#19 0x000000000934f2fb in std::__invoke<void* (*)(void*), ccl::thread*>(void* (*&&)(void*), ccl::thread*&&) (__fn=@0x7fff7befafd0: 0x934ec12 <ccl::thread::run(void*)>)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/bits/invoke.h:95
#20 0x000000000934f26b in std::thread::_Invoker<std::tuple<void* (*)(void*), ccl::thread*> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) (this=0x7fff7befafc8)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/thread:244
- 21 0x000000000934f226 in std::thread::_Invoker<std::tuple<void* (*)(void*), ccl::thread*> >::operator()() (this=0x7fff7befafc8) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/thread:251
- 22 0x000000000934f20a in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void* (*)(void*), ccl::thread*> > >::_M_run() (this=0x7fff7befafc0)
    at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/thread:195
- 23 0x00007ffff064ce1f in  () at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/libstdc++.so.6
- 24 0x00007ffff7cefe4e in start_thread (arg=0x7fff663ff640) at pthread_create.c:463
#25 0x00007ffff0354faf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb) up 2
#2  0x0000000007ba277f in ccl::OSLCompiler::generate_nodes (this=0x7fff663fc8b0, nodes=std::set with 3 elements = {...})
    at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:1049
1049	          node->compile(*this);
(gdb) print *node
$7 = {
  <ccl::Node> = {
    _vptr.Node = 0xc896370 <vtable for ccl::SkyTextureNode+16>,
    name = {
      static npos = 18446744073709551615,
      m_chars = 0x7fffe4bef090 "Sky Texture",
      static empty_std_string = {
        static npos = 18446744073709551615,
        _M_dataplus = {
          <std::allocator<char>> = {
            <__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, 
          members of std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Alloc_hider:
          _M_p = 0x7ffff6ffbd90 <OpenImageIO_v2_2::ustring::empty_std_string[abi:cxx11]+16> ""
        },
        _M_string_length = 0,
        {
          _M_local_buf = '\000' <repeats 15 times>,
          _M_allocated_capacity = 0
        }
      }
    },
    type = 0x7fffe521d110,
    owner = 0x7fff7d55f340,
    socket_modified = 18446744073709551615
  }, 
  members of ccl::ShaderNode:
  inputs = {
    <std::vector<ccl::ShaderInput*, ccl::GuardedAllocator<ccl::ShaderInput*> >> = std::vector of length 1, capacity 1 = {0x7fff7befa8e0}, <No data fields>},
  outputs = {
    <std::vector<ccl::ShaderOutput*, ccl::GuardedAllocator<ccl::ShaderOutput*> >> = std::vector of length 1, capacity 1 = {0x7fff7c86d5f0}, <No data fields>},
  id = 2,
  bump = ccl::SHADER_BUMP_NONE,
  special_type = ccl::SHADER_SPECIAL_TYPE_NONE
}
...

@kevindietrich: could you take a look at this? TIA!

**System Information** 1. Operating system: Windows-10-10.0.18362-SP0 64 Bits ``` Graphics card: Intel(R) HD Graphics 4000 Intel 4.0.0 - Build 10.18.10.4252 ``` 2. Operating system: Linux-5.9.6-gentoo-bertha-x86_64-Intel-R-_Xeon-R-_CPU_E5-2630_v4_@_2.20GHz-with-gentoo-2.7 64 Bits ``` Graphics card: Radeon Pro WX 9100 (VEGA10, DRM 3.39.0, 5.9.6-gentoo-bertha, LLVM 9.0.1) X.Org 4.6 (Core Profile) Mesa 20.1.10 ``` **Blender Version** Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-11-09 11:54, hash: `0c4d12986a` (Daily build download of 2.92.0 Alpha for 09-N0V-2020) Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-11-09 12:41, (+0100) hash: `5da05dd627` Broken: First bad version from git bisect, branch: master, commit date: 2020-11-04 11:17 (+0100) hash: 31a620b942 Good: Last good version from git bisect, branch: master, commit date: 2020-11-04 22:16 (+1100) hash: `4a848d01b2` **Short description of error** Using a sky texture in the World shader type for an Open Shading Language configured scene crashes Blender. **Exact steps for others to reproduce the error** - Start Blender - Choose Shader Editor - Choose 'World' Shader Type from upper left pulldown menu. - Note: Initial shader graph 'Background' and 'World Output' nodes are already present. - Add a 'Sky Texture' node. - Connect 'Color' output of 'Sky Texture Node' to 'Color' input of 'Background' node - In Properties editor, choose 'Render Properties' tab. - Choose 'Cycles' as the Render Engine - Among other options, the 'Open Shading Language' (OSL) checkbox item appears. - Select OSL checkbox - Choose 3D Viewport editor - Using the 'Viewport Shading' selector in the upper right hand portion of the editor, choose 'Rendered' Viewport shading method. Blender crashes with s SIGSEGV. See **GDB** Alternatively, open this blend file and execute the last step in this procedure. [oslskybug.blend](https://archive.blender.org/developer/F9249325/oslskybug.blend) **GDB** Immediate point of failure: ##socket## parameter is not initialized as expected in ##osl.cpp in ccl::OSLCompiler::parameter##. Breakpoint context: [osl.cpp:790 in function ccl::OSLCompiler::parameter ](https://developer.blender.org/diffusion/B/browse/master/intern/cycles/render/osl.cpp$788) ``` (gdb) file /home/gosgood/git_repositories/build_linux_debug/bin/blender Reading symbols from /home/gosgood/git_repositories/build_linux_debug/bin/blender... (gdb) break /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:790 Breakpoint 1 at 0x7ba076c: file /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp, line 790. (gdb) command 1 Type commands for breakpoint(s) 1, one per line. End with a line saying just "end". >silent >print name >continue >end (gdb) set print thread-events off (gdb) set print pretty on (gdb) run Starting program: /home/gosgood/git_repositories/build_linux_debug/bin/blender [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib64/libthread_db.so.1". Read prefs: /home/gosgood/.config/blender/2.92/config/userpref.blend /run/user/500/gvfs/ non-existent directory Comment: Through step 9: Choose 3D Viewport editor; 10: Using the 'Viewport Shading' selector in the upper right hand portion of the editor, choose 'Rendered' Viewport shading method. [Switching to Thread 0x7fff663ff640 (LWP 9144)] $1 = 0xacff3ab "use_transform" $2 = 0xacff3c5 "from_dupli" $3 = 0xacfe86d "type" Thread 124 "blender" received signal SIGSEGV, Segmentation fault. 0x0000000007ba07cf in ccl::OSLCompiler::parameter (this=0x7fff663fc8b0, node=0x7fff84636780, name=0xacfe86d "type") at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:793 793 switch (socket.type) { (gdb) print socket $4 = (const ccl::SocketType &) <error reading variable> (gdb) print *(node->type->find_input(uname)) Cannot access memory at address 0x0 (gdb) print name $5 = 0xacfe86d "type" (gdb) print uname $6 = { static npos = 18446744073709551615, m_chars = 0x7fffe40a9040 "type", static empty_std_string = { static npos = 18446744073709551615, _M_dataplus = { <std::allocator<char>> = { <__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, members of std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Alloc_hider: _M_p = 0x7ffff6ffbd90 <OpenImageIO_v2_2::ustring::empty_std_string[abi:cxx11]+16> "" }, _M_string_length = 0, { _M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0 } } } (gdb) bt #0 0x0000000007ba07cf in ccl::OSLCompiler::parameter(ccl::ShaderNode*, char const*) (this=0x7fff663fc8b0, node=0x7fff84636780, name=0xacfe86d "type") at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:793 - 1 0x0000000007b3845e in ccl::SkyTextureNode::compile(ccl::OSLCompiler&) (this=0x7fff84636780, compiler=...) at /home/gosgood/git_repositories/blender/intern/cycles/render/nodes.cpp:962 - 2 0x0000000007ba277f in ccl::OSLCompiler::generate_nodes(std::set<ccl::ShaderNode*, ccl::ShaderNodeIDComparator, std::allocator<ccl::ShaderNode*> > const&) (this=0x7fff663fc8b0, nodes=std::set with 3 elements = {...}) at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:1049 #3 0x0000000007ba2a57 in ccl::OSLCompiler::compile_type(ccl::Shader*, ccl::ShaderGraph*, ccl::ShaderType) (this=0x7fff663fc8b0, shader=0x7fff7bf87e40, graph= 0x7fff7d55f340, type=ccl::SHADER_TYPE_SURFACE) at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:1092 #4 0x0000000007ba2e13 in ccl::OSLCompiler::compile(ccl::OSLGlobals*, ccl::Shader*) (this=0x7fff663fc8b0, og=0x7fff84bfdce0, shader=0x7fff7bf87e40) at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:1153 #5 0x0000000007b9ccfd in ccl::OSLShaderManager::device_update(ccl::Device*, ccl::DeviceScene*, ccl::Scene*, ccl::Progress&) (this=0x7fff83c9e400, device= 0x7fff84bfd000, dscene=0x7fff7c852150, scene=0x7fff7c852000, progress=...) at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:132 #6 0x0000000007bad994 in ccl::Scene::device_update(ccl::Device*, ccl::Progress&) (this=0x7fff7c852000, device_=0x7fff84bfd000, progress=...) at /home/gosgood/git_repositories/blender/intern/cycles/render/scene.cpp:229 #7 0x0000000007bafe55 in ccl::Scene::update(ccl::Progress&, bool&) (this=0x7fff7c852000, progress=..., kernel_switch_needed=@0x7fff663fcb87: false) at /home/gosgood/git_repositories/blender/intern/cycles/render/scene.cpp:502 - 8 0x0000000007bbb2a7 in ccl::Session::update_scene() (this=0x7fff84c0c000) at /home/gosgood/git_repositories/blender/intern/cycles/render/session.cpp:1029 - 9 0x0000000007bba370 in ccl::Session::run_cpu() (this=0x7fff84c0c000) at /home/gosgood/git_repositories/blender/intern/cycles/render/session.cpp:789 - 10 0x0000000007bbaa57 in ccl::Session::run() (this=0x7fff84c0c000) at /home/gosgood/git_repositories/blender/intern/cycles/render/session.cpp:871 - 11 0x0000000007bc169e in std::__invoke_impl<void, void (ccl::Session::*&)(), ccl::Session*&>(std::__invoke_memfun_deref, void (ccl::Session::*&)(), ccl::Session*&) (__f=@0x7fff83c82060: (void (ccl::Session::*)(ccl::Session * const)) 0x7bba92a <ccl::Session::run()>, __t=@0x7fff83c82070: 0x7fff84c0c000) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/bits/invoke.h:73 #12 0x0000000007bc0e4b in std::__invoke<void (ccl::Session::*&)(), ccl::Session*&>(void (ccl::Session::*&)(), ccl::Session*&) (__fn=@0x7fff83c82060: (void (ccl::Session::*)(ccl::Session * const)) 0x7bba92a <ccl::Session::run()>) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/bits/invoke.h:95 #13 0x0000000007bc0031 in std::_Bind<void (ccl::Session::*(ccl::Session*))()>::__call<void, , 0ul>(std::tuple<>&&, std::_Index_tuple<0ul>) (this=0x7fff83c82060, __args=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/functional:400 - 14 0x0000000007bbf0a3 in std::_Bind<void (ccl::Session::*(ccl::Session*))()>::operator()<, void>() (this=0x7fff83c82060) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/functional:484 - 15 0x0000000007bbe3af in std::_Function_handler<void (), std::_Bind<void (ccl::Session::*(ccl::Session*))()> >::_M_invoke(std::_Any_data const&) (__functor=...) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/bits/std_function.h:300 - 16 0x0000000004c9197a in std::function<void ()>::operator()() const (this=0x7fff7c86d950) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/bits/std_function.h:688 - 17 0x000000000934ec4c in ccl::thread::run(void*) (arg=0x7fff7c86d950) at /home/gosgood/git_repositories/blender/intern/cycles/util/util_thread.cpp:52 #18 0x000000000934f386 in std::__invoke_impl<void*, void* (*)(void*), ccl::thread*>(std::__invoke_other, void* (*&&)(void*), ccl::thread*&&) (__f=@0x7fff7befafd0: 0x934ec12 <ccl::thread::run(void*)>) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/bits/invoke.h:60 #19 0x000000000934f2fb in std::__invoke<void* (*)(void*), ccl::thread*>(void* (*&&)(void*), ccl::thread*&&) (__fn=@0x7fff7befafd0: 0x934ec12 <ccl::thread::run(void*)>) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/bits/invoke.h:95 #20 0x000000000934f26b in std::thread::_Invoker<std::tuple<void* (*)(void*), ccl::thread*> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) (this=0x7fff7befafc8) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/thread:244 - 21 0x000000000934f226 in std::thread::_Invoker<std::tuple<void* (*)(void*), ccl::thread*> >::operator()() (this=0x7fff7befafc8) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/thread:251 - 22 0x000000000934f20a in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void* (*)(void*), ccl::thread*> > >::_M_run() (this=0x7fff7befafc0) at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include/g++-v9/thread:195 - 23 0x00007ffff064ce1f in () at /usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/libstdc++.so.6 - 24 0x00007ffff7cefe4e in start_thread (arg=0x7fff663ff640) at pthread_create.c:463 #25 0x00007ffff0354faf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95 (gdb) up 2 #2 0x0000000007ba277f in ccl::OSLCompiler::generate_nodes (this=0x7fff663fc8b0, nodes=std::set with 3 elements = {...}) at /home/gosgood/git_repositories/blender/intern/cycles/render/osl.cpp:1049 1049 node->compile(*this); (gdb) print *node $7 = { <ccl::Node> = { _vptr.Node = 0xc896370 <vtable for ccl::SkyTextureNode+16>, name = { static npos = 18446744073709551615, m_chars = 0x7fffe4bef090 "Sky Texture", static empty_std_string = { static npos = 18446744073709551615, _M_dataplus = { <std::allocator<char>> = { <__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, members of std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Alloc_hider: _M_p = 0x7ffff6ffbd90 <OpenImageIO_v2_2::ustring::empty_std_string[abi:cxx11]+16> "" }, _M_string_length = 0, { _M_local_buf = '\000' <repeats 15 times>, _M_allocated_capacity = 0 } } }, type = 0x7fffe521d110, owner = 0x7fff7d55f340, socket_modified = 18446744073709551615 }, members of ccl::ShaderNode: inputs = { <std::vector<ccl::ShaderInput*, ccl::GuardedAllocator<ccl::ShaderInput*> >> = std::vector of length 1, capacity 1 = {0x7fff7befa8e0}, <No data fields>}, outputs = { <std::vector<ccl::ShaderOutput*, ccl::GuardedAllocator<ccl::ShaderOutput*> >> = std::vector of length 1, capacity 1 = {0x7fff7c86d5f0}, <No data fields>}, id = 2, bump = ccl::SHADER_BUMP_NONE, special_type = ccl::SHADER_SPECIAL_TYPE_NONE } ... ``` @kevindietrich: could you take a look at this? TIA!

Added subscribers: @kevindietrich, @grosgood

Added subscribers: @kevindietrich, @grosgood
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

This issue was referenced by a284e559b9

This issue was referenced by a284e559b90eb6d6824fc0f3e263ec7de1b4a49f

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Kévin Dietrich self-assigned this 2020-11-10 16:13:14 +01:00

Committed fix a284e559b9, thanks for the report.

Committed fix a284e559b9, thanks for the report.

@kevindietrich
Thank you for the quick response! Much appreciated. No more crashing...

Alas, but there does appear to be a rendering issue: without (left) and with (right) OSL:
Screenshot at 2020-11-10 11-28-46.png
When checking off Open Shading Language, rendering is significantly different. Seems there is no sky light in the scene at all. Further, this message appears in the shell:
, ##WARNING: attempting to set nonexistent parameter: sky_type##
Currently at bd6bfba64d (Cycles: Enable NanoVDB usage by default).
Last Good was a4a848d01b (Campbell Barton: Merge branch 'blender-v2.91-release'); scene renders identically with that commit.
To keep things tidy, I'll open another ticket on this when the day here quiets down a bit.

@kevindietrich Thank you for the quick response! Much appreciated. No more crashing... Alas, but there does appear to be a rendering issue: without (left) and with (right) OSL: ![Screenshot at 2020-11-10 11-28-46.png](https://archive.blender.org/developer/F9253745/Screenshot_at_2020-11-10_11-28-46.png) When checking off **Open Shading Language**, rendering is significantly different. Seems there is no sky light in the scene at all. Further, this message appears in the shell: , ##WARNING: attempting to set nonexistent parameter: sky_type## Currently at bd6bfba64d (Cycles: Enable NanoVDB usage by default). Last Good was a4a848d01b (Campbell Barton: Merge branch 'blender-v2.91-release'); scene renders identically with that commit. To keep things tidy, I'll open another ticket on this when the day here quiets down a bit.

Actually the other issue has the same origin as this one, I simply forgot to update the OSL scripts... so there is no need to create another ticket I think, I'll commit a fix in a few minutes.

Actually the other issue has the same origin as this one, I simply forgot to update the OSL scripts... so there is no need to create another ticket I think, I'll commit a fix in a few minutes.

This issue was referenced by b980cd163a

This issue was referenced by b980cd163a9d5d77eeffc2e353333e739fa9e719

OK. Thanks! I'll look for the commit and give it a whirl when it is out the door. Thank you again for your quick work.

OK. Thanks! I'll look for the commit and give it a whirl when it is out the door. Thank you again for your quick work.

Alright, I committed the other part of the fix, everything should be fine now.

Alright, I committed the other part of the fix, everything should be fine now.

@kevindietrich:
Looks good! You get to take the rest of the hour off ;)
Thank you for your quick response through all of this.

@kevindietrich: Looks good! You get to take the rest of the hour off ;) Thank you for your quick response through all of this.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
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
4 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#82561
No description provided.