Serious-Engine icon indicating copy to clipboard operation
Serious-Engine copied to clipboard

Segmentation fault (core dumped) using GOG version

Open iamthesenate1 opened this issue 3 years ago • 17 comments

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 avatar Aug 04 '21 18:08 iamthesenate1

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

iamthesenate1 avatar Aug 04 '21 18:08 iamthesenate1

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

iamthesenate1 avatar Aug 04 '21 18:08 iamthesenate1

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 avatar Aug 04 '21 18:08 iamthesenate1

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

iamthesenate1 avatar Aug 04 '21 19:08 iamthesenate1

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).

ptitSeb avatar Aug 04 '21 19:08 ptitSeb

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

iamthesenate1 avatar Aug 04 '21 20:08 iamthesenate1

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

iamthesenate1 avatar Aug 04 '21 20:08 iamthesenate1

Are there any special instructions for GOG version?

iamthesenate1 avatar Aug 04 '21 21:08 iamthesenate1

This issue happens on the CD version too...

iamthesenate1 avatar Aug 05 '21 08:08 iamthesenate1

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 avatar Aug 05 '21 09:08 iamthesenate1

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

iamthesenate1 avatar Aug 05 '21 09:08 iamthesenate1

i have the same exact issue on pop_OS

Schatteneis avatar Aug 28 '21 18:08 Schatteneis

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 avatar Aug 28 '21 19:08 Schatteneis

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

Schatteneis avatar Aug 29 '21 15:08 Schatteneis

also this only seems to happen if you compile with clang

Schatteneis avatar Aug 29 '21 15:08 Schatteneis

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

Schatteneis avatar Aug 29 '21 15:08 Schatteneis

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/

q3aql avatar Sep 29 '21 15:09 q3aql