bsf icon indicating copy to clipboard operation
bsf copied to clipboard

Segfault when running bsf in Manjaro

Open charlydelta opened this issue 6 years ago • 3 comments

I currently help out at REGoth, a game engine reimplementation which uses bsf. Recently, a Manjaro user reported, that he gets segmentation faults when he compiles and runs this engine.

Today, I set up a virtual machine with Manjaro (all updates applied and using Linux 5.2) and installed REGoth, and was able to reproduce these segmentation faults.

Here is the logfile together with a backtrace from gdb: https://pastebin.com/QND696m0

The backtrace shows, that the segmentation fault seems to origin from some bsf code, and I hereby wanted to report this issue in the hope to get this resolved.

If you need more information to debug this, please let me know.

charlydelta avatar Jul 29 '19 13:07 charlydelta

Just skimming through the logfile, these look weird:

[WARNING] Cannot find texture parameter with the name: 'gInputTex'

Maybe the internal shaders are not being found or something?

ataulien avatar Jul 29 '19 13:07 ataulien

I experienced something similar (namely it couldn't find the parameter 'gAlbedoTex' anymore) when the C++ code describing a buffer for a built-in shader was out of sync with the shader asset file.

mworchel avatar Jul 29 '19 13:07 mworchel

These sort of errors do usually happen when shaders fail to load.

Putting breakpoints in GLSLGpuProgram::initialize(), in places where it checks for compilation failure could help narrow down it.

Or just break when the error happens and examine the state of any GLSLGpuProgram objects, especially their mIsCompiled and mCompiledMessages members.

BearishSun avatar Jul 29 '19 17:07 BearishSun