MTLValidateResolveTexture crash

Hi guys,


I'm pretty new to the SceneKit framework and I've run into a pretty weird crash. I have a rather simple 3D moldel (Collada file) generated with Blender.

From time to time when I dismiss my controller which has the SceneKit view, it will crash out of the blue...

Screenshot: https://i.imgur.com/gl2mRQD.jpg


The problem seems to be that it doesnt happen all the time, it crashes like 1 in 5 times I test. The message I have in the console looks like this


_MTLValidateResolveTexture:150: failed assertion `Texture PixelFormat MTLPixelFormatBGR10_XR_sRGB does not match Resolve PixelFormat MTLPixelFormatBGRA8Unorm_sRGB'


I kinda think it might be the image I'm assigning to my material but I'm trying to figure out why this is not happening all the time (if it was an image format issue).


Any hints on how I should further debug this issue?


Thank you!