Skip to content

[stable-24.0] fix: handle undeliverable RxJava network exceptions globally#6318

Merged
mahibi merged 1 commit into
stable-24.0from
backport/6316/stable-24.0
Jun 4, 2026
Merged

[stable-24.0] fix: handle undeliverable RxJava network exceptions globally#6318
mahibi merged 1 commit into
stable-24.0from
backport/6316/stable-24.0

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented Jun 4, 2026

Backport of PR #6316

  Add a global RxJavaPlugins error handler in NextcloudTalkApplication to
  prevent crashes caused by ConnectException (ECONNREFUSED) arriving after
  a subscriber has already been disposed (e.g. user navigated away while a
  network call was in-flight).

  IOException and SocketException are logged and ignored since they
  represent expected network conditions. All other undeliverable exceptions
  are still forwarded to the uncaught exception handler so real bugs
  continue to surface as crashes.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@backportbot backportbot Bot requested a review from mahibi June 4, 2026 17:44
@backportbot backportbot Bot added the 3. to review Waiting for reviews label Jun 4, 2026
@backportbot backportbot Bot added this to the 24.0.0 milestone Jun 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

APK file: https://github.com/nextcloud/talk-android/actions/runs/26969151402/artifacts/7418983097
To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.
qrcode (please click on link to get QR code displayed)

@mahibi mahibi merged commit 163d758 into stable-24.0 Jun 4, 2026
10 of 14 checks passed
@mahibi mahibi deleted the backport/6316/stable-24.0 branch June 4, 2026 17:56
@mahibi mahibi changed the title [stable-24.0] ● fix: handle undeliverable RxJava network exceptions globally [stable-24.0] fix: handle undeliverable RxJava network exceptions globally Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant