SegFault missing slots in framebuffer
Submitted by Jeroen Bakker
Assigned to Default DRI bug account
Link to original bug (#111802)
Description
This fault has been detected when using Blender (2.80 or master branch) Steps to reproduce the error:
- Start Blender
- Go to edit mode (press tab)
- Start Merge vertices tool (press ALT-M)
- Select any mode (press ENTER)
And a segmentation fault happens. This has been tested on Mesa 18.2.2, 19.0.8 and 19.3.0~dev.
The root cause is that you have a framebuffer with multiple color slots with empty slots in between. If there is an empty color slot between the color slots, all textures after this slot are apparently skipped/discarded.
Our work around is to reuse empty slots with other slots.
gpu_framebuffer_update_attachments_and_fill_empty_slots
in https://developer.blender.org/diffusion/B/browse/master/source/blender/gpu/intern/gpu_framebuffer.c$429-483
This issue also existed in the official AMD drivers, but has been solved to our knowledge.
https://developer.blender.org/T70187
Version: git