Skip to content

Troubleshooting

wobakj edited this page Sep 24, 2016 · 3 revisions

Application throws runtime_error -> OpenGL function call was unsuccessfulfunction

error and arguments are displayed

  • find function entry in the OpenGL reference and check reasons for error application is stopped
  • backtrace crash point with gdb: enter “gdb application name”, then run by entering “r”
  • when crashed, enter “bt” to backtrace exception, find mentioned function name and corresponding source file and line

Application throws logic error -> shader compilation or linking failed

sourcefile, line and error are displayed

  • when loading failed at startup, application is stopped
  • when loading failed during runtime, no exception is thrown, shader can be reloaded with R after problem was fixed

Application crashes with segmentation fault

backtrace should be checked for gl* calls

  • if glDraw* is part of backtrace, check Vertex Buffer, Index Buffer, and VertexArray bindings for
  • if other gl* command is part of backtrace, checkbindings used in this function
  • if no gl command is part of backtrace, mistake lies somewhere else

Framerate is inconsistent

enable VSync

  • in the launcher.cpp set the argument of the call to glfwSwapInterval from 0 to 1