Closed kashi1982 closed 3 years ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Hi @kashi1982 The error logs seem caused by Android API. You can also check this entry in Stackoverflow about a similar issue. Also, a good option is to check the Firebase Android quickstart, there is an example on how to implement the service. This project has been already tested and you can use it to test and compare your own implementation.
Feel free to leave a comment If the issue persists using our native SDK .
[READ] Step 1: Are you in the right place?
Issues filed here should be about bugs in the code in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
When using Realtime Database on Android, on first initialization of Firebase, we get the crash. Caused by android.database.sqlite.SQLiteException: cannot rollback - no transaction is active (code 1) at android.database.sqlite.SQLiteConnection.nativeExecute(SQLiteConnection.java) at android.database.sqlite.SQLiteConnection.execute(SQLiteConnection.java:562) at android.database.sqlite.SQLiteSession.endTransactionUnchecked(SQLiteSession.java:439) at android.database.sqlite.SQLiteSession.endTransaction(SQLiteSession.java:401) at android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:555) at com.google.firebase.database.android.SqlPersistenceStorageEngine.endTransaction(SqlPersistenceStorageEngine.java:810) at com.google.firebase.database.core.persistence.DefaultPersistenceManager.runInTransaction(DefaultPersistenceManager.java:246) at com.google.firebase.database.core.SyncTree.setQueryInactive(SyncTree.java:472) at com.google.firebase.database.core.Repo$8$1.onComplete(Repo.java:535) at com.google.android.gms.tasks.zzj.run(zzj.java:4) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764)
Steps to reproduce:
WHen our mobile app is using the RealtimeDatabase for the first time, this crash errors on certain devices lik Shark, LG Stylo 4
Relevant Code: