Bug #1199

Error logs containing opengl failures

Added by Rob Baer over 1 year ago. Updated 7 months ago.

Status:NewStart date:07/23/2017
Priority:NormalDue date:
Assignee:duststorm (Forum User)% Done:

0%

Category:OpenGL
Target version:-

Description

This doesn't strictly speaking belong on this bug tracker, but may have cross info helpful with numpy 13.1 issues and/or opengl fails. If it is noise feel free to delete.

Logs are from: MacOS Sierra . -- Python3 community source run

MakeHuman starts but the viewport did not render a human.

SYS.VERSION: 3.4.6 (default, Apr 23 2017, 17:16:17)  [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]
SYS.PLATFORM: darwin
SYS.EXECUTABLE: /opt/local/bin/python3
PLATFORM.MACHINE: x86_64
PLATFORM.PROCESSOR: i386
PLATFORM.UNAME.RELEASE: 16.7.0
PLATFORM.MAC_VER: 10.12.6
*NUMPY.VERSION: 1.13.1*
USE PYSIDE INSTEAD OF PYQT: False
QT.VERSION: 4.8.7
QT.JPG_SUPPORT: not supported
QT.SVG_SUPPORT: not supported
QT.PLUGIN_PATH: /opt/local/libexec/qt4/share/plugins:/opt/local/Library/Frameworks/Python.framework/Versions/3.4/Resources/Python.app/Contents/MacOS
QT.PLUGIN_PATH_ENV: 
QT.CONF: NOT PRESENT
*PYOPENGL.VERSION: 3.1.0*
GL.EXTENSION: GL_ARB_multisample enabled (4x samples)
GL.EXTENSION: GL_ARB_texture_non_power_of_two enabled

An example of the openGL error (see full log)

...
[2017-07-22 17:00:41,992] log.py->debug():113 -- DEBUG -- PYOPENGL.VERSION: 3.1.0
[2017-07-22 17:00:41,993] log.py->error():127 -- ERROR -- Failed to write GL debug info to debug dump: Can't convert 'bytes' object to str implicitly
[2017-07-22 17:00:41,996] log.py->debug():113 -- DEBUG -- GL.EXTENSION: GL_ARB_multisample enabled (4x samples)
[2017-07-22 17:00:41,999] log.py->debug():113 -- DEBUG -- Creating new texture for image data/textures/texture_notfound.png.
[2017-07-22 17:00:42,001] log.py->debug():113 -- DEBUG -- GL.EXTENSION: GL_ARB_texture_non_power_of_two enabled
[2017-07-22 17:00:42,004] log.py->debug():113 -- DEBUG -- initTexture: 256, 256, False
[2017-07-22 17:00:42,006] log.py->error():127 -- ERROR -- gl.reshape
Traceback (most recent call last):
  File "./lib/glmodule.py", line 231, in reshape
    updatePickingBuffer()
  File "./lib/glmodule.py", line 141, in updatePickingBuffer
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
  File "/Users/Rob/Library/Python/3.4/lib/python/site-packages/OpenGL/platform/baseplatform.py", line 402, in __call__
    return self( *args, **named )
  File "/Users/Rob/Library/Python/3.4/lib/python/site-packages/OpenGL/error.py", line 232, in glCheckError
    baseOperation = baseOperation,
OpenGL.error.GLError: GLError(
    err = 1286,
    description = b'invalid framebuffer operation',
    baseOperation = glClear,
    cArguments = (16640,)
)
[2017-07-22 17:00:42,014] log.py->error():127 -- ERROR -- gl.draw
Traceback (most recent call last):
  File "./lib/glmodule.py", line 1035, in draw
    _draw(productionRender)
  File "./lib/glmodule.py", line 1026, in _draw
    drawBegin()
  File "./lib/glmodule.py", line 245, in drawBegin
    glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT)
  File "/Users/Rob/Library/Python/3.4/lib/python/site-packages/OpenGL/error.py", line 232, in glCheckError
    baseOperation = baseOperation,
OpenGL.error.GLError: GLError(
    err = 1286,
    description = b'invalid framebuffer operation',
    baseOperation = glClear,
    cArguments = (16640,)
)
[2017-07-22 17:00:42,030] log.py->debug():113 -- DEBUG -- Setting language to english
[2017-07-22 17:00:42,032] log.py->debug():113 -- DEBUG -- Setting language to english
[2017-07-22 17:00:42,032] log.py->message():134 -- MESSAGE -- Initializing default theme first.

...

makehuman-debug.txt Magnifier (1.84 KB) Rob Baer, 07/23/2017 12:24 AM

makehuman.log (454 KB) Rob Baer, 07/23/2017 12:24 AM


Related issues

Related to MakeHuman - Bug #1144: openGL errors on startupof PPA MH1.1.1 New 03/05/2017
Related to MakeHuman - Bug #1116: GL_2_0.py:374: Future Warning New 02/12/2017
Related to Python 3 - Bug #1186: openGL on Ubuntu 16.04 New 07/13/2017
Related to Python 3 - Bug #1170: Opengl issues on Windows in MakeHuman for Python3 New 04/25/2017
Related to Python 3 - Bug #1198: Community build: further opengl crashing New 07/20/2017

History

#1 Updated by Rob Baer over 1 year ago

  • Related to Bug #1184: Export not working with numpy 1.13 added

#2 Updated by Rob Baer over 1 year ago

  • Related to Bug #1144: openGL errors on startupof PPA MH1.1.1 added

#3 Updated by Rob Baer over 1 year ago

  • Related to Bug #1116: GL_2_0.py:374: Future Warning added

#4 Updated by Rob Baer over 1 year ago

  • Related to Bug #1186: openGL on Ubuntu 16.04 added

#5 Updated by Rob Baer over 1 year ago

  • Related to Bug #1170: Opengl issues on Windows in MakeHuman for Python3 added

#6 Updated by Rob Baer over 1 year ago

  • Related to Bug #1198: Community build: further opengl crashing added

#7 Updated by Aranuvir # 7 months ago

  • Related to deleted (Bug #1184: Export not working with numpy 1.13 )

#8 Updated by Rob Baer 7 months ago

MacOS High Sierra

Framebuffer documentation:
https://www.khronos.org/opengl/wiki/Framebuffer

Line 231 of reshape.py seems the place to start. It reads 'UpdatePickingBuffer(). It is the last line of a try: statement that starts on line 218 and causes this exception at line 231.

UpdatePickingBuffer() itself is line 121 of glmodule.py

There is a Mac-specific workaround in mhmain.py, lines 1727 - 1740 or so that may give us clues as to how the mac is different, but I haven't quite understood it yet. Perhaps this is another mac thing altogether, but right now the mac does not draw a human in the viewport with py3 version. Why?

#9 Updated by Aranuvir # 7 months ago

Finally I got this apitrace tool compiled (https://github.com/apitrace/apitrace), that was suggested by Jonas. Running it with the current master, it shows a bunch of stack overflow errors for the glPushMatrix function.

I assume, the mac specific workaround brings the main win in foreground.

Also available in: Atom