Page MenuHome

EEVEE: Dot Product of two objects' "object" texture coordinate results in crash
Closed, DuplicatePublic

Description

System Information
Operating system: Darwin-17.6.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 560 OpenGL Engine ATI Technologies Inc. 4.1 ATI-1.66.42

Blender Version
Broken: version: 2.80 (sub 53), branch: blender2.7, commit date: 2019-03-31 21:52, hash: rBb936d7b16c62
Worked: N/A (new feature)

Short description of error
Plugging the value output of the dot-product node results in a crash if the vectors are from two different objects. This bug seems to occur for any two vectors from different objects, on any vector math operation. I tried using the Geometry node, too, which resulted in a crash.
Not sure if this is a bug or merely an incomplete feature.

Exact steps for others to reproduce the error


From the .blend file attached, simply plug the vector math node into the output (The bug will also occur if you use an emission shader, but it's unnecessary).

I want to add: this is a great feature, and I'm so happy to see it coming to EEVEE! I imagine that, coupled with animationn nodes, EEVEE will be the renderer of choice for VFX artists. Also, as an NPR artist, it's an invaluable tool for me! I want to say a big thank-you to Clément Foucault for all his hard work on EEVEE.

Details

Type
Bug

Event Timeline

This is related to commit: rBdec9c7d87e5b.
Also, let me know if it is helpful to mention the commit/bug if I know the root cause. I usually don't, so I can see how that could be annoying if I was wrong. Let me know! I want to provide good bug reports.

Sebastian Parborg (zeddb) triaged this task as Needs Information from User priority.

The bug report is fine as it is.

However, I can't reproduce the crash on my end. The version you are using is quite old by now. Can you see if you still have this issue with the latest build?

I can't reproduce this on Linux with the 8 Apr build.

I'm getting the same bug with 2019-04-08 21:54
Hash: 2a79e3463230

I think it might be a GPU thing-- in User Preferences, there is no GPU available for CUDA or OpenCL.
When I get home I can test this on Windows.

Here's my system info, saved from Blender:

Blender 2.80 (sub 55) System Information

Blender:

version: 2.80 (sub 55), branch: blender2.7, commit date: 2019-04-08 21:54, hash: 2a79e3463130, type: Release
build date: 2019-04-09, 01:34:03
platform: Darwin
binary path: '/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/MacOS/blender'
build cflags: -Wall -Werror=implicit-function-declaration -Werror=return-type -Wno-tautological-compare -Wno-unknown-pragmas -Wno-char-subscripts -Wstrict-prototypes -Wmissing-prototypes -Wunused-parameter -mmacosx-version-min=10.9 -Xclang -fopenmp -I'/Users/gast/blender-buildbot/mac_x86_64_10_9_cmake/blender.git/../lib/darwin/openmp/include' -std=gnu11 -msse -pipe -funsigned-char -msse2
build cxxflags: -Wall -Wno-tautological-compare -Wno-unknown-pragmas -Wno-char-subscripts -Wno-overloaded-virtual -Wno-sign-compare -Wno-invalid-offsetof -mmacosx-version-min=10.9 -ftemplate-depth=1024 -stdlib=libc++ -Xclang -fopenmp -I'/Users/gast/blender-buildbot/mac_x86_64_10_9_cmake/blender.git/../lib/darwin/openmp/include' -std=c++11 -msse -pipe -funsigned-char -msse2
build linkflags: -fexceptions -framework CoreServices -framework Foundation -framework IOKit -framework AppKit -framework Cocoa -framework Carbon -framework AudioUnit -framework AudioToolbox -framework CoreAudio -framework ForceFeedback -liconv -Xlinker -unexported_symbols_list -Xlinker '/Users/gast/blender-buildbot/mac_x86_64_10_9_cmake/blender.git/source/creator/osx_locals.map' -stdlib=libc++
build system: CMake

Python:

version: 3.7.0 (default, Sep 11 2018, 17:36:20)
[Clang 9.1.0 (clang-902.0.39.2)]
paths:
'/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons_contrib'
'/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons'
'/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/startup'
'/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/modules'
'/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/python/lib/python37.zip'
'/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/python/lib/python3.7'
'/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/python/lib/python3.7/lib-dynload'
'/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/python/lib/python3.7/site-packages'
'/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/freestyle/modules'
'/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/modules'
'/Users/jo625598/Library/Application Support/Blender/2.80/scripts/addons/modules'

Python (External Binary):

binary path: '/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/python/bin/python3.7m'
version: Python 3.7.0 (default, Sep 11 2018, 17:36:20) \n[Clang 9.1.0 (clang-902.0.39.2)]

Directories:

scripts:
'/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/modules'
'/private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts'
'/Users/jo625598/Library/Application Support/Blender/2.80/scripts'
user scripts: '/Users/jo625598/Library/Application Support/Blender/2.80/scripts'
pref scripts: None
datafiles: '/Users/jo625598/Library/Application Support/Blender/2.80/datafiles/'
config: '/Users/jo625598/Library/Application Support/Blender/2.80/config/'
scripts : '/Users/jo625598/Library/Application Support/Blender/2.80/scripts/'
autosave: '/Users/jo625598/Library/Application Support/Blender/2.80/autosave/'
tempdir: '/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/blender_B1JvjM/'

FFmpeg:

avcodec: '58, 18, 100'
avdevice: '58, 3, 100'
avformat: '58, 12, 100'
avutil: '56, 14, 100'
swscale: ' 5, 1, 100'

SDL:

Version: 2.0.8
Loading method: linked (WITH_SDL_DYNLOAD=OFF)

Other Libraries:

OpenColorIO: 1, 1, 0
OpenImageIO: 1, 8, 13
OpenShadingLanguage: 1, 9, 9
OpenSubdiv: 0, 0, 0
OpenVDB: 5, 1, 0
Alembic: 1, 7, 8

OpenGL:

renderer: 'AMD Radeon Pro 560 OpenGL Engine'
vendor: 'ATI Technologies Inc.'
version: '4.1 ATI-1.66.42'
extensions:
GL_APPLE_client_storage
GL_APPLE_container_object_shareable
GL_APPLE_flush_render
GL_APPLE_object_purgeable
GL_APPLE_rgb_422
GL_APPLE_row_bytes
GL_APPLE_texture_range
GL_ARB_ES2_compatibility
GL_ARB_blend_func_extended
GL_ARB_draw_buffers_blend
GL_ARB_draw_indirect
GL_ARB_explicit_attrib_location
GL_ARB_gpu_shader5
GL_ARB_gpu_shader_fp64
GL_ARB_instanced_arrays
GL_ARB_internalformat_query
GL_ARB_occlusion_query2
GL_ARB_sample_shading
GL_ARB_sampler_objects
GL_ARB_separate_shader_objects
GL_ARB_shader_bit_encoding
GL_ARB_shader_subroutine
GL_ARB_shading_language_include
GL_ARB_tessellation_shader
GL_ARB_texture_buffer_object_rgb32
GL_ARB_texture_cube_map_array
GL_ARB_texture_gather
GL_ARB_texture_query_lod
GL_ARB_texture_rgb10_a2ui
GL_ARB_texture_storage
GL_ARB_texture_swizzle
GL_ARB_timer_query
GL_ARB_transform_feedback2
GL_ARB_transform_feedback3
GL_ARB_vertex_attrib_64bit
GL_ARB_vertex_type_2_10_10_10_rev
GL_ARB_viewport_array
GL_ATI_texture_mirror_once
GL_EXT_debug_label
GL_EXT_debug_marker
GL_EXT_depth_bounds_test
GL_EXT_texture_compression_s3tc
GL_EXT_texture_filter_anisotropic
GL_EXT_texture_mirror_clamp
GL_EXT_texture_sRGB_decode
GL_NV_texture_barrier

Implementation Dependent OpenGL Limits:

Maximum DrawElements Vertices: 1048575
Maximum DrawElements Indices: 150000

GLSL:
Maximum Varying Floats: 150000
Maximum Vertex Attributes: 16
Maximum Vertex Uniform Components: 4096
Maximum Fragment Uniform Components: 4096
Maximum Vertex Image Units: 16
Maximum Fragment Image Units: 16
Maximum Pipeline Image Units: 80

Cycles:

CPU device capabilities: SSE2 SSE3 SSE41 AVX AVX2

OpenCL device capabilities:
Number of platforms: 1
Platform #0
Platform Name: Apple
Platform Vendor: Apple
Platform Version: OpenCL 1.2 (Mar 15 2018 15:35:11)
Platform Profile: FULL_PROFILE
Platform Extensions: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event
Number of devices: 2

		Device: #0
			Device Name: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz
			Device Vendor: Intel
			Device OpenCL C Version: OpenCL C 1.2 
			Device Profile: FULL_PROFILE
			Device Version: OpenCL 1.2 
			Device Extensions: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_3d_image_writes cl_khr_image2d_from_buffer cl_APPLE_fp64_basic_ops cl_APPLE_fixed_alpha_channel_orders cl_APPLE_biased_fixed_point_image_formats cl_APPLE_command_queue_priority
			Device Max clock frequency (MHz): 3600
			Device Max compute units: 8
			Device Max work group size: 1024
		Device: #1
			Device Name: AMD Radeon Pro 560 Compute Engine
			Device Vendor: AMD
			Device OpenCL C Version: OpenCL C 1.2 
			Device Profile: FULL_PROFILE
			Device Version: OpenCL 1.2 
			Device Extensions: cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_byte_addressable_store cl_khr_image2d_from_buffer cl_khr_depth_images cl_APPLE_command_queue_priority cl_APPLE_command_queue_select_compute_units cl_khr_fp64
			Device Max clock frequency (MHz): 907
			Device Max compute units: 16
			Device Max work group size: 256

Enabled add-ons:

io_scene_fbx (version: (4, 14, 5), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/io_scene_fbx/__init.py)
io_anim_bvh (version: (1, 0, 0), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/io_anim_bvh/
init.py)
io_mesh_ply (version: (1, 0, 0), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/io_mesh_ply/
init.py)
io_scene_obj (version: (3, 5, 6), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/io_scene_obj/
init.py)
io_scene_x3d (version: (2, 2, 1), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/io_scene_x3d/
init.py)
io_mesh_stl (version: (1, 1, 3), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/io_mesh_stl/
init.py)
io_mesh_uv_layout (version: (1, 1, 1), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/io_mesh_uv_layout/
init.py)
io_curve_svg (version: UNKNOWN, path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/io_curve_svg/
init.py)
cycles (version: UNKNOWN, path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/cycles/
init.py)
io_scene_gltf2 (version: (0, 0, 1), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/io_scene_gltf2/
init.py)
archipack (version: (1, 2, 82), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/archipack/
init.py)
io_import_images_as_planes (version: (3, 2, 2), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/io_import_images_as_planes.py)
mesh_looptools (version: (4, 6, 7), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/mesh_looptools.py)
object_collections (MISSING)
object_scatter (version: (0, 1), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/object_scatter/
init.py)
add_curve_sapling (version: (0, 3, 4), path: /private/var/folders/q9/ff7nj4n54zj1lk67ddfd2r7hx5sryp/T/AppTranslocation/2AD1A1D7-E48D-459B-BFCC-A9A9EDA6EFB7/d/blender.app/Contents/Resources/2.80/scripts/addons/add_curve_sapling/
init__.py)

Sebastian Parborg (zeddb) raised the priority of this task from Needs Information from User to Confirmed, Medium.

I do get an ASAN error when I plug in the node, but no crash:

/home/zed/prog/blender/source/blender/gpu/intern/gpu_uniformbuffer.c:276:17: runtime error: index 16 out of bounds for type 'LinkData *[5]'
/home/zed/prog/blender/source/blender/gpu/intern/gpu_uniformbuffer.c:276:31: runtime error: store to address 0x7ffd1f92aa00 with insufficient space for an object of type 'struct LinkData *'
0x7ffd1f92aa00: note: pointer points here
 ff 0f 00 00  10 f9 c3 00 f0 60 00 00  27 00 00 00 00 00 00 00  80 aa 92 1f fd 7f 00 00  2e 3b c4 cd

However, I guess that this is the cause of the crash on your end, so I'll mark this as confirmed.