Skip to content

fix: handle undeliverable RxJava network exceptions globally#6316

Merged
mahibi merged 1 commit into
masterfrom
bugfix/noid/addRxJavaErrorHandler
Jun 4, 2026
Merged

fix: handle undeliverable RxJava network exceptions globally#6316
mahibi merged 1 commit into
masterfrom
bugfix/noid/addRxJavaErrorHandler

Conversation

@mahibi
Copy link
Copy Markdown
Collaborator

@mahibi mahibi commented Jun 4, 2026

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.

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

  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>
@mahibi mahibi added this to the 24.1.0 milestone Jun 4, 2026
@mahibi mahibi self-assigned this Jun 4, 2026
@mahibi mahibi added the 3. to review Waiting for reviews label Jun 4, 2026
@mahibi
Copy link
Copy Markdown
Collaborator Author

mahibi commented Jun 4, 2026

/backport to stable-24.0

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

APK file: https://github.com/nextcloud/talk-android/actions/runs/26967958809/artifacts/7418499212
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 16683d8 into master Jun 4, 2026
18 of 19 checks passed
@mahibi mahibi deleted the bugfix/noid/addRxJavaErrorHandler branch June 4, 2026 17:44
@mahibi mahibi changed the title ● fix: handle undeliverable RxJava network exceptions globally 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