mapbox-maps-ios
mapbox-maps-ios copied to clipboard
Texture Descriptor Validation; MTLTextureDescriptor has width of zero; MTLTextureDescriptor has height of zero
Environment
- Xcode version: 13.4.1 (13F100)
- iOS version: 15.6.1 (19G82),
- Devices affected: iPhone XR
- Maps SDK Version: 10.4.0 and newer
Notes / preliminary analysis
After upgrading SDK to 10.4.0 and newer releases up to 10.7.0, we faced with this crash. Previously we used to version 10.3.0 and everything works fine.
We are using SwiftUI, so we use MapView using UIViewRepresentable. The map is appeared in a couple of screens in our app. The mail screen (full screen map) is still working fine. However the map on the child screen (small map preview) crash an application (the logs and screens bellow)
Additional links and references
-[MTLTextureDescriptorInternal validateWithDevice:], line 1325: error 'Texture Descriptor Validation
MTLTextureDescriptor has width of zero.
MTLTextureDescriptor has height of zero.
'
-[MTLTextureDescriptorInternal validateWithDevice:]:1325: failed assertion `Texture Descriptor Validation
MTLTextureDescriptor has width of zero.
MTLTextureDescriptor has height of zero.
'
dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
-[MTLTextureDescriptorInternal validateWithDevice:]:1325: failed assertion `Texture Descriptor Validation
MTLTextureDescriptor has width of zero.
MTLTextureDescriptor has height of zero.
'
Same issue in iOS using the new Flutter SDK. It feels like the issue only happens when the Xcode debugger is active.
Also experiencing this issue. Created a separate issue for it though based on the specifics of my situation: https://github.com/mapbox/mapbox-maps-ios/issues/1922
Is there any update what is causing this crash?