ptitSeb / Serious-Engine

A port to the OpenPandora (and working fine on plain Linux) of the open source version of a game engine developed by Croteam for the classic Serious Sam games. Status: Working (for both FE and SE).
https://pyra-handheld.com/boards/threads/serious-sam-first-encounter.77225/
GNU General Public License v2.0
74 stars 22 forks source link

Segmentation fault (core dumped) using GOG version #39

Open iamthesenate1 opened 2 years ago

iamthesenate1 commented 2 years ago

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 commented 2 years ago

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

iamthesenate1 commented 2 years ago

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

iamthesenate1 commented 2 years ago

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 commented 2 years ago

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

ptitSeb commented 2 years ago

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 commented 2 years ago

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

iamthesenate1 commented 2 years ago

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

iamthesenate1 commented 2 years ago

Are there any special instructions for GOG version?

iamthesenate1 commented 2 years ago

This issue happens on the CD version too...

iamthesenate1 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

i have the same exact issue on pop_OS

Schatteneis commented 2 years ago

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 commented 2 years ago

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

Schatteneis commented 2 years ago

also this only seems to happen if you compile with clang

Schatteneis commented 2 years ago

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 commented 2 years ago

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/