Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 [BUG]Crash when I enter blocked numbers #131

Open
anenasa opened this issue Jul 12, 2024 · 3 comments
Open

🐞 [BUG]Crash when I enter blocked numbers #131

anenasa opened this issue Jul 12, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@anenasa
Copy link
Contributor

anenasa commented Jul 12, 2024

Describe the bug
QUIK crashes when I enter blocked numbers. Here is logcat:

io.reactivex.exceptions.OnErrorNotImplementedException: The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | io.realm.exceptions.RealmException: Running transactions on the UI thread has been disabled. It can be enabled by setting 'RealmConfiguration.Builder.allowWritesOnUiThread(true)'.
	at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:704)
	at io.reactivex.internal.functions.Functions$OnErrorMissingConsumer.accept(Functions.java:701)
	at io.reactivex.internal.observers.LambdaObserver.onError(LambdaObserver.java:77)
	at io.reactivex.internal.observers.LambdaObserver.onNext(LambdaObserver.java:67)
	at com.uber.rxdogtag.DogTagObserver.lambda$onNext$3$com-uber-rxdogtag-DogTagObserver(DogTagObserver.java:56)
	at com.uber.rxdogtag.DogTagObserver$$ExternalSyntheticLambda5.run(Unknown Source:4)
	at com.uber.rxdogtag.RxDogTag.guardedDelegateCall(RxDogTag.java:221)
	at com.uber.rxdogtag.DogTagObserver.onNext(DogTagObserver.java:56)
	at com.uber.autodispose.HalfSerializer.onNext(HalfSerializer.java:121)
	at com.uber.autodispose.AutoDisposingObserverImpl.onNext(AutoDisposingObserverImpl.java:85)
	at com.uber.rxdogtag.DogTagObserver.lambda$onNext$3$com-uber-rxdogtag-DogTagObserver(DogTagObserver.java:56)
	at com.uber.rxdogtag.DogTagObserver$$ExternalSyntheticLambda5.run(Unknown Source:4)
	at com.uber.rxdogtag.RxDogTag.guardedDelegateCall(RxDogTag.java:221)
	at com.uber.rxdogtag.DogTagObserver.onNext(DogTagObserver.java:56)
	at io.reactivex.internal.operators.observable.ObservableSubscribeOn$SubscribeOnObserver.onNext(ObservableSubscribeOn.java:58)
	at io.reactivex.subjects.PublishSubject$PublishDisposable.onNext(PublishSubject.java:308)
	at io.reactivex.subjects.PublishSubject.onNext(PublishSubject.java:228)
	at dev.octoshrimpy.quik.feature.blocking.numbers.BlockedNumbersController.showAddDialog$lambda$0(BlockedNumbersController.kt:84)
	at dev.octoshrimpy.quik.feature.blocking.numbers.BlockedNumbersController.$r8$lambda$O7oMuhkDdxQGUzVm3ggIcStgurU(Unknown Source:0)
	at dev.octoshrimpy.quik.feature.blocking.numbers.BlockedNumbersController$$ExternalSyntheticLambda0.onClick(Unknown Source:4)
	at androidx.appcompat.app.AlertController$ButtonHandler.handleMessage(AlertController.java:167)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8594)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:878)
Caused by: io.realm.exceptions.RealmException: Running transactions on the UI thread has been disabled. It can be enabled by setting 'RealmConfiguration.Builder.allowWritesOnUiThread(true)'.
	at dev.octoshrimpy.quik.feature.blocking.numbers.BlockedNumbersPresenter.bindIntents(BlockedNumbersPresenter.kt:59)
	at [[ ↑↑ Inferred subscribe point ↑↑ ]].(:0)
	at [[ Originating callback: onNext ]].(:0)
	at [[ ↓↓ Original trace ↓↓ ]].(:0)
	at io.realm.BaseRealm.checkAllowWritesOnUiThread(BaseRealm.java:553)
	at io.realm.Realm.executeTransaction(Realm.java:1629)
	at dev.octoshrimpy.quik.repository.BlockingRepositoryImpl.blockNumber(BlockingRepositoryImpl.kt:44)
	at dev.octoshrimpy.quik.feature.blocking.numbers.BlockedNumbersPresenter$bindIntents$4.invoke(BlockedNumbersPresenter.kt:59)
	at dev.octoshrimpy.quik.feature.blocking.numbers.BlockedNumbersPresenter$bindIntents$4.invoke(BlockedNumbersPresenter.kt:59)
	at dev.octoshrimpy.quik.feature.blocking.numbers.BlockedNumbersPresenter.bindIntents$lambda$3(BlockedNumbersPresenter.kt:59)

To Reproduce
Steps to reproduce the behavior:

  1. Open navigation drawer
  2. Click on 'Blocking'
  3. Click on 'Blocked numbers'
  4. Click on '+'
  5. Enter phone number
  6. Click on 'BLOCK'

Expected behavior
Blocked number added

Smartphone (please complete the following information):

  • Device: POCO X4 Pro
  • OS: Android 14, crdroid
  • App Version: 4.0.7 (also tested latest commit on master branch)

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@anenasa anenasa added the bug Something isn't working label Jul 12, 2024
@BobSquarePants
Copy link

I got the same.
quik version: 4.0.7

tried phone number format: +123456789 00123456789 no matter the format it always crash

@shmu1i
Copy link

shmu1i commented Sep 10, 2024

Same here multiple devices (all Android 11) and all different number formats

@popogomo
Copy link

Was about to open a new issue and noticed this thread. I can confirm I am also experiencing this issue on GrapheneOS, the app was downloaded from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Ready
Development

No branches or pull requests

4 participants