tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
82.58k stars 2.48k forks source link

[bug] window freeze followed by app crash on window close (Ubuntu 22.04 AppImage) #6035

Open matthme opened 1 year ago

matthme commented 1 year ago

Describe the bug

When I try to mark text in certain html elements in a window built with the WindowBuilder, the window freezes followed by the whole window turning grey. When I close that window, which is an additional window to the main window of the application, the whole application crashes without cleanup. I seem to be able to only reproduce this with the built .AppImage so far (built via github actions on a Ubuntu 18.04 runner).

https://user-images.githubusercontent.com/36768177/211791091-face6afd-3931-47a3-bf64-a9351d560df4.mp4

Reproduction

I'm afraid I can't really tell yet how to reproduce it.

  1. Add a secondary window and open it.
  2. Try to mark text of problematic html (unknown what qualifies it as problematic, it doesn't seem to happen everywhere)
  3. wait

Expected behavior

No response

Platform and versions

Environment
  › OS: Ubuntu 22.04 X64
  › Node.js: 16.11.1
  › npm: 8.0.0
  › pnpm: Not installed!
  › yarn: 1.22.19
  › rustup: 1.25.1
  › rustc: 1.64.0
  › cargo: 1.64.0
  › Rust toolchain: stable-x86_64-unknown-linux-gnu 

Packages
  › @tauri-apps/cli [NPM]: 1.2.2
  › @tauri-apps/api [NPM]: 1.2.0
  › tauri [RUST]: 1.2.3,
  › tauri-build [RUST]: 1.2.1,
  › tao [RUST]: 0.15.8,
  › wry [RUST]: 0.23.4,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../dist
  › devPath: http://localhost:1420/
  › framework: Vue.js
  › bundler: Vite

App directory structure
  ├─ scripts
  ├─ tests
  ├─ .git
  ├─ crates
  ├─ target
  ├─ docs
  ├─ dist
  ├─ node_modules
  ├─ src-tauri
  ├─ dist-isolation
  ├─ src
  ├─ .github
  ├─ .vscode
  └─ public

Stack trace

No response

Additional context

I also recently get this error on startup when running the app (.AppImage) in the console:

(WebKitWebProcess:11573): Gtk-WARNING **: 12:03:30.501: Theme parsing error: gtk.css:1413:23: 'font-feature-settings' is not a valid property name

Not sure if it may be related. I think I get this error since I installed pending Ubuntu updates very recently so maybe there has been an update to the webview that may cause this.

ninjadev64 commented 4 months ago

I'm getting this very frequently as well. I presume it'll be fixed by the newer WebKit version in Tauri v2.