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

2.4 doesn't start with QT_OPENGL=angle on Windows #11641

Closed
JoergAtGithub opened this issue Jun 10, 2023 · 14 comments · Fixed by #11982
Closed

2.4 doesn't start with QT_OPENGL=angle on Windows #11641

JoergAtGithub opened this issue Jun 10, 2023 · 14 comments · Fixed by #11982

Comments

@JoergAtGithub
Copy link
Member

Bug Description

@m0dB :
I tried to start Mixxx with the environment variable QT_OPENGL set to angle. It fails to start:

debug [Main] Set root GL Context widget valid: WInitialGLWidget(0x19544c9bb10) false
critical [Main] Failed to load libEGLd (Das angegebene Modul wurde nicht gefunden.)
warning [Main] QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
debug [Main] Displaying main window
debug [Main] Running Mixxx
critical [Main] Failed to load libEGLd (Das angegebene Modul wurde nicht gefunden.)
warning [Main] QWindowsEGLStaticContext::create: Failed to load and resolve libEGL functions
warning [Main] QOpenGLWindow::beginPaint: Failed to create context
warning [Main] QOpenGLWindow::beginPaint: Failed to make context current

Version

2.4.0

OS

Windows11

@JoergAtGithub
Copy link
Member Author

With QT_OPENGL=software I get:

debug [Main] Set root GL Context widget valid: WInitialGLWidget(0x1be773ba7c0) false
debug [Main] Displaying main window
debug [Main] Running Mixxx
debug [Main] "4.6.0 Compatibility Profile Context 22.20.28.15.230324" "ATI Technologies Inc." "AMD Radeon(TM) Graphics"
debug [Main] QOpenGLContext surface format version: 2 1

and with QT_OPENGL=desktop just:

debug [Main] Set root GL Context widget valid: WInitialGLWidget(0x176b2a1efe0) false
debug [Main] Displaying main window
debug [Main] Running Mixxx

@m0dB
Copy link
Contributor

m0dB commented Jun 10, 2023

Aren't libEGL.dll and libEGLd.dll somewhere in your Qt folder? Might simply be a matter of copying them next to mixxx.exe

@m0dB
Copy link
Contributor

m0dB commented Jun 10, 2023

And it's not clear to me if with QT_OPENGL=software or QT_OPENGL=desktop mixxx does open or not?

@JoergAtGithub
Copy link
Member Author

The files are there. I even tried to replace this two DLLs with the working versions from 2.3.5. Didn't help.

With software and desktop the waveforms work flawless for me - but I don't see a difference between desktop and software.

@m0dB
Copy link
Contributor

m0dB commented Jun 10, 2023

Here https://musescore.org/en/node/276246 they suggest you have to copy both libEGL.dll and libGLESv2.dll (I guess in your case, with a debug build, libEGLd.dll, libGLESv2d.dll ?)

@JoergAtGithub
Copy link
Member Author

We copy them #3370

@m0dB
Copy link
Contributor

m0dB commented Jun 10, 2023

Are you sure they are 64 bit? (Assuming mixxx.exe is 64 bit)

It might be interesting to build against the official Qt binaries and copy the dlls from there to see if that makes a difference.

@JoergAtGithub
Copy link
Member Author

Yes, this is guaranteed by the VCPKG system. All dependencies will be build together for the same target platfom. And it's the same with Mixxx 2.3.5,

@m0dB
Copy link
Contributor

m0dB commented Jun 11, 2023

Hm, but clearly something is wrong if the dlls can't be opened...

@JoergAtGithub JoergAtGithub added this to the 2.4.0 milestone Jun 27, 2023
@JoergAtGithub
Copy link
Member Author

This could be microsoft/vcpkg#31954

@daschuer
Copy link
Member

Maybe it is related. I will have a look.

Interesting is also the Qt6 angle patch. Can this be a fallback for legacy devices that do not fulfill the Qt6 requirements?

@JoergAtGithub
Copy link
Member Author

VCPKG seems to contain a patch that Qt6 runs with ANGLE.
But since Qt6 requires a rather new Windows10 version to run, I think these old graphic adapters are not relevant in practice.

@daschuer
Copy link
Member

daschuer commented Sep 7, 2023

I have just confirmed that the libEGL.dll libGLESv2.dll are installed

"libEGLd" indicates that the debug version is expected.

We can change our CMake Script to use Config mode to do it always right.

This bug seems to be related:
#11929

@daschuer
Copy link
Member

Older Version 2.4-alpha-1118-g1b688f2d40 without QOPENNGL works:
grafik
Even when I replace the angle dlls form the most recent install.

@daschuer daschuer mentioned this issue Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants