Skip to content

[bug] Resource response randomly lose some characters in Android dev #6415

@meowtec

Description

@meowtec

Describe the bug

JS resource response randomly lose some characters.

03-10 12:02:38.404 13924 13924 E Tauri/Console: File: https://tauri.localhost/node_modules/.vite/deps/react-dom_client.js?v=0cc140e4 - Line 14117 - Msg: Uncaught SyntaxError: Unexpected identifier

屏幕截图 2023-03-10 200553

屏幕截图 2023-03-08 231606

Code of this line should be hostParentIsContainer = prevHostParentIsContainer; but I got hostParentIsContainer prevHostParentIsContainer;

And every time I reload the page, the location of losing character changed.

Reproduction

tauri-mobile-bug.zip (updated at Fri, 10 Mar 2023 12:00:37 GMT)

NOTE that the page may need reload once or more times. (E.g. using chrome://inspect/#devices to reload it)

Expected behavior

No response

Platform and versions

Environment
  › OS: Windows 10.0.22624 X64
  › Webview2: 110.0.1587.63
  › MSVC:
      - Visual Studio Community 2022
  › Node.js: 16.19.1
  › npm: 8.19.3
  › pnpm: 7.29.0
  › yarn: 1.22.19
  › rustup: 1.25.2
  › rustc: 1.67.1
  › cargo: 1.67.1
  › Rust toolchain: stable-x86_64-pc-windows-msvc

Packages
  › @tauri-apps/cli [NPM]: 2.0.0-alpha.2
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Error("unexpected character 't' while parsing major version number")', src\info.rs:566:67
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Stack trace

No response

Additional context

Using Android simulator Pixel_XL_API_33 (x86_64)

It work well if redirect from tauri.localhost to the real host:

屏幕截图 2023-03-10 201045

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions