DHD2280 / BCR-Manager

A simple Manager for BCR.
GNU General Public License v3.0
19 stars 3 forks source link

[BUG] Recurrent ConcurrentModificationException #4

Open akashsriramganapathy opened 7 months ago

akashsriramganapathy commented 7 months ago

Issue Description: Encountering a recurring java.util.ConcurrentModificationException error at irregular intervals in app version 1.2.0.

To Reproduce: The bug occurs intermittently with no specific steps to reproduce. However, it consistently appears after the app has been open for a prolonged period with occasional long intervals.

Expected Behavior: Describe the expected behavior when using the app for an extended period, including any relevant details.

Logs: Include relevant log entries capturing the java.util.ConcurrentModificationException error. Provide timestamps and any additional context from the logs that may help diagnose the issue.

java.util.ConcurrentModificationException
    at java.util.ArrayList.sort(ArrayList.java:1472)
    at it.dhd.bcrmanager.viewmodel.DataRepository.setupContactShortcuts(DataRepository.java:741)
    at it.dhd.bcrmanager.viewmodel.DataRepository.parseJson(DataRepository.java:621)
    at it.dhd.bcrmanager.viewmodel.DataRepository.lambda$fetchData$0(DataRepository.java:68)
    at it.dhd.bcrmanager.viewmodel.DataRepository.$r8$lambda$93UXNR-qGMBoj9N8nSSC4ESxOOM(Unknown Source:0)
    at it.dhd.bcrmanager.viewmodel.DataRepository$$ExternalSyntheticLambda6.call(Unknown Source:6)
    at io.reactivex.rxjava3.internal.operators.observable.ObservableFromCallable.subscribeActual(ObservableFromCallable.java:46)
    at io.reactivex.rxjava3.core.Observable.subscribe(Observable.java:13262)
    at io.reactivex.rxjava3.internal.operators.observable.ObservableSubscribeOn$SubscribeTask.run(ObservableSubscribeOn.java:96)
    at io.reactivex.rxjava3.core.Scheduler$DisposeTask.run(Scheduler.java:644)
    at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:65)
    at io.reactivex.rxjava3.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:56)
    at java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:307)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
    at java.lang.Thread.run(Thread.java:1012)

Device Information:

This information will assist developers in diagnosing and resolving the issue.

DHD2280 commented 6 months ago

Let me know if with latest release v1.2.2 works.

akashsriramganapathy commented 6 months ago

Still am facing the issue for your reference I attached the error report``` BCRManager_error_report_2024_03_17_08_27_39 .txt

DHD2280 commented 6 months ago

Please try this

akashsriramganapathy commented 6 months ago

Works fine without any crash.