Guest User

Untitled

a guest
Sep 3rd, 2021
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1. Caused by java.lang.RuntimeException: Failed to gain exclusive lock to the Cloud Firestore client's offline persistence. This generally means you are using Cloud Firestore from multiple processes in your app. Keep in mind that multi-process Android apps execute the code in your Application class in all processes, so you may need to avoid initializing Cloud Firestore in your Application class. If you are intentionally using Cloud Firestore from multiple processes, you can only enable offline persistence (that is, call setPersistenceEnabled(true)) in one of them.
  2. at com.google.firebase.firestore.local.SQLitePersistence.start(SQLitePersistence.java:137)
  3. at com.google.firebase.firestore.core.ComponentProvider.initialize(ComponentProvider.java:132)
  4. at com.google.firebase.firestore.core.FirestoreClient.initialize(FirestoreClient.java:255)
  5. at com.google.firebase.firestore.core.FirestoreClient.lambda$new$0(FirestoreClient.java:103)
  6. at com.google.firebase.firestore.core.FirestoreClient.lambda$new$0$FirestoreClient(FirestoreClient.java:4)
  7. at com.google.firebase.firestore.core.-$$Lambda$FirestoreClient$Eq-cAcb1C1mM4tyiJsLJXZ13tyU.run(-.java:4)
  8. at com.google.firebase.firestore.util.AsyncQueue.lambda$enqueue$2(AsyncQueue.java:436)
  9. at com.google.firebase.firestore.util.-$$Lambda$AsyncQueue$Y9GO7zO2DX6MzQJ5TbKtKW_NzO0.call(-.java:1)
  10. at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor.lambda$executeAndReportResult$1(AsyncQueue.java:322)
  11. at com.google.firebase.firestore.util.-$$Lambda$AsyncQueue$SynchronizedShutdownAwareExecutor$pKSAgg-ozJ8RbUveSl-44aUfFQw.run(-.java:1)
  12. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
  13. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  14. at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
  15. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
  16. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
  17. at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$DelayedStartFactory.run(AsyncQueue.java:229)
  18. at java.lang.Thread.run(Thread.java:923)
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. Caused by android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5 SQLITE_BUSY[5]): , while compiling: PRAGMA journal_mode
  28. at android.database.sqlite.SQLiteConnection.nativePrepareStatement(SQLiteConnection.java)
  29. at android.database.sqlite.SQLiteConnection.acquirePreparedStatement(SQLiteConnection.java:1463)
  30. at android.database.sqlite.SQLiteConnection.executeForString(SQLiteConnection.java:1050)
  31. at android.database.sqlite.SQLiteConnection.setJournalMode(SQLiteConnection.java:606)
  32. at android.database.sqlite.SQLiteConnection.setWalModeFromConfiguration(SQLiteConnection.java:542)
  33. at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:378)
  34. at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:226)
  35. at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:737)
  36. at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:284)
  37. at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:251)
  38. at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:1392)
  39. at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:1337)
  40. at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:980)
  41. at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:444)
  42. at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:387)
  43. at com.google.firebase.firestore.local.SQLitePersistence.start(SQLitePersistence.java:134)
  44. at com.google.firebase.firestore.core.ComponentProvider.initialize(ComponentProvider.java:132)
  45. at com.google.firebase.firestore.core.FirestoreClient.initialize(FirestoreClient.java:255)
  46. at com.google.firebase.firestore.core.FirestoreClient.lambda$new$0(FirestoreClient.java:103)
  47. at com.google.firebase.firestore.core.FirestoreClient.lambda$new$0$FirestoreClient(FirestoreClient.java:4)
  48. at com.google.firebase.firestore.core.-$$Lambda$FirestoreClient$Eq-cAcb1C1mM4tyiJsLJXZ13tyU.run(-.java:4)
  49. at com.google.firebase.firestore.util.AsyncQueue.lambda$enqueue$2(AsyncQueue.java:436)
  50. at com.google.firebase.firestore.util.-$$Lambda$AsyncQueue$Y9GO7zO2DX6MzQJ5TbKtKW_NzO0.call(-.java:1)
  51. at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor.lambda$executeAndReportResult$1(AsyncQueue.java:322)
  52. at com.google.firebase.firestore.util.-$$Lambda$AsyncQueue$SynchronizedShutdownAwareExecutor$pKSAgg-ozJ8RbUveSl-44aUfFQw.run(-.java:1)
  53. at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
  54. at java.util.concurrent.FutureTask.run(FutureTask.java:266)
  55. at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
  56. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
  57. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
  58. at com.google.firebase.firestore.util.AsyncQueue$SynchronizedShutdownAwareExecutor$DelayedStartFactory.run(AsyncQueue.java:229)
  59. at java.lang.Thread.run(Thread.java:923)
Advertisement
Add Comment
Please, Sign In to add comment