Page MenuHome

Error when using vertex color
Closed, ResolvedPublic

Description

System Information
Operating system: Linux-5.0.0-25-generic-x86_64-with-Ubuntu-18.04-bionic 64 Bits
Graphics card: Quadro RTX 6000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.40

Blender Version
Broken: version: rB8eb22968724b

Short description of error
Accessing a vertex color in lookdev mode hits an assert. Without asserts, it seems to work fine.

Exact steps for others to reproduce the error

Reproduce from scratch:

  1. Start a debug build of Blender.
  2. Add a vertex color layer to the cube.
  3. Go to the shading workspace.
  4. Add an attribute node and link it to the Base Color.
  5. Insert the name of the vertex color layer in the attribute node.

Reproduce from file:

  1. Open the file.
  2. Connect the attribute node to the Base Color input.

==2507==ERROR: AddressSanitizer: heap-use-after-free on address 0x60b0002151a0 at pc 0x555583b2f852 bp 0x7fffffffc750 sp 0x7fffffffc740
READ of size 1 at 0x60b0002151a0 thread T0
    #0 0x555583b2f851 in GPU_indexbuf_use /home/jacques/blender-git/blender/source/blender/gpu/intern/gpu_element.c:375
    #1 0x555583b2f8c1 in GPU_indexbuf_use /home/jacques/blender-git/blender/source/blender/gpu/intern/gpu_element.c:376
    #2 0x555583aeb2b1 in batch_update_program_bindings /home/jacques/blender-git/blender/source/blender/gpu/intern/gpu_batch.c:461
    #3 0x555583ae9690 in batch_vao_get /home/jacques/blender-git/blender/source/blender/gpu/intern/gpu_batch.c:326
    #4 0x555583ae98d4 in GPU_batch_program_set_no_use /home/jacques/blender-git/blender/source/blender/gpu/intern/gpu_batch.c:342
    #5 0x5555745d94eb in draw_geometry_execute /home/jacques/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:623
    #6 0x5555745d94eb in draw_shgroup /home/jacques/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:972
    #7 0x5555745d9dde in drw_draw_pass_ex /home/jacques/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:1024
    #8 0x5555745da5ea in DRW_draw_pass /home/jacques/blender-git/blender/source/blender/draw/intern/draw_manager_exec.c:1064
    #9 0x55557465eb5c in eevee_draw_background /home/jacques/blender-git/blender/source/blender/draw/engines/eevee/eevee_engine.c:255
    #10 0x5555745b3f0a in drw_engines_draw_background /home/jacques/blender-git/blender/source/blender/draw/intern/draw_manager.c:1167
    #11 0x5555745b6f9c in DRW_draw_render_loop_ex /home/jacques/blender-git/blender/source/blender/draw/intern/draw_manager.c:1657
    #12 0x5555745b61b2 in DRW_draw_view /home/jacques/blender-git/blender/source/blender/draw/intern/draw_manager.c:1548
    #13 0x5555757adc03 in view3d_draw_view /home/jacques/blender-git/blender/source/blender/editors/space_view3d/view3d_draw.c:1532
    #14 0x5555757add1e in view3d_main_region_draw /home/jacques/blender-git/blender/source/blender/editors/space_view3d/view3d_draw.c:1556
    #15 0x555575a88baf in ED_region_do_draw /home/jacques/blender-git/blender/source/blender/editors/screen/area.c:535
    #16 0x555573577f93 in wm_draw_window_offscreen /home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_draw.c:621
    #17 0x555573578e30 in wm_draw_window /home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_draw.c:757
    #18 0x555573579daf in wm_draw_update /home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm_draw.c:939
    #19 0x55557356ad73 in WM_main /home/jacques/blender-git/blender/source/blender/windowmanager/intern/wm.c:423
    #20 0x555571e93c3f in main /home/jacques/blender-git/blender/source/creator/creator.c:491
    #21 0x7ffff1901b96 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x21b96)
    #22 0x555571e930d9 in _start (/home/jacques/blender-git/build_linux_debug/bin/blender+0x1c93f0d9)