mapbox / mapbox/mapbox-maps-ios

Crash after init

Open
#2,374 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged bug :beetle:
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.