Error map
Swift 6: var 'x' is not concurrency-safe because it is nonisolated global shared mutable state error: var 'shared' is not concurrency-safe because it is nonisolated global shared mutable state
iOS · layer 1, On your device
Centre: this error. First ring: errors it is linked with (8). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (8)
Main Thread Checker: UI API called on a background thread: -[UIView setNeedsLayout]
UIKit was used from a background thread; UI must only be touched on the main thread.
SwiftUI: Publishing changes from background threads is not allowed; make sure to publish values from the main thread
An ObservableObject’s @Published property was updated from a background thread.
Swift 6: Main actor-isolated property 'x' can not be referenced from a nonisolated context / Sending 'x' risks causing data races
Strict concurrency checking found code that accesses main-actor state from another isolation domain, or passes non-Sendable value…
CoreData: error: Serious application error. Exception was caught during Core Data change processing
A managed object or context was used on a different thread than it belongs to.
error: Actor-isolated property 'items' can not be referenced from a non-isolated context
You accessed actor state from outside the actor without `await`.
error: failed to update ref: refs/heads/main is at a1b2 but expected c3d4
Another process changed the ref while Git updated it.
warning: Capture of 'self' with non-sendable type 'ViewModel' in a `@Sendable` closure
Swift 6 concurrency checking flags data that crosses threads without being Sendable.
error: call to main actor-isolated instance method 'update()' in a synchronous nonisolated context
A nonisolated function calls a `@MainActor` method synchronously.
Two steps away (21)
HTTP 412 Precondition Failed
A conditional request header (If-Match, If-Unmodified-Since) didn’t match the current state of the resource.
HTTP 428 Precondition Required
The server requires a conditional request (If-Match / If-Unmodified-Since) to prevent lost updates, and you didn’t send one.
java.lang.InterruptedException (sleep interrupted)
A blocked thread (sleep, wait, join, queue take) was interrupted by another thread.
Optimistic lock conflict: OptimisticLockException / StaleObjectStateException / version mismatch
Someone else changed the record after you read it, so your update — based on an old version — was rejected to avoid overwriting t…
API Error: Idempotency key reused with different parameters (idempotency_key_in_use)
An Idempotency-Key header was sent again with a different request body, or while the first request with that key was still runnin…
API Error: Too many concurrent requests (concurrency limit reached)
You have more requests in flight at once than the API allows for your key — even if your requests-per-minute rate is fine.
Swift: Fatal error: Index out of range
Code accessed an array index that doesn’t exist — empty arrays, off-by-one loops, or data changing while a table reloads.
Swift: Could not cast value of type 'X' to 'Y'
A force cast (as!) failed because the object isn’t the expected type.
Swift: 'X' is only available in iOS 16.0 or newer
You used an API that requires a newer iOS than your deployment target.
android.os.NetworkOnMainThreadException
The app made a network call on the main (UI) thread, which Android forbids.
CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views
Background code updated a View directly; UI changes must happen on the main thread.
ANR: Application Not Responding (Input dispatching timed out)
The main thread was blocked for about 5 seconds (input) or a broadcast/service took too long, so Android showed “App isn’t respon…
Swift: Cannot convert value of type 'X' to expected argument type 'Y'
The value’s type doesn’t match what the function or property expects.
Swift: The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions
A long expression (often in a SwiftUI body) has too many possible type combinations for the compiler — or hides a type error.
Swift: Type of expression is ambiguous without a type annotation (more context)
The compiler can’t infer which type you mean — often because of a typo or a wrong argument elsewhere in the expression.
Git: ! [rejected] … (fetch first) — error: failed to push some refs
The remote branch has commits you don’t have locally, so Git refuses to overwrite them. Pull (merge or rebase) first, then push.
error: src refspec main does not match any
You pushed a branch name that doesn’t exist locally — usually no commits yet, or the branch is called master not main.
error: RPC failed; HTTP 400 curl 22 / curl 92 HTTP/2 stream was not closed cleanly — the remote end hung up unexpectedly
A large HTTPS push/clone broke mid-transfer — size limits, proxies or flaky HTTP/2.
Swift: Escaping closure captures mutating 'self' parameter
A mutating method of a struct tries to capture self in an escaping closure, which Swift forbids.
Fatal error: Index out of range
Mutating an array while looping over indices.
error: 'init' is inaccessible due to 'internal' protection level
A type's initializer isn't visible to the caller's module.