White screen on launching application on SurfacePro
-
wrote on 11 Apr 2023, 07:39 last edited by MarkWhitwell 4 Nov 2023, 07:42
Hello everybody,
my application is working on my desktop and other desktops But when I launch the exe on surface pro , I have a white screen with no error message.? -
Hello everybody,
my application is working on my desktop and other desktops But when I launch the exe on surface pro , I have a white screen with no error message.?wrote on 11 Apr 2023, 12:43 last edited byThat's not much information.
How was your app released? Architecture issue?! Screen resolution issue (high dpi)?!
(I'm just guessing) -
That's not much information.
How was your app released? Architecture issue?! Screen resolution issue (high dpi)?!
(I'm just guessing)wrote on 14 Apr 2023, 05:55 last edited by MarkWhitwell@Pl45m4 Hi i am using Surface Pro 7+ and i using Qt5.4.1 Opengl
when i check my log i found out that it seems has some issue in QOpenGL as i am getting following warnings:
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed: ""
QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed: ""
QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed: ""
QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed: ""
QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( textureScale ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( dpr ): shader program is not linked
qrc:///MainScreen.qml:54: ReferenceError: platformType is not definedany suggestion for me?
-
@Pl45m4 Hi i am using Surface Pro 7+ and i using Qt5.4.1 Opengl
when i check my log i found out that it seems has some issue in QOpenGL as i am getting following warnings:
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed: ""
QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed: ""
QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed: ""
QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed: ""
QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( textureScale ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( dpr ): shader program is not linked
qrc:///MainScreen.qml:54: ReferenceError: platformType is not definedany suggestion for me?
wrote on 14 Apr 2023, 08:04 last edited by@MarkWhitwell have you tried googling these errors? If so, what solutions have you tried and did not work?
-
@MarkWhitwell have you tried googling these errors? If so, what solutions have you tried and did not work?
wrote on 14 Apr 2023, 12:00 last edited by MarkWhitwell@Abderrahmene_Rayene yes i have looked and found this thread https://forum.qt.io/topic/52625/qopenglshaderprogram-could-not-create-shader-program/8?_=1681473494310
As mentioned in this thread i am planning to check use DirectX via ANGLE but i am not sure if this will work
QCoreApplication::setAttribute( Qt::AA_UseOpenGLES );
do you have any better suggestion than this please let me know
2/5