mapbox / mapbox/mapbox-maps-ios
Crash after init
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
Environment
- Xcode version: 16.4
- iOS version: 16.8
- Maps SDK Version: 11.14.0
Observed behavior and steps to reproduce
On initialization step it crash on draw() method
class MetalView: MTKView, CoreMetalView
override func draw(_ rect: CGRect) {
super.draw(rect)
onRender?() <------ Here is an error ( and Crash )
}
validateRenderPassDescriptor:991: failed assertion `RenderPass Descriptor Validation
No output textures defined for the render pass. Either set a texture to at least one render pass attachment, or use targetless rasterization by setting the render pass descriptor's renderTarget{Width|Height} properties to nonzero values.
no sampleCount for color and raster available, either set defaultColorSampleCount or set defaultRasterSampleCount or set appropriate attachments
'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the crash in MetalView.draw(_:) with Xcode 16.4, iOS 16.8, and Maps SDK 11.14.0, then trace the onRender? call and the render-pass validation message. Done means initialization reaches draw() without the assertion about missing output textures or sample counts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- computer-graphics, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 38/100