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

Black screen when using on aarch64 (asahi linux/m1) #64

Open
BetterUnborn opened this issue Feb 23, 2023 · 8 comments
Open

Black screen when using on aarch64 (asahi linux/m1) #64

BetterUnborn opened this issue Feb 23, 2023 · 8 comments

Comments

@BetterUnborn
Copy link

Hi,

I compiled it from sources using latest commit 4c0b882 on my up-to-date asahi linux on aarch64 apple M1. It compiles without any modifications using the build-linux64.sh script, and I copied the *.gro files from a windows TSE installation from steam into it.

When I launch the game the menu screen shows up. But when I start a game, it is stuck with a black screen. Gnome tells me that the program does not react anymore (--> stuck in a loop?). The console shows this:

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

Any help appreciated :)

@severusseptimius
Copy link

What compiler did you use?

@BetterUnborn
Copy link
Author

The one that came preinstalled with Asahi:

gcc --version                                                                           ─╯
gcc (GCC) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

@BetterUnborn
Copy link
Author

Just to test out ... tried also with clang, the result is the same. Verified in build output that indeed the compiler I thought is chosen.

clang --version                                                                         ─╯
clang version 15.0.7
Target: aarch64-unknown-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

Remark: I can also see the Croteam and Godgames logos including seemingly correct animations. Just whenever the engine should draw its in-game graphics screen is black and the game hangs. Also when I don't interrupt at the logos and the games does circle through the initial demos.

@severusseptimius
Copy link

severusseptimius commented Feb 23, 2023

Can you try the workaround in #40 ?

@BetterUnborn
Copy link
Author

Can confirm with that workaround the level starts, and I could play for a few minutes without a problem 👍

@ptitSeb
Copy link
Owner

ptitSeb commented Feb 23, 2023

Oh, so some speicifc bug on Aarch64. I'll have to check if some the hack for armhf maybe need to be enable on Aarch64 as well.

@BetterUnborn
Copy link
Author

Okay, thanks for the help!! I have tried several levels and have seen no issues so far ... just the resolution was capped at something 1400ish, dunno why ... but that's another topic.

Shall I close this issue or leave it open as reference for a possible aarch64 fix?

@ptitSeb
Copy link
Owner

ptitSeb commented Feb 23, 2023

Leave it open yeah, I'll try to work on that later.

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

3 participants