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.

Crash on Copy as RDNS+ URL

See original GitHub issue

Crash when I click on Copy as “RDNS + URL”

Crash logs

FATAL EXCEPTION: main
Process: com.celzero.bravedns, PID: 17545
java.lang.IllegalStateException: Cannot access database on the main thread since it may potentially lock the UI for a long period of time.
	at androidx.room.RoomDatabase.assertNotMainThread(RoomDatabase.java:469)
	at androidx.room.RoomDatabase.query(RoomDatabase.java:525)
	at androidx.room.util.DBUtil.query(DBUtil.java:86)
	at com.celzero.bravedns.database.RethinkDnsEndpointDao_Impl.getRethinkPlusEndpoint(RethinkDnsEndpointDao_Impl.java:796)
	at com.celzero.bravedns.database.RethinkDnsEndpointDao$DefaultImpls.getRethinkPlusEndpoint$default(RethinkDnsEndpointDao.kt:81)
	at com.celzero.bravedns.database.RethinkDnsEndpointRepository.getRethinkPlusEndpoint(RethinkDnsEndpointRepository.kt:81)
	at com.celzero.bravedns.data.AppConfig.getRethinkPlusEndpoint(AppConfig.kt:674)
	at com.celzero.bravedns.ui.LocalBlocklistsBottomSheet$initializeClickListeners$3$1$1.invokeSuspend(LocalBlocklistsBottomSheet.kt:354)
	at com.celzero.bravedns.ui.LocalBlocklistsBottomSheet$initializeClickListeners$3$1$1.invoke(Unknown Source:8)
	at com.celzero.bravedns.ui.LocalBlocklistsBottomSheet$initializeClickListeners$3$1$1.invoke(Unknown Source:2)
	at com.celzero.bravedns.ui.LocalBlocklistsBottomSheet$go$1.invokeSuspend(LocalBlocklistsBottomSheet.kt:525)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.EventLoop.processUnconfinedEvent(EventLoop.common.kt:69)
	at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:204)
	at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:30)
	at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable$default(Cancellable.kt:25)
	at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:110)
	at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
	at kotlinx.coroutines.BuildersKt.launch(Unknown Source:1)
	at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47)
	at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source:1)
	at com.celzero.bravedns.ui.LocalBlocklistsBottomSheet.ui(LocalBlocklistsBottomSheet.kt:516)
	at com.celzero.bravedns.ui.LocalBlocklistsBottomSheet.initializeClickListeners$lambda-5(LocalBlocklistsBottomSheet.kt:351)
	at com.celzero.bravedns.ui.LocalBlocklistsBottomSheet.$r8$lambda$q7d8PlAIaZRJwzCNSSgEFyLP2YE(Unknown Source:0)
	at com.celzero.bravedns.ui.LocalBlocklistsBottomSheet$$ExternalSyntheticLambda2.onClick(Unknown Source:2)
	at android.view.View.performClick(View.java:6294)
	at android.view.View$PerformClick.run(View.java:24774)
	at android.os.Handler.handleCallback(Handler.java:790)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:164)
	at android.app.ActivityThread.main(ActivityThread.java:6518)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

followed by another crash when I just try to open the app from device launcher

FATAL EXCEPTION: main
Process: com.celzero.bravedns, PID: 17441
java.lang.RuntimeException: Unable to stop service com.celzero.bravedns.service.BraveVPNService@7566e1a: kotlin.UninitializedPropertyAccessException: lateinit property orbotStartStatusObserver has not been initialized
	at android.app.ActivityThread.handleStopService(ActivityThread.java:3525)
	at android.app.ActivityThread.-wrap26(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1700)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loop(Looper.java:164)
	at android.app.ActivityThread.main(ActivityThread.java:6518)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: kotlin.UninitializedPropertyAccessException: lateinit property orbotStartStatusObserver has not been initialized
	at com.celzero.bravedns.service.BraveVPNService.unobserveOrbotStartStatus(BraveVPNService.kt:1148)
	at com.celzero.bravedns.service.BraveVPNService.onDestroy(BraveVPNService.kt:1552)
	at android.app.ActivityThread.handleStopService(ActivityThread.java:3507)
	... 8 more

Device details App version: 053k (22) Android: 8.1.0 Model: Lenovo TB-8704X

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
ignoramouscommented, Oct 21, 2022

Thanks for your patience and bug reports (esp, complete with logcat output). Appreciate it.

Fixes in pipeline for the next minor release, v053l.

1reaction
shuvashish76commented, Oct 20, 2022

What did the DNS logs screen look like in v053k? Did it not show any blocked queries (you can filter just the blocked queries out to verify this).

Yes, no blocked quires in DNS logs. But now re-upgraded v053k & everything working as expected🤷🏿‍♂️. I’ll create separate issue if I face similar issue in future👍🏿

Read more comments on GitHub >

github_iconTop Results From Across the Web

KB3145126 Causing DNS.exe Crashes? - TechNet - Microsoft
Unfortunately the DNS service failed to start after reboots and we suspect it's this optional hotfix. It was late and we weren't able...
Read more >
Recover from DNS NameServer crash - Server Fault
I have quite a few domains registered at GoDaddy, and I'm using their nameservers. Each domain uses 2 nameservers, such as NS10.DOMAINCONTROL.
Read more >
DNS client(dnscache) keeps crashing cause system to crash ...
It seems every time something goes wrong the system can catch a dnscache crash. The "svchost.exe_Dnscache" goes wrong, the error model is ...
Read more >
email crash after domain transfer - dns - Stack Overflow
I'm helping a friend to migrate a website to his server, however, after the domain transfer the client's emails stopped working. I believe...
Read more >
Primary DNS Server Goes Offline and our Apps Crash - Reddit
We are finding out that if the primary (i.e. first nameserver in /etc/resolv.conf) goes offline for any reason then our app will no...
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