mapbox / mapbox-maps-ios

Interactive, thoroughly customizable maps for iOS powered by vector tiles and Metal
https://www.mapbox.com/mapbox-mobile-sdk
Other
462 stars 151 forks source link

Texture Descriptor Validation; MTLTextureDescriptor has width of zero; MTLTextureDescriptor has height of zero #1556

Open yurii-bimble opened 2 years ago

yurii-bimble commented 2 years ago

Environment

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.
'
Screen Shot 2022-09-05 at 18 49 20 Screen Shot 2022-09-05 at 18 47 40 Screen Shot 2022-09-05 at 19 04 42
demux79 commented 1 year ago

Same issue in iOS using the new Flutter SDK. It feels like the issue only happens when the Xcode debugger is active.

maxmiranda commented 1 year ago

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

kaustubh-seachange commented 1 year ago

Is there any update what is causing this crash?