tauri: [bug] error code: STATUS_INVALID_IMAGE_HASH

Describe the bug

I’m not sure if tauri is responsible for this error, as follow: image

but I can open this page in my browser, as follow: image

Reproduction

The command I executed is as follows

  1. npx create-react-app tauriapp
  2. yarn add -D @tauri-apps/cli cross-env
  3. yarn add -D mini-css-extract-plugin
  4. yarn build
  5. yarn tauri init
  6. yarn add @tauri-apps/api
  7. yarn build
  8. yarn tauri dev

Expected behavior

I reinstalled Edge and edge’s WebView, but this didn’t work. I’ve tried every solution on the web to solve the “error code: STATUS_INVALID_IMAGE_HASH” problem, but nothing works

Platform and versions

Environment
  › OS: Windows 10.0.19044 X64
  › Webview2: 103.0.1264.49
  › MSVC:
      - Visual Studio Community 2022
  › Node.js: 14.18.0
  › npm: 6.14.15
  › pnpm: Not installed!
  › yarn: 1.22.17
  › rustup: 1.24.3
  › rustc: 1.62.0
  › cargo: 1.62.0
  › Rust toolchain: stable-x86_64-pc-windows-msvc

Stack trace

No response

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 19 (7 by maintainers)

Most upvoted comments

@zhuoqinyue I think I understand why tauri developers didn’t answer your question at first. That’s a problem caused by the environment, not tauri itself. They just cannot reproduce that problem. I think that’s normal. Open source project maintainers don’t have obligation to answer all user’s question.

In my case, I tested with different environment, and got different result. Then I learned a lot from links provided by @nothingismagick and @lucasfernog (thanks them BTW). Then I found the root cause, and solved it this afternoon, by asking my network admin to tweak some policies.

I think you could click into the windows event viewer to get closer to your root cause. If you still need help, you could post here, even mail me if you like. I’m willing to help.

My side is also caused by security software. Applications that have been built can be resolved by modifying the compatibility of the software mentioned above. If it is a development environment, you need to find “msedgewebview2.exe”, change its compatibility to solve image

Thank you very much, I’d love to communicate with you too. I hope this problem can be resolved so that I can continue to experience the different feelings tauri has given me during development. @CliffHan And thanks all. @nothingismagick @CliffHan @lucasfernog

Seems like there’s nothing we can do @CliffHan MicrosoftEdge/WebView2Feedback#2051

No way to disable webview2 from loading that? Sad news. Or maybe you could report an error to avoid tauri-app hanging there when met such errors, that should be a enhancement. Anyway, thank you for your work. You’re doing a great job.