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

The window switches between maximization and minimization. The window does not render, or only partially renders #13461

Open
zeke202207 opened this issue Nov 2, 2023 · 9 comments
Labels

Comments

@zeke202207
Copy link

Describe the bug

The window switches between maximization and minimization. There is a problem in the window rendering.
The window does not render, or only partially renders

To Reproduce

Steps to reproduce the behavior:

  1. Create a new project without doing anything else

Screenshots

image
image

Environment

  • OS: Ubuntu 20.04.6 LTS
  • Avalonia-Version: 11.0.5

A short bug video

15-44-00.mp4
@zeke202207 zeke202207 added the bug label Nov 2, 2023
@thevortexcloud
Copy link
Contributor

Are you using a High DPI display by any chance? Avalonia does not always render at the correct scale and can look fairly weird. See here: #4826

@zeke202207
Copy link
Author

zeke202207 commented Nov 2, 2023

Are you using a High DPI display by any chance? Avalonia does not always render at the correct scale and can look fairly weird. See here: #4826

This is my displays setting.

image

Is there a way I can make Avalonia re-render and fill in the empty space? @thevortexcloud

Thank you for your patient help!

@thevortexcloud
Copy link
Contributor

thevortexcloud commented Nov 2, 2023

Hmm, looks like a fairly standard 1080p screen. Have you tried using X11? I personally have never run into this issue using X11 and KDE (and I have made many apps). Avalonia currently uses XWayland on Wayland sessions.

I also noticed you seem to have a lot of Nvidia stuff installed. While I doubt it's causing this, is it possible to try a non Nvidia GPU if you are using one? Nvidia's driver does not always play nice on Linux.

Can you also please upload the project so I can make sure it's not some weird version problem?

@zeke202207
Copy link
Author

Hmm, looks like a fairly standard 1080p screen. Have you tried using X11? I personally have never run into this issue using X11 and KDE (and I have made many apps). Avalonia currently uses XWayland on Wayland sessions.

I also noticed you seem to have a lot of Nvidia stuff installed. While I doubt it's causing this, is it possible to try a non Nvidia GPU if you are using one? Nvidia's driver does not always play nice on Linux.

Can you also please upload the project so I can make sure it's not some weird version problem?

I did the same validation on a virtual machine, and my virtual machine didn't install any Nvidia stuff, it was the same issue.

I use vs2022. Attached is my project. Thank you very much for your help ! @thevortexcloud
demo.zip

@timunie
Copy link
Contributor

timunie commented Nov 2, 2023

@zeke202207 can you test release mode (without debugger) on an actual Linux device?

@thevortexcloud
Copy link
Contributor

thevortexcloud commented Nov 2, 2023

I just tried running the app on a real Linux machine myself (in debug mode) and it works fine. Something strange is happening here. Have you tested another DE besides gnome/Wayland? This might still be a scaling issue too. Try setting that environment variable mentioned in that issue I linked before.

@zeke202207
Copy link
Author

zeke202207 commented Nov 3, 2023

I just tried running the app on a real Linux machine myself (in debug mode) and it works fine. Something strange is happening here. Have you tested another DE besides gnome/Wayland? This might still be a scaling issue too. Try setting that environment variable mentioned in that issue I linked before.

  1. I tested based on release mode
  2. Sorry, I only have one linux physical machine (but I have the same problem with the virtual machine)
  3. My tests below are all based on this physical machine. I set the environment variables according to the method you mentioned above #4826 and the verification results are as follows

Thank you very much for your help @thevortexcloud @timunie

09-26-45.mp4

@timunie
Copy link
Contributor

timunie commented Nov 3, 2023

First of all thx for the great video. It shows the issue quite well.

I tested based on release mode

Okay what happens then in Debugmode? I wonder if it makes any difference. I've trimming /AOT issue in mind here. Can you do me that favor and also quick double-check?

Sorry, I only have one linux physical machine (but I have the same problem with the virtual machine)

I have neither at hand, so still you can debug it better than me. Thx for confirmation both are affected.

@zeke202207
Copy link
Author

First of all thx for the great video. It shows the issue quite well.

I tested based on release mode

Okay what happens then in Debugmode? I wonder if it makes any difference. I've trimming /AOT issue in mind here. Can you do me that favor and also quick double-check?

Sorry, I only have one linux physical machine (but I have the same problem with the virtual machine)

I have neither at hand, so still you can debug it better than me. Thx for confirmation both are affected.

I checked with DebugMode and the issue is the same as ReleaseMode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants