Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Window freeze with WebGL #7761

Open
mntnoe opened this issue Sep 6, 2023 · 0 comments
Open

[bug] Window freeze with WebGL #7761

mntnoe opened this issue Sep 6, 2023 · 0 comments
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes type: bug

Comments

@mntnoe
Copy link

mntnoe commented Sep 6, 2023

Describe the bug

I have been trying out using tauri with WebGL, but the window gets unresponsive when

  • a few setTimeout/rAF have performed WebGL operations (see the repro)
  • a reload is about to happen due to change of the source code in dev mode

There is no log output in devtools or from tauri dev.

I have reproduced this behavior as well using create-tauri-app --alpha.

Setting WEBKIT_DISABLE_COMPOSITING_MODE=1 works around the problem, but is to my understanding not recommended (https://blogs.igalia.com/carlosgc/2017/02/10/).

Reproduction

git clone https://github.com/mntnoe/tauri-webgl-repro.git
cd tauri-webgl-repro
npm install
npm run tauri dev

Notice that first three colors are rendered, after which the window freeze.

Expected behavior

WebGL operations performed without making the window unresponsive.

Platform and versions

[✔] Environment
    - OS: Ubuntu 22.04 X64
    ✔ webkit2gtk-4.0: 2.40.5
    ✔ rsvg2: 2.52.5
    ✔ rustc: 1.72.0 (5680fa18f 2023-08-23)
    ✔ Cargo: 1.72.0 (103a7ff2e 2023-08-15)
    ✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 19.1.0
    - pnpm: 7.23.0
    - npm: 8.19.3

[-] Packages
    - tauri [RUST]: 1.4.1
    - tauri-build [RUST]: 1.4.0
    - wry [RUST]: 0.24.3
    - tao [RUST]: 0.16.2
    - @tauri-apps/api [NPM]: not installed!
    - @tauri-apps/cli [NPM]: 1.4.0

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../src
    - devPath: ../src

Stack trace

No response

Additional context

Please let me know if you need additional info.

@mntnoe mntnoe added status: needs triage This issue needs to triage, applied to new issues type: bug labels Sep 6, 2023
@FabianLars FabianLars added platform: Linux status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes labels Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes type: bug
Projects
None yet
Development

No branches or pull requests

2 participants