Page MenuHome

crash, using custom COMPAT_ENGINE in addon with bl_use_preview
Open, Waiting for Developer to ReproducePublic


System Information
Operating system: Linux-5.2.0-zen1-1-zen-x86_64-with-arch 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 430.26

Blender Version
Broken: version: 2.80 (sub 74), branch: makepkg, commit date: 2019-07-11 13:50, hash: rB06312c6d2db8
Worked: (optional)

Short description of error
crash, using custom COMPAT_ENGINE in addon with bl_use_preview

Exact steps for others to reproduce the error

  • register a custom RenderEngine in an addon
  • set „bl_use_preview = True“ in this engine class
  • overwrite "MaterialButtonsPanel" class in the addon with an version of it, witch has only the new render_engine as compat_engines
  • add the new render_engine to the compat_engines of „EEVEE_MATERIAL_PT_context_material“
  • load addon, go to the MateralButtonsPanel
  • now blender crashes as soon as you hover any property in the panel


Blender 2.80 (sub 74), Commit date: 2019-07-11 13:50, Hash 06312c6d2db8

bpy.context.space_data.context = 'RENDER' # Property
bpy.context.scene.render.engine = 'imModus' # Property
bpy.context.space_data.context = 'MATERIAL' # Property


blender(BLI_system_backtrace+0x34) [0x5591a4b0a884]
blender(+0xc9c9e5) [0x5591a48de9e5]
/usr/lib/ [0x7f4b899377e0]
blender(render_result_rect_get_pixels+0x29) [0x5591a4bb24c9]
blender(RE_ResultGet32+0x7d) [0x5591a4baae8d]
blender(+0x26bd059) [0x5591a62ff059]
blender(+0x26bd349) [0x5591a62ff349]
blender(+0x26bd52d) [0x5591a62ff52d]
blender(+0x26bd7a7) [0x5591a62ff7a7]
blender(+0x10bd163) [0x5591a4cff163]
/usr/lib/ [0x7f4b8cfb157f]
/usr/lib/ [0x7f4b899f90e3]

I know that it is a bad implementation from my side. But probably blender shouldn't crash without any information why.



Event Timeline

Lendo (Lendo) updated the task description. (Show Details)

Hi Lendo,

Could you provide us with the minimum example code. This way we know for certain how to reproduce it.
It might be that the minimum requirements of the RenderEngine was not met, but a hard crash is something we should prevent when possible IMO.


Brecht Van Lommel (brecht) lowered the priority of this task from Needs Triage by Developer to Needs Information from User.Jul 15 2019, 7:12 PM
Lendo (Lendo) added a comment.EditedJul 15 2019, 7:53 PM

Example minimal addon is in

Bastien Montagne (mont29) raised the priority of this task from Needs Information from User to Waiting for Developer to Reproduce.Jul 23 2019, 11:12 AM