Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: QOpenGLBuffer Errors  (Read 2746 times)

Baris

  • Newbie
  • *
  • Posts: 2
    • View Profile
QOpenGLBuffer Errors
« on: August 14, 2020, 11:14:17 am »
I am using Limereport as report tool in one of my project.

QT Version is: 5.9.3
Limereport Version: 1.5.35 & 1.5.1
Platform is: Windows (MinGW 32bit) and I use QML.
I also use QtChart and Sqlite too.

I build your pro and link these output libs to my project: limereportd, limereport, QtZintd and QtZint (I copy/paste dlls and includes to my libs path)

As like that

Code: [Select]
DEPENDPATH += $$PWD/libs \
              $$PWD/libs/include

INCLUDEPATH += $$PWD/libs \
               $$PWD/libs/include

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/libs/ -llimereport
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/libs/ -llimereportd
else:unix: LIBS += -L$$PWD/libs/ -llimereport


win32:CONFIG(release, debug|release): LIBS += -L$$PWD/libs/ -lQtZint
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/libs/ -lQtZintd
else:unix: LIBS += -L$$PWD/libs/ -lQtZint


But there is a strange behaviour.

If i run my project in debug mode it always gives these errors and UI not shown (only white screen)

Code: [Select]
QOpenGLBuffer::bind(): buffer not created
QOpenGLBuffer::allocate(): buffer not created
QOpenGLBuffer::release(): buffer not created
QOpenGLBuffer::bind(): buffer not created
QOpenGLBuffer::allocate(): buffer not created
QOpenGLBuffer::release(): buffer not created
QOpenGLBuffer::bind(): buffer not created
QOpenGLBuffer::allocate(): buffer not created
QOpenGLBuffer::release(): buffer not created
QOpenGLBuffer::bind(): buffer not created
QOpenGLBuffer::allocate(): buffer not created
QOpenGLBuffer::release(): buffer not created
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLBuffer::bind(): buffer not created
QOpenGLBuffer::release(): buffer not created
QOpenGLShaderProgram::uniformLocation(imageTexture): shader program is not linked
QOpenGLBuffer::bind(): buffer not created
QOpenGLBuffer::allocate(): buffer not created
QOpenGLBuffer::release(): buffer not created
QOpenGLBuffer::bind(): buffer not created
QOpenGLBuffer::release(): buffer not created
QOpenGLShaderProgram::uniformLocation(imageTexture): shader program is not linked
QOpenGLBuffer::bind(): buffer not created
QOpenGLBuffer::allocate(): buffer not created
QOpenGLBuffer::release(): buffer not created
QOpenGLBuffer::bind(): buffer not created
QOpenGLBuffer::allocate(): buffer not created
QOpenGLBuffer::release(): buffer not created
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:
""

If i don't include report pri (I made my own) which is links limeport, qtzint dlls and include files to my project, there is no problem.

If i run in release mode with limereport there is no problem also.

Do you have any idea?
« Last Edit: August 14, 2020, 11:35:37 am by Baris »

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: QOpenGLBuffer Errors
« Reply #1 on: August 15, 2020, 09:05:21 pm »
Hi! Honestly, I have no idea why it happens. Could you create a sample and send me the sources?   

Baris

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: QOpenGLBuffer Errors
« Reply #2 on: August 17, 2020, 03:37:01 pm »
I think this is caused by MinGW - 32 bit.

I tried (Maybe it's incorrect i don't know  :) )
Code: [Select]
Qt::AA_ShareOpenGLContexts
Then Charts gives:
Quote
"QtCharts": Cannot load library C:\Qt\Qt5.9.3\5.9.3\mingw53_32\qml\QtCharts\qtchartsqml2d.dll: Not enough memory resources are available to process this command.

Like below.

https://bugreports.qt.io/browse/QTBUG-64551
« Last Edit: August 17, 2020, 03:38:55 pm by Baris »