Skip to content

fix(android): log and clear webview creation errors - #1803

Draft
tomatotomata wants to merge 1 commit into
tauri-apps:devfrom
tomatotomata:codex/android-webview-error-1785
Draft

fix(android): log and clear webview creation errors#1803
tomatotomata wants to merge 1 commit into
tauri-apps:devfrom
tomatotomata:codex/android-webview-error-1785

Conversation

@tomatotomata

Copy link
Copy Markdown

Summary

  • keep Android main-pipe failures from leaving a pending Java exception at the JNI boundary
  • log the WebView creation error when tracing is enabled, clear the Java exception, and unregister the failing looper callback

Closes #1785

This is intentionally the minimal defensive part of the issue. It does not add an embedder callback for asynchronous creation failures, which would need a wider API design.

Validation

  • cargo test --lib passed: 9 tests
  • git diff --check passed
  • rustfmt --check src/android/binding.rs reached the file but reports the repository's existing newline-style mismatch on this Windows checkout

The Android-specific path was not compiled locally because an Android target/toolchain is not installed here.

@Legend-Master Legend-Master added the ai-slop Low effort content, see https://github.com/tauri-apps/tauri?tab=contributing-ov-file#ai-tool-policy label Aug 8, 2026
@github-actions

github-actions Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Package Changes Through 89834af

There are 1 changes which include wry with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
wry 0.56.0 0.56.1

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-slop Low effort content, see https://github.com/tauri-apps/tauri?tab=contributing-ov-file#ai-tool-policy platform: Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android: WebView creation failure (MissingWebViewPackageException) aborts the process instead of surfacing an error

2 participants