Dev:Doc/Tools/Debugging/BuGLe

提供: wiki
< Dev:Doc‎ | Tools‎ | Debugging
2018年6月29日 (金) 04:37時点におけるYamyam (トーク | 投稿記録)による版 (1版 をインポートしました)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

OpenGL Debugging with Bugle

Some OpenGL bugs can give totally useless backtraces in GDB. (crash inside the GL driver).

Using bugle source - http://www.opengl.org/sdk/tools/BuGLe/

scons prefix=/opt/bugle install

Copy doc/examples/filters into ~/.bugle/filters

BUGLE_CHAIN=validate LD_PRELOAD=/opt/bugle/lib/libbugle.so:/opt/bugle/lib/libbugleutils.so ./blender.bin

Then instead of crashing it gives a useful message as to whats going wrong, like this... [NOTICE] checks.error: illegal normal array caught in glDrawArrays (unreadable memory); call will be ignored.

there are other options for debugging like showfps, trace, wireframe ... see ~/.bugle/filters for options.

With the "crash" filter I managed to get a valid backtrace from gdb too.

BUGLE_CHAIN=crash LD_PRELOAD=/opt/bugle/lib/libbugle.so:/opt/bugle/lib/libbugleutils.so gdb ./blender.bin

Thought It might be useful for people looking into VBO bugs for the first time.