Hi!
I am toying with a game written in/for LÖVE and I'm getting random Segmentation faults.
But there is no stacktrace, the game just crashes and the string `Segmentation fault` is printed to the console.
Is there any way i can trace the problem?
A commandline flag or debug build, something like that?
I'm using `love-11.2-win64` and the game i am toying with is Mari0 (this branch).
Thanks!
Tracing Segfault
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Tracing Segfault
I don't get a segfault, but I get these messages:
This suggests that the problem might possibly be that your graphics driver is less graceful when it encounters these errors. See if you can fix or disable these shaders.
Code: Select all
shader (dotnbloom) is fucked up, yo:
Cannot compile pixel shader code:
Line 31: error: global variable gl_TexCoord is removed after version 140
shader (scanline-3x) is fucked up, yo:
Cannot compile pixel shader code:
Line 31: error: global variable gl_TexCoord is removed after version 140
shader (scanline-4x) is fucked up, yo:
Cannot compile pixel shader code:
Line 31: error: global variable gl_TexCoord is removed after version 140
Re: Tracing Segfault
This looks like a compilation error, did the game even run?
It works fine for me for at least 10 minutes until it crashes.
But i never used any shaders and they should be disabled by default. But i'll look into that.
Which LÖVE version did you use?
Howerver, not sure if this is even related to my segfault.
So, is there anything I can enable to get more information out of the crash?
There must be some way to narrow it down...
It works fine for me for at least 10 minutes until it crashes.
But i never used any shaders and they should be disabled by default. But i'll look into that.
Which LÖVE version did you use?
Howerver, not sure if this is even related to my segfault.
So, is there anything I can enable to get more information out of the crash?
There must be some way to narrow it down...
Re: Tracing Segfault
Yes, a shader compilation error. Yes, it did run despite the errors.
Ah ok, I didn't try that long. I'll try when I can and report back if I can reproduce the crash.
11.2 compiled by myself (no custom patches, but liblove is linked statically for me).
Run it under gdb.
Code: Select all
gdb --args love <folder>
(gdb) run
Code: Select all
(gdb) bt
- slime
- Solid Snayke
- Posts: 3160
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Tracing Segfault
Since you're using windows, you could try the latest LÖVE 11.3 prerelease build and see if the issue persists: https://ci.appveyor.com/project/AlexSzp ... /artifacts
LÖVE 11.3 has a bunch of fixes - one of the bigger ones is an updated version of OpenAL Soft which fixes some glitches and potential crashes around streaming audio sources.
LÖVE 11.3 has a bunch of fixes - one of the bigger ones is an updated version of OpenAL Soft which fixes some glitches and potential crashes around streaming audio sources.
Re: Tracing Segfault
Thanks!
Too bad, but I'll give it a try.
And i could turn off JIT right?
`jit.off()`
Found it on the forum, but not (jet) in the documentation - looks like it could disable JIT and switch to just interpretation...
Thanks, I'll try that first.slime wrote: ↑Thu Aug 01, 2019 11:23 am Since you're using windows, you could try the latest LÖVE 11.3 prerelease build and see if the issue persists: https://ci.appveyor.com/project/AlexSzp ... /artifacts
LÖVE 11.3 has a bunch of fixes - one of the bigger ones is an updated version of OpenAL Soft which fixes some glitches and potential crashes around streaming audio sources.
I'm already suspecting that it has someting to do with the background music looping over to the start.
Re: Tracing Segfault
I couldn't reproduce the crash on my Linux machine. Yes, there have been reports of crashes on Windows related to music looping, which were solved by updating OpenAL.
Re shaders, found them. In the MISC tab of the options there are shaders to select from, and the four above are not working in my system.
Re shaders, found them. In the MISC tab of the options there are shaders to select from, and the four above are not working in my system.
Re: Tracing Segfault
That did it! (Using the latest CI build).
Just put it through its paces with a second Player.
Used gamepads, tried all mappacks/dlc's we could find even did some screen recording with obs
Audio sounds perfect, not a single glicht!
This build feels so much more stable than 11.2 - on my machine
Thank you so much for helping out, we're having a lot of fun here!
Just put it through its paces with a second Player.
Used gamepads, tried all mappacks/dlc's we could find even did some screen recording with obs
Audio sounds perfect, not a single glicht!
This build feels so much more stable than 11.2 - on my machine
Thank you so much for helping out, we're having a lot of fun here!
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 3 guests