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

Segmentation fault (core dumped) using GOG version #39

Open
iamthesenate1 opened this issue Aug 4, 2021 · 17 comments
Open

Segmentation fault (core dumped) using GOG version #39

iamthesenate1 opened this issue Aug 4, 2021 · 17 comments

Comments

@iamthesenate1
Copy link

Manjaro Linux, using git version, 64bit.

'/home/manjaro/Serious-Engine/Bin/ssam' 
STUBBED: load window icon in /home/manjaro/Serious-Engine/Sources/SeriousSam/MainWindow.cpp, line 168.
STUBBED: Need SDL invisible window or something in /home/manjaro/Serious-Engine/Sources/SeriousSam/MainWindow.cpp, line 327.
STUBBED: !!! FIXME: get the code back in from Ryan's original port. in /home/manjaro/Serious-Engine/Sources/Engine/Base/Stream.cpp, line 921.
STUBBED: Report actual SDL device name? in /home/manjaro/Serious-Engine/Sources/Engine/Sound/SoundLibrary.cpp, line 269.
STUBBED: co-opt the existing T-buffer support for multisampling? in /home/manjaro/Serious-Engine/Sources/Engine/Graphics/SDL/SDLOpenGL.cpp, line 113.
STUBBED: this can't possibly be right, yeah? in /home/manjaro/Serious-Engine/Sources/Engine/Base/SDL/SDLEvents.cpp, line 147.
STUBBED: SDL2 can handle these events in /home/manjaro/Serious-Engine/Sources/SeriousSam/SeriousSam.cpp, line 1027.
STUBBED: Not 64-bit clean in /home/manjaro/Serious-Engine/Sources/EntitiesMP/Player.es, line 6561.
Segmentation fault (core dumped)

@iamthesenate1
Copy link
Author

I can get to the menu without the .gro files from the gog install.

@iamthesenate1
Copy link
Author

I have isolated the cause to the MusicMP folder from the SE1_00_Music.GRO

@iamthesenate1
Copy link
Author

iamthesenate1 commented Aug 4, 2021

M̶i̶g̶h̶t̶ ̶b̶e̶ ̶r̶e̶l̶a̶t̶e̶d̶ ̶t̶o̶ ̶l̶i̶b̶o̶g̶g̶ Almost certantly related to libogg.
🤔

@iamthesenate1
Copy link
Author

iamthesenate1 commented Aug 4, 2021

@ptitSeb Which version of libogg are you using? Or is libogg included in Serious engine?

@ptitSeb
Copy link
Owner

ptitSeb commented Aug 4, 2021

On Pyra, the one from the system (debian os). Nothing fancy.
An Pandora I use tremor. But sure to NOT use that option (it mostly for Pandora build).

@iamthesenate1
Copy link
Author

Something wierd is that if I extract the music gro and convert ogg to mp3 and back to ogg it works.

@iamthesenate1
Copy link
Author

iamthesenate1 commented Aug 4, 2021

False alert. This is only a part fix (it only gets me to the menu.)

@iamthesenate1
Copy link
Author

Are there any special instructions for GOG version?

@iamthesenate1
Copy link
Author

This issue happens on the CD version too...

@iamthesenate1
Copy link
Author

iamthesenate1 commented Aug 5, 2021

Playing with different configurations I came across a warning that said something like this:

Cannot open ogg file decoder.

@ptitSeb What do you think it means(how can it be fixed?)

@iamthesenate1
Copy link
Author

iamthesenate1 commented Aug 5, 2021

I have narrowed it down to the .txt files in the DataMP/Messages/Intro; Ignore the message from above.

Edit: nope. It is when it is loading the textures

@Schatteneis
Copy link

i have the same exact issue on pop_OS

@Schatteneis
Copy link

running the programm with gdb gives this output:
Thread 1 "ssam-tfe" received signal SIGSEGV, Segmentation fault.
CFogMarker::GetFog (this=0x0, fpFog=...) at /home/schatteneis/Serious-Engine/Sources/Entities/FogMarker.es:64
64 fpFog.fp_vFogDir(1) = m(1,2);

@Schatteneis
Copy link

for now an easy fix would be to compile the 32 bit version

@Schatteneis
Copy link

also this only seems to happen if you compile with clang

@Schatteneis
Copy link

Schatteneis commented Aug 29, 2021

by the way make sure you have nasm installed, the build failed on my system with gcc so i assumed i had to use clang, turns out all i needed was nasm and gcc on 64 bit compiled fine

update: you need gcc 10, gcc 11 fails

@q3aql
Copy link

q3aql commented Sep 29, 2021

Something wierd is that if I extract the music gro and convert ogg to mp3 and back to ogg it works.

I was able to fix the bug by compiling the game and the libraries, and I have music in the game. I share my compilations in case you need them.

https://github.com/q3aql/Serious-Engine/releases/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants