Error map

State lost on rotation / activity recreated (behavior) Activity restarts on rotation and fields reset

Android · layer 1, On your device

Open the full error page →

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.

State lost on rotation / activity recreated — (behavior) Activity restarts on rotation and fields reset (Android)State lost …setState() called after dispose() — Flutter: setState() called after dispose(): _MyState#1a2b3 (lifecycle state: defunct, not mounted) (Flutter / Dart)setState() called a…IllegalStateException — java.lang.IllegalStateException (Java)IllegalStateExcepti…Can not perform this action after onSaveInstanceState — IllegalStateException: Can not perform this action after onSaveInstanceState (fragment transaction) (Android)Can not perform thi…A Ticker was active when the State was disposed — Flutter: _HomeState#abc(ticker active) was disposed with an active Ticker. State.dispose() implementations must call dispose() on all their AnimationControllers (Flutter / Dart)A Ticker was active…setState() or markNeedsBuild() called during build — Flutter: setState() or markNeedsBuild() called during build. This widget cannot be marked as needing to build because the framework is already in the process of building widgets (Flutter / Dart)setState() or markN…Fragment not attached to a context — IllegalStateException: Fragment x not attached to a context / not attached to an activity (Android)Fragment not attach…TransactionTooLargeException — android.os.TransactionTooLargeException: data parcel size x bytes (Android)TransactionTooLarge…dependOnInheritedWidgetOfExactType called before initState completed — Flutter: dependOnInheritedWidgetOfExactType<_InheritedTheme>() or dependOnInheritedElement() was called before _HomeState.initState() completed (Flutter / Dart)dependOnInheritedWi…JobCancellationException: StandaloneCoroutine was cancelled — kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelling}@a1b2c3 (Android)JobCancellationExce…Compose: Reading a state in the wrong scope / infinite recomposition — Compose Runtime: Detected infinite recomposition loop / state read during composition (Android)Compose: Reading a …CameraX: Camera use case binding failed — java.lang.IllegalArgumentException: Provided camera selector cannot be resolved / Use case binding failed (Android)CameraX: Camera use…WindowLeaked: Activity has leaked window — android.view.WindowLeaked: Activity com.example.MainActivity has leaked window DecorView@a1b2c3 that was originally added here (Android)WindowLeaked: Activ…409 — HTTP 409 Conflict (HTTP)409Too many re-renders — Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. (React)Too many re-rendersuncontrolled to controlled — Warning: A component is changing an uncontrolled input to be controlled (React)uncontrolled to con…IllegalArgumentException — java.lang.IllegalArgumentException (Java)IllegalArgumentExce…ArithmeticException — java.lang.ArithmeticException: / by zero (Java)ArithmeticExceptionNoSuchElementException — java.util.NoSuchElementException: No value present (Java)NoSuchElementExcept…adb unauthorized — adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set (Android)adb unauthorizedno devices/emulators found — adb: no devices/emulators found / error: device not found (Android)no devices/emulator…android:attr/lStar not found — AAPT: error: resource android:attr/lStar not found (Android)android:attr/lStar …BadTokenException — WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? (Android)BadTokenExceptionBoxConstraints forces an infinite width — Flutter: BoxConstraints forces an infinite width. These invalid constraints were provided to RenderStack's layout() function (TextField in a Row) (Flutter / Dart)BoxConstraints forc…Looking up a deactivated widget's ancestor is unsafe — Flutter: Looking up a deactivated widget's ancestor is unsafe. At this point the state of the widget's element tree is no longer stable (Flutter / Dart)Looking up a deacti…read-only property — TypeError: Cannot assign to read only property 'x' of object (JavaScript)read-only propertyModifying state during view update — SwiftUI: Modifying state during view update, this will cause undefined behavior (iOS)Modifying state dur…Error: Could not find the correct Provider — Flutter: Error: Could not find the correct Provider<CartModel> above this Consumer<CartModel> Widget (Flutter / Dart)Error: Could not fi…Android resource linking failed — AAPT: error: resource x (aka y) not found — Android resource linking failed (Android)Android resource li…ActivityNotFoundException — ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml? (Android)ActivityNotFoundExc…NullPointerException: Attempt to invoke virtual method on a null object reference — java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference (Android)NullPointerExceptio…setState during render — Warning: Cannot update a component (`Parent`) while rendering a different component (`Child`) (React)setState during ren…Actions must be plain objects — Error: Actions must be plain objects. Instead, the actual type was: 'function'. (React)Actions must be pla…non-serializable value — A non-serializable value was detected in the state / in an action, in the path (React)non-serializable va…MediaQuery.of() called with a context that does not contain a MediaQuery — Flutter: MediaQuery.of() called with a context that does not contain a MediaQuery (Flutter / Dart)MediaQuery.of() cal…Android license status unknown / licenses not accepted — flutter doctor: Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses (Flutter / Dart)Android license sta…Dependency requires compileSdk 34 or later — Android Gradle: Execution failed for task ':app:checkDebugAarMetadata'. Dependency requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs (Flutter / Dart)Dependency requires…NetworkOnMainThreadException — android.os.NetworkOnMainThreadException (Android)NetworkOnMainThread…ANR — ANR: Application Not Responding (Input dispatching timed out) (Android)ANRCompose Compiler requires a different Kotlin version — This version (1.5.3) of the Compose Compiler requires Kotlin version 1.9.10 but you appear to be using Kotlin version 1.9.0 (Android)Compose Compiler re…measured with an infinity maximum height — Jetpack Compose: Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed (Android)measured with an in…LazyColumn: Key was already used — java.lang.IllegalArgumentException: Key "42" was already used. If you are using LazyColumn/Row please make sure you provide a unique key for each item. (Android)LazyColumn: Key was…No ViewModelStoreOwner was provided via LocalViewModelStoreOwner — java.lang.IllegalStateException: No ViewModelStoreOwner was provided via LocalViewModelStoreOwner (Android)No ViewModelStoreOw…The emulator process for AVD was killed — Android Emulator: The emulator process for AVD x has terminated / was killed (hypervisor not available) (Android)The emulator proces…SecurityException: Permission Denial: starting Intent ... requires android.permission.CAMERA — java.lang.SecurityException: Permission Denial: opening provider / starting Intent requires android.permission.CAMERA (Android)SecurityException: …LifecycleOwner is attempting to register while current state is RESUMED — java.lang.IllegalStateException: LifecycleOwner MainActivity is attempting to register while current state is RESUMED. LifecycleOwners must call register before they are STARTED. (Android)LifecycleOwner is a…TCP ZeroWindow / TCP Window Full — Networking: Wireshark: TCP ZeroWindow, TCP Window Full — the receiver can't keep up and tells the sender to stop (Networking)TCP ZeroWindow / TC…Many sockets in CLOSE_WAIT — Networking: Thousands of sockets in CLOSE_WAIT — the application is not closing its side of the connection (Networking)Many sockets in CLO…UninitializedPropertyAccessException: lateinit property has not been initialized — kotlin.UninitializedPropertyAccessException: lateinit property adapter has not been initialized (Android)UninitializedProper…

Directly related (12)

setState() called after dispose()Flutter / Dart

Flutter: setState() called after dispose(): _MyState#1a2b3 (lifecycle state: defunct, not mounted)

An async callback (network, timer, stream) finished after the widget was removed and then called setState.

IllegalStateExceptionJava

java.lang.IllegalStateException

A method was called when the object wasn’t in the right state for it.

Can not perform this action after onSaveInstanceStateAndroid

IllegalStateException: Can not perform this action after onSaveInstanceState (fragment transaction)

A FragmentTransaction (or DialogFragment.show/navigation) ran after the Activity saved its state, typically from an async callbac…

A Ticker was active when the State was disposedFlutter / Dart

Flutter: _HomeState#abc(ticker active) was disposed with an active Ticker. State.dispose() implementations must call dispose() on all their AnimationControllers

An `AnimationController` was still running when its `State` was disposed, because `dispose()` did not release it.

setState() or markNeedsBuild() called during buildFlutter / Dart

Flutter: setState() or markNeedsBuild() called during build. This widget cannot be marked as needing to build because the framework is already in the process of building widgets

State was changed while Flutter was building widgets, for example calling `setState` or a notifier from inside `build`.

Fragment not attached to a contextAndroid

IllegalStateException: Fragment x not attached to a context / not attached to an activity

Code called requireContext()/requireActivity()/getString() after the Fragment was detached — usually in an async callback.

TransactionTooLargeExceptionAndroid

android.os.TransactionTooLargeException: data parcel size x bytes

Too much data was put into a Bundle/Intent/saved state, exceeding the ~1 MB Binder transaction buffer.

dependOnInheritedWidgetOfExactType called before initState completedFlutter / Dart

Flutter: dependOnInheritedWidgetOfExactType<_InheritedTheme>() or dependOnInheritedElement() was called before _HomeState.initState() completed

`Theme.of(context)`, `MediaQuery.of(context)` or `Provider.of(context)` was used in `initState`, where inherited widgets are not…

JobCancellationException: StandaloneCoroutine was cancelledAndroid

kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelling}@a1b2c3

A coroutine was cancelled, usually because its scope ended.

Compose: Reading a state in the wrong scope / infinite recompositionAndroid

Compose Runtime: Detected infinite recomposition loop / state read during composition

A Compose state is written during composition, so the UI keeps recomposing.

CameraX: Camera use case binding failedAndroid

java.lang.IllegalArgumentException: Provided camera selector cannot be resolved / Use case binding failed

CameraX couldn't bind a use case to the requested camera.

WindowLeaked: Activity has leaked windowAndroid

android.view.WindowLeaked: Activity com.example.MainActivity has leaked window DecorView@a1b2c3 that was originally added here

A dialog was still showing when its Activity was destroyed.

Two steps away (36)

409HTTP

HTTP 409 Conflict

The request conflicts with the current state of the resource — e.g. a duplicate or an edit based on an outdated version.

Too many re-rendersReact

Error: Too many re-renders. React limits the number of renders to prevent an infinite loop.

A state update runs during render, which triggers another render, which updates state again — forever.

uncontrolled to controlledReact

Warning: A component is changing an uncontrolled input to be controlled

An input’s `value` started as `undefined` (uncontrolled) and later became a defined value (controlled), or vice versa.

IllegalArgumentExceptionJava

java.lang.IllegalArgumentException

A method rejected an argument value as invalid.

ArithmeticExceptionJava

java.lang.ArithmeticException: / by zero

Integer division or modulo by zero.

NoSuchElementExceptionJava

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.

adb unauthorizedAndroid

adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set

The phone hasn’t accepted your computer’s RSA key for USB debugging yet.

no devices/emulators foundAndroid

adb: no devices/emulators found / error: device not found

adb can’t see any connected device or running emulator.

android:attr/lStar not foundAndroid

AAPT: error: resource android:attr/lStar not found

A dependency (androidx.core 1.7+) uses an attribute from Android 12 (API 31), but your module compiles against an older compileSd…

BadTokenExceptionAndroid

WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?

A dialog or popup was shown with a context whose Activity is finishing/destroyed, or with the Application context.

BoxConstraints forces an infinite widthFlutter / Dart

Flutter: BoxConstraints forces an infinite width. These invalid constraints were provided to RenderStack's layout() function (TextField in a Row)

A widget that needs a finite width, like a `TextField` or `Container` with no size, was placed where the parent offers unlimited…

Looking up a deactivated widget's ancestor is unsafeFlutter / Dart

Flutter: Looking up a deactivated widget's ancestor is unsafe. At this point the state of the widget's element tree is no longer stable

You used a `BuildContext` after its widget was removed from the tree — typically after an `await` when the user already navigated…

read-only propertyJavaScript

TypeError: Cannot assign to read only property 'x' of object

Code tried to modify a frozen object, a getter-only property, or immutable state.

Modifying state during view updateiOS

SwiftUI: Modifying state during view update, this will cause undefined behavior

A @State/@Published value was changed while SwiftUI was computing a view’s body.

Error: Could not find the correct ProviderFlutter / Dart

Flutter: Error: Could not find the correct Provider<CartModel> above this Consumer<CartModel> Widget

A widget asked Provider for an object that is not above it in the widget tree.

Android resource linking failedAndroid

AAPT: error: resource x (aka y) not found — Android resource linking failed

A layout, manifest or style references a resource (drawable, string, style, attribute) that doesn’t exist in the module or its de…

ActivityNotFoundExceptionAndroid

ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml?

An Intent targets an Activity that isn’t declared in the manifest, or an implicit intent has no app to handle it.

NullPointerException: Attempt to invoke virtual method on a null object referenceAndroid

java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference

Code called a method on a view or object that was null, most often a findViewById that returned null.

setState during renderReact

Warning: Cannot update a component (`Parent`) while rendering a different component (`Child`)

A child component updated a parent’s state during its render instead of in an effect or event handler.

Actions must be plain objectsReact

Error: Actions must be plain objects. Instead, the actual type was: 'function'.

A function (thunk) was dispatched but the thunk middleware isn’t configured.

non-serializable valueReact

A non-serializable value was detected in the state / in an action, in the path

Redux Toolkit’s middleware found a Date, Promise, class instance or function in state or an action.

MediaQuery.of() called with a context that does not contain a MediaQueryFlutter / Dart

Flutter: MediaQuery.of() called with a context that does not contain a MediaQuery

Code asked for screen size or theme data using a context that has no MediaQuery ancestor, usually above or outside `MaterialApp`.

Android license status unknown / licenses not acceptedFlutter / Dart

flutter doctor: Android license status unknown. Run `flutter doctor --android-licenses` to accept the SDK licenses

The Android SDK licenses have not been accepted, so builds cannot download or use SDK components.

Dependency requires compileSdk 34 or laterFlutter / Dart

Android Gradle: Execution failed for task ':app:checkDebugAarMetadata'. Dependency requires libraries and applications that depend on it to compile against version 34 or later of the Android APIs

A dependency was built against a newer Android API than your project's `compileSdk`.

NetworkOnMainThreadExceptionAndroid

android.os.NetworkOnMainThreadException

The app made a network call on the main (UI) thread, which Android forbids.

ANRAndroid

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…

Compose Compiler requires a different Kotlin versionAndroid

This version (1.5.3) of the Compose Compiler requires Kotlin version 1.9.10 but you appear to be using Kotlin version 1.9.0

The Compose compiler plugin is tied to one exact Kotlin release and yours differs.

measured with an infinity maximum heightAndroid

Jetpack Compose: Vertically scrollable component was measured with an infinity maximum height constraints, which is disallowed

A LazyColumn (or verticalScroll) is placed inside another vertically scrolling container, so it gets infinite height.

LazyColumn: Key was already usedAndroid

java.lang.IllegalArgumentException: Key "42" was already used. If you are using LazyColumn/Row please make sure you provide a unique key for each item.

Two items in a lazy list share the same key.

No ViewModelStoreOwner was provided via LocalViewModelStoreOwnerAndroid

java.lang.IllegalStateException: No ViewModelStoreOwner was provided via LocalViewModelStoreOwner

`viewModel()` was called from a composable that has no ViewModel store, such as a Preview or ComposeView without an owner.

The emulator process for AVD was killedAndroid

Android Emulator: The emulator process for AVD x has terminated / was killed (hypervisor not available)

The Android Emulator crashed or couldn’t start — usually missing hardware acceleration, low disk/RAM, or GPU driver problems.

SecurityException: Permission Denial: starting Intent ... requires android.permission.CAMERAAndroid

java.lang.SecurityException: Permission Denial: opening provider / starting Intent requires android.permission.CAMERA

Camera access was requested without the CAMERA permission granted.

LifecycleOwner is attempting to register while current state is RESUMEDAndroid

java.lang.IllegalStateException: LifecycleOwner MainActivity is attempting to register while current state is RESUMED. LifecycleOwners must call register before they are STARTED.

An Activity Result launcher was registered after the Activity started.

TCP ZeroWindow / TCP Window FullNetworking

Networking: Wireshark: TCP ZeroWindow, TCP Window Full — the receiver can't keep up and tells the sender to stop

The receiving application isn't reading data fast enough, so its TCP buffer filled and the sender must pause.

Many sockets in CLOSE_WAITNetworking

Networking: Thousands of sockets in CLOSE_WAIT — the application is not closing its side of the connection

The other end closed the connection, but your program never called close(), so the socket stays open.

UninitializedPropertyAccessException: lateinit property has not been initializedAndroid

kotlin.UninitializedPropertyAccessException: lateinit property adapter has not been initialized

A `lateinit var` was read before anything assigned it.