Error map

IllegalStateException: Cannot perform this operation because the connection pool has been closed java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase

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.

IllegalStateException: Cannot perform this operation because the connection pool has been closed — java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase (Android)IllegalStat…setState() called after dispose() — Flutter: setState() called after dispose(): _MyState#1a2b3 (lifecycle state: defunct, not mounted) (Flutter / Dart)setState() called a…BadTokenException — WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running? (Android)BadTokenExceptionCan not perform this action after onSaveInstanceState — IllegalStateException: Can not perform this action after onSaveInstanceState (fragment transaction) (Android)Can not perform thi…Fragment not attached to a context — IllegalStateException: Fragment x not attached to a context / not attached to an activity (Android)Fragment not attach…Room cannot verify the data integrity — Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number (Android)Room cannot verify …Cannot access database on the main thread — Room: Cannot access database on the main thread since it may potentially lock the UI for a long period of time (Android)Cannot access datab…dependOnInheritedWidgetOfExactType called before initState completed — Flutter: dependOnInheritedWidgetOfExactType<_InheritedTheme>() or dependOnInheritedElement() was called before _HomeState.initState() completed (Flutter / Dart)dependOnInheritedWi…SQLiteDatabaseLockedException: database is locked — android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5 SQLITE_BUSY) (Android)SQLiteDatabaseLocke…Room Flow/LiveData not emitting updates — (behavior) DAO Flow emits only once (Android)Room Flow/LiveData …IllegalStateException: A migration from 1 to 2 was required but not found — java.lang.IllegalStateException: A migration from 1 to 2 was required but not found. Please provide the necessary Migration path (Android)IllegalStateExcepti…Room: An entity must have at least 1 field annotated with @PrimaryKey — error: An entity must have at least 1 field annotated with @PrimaryKey (Android)Room: An entity mus…SQLiteConstraintException: UNIQUE constraint failed — android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: user.email (code 2067 SQLITE_CONSTRAINT_UNIQUE) (Android)SQLiteConstraintExc…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…android:attr/lStar not found — AAPT: error: resource android:attr/lStar not found (Android)android:attr/lStar …Android resource linking failed — AAPT: error: resource x (aka y) not found — Android resource linking failed (Android)Android resource li…CalledFromWrongThreadException — CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views (Android)CalledFromWrongThre…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…ActivityNotFoundException — ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml? (Android)ActivityNotFoundExc…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…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…RuntimeException: Cannot create an instance of class ViewModel — java.lang.RuntimeException: Cannot create an instance of class com.example.MainViewModel Caused by: java.lang.NoSuchMethodException: MainViewModel.<init> [] (Android)RuntimeException: C…1146 — MySQL ERROR 1146 (42S02): Table 'db.table' doesn't exist (MySQL)114642P01 — PostgreSQL: ERROR: relation "x" does not exist (PostgreSQL)42P011022 — MySQL ERROR 1022 (23000): Can't write; duplicate key in table (MySQL)1022NetworkOnMainThreadException — android.os.NetworkOnMainThreadException (Android)NetworkOnMainThread…ANR — ANR: Application Not Responding (Input dispatching timed out) (Android)ANRKSP: processor not found / unresolved reference to generated class — [ksp] Unresolved reference: AppDatabase_Impl (Android)KSP: processor not …BoxConstraints 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…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…Room: Cannot figure out how to save this field into database — error: Cannot figure out how to save this field into database. You can consider adding a type converter for it. (Android)Room: Cannot figure…Room: There is a problem with the query: no such column — error: There is a problem with the query: [SQLITE_ERROR] SQL error or missing database (no such column: userName) (Android)Room: There is a pr…CursorWindow: Window is full: requested allocation bytes — android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed (Android)CursorWindow: Windo…Flow collected in lifecycleScope keeps running in background — (behavior) Flow collection continues after the app is stopped (Android)Flow collected in l…Room: AutoMigration requires a spec for renamed/deleted columns — error: Schema 1 to 2 has a renamed/deleted column, an AutoMigration spec is required (Android)Room: AutoMigration…Class android.support.v4 not found after AndroidX — java.lang.NoClassDefFoundError: android/support/v4/app/Fragment (Android)Class android.suppo…CorruptionException: Unable to parse preferences proto — androidx.datastore.core.CorruptionException: Unable to parse preferences proto (Android)CorruptionException…App crashes after restore on a new phone — (behavior) crash on first launch after device transfer / Auto Backup (Android)App crashes after r…kapt: error type was incorrect / cannot find symbol — error: cannot find symbol class DaggerAppComponent / kaptDebugKotlin FAILED (Android)kapt: error type wa…SQLiteConstraintException: FOREIGN KEY constraint failed — android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787 SQLITE_CONSTRAINT_FOREIGNKEY) (Android)SQLiteConstraintExc…Core Data: constraint violation (NSConstraintConflict) — Error Domain=NSCocoaErrorDomain Code=133021 "Could not merge changes." NSConstraintConflict (iOS)Core Data: constrai…

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.

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.

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…

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.

Room cannot verify the data integrityAndroid

Room cannot verify the data integrity. Looks like you've changed schema but forgot to update the version number

The Room entity definitions changed, but the database version wasn’t increased or no migration was provided.

Cannot access database on the main threadAndroid

Room: Cannot access database on the main thread since it may potentially lock the UI for a long period of time

A Room DAO query ran on the main thread; Room forbids it by default.

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…

SQLiteDatabaseLockedException: database is lockedAndroid

android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5 SQLITE_BUSY)

Another connection holds a write lock on the SQLite database.

Room Flow/LiveData not emitting updatesAndroid

(behavior) DAO Flow emits only once

The observed query doesn't re-emit after table changes.

IllegalStateException: A migration from 1 to 2 was required but not foundAndroid

java.lang.IllegalStateException: A migration from 1 to 2 was required but not found. Please provide the necessary Migration path

The Room schema version increased but no migration describes how to upgrade existing data.

Room: An entity must have at least 1 field annotated with @PrimaryKeyAndroid

error: An entity must have at least 1 field annotated with @PrimaryKey

A Room @Entity has no primary key.

SQLiteConstraintException: UNIQUE constraint failedAndroid

android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: user.email (code 2067 SQLITE_CONSTRAINT_UNIQUE)

An insert or update violated a unique index or primary key.

Two steps away (32)

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.

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…

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…

CalledFromWrongThreadExceptionAndroid

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.

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.

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.

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.

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.

RuntimeException: Cannot create an instance of class ViewModelAndroid

java.lang.RuntimeException: Cannot create an instance of class com.example.MainViewModel Caused by: java.lang.NoSuchMethodException: MainViewModel.<init> []

The default ViewModel factory can only build a ViewModel with a no-argument (or Application) constructor.

1146MySQL

MySQL ERROR 1146 (42S02): Table 'db.table' doesn't exist

The query references a table that MySQL can’t find in that database.

42P01PostgreSQL

PostgreSQL: ERROR: relation "x" does not exist

The table/view isn’t found — missing migration, wrong schema, or a case-sensitive quoted name.

1022MySQL

MySQL ERROR 1022 (23000): Can't write; duplicate key in table

An ALTER/CREATE produced a duplicate key or constraint name — often a foreign key name that already exists in the database.

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…

KSP: processor not found / unresolved reference to generated classAndroid

[ksp] Unresolved reference: AppDatabase_Impl

KSP did not run the annotation processor, so the generated class does not exist.

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…

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.

Room: Cannot figure out how to save this field into databaseAndroid

error: Cannot figure out how to save this field into database. You can consider adding a type converter for it.

Room doesn't know how to store a custom type column.

Room: There is a problem with the query: no such columnAndroid

error: There is a problem with the query: [SQLITE_ERROR] SQL error or missing database (no such column: userName)

A @Query references a column that the entity doesn't have.

CursorWindow: Window is full: requested allocation bytesAndroid

android.database.CursorWindowAllocationException: Cursor window allocation of 2048 kb failed

A query returned rows too big for the 2 MB cursor window.

Flow collected in lifecycleScope keeps running in backgroundAndroid

(behavior) Flow collection continues after the app is stopped

Collecting a Flow with `lifecycleScope.launch` doesn't stop when the UI is hidden.

Room: AutoMigration requires a spec for renamed/deleted columnsAndroid

error: Schema 1 to 2 has a renamed/deleted column, an AutoMigration spec is required

Room can't infer a migration with renamed or deleted columns.

Class android.support.v4 not found after AndroidXAndroid

java.lang.NoClassDefFoundError: android/support/v4/app/Fragment

A library still uses old android.support classes that no longer exist in an AndroidX app.

CorruptionException: Unable to parse preferences protoAndroid

androidx.datastore.core.CorruptionException: Unable to parse preferences proto

The DataStore file on disk can't be read.

App crashes after restore on a new phoneAndroid

(behavior) crash on first launch after device transfer / Auto Backup

Restored app data is incompatible with the new device.

kapt: error type was incorrect / cannot find symbolAndroid

error: cannot find symbol class DaggerAppComponent / kaptDebugKotlin FAILED

Annotation processing with kapt failed, so generated classes such as Dagger or Room code are missing.

SQLiteConstraintException: FOREIGN KEY constraint failedAndroid

android.database.sqlite.SQLiteConstraintException: FOREIGN KEY constraint failed (code 787 SQLITE_CONSTRAINT_FOREIGNKEY)

A row references a parent that doesn't exist (or was deleted).

Core Data: constraint violation (NSConstraintConflict)iOS

Error Domain=NSCocoaErrorDomain Code=133021 "Could not merge changes." NSConstraintConflict

Two objects violate a uniqueness constraint.