Fix Error parsing user_event: Error("EOF while parsing a value", line: 1, column: 0)
#2856
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
On Linux (with
nightly-x86_64-unknown-linux-gnu
toolchain) desktop platform, it seems that the webview events are not deserialized properly by wry. For example, the following error is displayed each time I click on a button:Error parsing user_event: Error("EOF while parsing a value", line: 1, column: 0)
After investigating, wry doesn´t deserialize the body of the IPC requests if the
linux-body
feature flag is not set (cf. https://github.com/tauri-apps/wry/blob/wry-v0.41/src/webkitgtk/web_context.rs#L322).the fix could to enable the
linux-body
feature flag forlinux
target os.Then, the issue seems to cause
headless_tests
to crash on Linux:Does it mean that we should add a new CI job to run headless_tests for
x86_64-unknown-linux-gnu
platform ?The
headless_tests
succeeds locally once thelinux-body
feature enabled: