The argument in the uiButSetFunc is a Image struct, but BKE_image_multilayer_index expect a RenderResult struct, so when you load a exr file and try change the Layer, Blender crash. (image_layer_cb call BKE_image_multilayer_index)
The argument in the uiButSetFunc is a Image struct, but BKE_image_multilayer_index expect a RenderResult struct, so when you load a exr file and try change the Layer, Blender crash. (image_layer_cb call BKE_image_multilayer_index)