question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fatal error on first launch of latest master

See original GitHub issue

Home Assistant Android version: Latest master: 5e1d275 Android version: 9.0 Phone model: Pixel 3 emulator Home Assistant version: 0.114 Last working Home Assistant release (if known):

Description of problem:

Traceback (if applicable):

E/AndroidRuntime: FATAL EXCEPTION: DefaultDispatcher-worker-3
    Process: io.homeassistant.companion.android.debug, PID: 11954
    android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: sensors.unique_id (code 1555 SQLITE_CONSTRAINT_PRIMARYKEY)
        at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
        at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:796)
        at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:788)
        at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:86)
        at androidx.sqlite.db.framework.FrameworkSQLiteStatement.executeInsert(FrameworkSQLiteStatement.java:51)
        at androidx.room.EntityInsertionAdapter.insert(EntityInsertionAdapter.java:64)
        at io.homeassistant.companion.android.database.sensor.SensorDao_Impl.add(SensorDao_Impl.java:89)
        at io.homeassistant.companion.android.sensors.SensorManager$DefaultImpls.getEnabledSensorData(SensorManager.kt:64)
        at io.homeassistant.companion.android.sensors.AudioSensorManager.getEnabledSensorData(AudioSensorManager.kt:9)
        at io.homeassistant.companion.android.sensors.SensorReceiver.updateSensors(SensorReceiver.kt:91)
        at io.homeassistant.companion.android.sensors.SensorReceiver$onReceive$1.invokeSuspend(SensorReceiver.kt:66)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:56)
        at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
        at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)

Screenshot of problem:

Additional information:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dshokouhicommented, Aug 28, 2020

Yup all my devices updated to latest release and I did not see anymore of this crash. I think we are good to close this one?

0reactions
dshokouhicommented, Aug 29, 2020

Lets close this for now, if we see it again we can always re-open or create a new one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fatal Error on launch - Halo: The Master Chief Collection
I just tried launch MCC on my PC for the first time in months and got the same “Fatal Error” right after the...
Read more >
How to Fix Halo - Master Chief Collection Fatal Error [Solution]
How to Fix Halo - Master Chief Collection Fatal Error [Solution]Issues addressed in this tutorial:halo fatal error windows 10halo fatal ...
Read more >
Halo MCC Fatal Error on launch. (PC) - Reddit
Every since today's update I am getting fatal error everytime I launch Halo MCC. It will load up until I have to sign...
Read more >
Halo - Fatal Error Fix (Windows 10) - Steam Community
Halo: The Master Chief Collection. So i had trouble with many EU4 fatal error, low level fatal error, loadlibrary failed with error 1455,...
Read more >
How to troubleshoot the Halo 4 UE4 fatal error crash - Auslogics
1. Update your system without further delay 2. Download and install the latest supported Visual C++ 3. Switch to Windowed display mode to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found