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.

io.objectbox.exception.DbMaxReadersExceededException

See original GitHub issue
java.lang.RuntimeException: Unable to create application com.XXX.YYYn: io.objectbox.exception.DbMaxReadersExceededException: Could not begin transaction (maximum of read transactions reached) (error code -30790)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5710)
       at android.app.ActivityThread.-wrap2(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1685)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:185)
       at android.app.ActivityThread.main(ActivityThread.java:6493)
       at java.lang.reflect.Method.invoke(Native Method)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:916)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:806)
    Caused by: io.objectbox.exception.DbMaxReadersExceededException: Could not begin transaction (maximum of read transactions reached) (error code -30790)
       at io.objectbox.BoxStore.nativeCreate(Native Method)
       at io.objectbox.BoxStore.<init>(Unknown Source)
       at io.objectbox.O00000Oo.O000000o(Unknown Source)
       at com.sports.tfs.MyApplication.onCreate(Unknown Source)
       at com.tencent.tinker.loader.app.TinkerApplication.onCreate(Unknown Source)
       at com.XXX.YYYn.onCreate(Unknown Source)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1025)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5707)
       at android.app.ActivityThread.-wrap2(ActivityThread.java) 
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1685) 
       at android.os.Handler.dispatchMessage(Handler.java:102) 
       at android.os.Looper.loop(Looper.java:185) 
       at android.app.ActivityThread.main(ActivityThread.java:6493) 
       at java.lang.reflect.Method.invoke(Native Method) 
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:916) 
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:806)

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
linhai326commented, Apr 30, 2018

Just got chance to try the latest 1.5.0 release and it seems it still has this issue: "

04-26 18:02:28.396 E/AndroidRuntime(21288): FATAL EXCEPTION: RxIoScheduler-124

04-26 18:02:28.396 E/AndroidRuntime(21288): java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling.

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:57)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at java.util.concurrent.FutureTask.run(FutureTask.java:237)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:269)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at java.lang.Thread.run(Thread.java:818)

04-26 18:02:28.396 E/AndroidRuntime(21288): Caused by: rx.exceptions.OnErrorNotImplementedException: Could not begin read transaction (maximum of read transactions reached)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at rx.functions.Actions$NotImplemented.call(Actions.java:1576)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at rx.Single$11.onError(Single.java:1794)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at rx.Single$13$1$1.onError(Single.java:2042)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at rx.Single.subscribe(Single.java:1985)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at rx.Single$13$1.call(Single.java:2051)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at rx.internal.schedulers.CachedThreadScheduler$EventLoopWorker$1.call(CachedThreadScheduler.java:230)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	... 6 more

04-26 18:02:28.396 E/AndroidRuntime(21288): Caused by: io.objectbox.exception.DbMaxReadersExceededException: Could not begin read transaction (maximum of read transactions reached) (error code -30790)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at io.objectbox.BoxStore.nativeBeginReadTx(Native Method)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at io.objectbox.BoxStore.beginReadTx(BoxStore.java:360)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at io.objectbox.BoxStore.callInReadTx(BoxStore.java:682)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at io.objectbox.BoxStore.callInReadTxWithRetry$166edcc6(BoxStore.java:630)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at io.objectbox.query.Query.callInReadTx(Query.java:304)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	at io.objectbox.query.Query.findFirst(Query.java:174)

...
04-26 18:02:28.396 E/AndroidRuntime(21288): 	at rx.Single.subscribe(Single.java:1979)

04-26 18:02:28.396 E/AndroidRuntime(21288): 	... 9 more
0reactions
linhai326commented, Apr 30, 2018

ok, thanks. Then we will just increase this number to 2xx and see how it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DbMaxReadersExceededExcepti...
Thrown when the maximum of readers (read transactions) was exceeded. Verify that you run a reasonable amount of threads only.
Read more >
objectbox DbMaxReadersExceededException - Stack Overflow
The first thing I'd do is to verify your threading logic. We've seen cases where apps spawned threads without limits and thus breaking...
Read more >
Objectbox Dbmaxreadersexceededexception - ADocLib
A reader is short for a thread involved in a read transaction.If you hit io.objectbox.exception.DbMaxReadersExceededException you should first worry about. It ...
Read more >
io.objectbox.BoxStoreBuilder.queryAttempts java code examples ...
This can resolve situations in which resources are getting sparse (e.g. io.objectbox.exception.DbMaxReadersExceededException or other variations of ...
Read more >
Viewing online file analysis results for 'Droidbooru.apk'
Sync is not available in the loaded ObjectBox runtime library. ... io/objectbox/exception/DbMaxReadersExceededException.
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