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

Segfault when running bsf in Manjaro #381

Open
charlydelta opened this issue Jul 29, 2019 · 3 comments
Open

Segfault when running bsf in Manjaro #381

charlydelta opened this issue Jul 29, 2019 · 3 comments
Labels
type: bug Something isn't working

Comments

@charlydelta
Copy link

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.

@ataulien
Copy link
Contributor

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?

@mworchel
Copy link
Contributor

mworchel commented Jul 29, 2019

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.

@BearishSun
Copy link
Member

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 BearishSun added the type: bug Something isn't working label Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants