kmkolasinski/AwesomeBump

Black screen in 3D view (Ubuntu 18.04.1 LTS)

RepairUnit3k6 opened this issue · 24 comments

On ubuntu 18.04 I see only black screen in both views (see image). I tryed both standart one and GL330 versions, happening on both. I'm using XFCE. My graphics card is integrated Intel broadwell U as part of mother board of Lenovo B50-80 Laptop
black

Log.txt (it is long as hell so I'm uploading whole .txt file):
log.txt

Hi, could you please paste the content of the log.txt file ?

@kmkolasinski I Sure, I edited original issue.

I'm really sorry, but this is a common problem when one is using Mesa Drivers. You can try to install different drivers or maybe you can try older versions of AB.

@kmkolasinski I'm Sudomancer shortly. What exacly is Mesa Driver ? I guess I really don't need it if it causing troubles.

Ok, so this is basically a multi platform substitute for real graphics drivers :) People with NVIDIA graphics card have their own drivers which usually work fine with AB. Regarding the Intel graphics cards (your case), there are no dedicated drivers like for NVIDIA and Mesa is suppose to work for you. However, in practice it just sometimes fails. I have no idea why and I cannot even reproduce this error on my computers.

I could be wrong, but I think the problem is that the program requests an OpenGL compatibility profile, not a core profile. See https://www.khronos.org/opengl/wiki/OpenGL_Context for details. Mesa does not support compatibility contexts on Intel, and only supports compatibility contexts on AMD cards in the git version (https://www.phoronix.com/scan.php?page=news_item&px=Mesa-18.2-Lands-44-Compat). I recommend using a Core profile if at all possible.

P.S. Mesa's drivers are usually quite good actually ;)

@qwertychouskie So you're saying it is @kmkolasinski's mistake ? I'm developer myself, I know how single line can screw up whole program. I was reading linked wiki and it looks like using core profile is very good idea. Just change few lines and release it as hotfix.

Not really, setting Core profile in my case leads to the same problem as for @garrom.
@garrom are you able to compile AB?
In the main.cpp file there are few lines which define the GLContext for whole application.

#if defined(Q_OS_LINUX) || defined(Q_OS_MAC)
     /*
     * Commenting out the next line because it causes rendering to fail.  QGLFormat::CoreProfile
     * disables all OpenGL functions that are depreciated as of OpenGL 3.0.  This fix is a workaround.
     * The full solution is to replace all deprecated OpenGL functions with their current implements.
    */
# if defined(Q_OS_MAC)
    glFormat.setProfile( QGLFormat::CoreProfile );
    format.setProfile( QSurfaceFormat::CoreProfile );
# endif
    glFormat.setVersion( GL_MAJOR, GL_MINOR );
    format.setVersion( GL_MAJOR, GL_MINOR );
#endif
    qDebug() << glFormat; // ADD THIS LINE HERE!

    QGLFormat::setDefaultFormat(glFormat);
    QSurfaceFormat::setDefaultFormat(format);

@garrom you could add the following line:

    qDebug() << glFormat;

And we could compare the settings between our systems.

@qwertychouskie check the long comment.

@qwertychouskie So you're saying it is @kmkolasinski's mistake ? I'm developer myself, I know how single line can screw up whole program. I was reading linked wiki and it looks like using core profile is very good idea. Just change few lines and release it as hotfix.

Yep, basically changing to CoreProfile screw up the program, since some of the function which I use probably are now not supported. I don't know how much of efforts it would require to make it work :/

Ok, so I have managed to obtain some positive results with core profile. As I wrote after forcing Core profile in the main.cpp file, I ended up with similar errors as @garrom. This gave me the motivations, that maybe if I will solve those problems, it will automatically help you and other people with similar issue.
I have decided to do some debugs and try to find where is the problem. After few hours of applying different fixes I have even managed to make Core profile working on my computer !

Please check the branch:
https://github.com/kmkolasinski/AwesomeBump/tree/switch_to_core_profile

It would be nice if you could try to build the code from that branch on your system and check whether your problem has been solved or not.

@ppiecuch could you try this branch on your system ? I wonder if switching to Core profile will make AB working on osx.

Hi - I have already prepared core-profile related changes on my branch (it works with few glitches) but I switched to QtOpenGL objects (frame buffers, vao, vbo). I will check your branch too.

Pawel

Thanks a bunch!

Hello all,
Build from the core-profile branch - still black screen:
screen shot 2018-08-21 at 12 46 59

But my branch is slowly giving some results:
screen shot 2018-08-21 at 12 37 47

Regards
Pawel

Hi, sorry or late response. Could you please provide me your logs?
Another thing is that your branch extremely diverged from master. I had problems with your changes to build a properly working UI.

OBKF commented

@kmkolasinski having the same issue here.
Building with latest commit in Ubuntu 18.04 and here is the application's output:

OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at program->bind() called from void GLImage::render() in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 466 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from void GLImage::copyTex2FBO(GLuint, QGLFramebufferObject*) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 2591 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from void GLImage::applyPerspectiveTransformFilter(QGLFramebufferObject*, QGLFramebufferObject*) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 1194 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from void GLImage::applyPerspectiveTransformFilter(QGLFramebufferObject*, QGLFramebufferObject*) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 1200 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from void GLImage::applyInvertComponentsFilter(QGLFramebufferObject*, QGLFramebufferObject*) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 1859 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from void GLImage::copyFBO(QGLFramebufferObject*, QGLFramebufferObject*) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 2571 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from void GLImage::applyColorHueFilter(QGLFramebufferObject*, QGLFramebufferObject*) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 1152 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from void GLImage::copyFBO(QGLFramebufferObject*, QGLFramebufferObject*) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 2571 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from void GLImage::copyFBO(QGLFramebufferObject*, QGLFramebufferObject*) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 2571 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from void GLImage::applyHeightProcessingFilter(QGLFramebufferObject*, QGLFramebufferObject*) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 2454 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from void GLImage::copyFBO(QGLFramebufferObject*, QGLFramebufferObject*) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 2571 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from void GLImage::applyNormalFilter(QGLFramebufferObject*, QGLFramebufferObject*) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 1108 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from void GLImage::copyFBO(QGLFramebufferObject*, QGLFramebufferObject*) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 2571 
OpenGL error "INVALID_OPERATION" 502 at glUniformSubroutinesuiv( GL_FRAGMENT_SHADER, 1, &subroutines["mode_normal_filter"]) called from virtual void GLImage::paintGL() in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 357 
OpenGL error "INVALID_OPERATION" 502 at glDrawElements(GL_TRIANGLES, 3*2, GL_UNSIGNED_INT, 0) called from virtual void GLImage::paintGL() in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glimageeditor.cpp line 375 
OpenGL error "INVALID_ENUM" 500 at m_env_map->bind() called from virtual void GLWidget::paintGL() in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glwidget.cpp line 559 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_ENUM" 500 at m_prefiltered_env_map->bind() called from virtual void GLWidget::paintGL() in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glwidget.cpp line 677 
OpenGL error "INVALID_ENUM" 500 at m_env_map->bind() called from virtual void GLWidget::paintGL() in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/glwidget.cpp line 681 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_PATCHES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 274 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
OpenGL error "INVALID_OPERATION" 502 at glDrawArrays(GL_TRIANGLES, 0, gl_vertices.size()) called from void Mesh::drawMesh(bool) in file /home/obkf/Projects/Open-Source/AwesomeBump/Sources/utils/Mesh.cpp line 267 
calling virtual FormMaterialIndicesManager::~FormMaterialIndicesManager()
FBOImageProporties::~FBOImageProporties()
Removing settings tool.
calling virtual DockWidget3DSettings::~DockWidget3DSettings()
calling virtual Dialog3DGeneralSettings::~Dialog3DGeneralSettings()
calling virtual FormImageProp::~FormImageProp()
FBOImageProporties::~FBOImageProporties()
calling virtual FormImageProp::~FormImageProp()
FBOImageProporties::~FBOImageProporties()
calling virtual FormImageProp::~FormImageProp()
FBOImageProporties::~FBOImageProporties()
calling virtual FormImageProp::~FormImageProp()
FBOImageProporties::~FBOImageProporties()
calling virtual FormImageProp::~FormImageProp()
FBOImageProporties::~FBOImageProporties()
calling virtual FormImageProp::~FormImageProp()
FBOImageProporties::~FBOImageProporties()
calling virtual FormImageProp::~FormImageProp()
FBOImageProporties::~FBOImageProporties()
calling virtual FormImageProp::~FormImageProp()
FBOImageProporties::~FBOImageProporties()
Removing GLImage filters:
Removing filters:
Removing program: "BLOOM_FILTER"
Removing program: "DOF_FILTER"
Removing program: "GAUSSIAN_BLUR_FILTER"
Removing program: "LENS_FLARES_FILTER"
Removing program: "NORMAL_FILTER"
Removing program: "TONE_MAPPING_FILTER"
jstaf commented

For what it's worth, switching to the core profile branch (switch_to_core_profile) and building from source solved the issue for me on Fedora 30. I'm using the mesa drivers as well (I have an AMD video card).

Sorry for late reply and thanks for feedback. Yes, there is a branch with changes which suppose to make core profile working, however I didn't merge it yet to Release branch. I was not sure if this will really solve the problem. If I will get few more confirmations that this branch is really working on different machines/systems I will merge these changes to main branch and prepare binary packages.

I don't have time to compile currently but if you make a Ubuntu 19.04-compatible binary with this branch I can test on my Intel HD 4000-based system.

I work on 18.04, but they should be compatible. I will try to do it this weekend.

Thanks! :)

Hi, please check this release binary: https://github.com/kmkolasinski/AwesomeBump/releases/tag/Linuxv5.1

Does it work for you ?

@kmkolasinski It works, thanks! A bit slow though.

Hmm, that's surprising, maybe we loaded some large texture ?