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

Windows build throws QOpenGLShader::compile(Fragment): ERROR: 4:1: 'textureSampler' : syntax error syntax error (Upstream Qt issue) #9698

Open
snelweg opened this issue Apr 3, 2023 · 9 comments
Labels
3rd party: Qt Bug This issue or PR is related to a bug Help wanted

Comments

@snelweg
Copy link
Contributor

snelweg commented Apr 3, 2023

This error is back. The Windows version from the installer package works fine, the zipped version gives this error.

Wrn: QOpenGLShader::compile(Fragment): ERROR: 4:1: 'textureSampler' : syntax error syntax error


Wrn: *** Problematic Fragment shader source code ***
#version 110
#ifdef GL_KHR_blend_equation_advanced
#extension GL_ARB_fragment_coord_conventions : enable
#extension GL_KHR_blend_equation_advanced : enable
#endif
#define lowp
#define mediump
#define highp
#line 1
varying highp vec2 uv;uniform sampler2DRect textureSampler;uniform bool swizzle;uniform highp float opacity;void main() {   highp vec4 tmpFragColor = texture2DRect(textureSampler,uv);   tmpFragColor.a *= opacity;   gl_FragColor = swizzle ? tmpFragColor.bgra : tmpFragColor;}
***
Wrn: Could not link shader program:
 "ERROR: 4:1: 'textureSampler' : syntax error syntax error\n\n"
Log: Loading Spreadsheet module... done
Log: Loading GUI of Spreadsheet module... done
OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.0.32662 (Git)
Build type: Release
Branch: master
Hash: 312fe9b5c822126b251ca1c3cfb55dde0de1920c
Python 3.10.10, Qt 5.15.8, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: Dutch/Netherlands (nl_NL)
Installed mods: 
  * Assembly4 0.12.6

FreeCAD.log

@luzpaz
Copy link
Contributor

luzpaz commented Apr 3, 2023

Was this addressed in a previous ticket?

@snelweg
Copy link
Contributor Author

snelweg commented Apr 17, 2023

Was this addressed in a previous ticket?

Huh? What do you mean?

@luzpaz
Copy link
Contributor

luzpaz commented Apr 17, 2023

@snelweg you wrote:

This error is back

Where was it previously addressed ?

Edit: posted to thread https://forum.freecad.org/viewtopic.php?p=676314#p676314

@luzpaz luzpaz changed the title *** Problematic Fragment shader source code *** Windows build throws QOpenGLShader::compile(Fragment): ERROR: 4:1: 'textureSampler' : syntax error syntax error Apr 17, 2023
@luzpaz luzpaz added Bug This issue or PR is related to a bug Help wanted labels Apr 17, 2023
@GeneGH
Copy link
Contributor

GeneGH commented Apr 17, 2023

This appears to be related to an recently updated nVidia driver interacting badly with a changed Qt library. The Qt libraries are different versions in the Conda releases compared to the LibPack releases (installable version).

@luzpaz
Copy link
Contributor

luzpaz commented Apr 17, 2023

Thanks @GeneGH! BTW, do you happen to know the offending Qt lib and it's version?

@JulienMaille
Copy link

JulienMaille commented May 30, 2023

Has this problem been escalated to Qt dev team?
Looks like this was fixed in Qt 5.15.11: https://bugreports.qt.io/browse/QTBUG-101396
With a potential patch (to be confirmed): https://codereview.qt-project.org/c/qt/qtbase/+/430334

@luzpaz
Copy link
Contributor

luzpaz commented May 30, 2023

@JulienMaille thanks for the heads-up!

@luzpaz luzpaz changed the title Windows build throws QOpenGLShader::compile(Fragment): ERROR: 4:1: 'textureSampler' : syntax error syntax error Windows build throws QOpenGLShader::compile(Fragment): ERROR: 4:1: 'textureSampler' : syntax error syntax error (Upstream Qt issue) May 30, 2023
@luzpaz luzpaz transferred this issue from FreeCAD/FreeCAD-Bundle May 30, 2023
@luzpaz
Copy link
Contributor

luzpaz commented May 30, 2023

Transferred from FreeCAD-Bundle to FreeCAD main issue queue for exposure since this is upstream Qt related

@luzpaz luzpaz added 3rd party component Issue related to 3rd party component 3rd party: Qt labels May 30, 2023
@JulienMaille
Copy link

JulienMaille commented May 31, 2023

@luzpaz
I opened an issue and a merge request over there: https://invent.kde.org/qt/backports-tracker/-/issues/2446

@Roy-043 Roy-043 removed the 3rd party component Issue related to 3rd party component label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3rd party: Qt Bug This issue or PR is related to a bug Help wanted
Projects
None yet
Development

No branches or pull requests

5 participants