Error map
Index out of range Swift: Fatal error: Index out of range
iOS · layer 1, On your device
Centre: this error. First ring: errors it is linked with (12). 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 (12)
Thread 1: signal SIGABRT (app crashes with "libc++abi: terminating")
The app deliberately aborted — an uncaught exception, failed assertion or fatalError. The console above the crash has the real me…
C/C++: free(): double free detected / double free or corruption (out) — Aborted (core dumped)
Memory was freed twice or the heap was corrupted (buffer overflow, freeing a non-heap pointer), so glibc aborted the program.
dyld: Library not loaded: @rpath/X.framework/X — Reason: image not found (crash on launch)
A dynamic framework the app needs at runtime isn’t embedded in the app bundle, so it crashes at launch.
C++: terminate called after throwing an instance of 'std::out_of_range' — what(): vector::_M_range_check
A C++ exception wasn’t caught anywhere, so std::terminate aborted the program. what() tells you the reason.
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: Cannot convert value of type 'X' to expected argument type 'Y'
The value’s type doesn’t match what the function or property expects.
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection
Code accessed a List/collection position that doesn’t exist (IndexOutOfRangeException for arrays).
Swift: 'X' is only available in iOS 16.0 or newer
You used an API that requires a newer iOS than your deployment target.
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.
Swift: Escaping closure captures mutating 'self' parameter
A mutating method of a struct tries to capture self in an escaping closure, which Swift forbids.
Swift: Reference to property 'x' in closure requires explicit use of 'self' to make capture semantics explicit
In an escaping closure inside a class, Swift requires self. to make the capture (and potential retain cycle) visible.
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…
Two steps away (29)
Fatal error: Unexpectedly found nil while unwrapping an Optional value
Swift force-unwrapped (`!`) an optional that was nil, crashing the app.
java.lang.IllegalArgumentException
A method rejected an argument value as invalid.
java.lang.ArithmeticException: / by zero
Integer division or modulo by zero.
Kubernetes: OOMKilled (exit code 137)
The container used more memory than its limit, and the kernel killed it.
java.lang.OutOfMemoryError: Java heap space
The JVM ran out of heap memory and garbage collection couldn’t free enough.
Blue Screen: MEMORY_MANAGEMENT (Stop code 0x0000001A)
Windows detected a severe memory-management error — commonly faulty RAM, unstable memory settings or a bad driver.
error while loading shared libraries: libX.so.N: cannot open shared object file: No such file or directory
The program needs a shared library (.so) that isn’t installed or isn’t on the loader’s search path.
The application was unable to start correctly (0xc0000142)
A DLL the program loads failed to initialise — often after an update, with corrupt runtimes, or when a desktop heap/session limit…
.NET: Stack overflow. / Process is terminated due to StackOverflowException
Infinite or very deep recursion exhausted the thread’s stack; .NET can’t catch it and terminates the process.
Segmentation fault (core dumped)
A program accessed memory it wasn’t allowed to, and the kernel killed it with SIGSEGV (exit code 139).
java.lang.IllegalStateException
A method was called when the object wasn’t in the right state for it.
java.util.NoSuchElementException: No value present
Code asked for an element that doesn’t exist — Optional.get() on empty, iterator.next() past the end, Scanner with no input.
error CS0246: The type or namespace name 'X' could not be found (are you missing a using directive or an assembly reference?)
The compiler doesn’t know the type — missing using, missing NuGet package/project reference, or a target framework mismatch.
error CS0103: The name 'x' does not exist in the current context
The identifier isn’t declared in scope — typo, variable declared in another block, missing using static, or a Razor/partial class…
error CS1061: 'X' does not contain a definition for 'Y' and no accessible extension method 'Y' accepting a first argument of type 'X' could be found
The member you call doesn’t exist on that type — typo, wrong type, missing using for an extension method, or an API removed in a…
AttributeError: 'X' object has no attribute 'y'
You accessed an attribute or method that doesn’t exist on that object type.
java.lang.ClassCastException: class A cannot be cast to class B
An object was cast to a type it isn’t.
TS7016: Could not find a declaration file for module 'x'. 'x.js' implicitly has an 'any' type.
The JavaScript package has no TypeScript types bundled and no @types package installed.
java.util.ConcurrentModificationException
A collection was modified while being iterated (even in a single thread).
InvalidOperationException: Sequence contains no elements / more than one element
LINQ `First()`, `Single()`, `Last()` or `Max()` ran on an empty sequence (or `Single()` found several items).
java.lang.UnsupportedOperationException (List.of / Arrays.asList is immutable)
Code tried to modify an immutable or fixed-size collection.
Swift: Could not cast value of type 'X' to 'Y'
A force cast (as!) failed because the object isn’t the expected type.
Swift: No such module 'X' (module not found)
Xcode can’t find a Swift package, pod or framework you import.
warning CS8618: Non-nullable property 'X' must contain a non-null value when exiting constructor. Consider declaring the property as nullable
With nullable reference types enabled, a non-nullable reference property isn’t initialised by the constructor.
Go: declared and not used: x / "fmt" imported and not used
Go refuses to compile code with unused local variables or unused imports.
Rust: error[E0308]: mismatched types — expected `X`, found `Y`
A value’s type doesn’t match what the context expects — common with &str vs String, Option/Result vs plain values, and integer ty…
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.
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.
Go: fatal error: all goroutines are asleep - deadlock!
Every goroutine is blocked waiting (on a channel, mutex or WaitGroup), so the program can never continue.
Map another error
Popular: 403500400TypeErrorCritical error0xC000007BNullPointerException404