System Information
Operating system and graphics card
Blender Version
Broken: (example: 2.78a e8299c8)
Short description of error
I have created a custom EnumProperty which uses a function to generate a dynamic list of items. That function loops over all brushes and creates a list out of them.
Displaying that enum property via layout.template_icon_view(context.scene, "prop_name",show_labels=True) and layout.prop(context.scene, "prop_name",expand=True) is resulting in totally messed up names.
Items are displaying names of other items or crypted text.
For template_icon_view it sometimes works properly, but most of the time not.
However, displaying the property via layout.prop(context.scene, "prop_name",expand=True) works perfectly fine. Always.
Exact steps for others to reproduce the error
I have attached a blendfile showcasing the problem and also a small video.