You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I seem to get a crash every time when I change my device orientation. The crash message is following (in MGLKitSampleApp):
-[MTLDebugRenderCommandEncoder setScissorRect:]:2702: failed assertion `(rect.x(0) + rect.width(2048))(2048) must be <= render pass width(1536)'
It seems that some internal state synchronisation is missing when the frame buffer size changes. I hit the same issue with my own tests also. I am testing using iPad Air 2, iOS 13.3.1.
The text was updated successfully, but these errors were encountered:
One thing I noticed is that the crash is caused by the metal validation layer but this is actually a harmless crash, since the framebuffer will be correctly resized in the next frame. It is just that the immediate frame rendered at the moment the iOS's screen resize occurs will have incorrect size, hence metal validation layer complains and crashes the app immediately.
If you disable metal validation layer in the scheme settings, the crash won't happen anymore.
But I will fix this bug to make metal validation layer happy.
I seem to get a crash every time when I change my device orientation. The crash message is following (in MGLKitSampleApp):
-[MTLDebugRenderCommandEncoder setScissorRect:]:2702: failed assertion `(rect.x(0) + rect.width(2048))(2048) must be <= render pass width(1536)'
It seems that some internal state synchronisation is missing when the frame buffer size changes. I hit the same issue with my own tests also. I am testing using iPad Air 2, iOS 13.3.1.
The text was updated successfully, but these errors were encountered: