Window corruption when application scaling enabled on certain desktop environments

Bug #1871649 reported by Jose Rosal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rapid Photo Downloader
Fix Released
High
Damon Lynch

Bug Description

After installing RPD 0.9.21 it's GUI is completely out of configuration.

I have Ubuntu Focal, I did uninstall 0.9.21 and reinstall from synaptics the RPD 0.9.20, and the condition is the same.

Also I am unable to reach the buttoms comand at the right extreme of the window.

Revision history for this message
Jose Rosal (jsrosalg) wrote :
Revision history for this message
Jose Rosal (jsrosalg) wrote :

These is the screenshot show how look the RPD GUI

Revision history for this message
Damon Lynch (dlynch3) wrote :

Is it correct that you are seeing this bug regardless of whether you have installed Rapid Photo Downloader from the Ubuntu archives (I assume you are using the proposed packages), or using the install.py script? If so, that means the window corruption is happening independent of whether using the Ubuntu supplied Qt (5.12) and the Qt the install.py script installs (Qt 5.14.2). Is that correct?

I have tested it myself on Focal and I've never seen this problem. My hardware is using the Nvidia proprietary driver, however.

Can you install another PyQt5 program and see if the same screen corruption results? I suggest retext, which is in Focal universe. You can use it to open the rst files in the Rapid Photo Downloader tar.gz file if you want some files to test it on.

Also, what graphics hardware and driver are you using? It may be a graphics driver bug, or a bug with the way Qt works on that hardware. I'm not sure.

Changed in rapid:
status: New → Triaged
Revision history for this message
Jose Rosal (jsrosalg) wrote : Re: [Bug 1871649] Re: Bad GUI in Ubuntu Focal

Thanks,

RElated with RPD first I did install with install.py after uninstall and
install with synaptics.

The atached file is the installation log with install.py (another try)

The result always the same.

Also tried with Vokoscreen wich suposse to use python and works fine.

Finnaly and I just take care in these moment I am using Ubuntu Focal
Fossa development branch, updated today.

Graphic card Nvidia Geoforce920 and the driver 4.6.0 NVIDIA 440.64.

Thanks in advance.

José Rosal

On 8/4/20 17:08, Damon Lynch wrote:
> Is it correct that you are seeing this bug regardless of whether you
> have installed Rapid Photo Downloader from the Ubuntu archives (I assume
> you are using the proposed packages), or using the install.py script? If
> so, that means the window corruption is happening independent of whether
> using the Ubuntu supplied Qt (5.12) and the Qt the install.py script
> installs (Qt 5.14.2). Is that correct?
>
> I have tested it myself on Focal and I've never seen this problem. My
> hardware is using the Nvidia proprietary driver, however.
>
> Can you install another PyQt5 program and see if the same screen
> corruption results? I suggest retext, which is in Focal universe. You
> can use it to open the rst files in the Rapid Photo Downloader tar.gz
> file if you want some files to test it on.
>
> Also, what graphics hardware and driver are you using? It may be a
> graphics driver bug, or a bug with the way Qt works on that hardware.
> I'm not sure.
>
> ** Changed in: rapid
> Status: New => Triaged
>

Revision history for this message
Damon Lynch (dlynch3) wrote : Re: Bad GUI in Ubuntu Focal

Vokoscreen is written in C++.

Please try retext. It is written using PyQt5, the same as Rapid Photo Downloader. This is important.

Revision history for this message
Jose Rosal (jsrosalg) wrote : Re: [Bug 1871649] Re: Bad GUI in Ubuntu Focal

Sorry I misunderstood  your recommendation (retex).

I installed retext and no problem, as much I tested no GUI problem emerged.

I reviewed some configuration parameters for the graphic card, no change
produce changes in RPD behaviour (performance, memory, ..)

Thank again.

On 8/4/20 19:06, Damon Lynch wrote:
> Vokoscreen is written in C++.
>
> Please try retext. It is written using PyQt5, the same as Rapid Photo
> Downloader. This is important.
>

Revision history for this message
Damon Lynch (dlynch3) wrote : Re: Bad GUI in Ubuntu Focal

Let's see if it is related to screen scaling. Do this:

QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_ENABLE_HIGHDPI_SCALING=0 rapid-photo-downloader --verbose

verify that you see a message like this:

High DPI scaling not automatically set to ON because environment variable(s) already set: [variable]

Damon Lynch (dlynch3)
summary: - Bad GUI in Ubuntu Focal
+ Window corruption possibly caused by faulty application scaling
Revision history for this message
Jose Rosal (jsrosalg) wrote : Re: [Bug 1871649] Re: Bad GUI in Ubuntu Focal

Hello,

I did apply your recomendation and effectively it's work fine.

The line you ask me appears. *High DPI scaling not automatically set to
ON because environment variable(s) already set: QT_ENABLE_HIGHDPI_SCALING*

RPD work fine with that config.

Thanks

> Let's see if it is related to screen scaling. Do this:
>
> QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_ENABLE_HIGHDPI_SCALING=0 rapid-photo-
> downloader --verbose
>
> verify that you see a message like this:
>
> High DPI scaling not automatically set to ON because environment
> variable(s) already set: [variable]
>

Damon Lynch (dlynch3)
Changed in rapid:
importance: Undecided → High
assignee: nobody → Damon Lynch (dlynch3)
summary: - Window corruption possibly caused by faulty application scaling
+ Window corruption caused by faulty application scaling
Revision history for this message
David LaCivita (dlaciv12) wrote : Re: Window corruption caused by faulty application scaling
Revision history for this message
David LaCivita (dlaciv12) wrote :

And config...

Damon Lynch (dlynch3)
summary: - Window corruption caused by faulty application scaling
+ Window corruption when application scaling enabled on certain desktop
+ environments
Revision history for this message
Damon Lynch (dlynch3) wrote :

Interesting that you're both using Nvidia driver 440.64

Damon Lynch (dlynch3)
Changed in rapid:
milestone: none → 0.9.22a1
Revision history for this message
Jose Rosal (jsrosalg) wrote :

My computer has 2 GPU, the Nvidia and Intel HD Graphics 5500, I tested RPD whit that GPU and the problems remains the same

Revision history for this message
Damon Lynch (dlynch3) wrote :

So just to clarify, it happens regardless of whether it's on the Intel or Nvidia CPU?

Revision history for this message
Jose Rosal (jsrosalg) wrote :

Yes ..

Revision history for this message
Damon Lynch (dlynch3) wrote :

Please test 0.9.22a1, which should automatically fix the problem. Please let me know if it works as expected (it should).

Changed in rapid:
status: Triaged → Fix Released
Revision history for this message
Jose Rosal (jsrosalg) wrote :

Thanks in advance.

I did install 0.9.22 alpha 1, tested and is working fine as usual.

Thanks againg.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.