Search Issue Tracker

Fixed in 2017.2.X

Votes

1

Found in

2017.1.0b3

Issue ID

908121

Regression

No

[Metal] Crash in MTLTextureDescriptorInternal validateWithDevice when changing RenderTexture Dimension to 3D

OSX

-

To reproduce:
1. Create Render Texture
2. Make sure that Metal Editor Support is enabled
3. Select Render Texture
4. Change Dimension to 3D
5. Editor crashes

Reproducible: 5.6.0p3, 2017.01b4

From editor.log:

-[MTLTextureDescriptorInternal validateWithDevice:]:877: failed assertion `MTLTextureDescriptor: depth/stencil pixel formats require texture type of MTLTextureType2D[Array] or MTLTextureTypeCube[Array].'

Native stacktrace:

0 libsystem_kernel.dylib 0x00007fffcd571d42 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fffcd4d7420 abort + 129
2 libsystem_c.dylib 0x00007fffcd49e893 basename_r + 0
3 Metal 0x00007fffbb5ade0b MTLReportFailure + 822
4 Metal 0x00007fffbb58ae30 -[MTLTextureDescriptorInternal validateWithDevice:] + 2727
5 AMDMTLBronzeDriver 0x00007fffb2cf435f _Z41amdMtlBronze_Stats_DrawIndexPrimsIndirectP32BronzeRenderCmdEncoderMembersRecjjjj + 34143
6 Unity 0x00000001023eaec1 _ZL22InitRenderSurfaceMetalR18RenderSurfaceMetal14MTLPixelFormat + 1137
7 Unity 0x00000001023eb077 _ZN5metal24CreateDepthRenderSurfaceEP23DepthRenderSurfaceMetal17DepthBufferFormat + 55
8 Unity 0x00000001023dc27e _ZN14GfxDeviceMetal32CreateDepthRenderSurfacePlatformEP17RenderSurfaceBase17DepthBufferFormat + 14
9 Unity 0x000000010130f008 _ZN15GfxDeviceWorker10RunCommandER20ThreadedStreamBuffer + 13224
10 Unity 0x00000001023df15c GfxDeviceWorkerAutoreleasePoolProxy + 60
11 Unity 0x00000001013154d4 _ZN15GfxDeviceWorker3RunEv + 116
12 Unity 0x000000010130bb41 _ZN15GfxDeviceWorker18RunGfxDeviceWorkerEPv + 81
13 Unity 0x0000000101b76ada _ZN6Thread16RunThreadWrapperEPv + 90
14 libsystem_pthread.dylib 0x00007fffcd65c9af _pthread_body + 180
15 libsystem_pthread.dylib 0x00007fffcd65c8fb _pthread_body + 0
16 libsystem_pthread.dylib 0x00007fffcd65c101 thread_start + 13

Debug info from gdb:

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

[0505/132950:FATAL:platform_thread_posix.cc(235)] Check failed: 0 == pthread_join(thread_handle.handle_, __null) (0 vs. 3)

Comments (1)

  1. michael-v

    May 08, 2017 11:35

    Very similar on any 5.6 release/patch but from UploadTexture

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.