-
Notifications
You must be signed in to change notification settings - Fork 12
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
Segmentation fault when using Nvidia drivers #1
Comments
The
Oops, my bad. I'll make the change right now.
This is interesting. A few people on HN were having a similar issues. It seemed mainly people with Nvidia graphics. May I ask what distribution and graphics you have? Cheers |
Artix Linux (basically Arch without systemd) and yes, Nvidia |
When I run it on my thinkpad (so no nvidia) the program runs and even displays some output (lines "food added" and "proned") but the window is all green and logger_data is still missing |
It seems there is some issue with GlDrawElements() and Nvidia. I'll need to investigate this further before fully understanding why. Thanks for letting me know about this.
Which ThinkPad was it? The green screen indicates that the FBO isn't being rendered correctly. The wobbly-jelly kinda graphics work by rendering the whole simulation offscreen to a frame buffer object, then distorting this using a shader. This distorted image is then used to texture a rectangle which spans the whole screen. If this shader fails then a green fullscreen quad spanning the whole screen will be displayed. I believe FBO's were only included in OpenGL 3.0, so this makes sense for any older ThinkPad. Ecosim was developed on a ThinkPad T420 running Devuan (Debian without systemd) My apologies for these issues. In the near future the whole simulation is going to be ported from GLFW to SDL2, which should be easier to ensure it works on various machines. |
me too ubuntu 19, GeForce GTX 1070 |
That would explain it. I've ran into issues on that Thinkpad already that made me discover it doesn't support OpenGL 3.0 (It's an x200) |
#metoo I tried to attach an strace output log, but kept getting 'something went really wrong' ... |
In the near future I will add an option in
I'm guessing the problem is caused by an issue in Thanks for the feedback :) |
I segfault with Nvidia's OpenGL implementation. Mesa with Intel Graphics is fine (and I suspect nouveau users would be fine). Easily testable for users with hybrid graphics thanks to NVIDIA's actual Optimus support.
Intel(R) HD Graphics 530 (SKL GT2) + NVIDIA Corporation GM107M [GeForce GTX 950M] |
Thanks for helping clarify that @Muffindrake |
So is this program abandoned? |
Not abandoned. I've tried getting to the root cause of the bug but haven't managed to. I will be porting the simulation over to SDL2 at some point soon, the segfault will be fixed then. |
I've cloned the repo and built it with
make
, but when I try to run the executable, it segfaults:Logging python script appears to be broken as well, unable to find module
logger_data
. It doesn't sound like some actual python module that can be installed (and duckduckgo search agrees) so I assume it's supposed to be a part of this software but it's not hereAs a side note, I had to change the python script's shebang to
#!/usr/bin/env python3
because python3.5 is not a thing on my system, I imagine I'm not the only oneShould I make this into two issues? Cause now that I think about this these are two separate problems but it feels kinda weird
The text was updated successfully, but these errors were encountered: