Page MenuHome

crash when drawing images, fonts etc using icon_value arg or template_icon_view function
Closed, ResolvedPublic

Description

System Information
Operating system: Ubuntu 17.10
Graphics card: Nvidia GTX 1050

Blender Version
Broken: 3d16a268ee68
Worked: 9df460203517

Custom images, fonts, etc, that are registered via bpy.utils.previews, will crash Blender when they are drawn in the UI, using the icon_value argument or the template_icon_view function.

  • register custom image(s), font(s)
  • draw them in a menu or panel

Alternatively:

  • check the supplied ui_previews_custom_icon.py template
  • run it and switch to Object in the properties panel
  • Blender should crash

Update:
This may go even deeper. Material preview icons seem to be affacted as well. Just creating a new material from the properties panel crashes Blender.

Event Timeline

Philipp Oeser (lichtwerk) lowered the priority of this task from 90 to 30.Feb 8 2019, 10:43 AM

Could you share a minimal blendfile with required script and images/font so we can reproduce?
(this will save a lot of time for [multiple] devs looking at this and makes sure we are all on the same page... thx!)

You can just check the supplied ui_previews_custom_icon.py template.

Run it and switch to Object in the properties panel. That should crash Blender.

Philipp Oeser (lichtwerk) changed the task status from Unknown Status to Resolved.Feb 8 2019, 11:16 AM
Philipp Oeser (lichtwerk) claimed this task.

Can reproduce a crash with todays buildbot.

But cannot reproduce anymore (as of rB0822af4c4813f503dcd5de20facc588f67b1f9a6).

Please try tomorrows build, this is likely resolved already.

Will close this as resolved [but make sure to comment again (or reopen) if issues persist in tomorrows build...]