Crash in ImageBuilder
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- swift
- Domain
- computer-graphics, mobile-dev
Research direction
Start with ImageBuilder and the addTile(x:y:image:) method shown in the issue. Inspect when UIImage.cgImage is nil and determine the appropriate behavior for that case, then reproduce the intermittent crash and verify that image tiling no longer force-unwraps a missing image representation.
Written by the indexing model from the issue text.
Description
func addTile(x: Int, y: Int, image: UIImage) {
context?.draw(image.cgImage!, in: CGRect(origin: CGPoint(x: CGFloat(x) * tileSize.width, y: CGFloat(Int(imageSize.height / tileSize.height) - y - 1) * tileSize.height), size: tileSize))
}
The force unwrap crashes sometimes
- Dominant language
- Swift
- Stars
- 232
- Forks
- 51
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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.
More from mapbox/mapbox-scenekit
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
mapbox/mapbox-scenekit#91 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
mapbox/mapbox-scenekit#89 · 7 reactions ·
-
Deprecation WarningOpen
Difficulty 5/5 Over a week Newbie friendliness 20/100
mapbox/mapbox-scenekit#88 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
mapbox/mapbox-scenekit#83 · 5 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
mapbox/mapbox-scenekit#82 ·
All issues in mapbox/mapbox-scenekit
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
SwiftyLab/MetaCodable#169 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
521xueweihan/HelloGitHub#4131 ·
-
[Bug] Error: thaw@beta: thaw@beta: This cask does not run on macOS versions older than Golden Gate.Openmacos-27 ops
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
thaw-app/Thaw#1400 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ParetoSecurity/pareto-mac#324 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
duongductrong/Snapzy#691 ·
Maintainers usually reply within 1 day