Bug 1894716

Summary: Programs compiled with glfw have transparent window backgrounds
Product: [Fedora] Fedora Reporter: Gaban <enzogaban98>
Component: glfwAssignee: Till Hofmann <thofmann>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 33CC: airlied, bioinfornatics, negativo17, thofmann
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: glfw-3.3.2-8.fc33 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-11 01:20:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
A rotating cube program example, showing the described behaviour none

Description Gaban 2020-11-04 21:26:58 UTC
Created attachment 1726733 [details]
A rotating cube program example, showing the described behaviour

Created attachment 1726733 [details]
A rotating cube program example, showing the described behaviour

Created attachment 1726733 [details]
A rotating cube program example, showing the described behaviour

Description of problem:


Version-Release number of selected component (if applicable): 3.3.2-7


How reproducible:
After upgrading to glfw-devel 3.3.2-7 on fedora 33 (workstation), all programs compiled with glfw have transparent windows and strange title bar. It also looks like the framebuffer isn't cleared. This happens both on wayland and on Xorg. I also tried running other glfw programs and all of them have the same behaviour.

Steps to Reproduce:
1. Compile a GLFW program and run

When I tried to take a screenshot to post here, the framebuffer got cleared. I'm also attaching a picture of the screen taken from my phone.

EDIT: I forgot to mention, but when linking against glfw compiled from source (https://github.com/glfw/glfw/releases), the program works fine. Also, after downgrading (sudo dnf downgrade glfw-devel) the program works as expected.

Comment 1 Till Hofmann 2020-11-05 17:33:21 UTC
With your local build, did you build with -DGLFW_USE_WAYLAND=ON? If not, can you try that please?

https://src.fedoraproject.org/rpms/glfw/blob/f33/f/glfw.spec#_77

Comment 2 Gaban 2020-11-06 03:14:39 UTC
Compiling with -DGLFW_USE_WAYLAND=ON (after installing all the dependencies) made the window transparent again, same problem. Tried it on two different computers and both had the same result. Maybe it's a bug in GLFW compiled with wayland.

Comment 3 Gaban 2020-11-06 03:17:13 UTC
Oops, I forgot to mention: the first time (the one that using a local GLFW fixed the problem) I compiled without setting any value to GLFW_USE_WAYLAND, so I presume it was OFF.

Comment 4 Till Hofmann 2020-11-06 12:19:27 UTC
Thanks for testing!

Yes, the default is OFF.

Would you mind reporting this upstream? You already seem to have all information they need.

Comment 5 Gaban 2020-11-06 13:17:27 UTC
Of course! Thank you for your attention and help

Comment 6 Fedora Update System 2020-11-09 23:11:55 UTC
FEDORA-2020-7b530d24b8 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2020-7b530d24b8

Comment 7 Fedora Update System 2020-11-10 02:21:28 UTC
FEDORA-2020-7b530d24b8 has been pushed to the Fedora 33 testing repository.
In short time you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2020-7b530d24b8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-7b530d24b8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Gaban 2020-11-10 14:33:26 UTC
That fixed the issue here. Thanks!

And I just noticed now that I forgot to post the upstream issue I opened: https://github.com/glfw/glfw/issues/1803

Again, thanks for your help, Till

Comment 9 Fedora Update System 2020-11-11 01:20:28 UTC
FEDORA-2020-7b530d24b8 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.