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] maximized window config causes black flash on launch #11284

Open
mr-zwets opened this issue Oct 9, 2024 · 2 comments
Open

[bug] maximized window config causes black flash on launch #11284

mr-zwets opened this issue Oct 9, 2024 · 2 comments
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@mr-zwets
Copy link

mr-zwets commented Oct 9, 2024

Describe the bug

I have encountered an issue with the maximized window setting where this causes a black flash on application launch.

It only happens sometimes and the black flash is always on the right hand part of the screen:

Here is a screen recording:

tauri-bug.mp4

Reproduction

Here is a repo with the default tauri-vue app which has just one setting changed:
in tauri.conf.json I added "maximized": true

https://github.com/mr-zwets/tauri-test

If reproduction is not possible on the first try, re-open the app multiple times again, as the bug only happens part of the time.

Expected behavior

I expect the maximized window not to cause a black flash

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.22631 x86_64 (X64)
    ✔ WebView2: 129.0.2792.79
    ✔ MSVC: Visual Studio Community 2022
    ✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
    ✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 20.18.0
    - yarn: 1.22.22
    - npm: 10.8.2

[-] Packages
    - tauri 🦀: 2.0.2
    - tauri-build 🦀: 2.0.1
    - wry 🦀: 0.44.1
    - tao 🦀: 0.30.3
    - @tauri-apps/api : 2.0.2
    - @tauri-apps/cli : 2.0.2

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.1
    - @tauri-apps/plugin-shell : 2.0.0

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist/spa
    - devUrl: http://localhost:9000/
    - framework: Vue.js (Quasar)
    - bundler: Vite

Stack trace

/

Additional context

No response

@amrbashir
Copy link
Member

I believe this is a bit of expected behavior and should be fixed by #1564 and #10519 so closing as duplicate of these issues.

@amrbashir amrbashir closed this as not planned Won't fix, can't repro, duplicate, stale Oct 17, 2024
@mr-zwets
Copy link
Author

mr-zwets commented Nov 9, 2024

Asking to re-open this issue after confirming it is not the same issue.

I upgraded to the latest tauri version & tested with the new background property "backgroundColor": "#ffffff" & tauri = { version = "2.1.0", features = [] }

which still has my issue.

I won't be able to switch my app from electron to tauri if it causes this flash on startup.

@amrbashir amrbashir reopened this Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Windows status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

3 participants