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

Black screen in 3D view (Ubuntu 18.04.1 LTS) #142

Open
RepairUnit3k6 opened this issue Jul 28, 2018 · 24 comments
Open

Black screen in 3D view (Ubuntu 18.04.1 LTS) #142

RepairUnit3k6 opened this issue Jul 28, 2018 · 24 comments
Assignees

Comments

@RepairUnit3k6
Copy link

RepairUnit3k6 commented Jul 28, 2018

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

@kmkolasinski
Copy link
Owner

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

@RepairUnit3k6
Copy link
Author

@kmkolasinski I Sure, I edited original issue.

@kmkolasinski
Copy link
Owner

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.

@RepairUnit3k6
Copy link
Author

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

@kmkolasinski
Copy link
Owner

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.

@qwertychouskie
Copy link

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 ;)

@RepairUnit3k6
Copy link
Author

@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.

@kmkolasinski
Copy link
Owner

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.

@kmkolasinski
Copy link
Owner

@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 :/

@kmkolasinski
Copy link
Owner

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.

@kmkolasinski
Copy link
Owner

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

@ppiecuch
Copy link
Collaborator

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

@kmkolasinski
Copy link
Owner

Thanks a bunch!

@ppiecuch
Copy link
Collaborator

ppiecuch commented Sep 2, 2018

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

@kmkolasinski
Copy link
Owner

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
Copy link

OBKF commented Apr 8, 2019

@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
Copy link

jstaf commented Jul 27, 2019

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).

@kmkolasinski
Copy link
Owner

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.

@qwertychouskie
Copy link

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.

@kmkolasinski
Copy link
Owner

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

@qwertychouskie
Copy link

Thanks! :)

@kmkolasinski
Copy link
Owner

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

Does it work for you ?

@kmkolasinski kmkolasinski pinned this issue Sep 10, 2019
@qwertychouskie
Copy link

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

@kmkolasinski
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants