0auBSQ / OpenTaiko

An improved and personalized version of TJAPlayer3-Develop-Rewrite, .tja chart player axed on entertainment and creativity.
MIT License
392 stars 96 forks source link

Problems with libEGL on linux-arm64 (Raspberry Pi 5) #753

Open lupinthird opened 5 days ago

lupinthird commented 5 days ago

Managed to get the project to build with only warnings on the Raspberry Pi 5 (Raspberry Pi 5 OS - Debian Bookworm). However, when I run the app, it silently crashes. Checking the logs reveals that there seems to be an issue with libEGL, stemming from FDK->01.Framework->Rendering->Angle->AngleContext.cs, which seems to be coming from Silk.NET, and possibly all the way back to OpenTK.

I'd love to get this working, and if I'm being honest, I've probably put 8 hours into trying to get this project to build and run on this platform. It's been an enjoyable experience however. Any ideas what I can try? I'm wondering if the issue is the fact that Wayland is in the mix now on recent versions of Raspberry Pi OS.

Anyway, here's the error message.

Nov 24 19:16:36 taiko OpenTaiko[9371]: System.EntryPointNotFoundException: Unable to find an entry point named 'eglGetPlatformDisplayEXT' in shared library 'libEGL'. at OpenTK.Graphics.Egl.Egl.GetPlatformDisplayEXT(Int32 platform, IntPtr native_display, Int32[] attrib_list) at SampleFramework.AngleContext..ctor(AnglePlatformType anglePlatformType, IWindow window) in /home/taiko/src/OpenTaiko/FDK/src/01.Framework/Rendering/Angle/AngleContext.cs:line 64 at SampleFramework.Game.Window_Load() in /home/taiko/src/OpenTaiko/FDK/src/01.Framework/Core/Game.cs:line 407 at Silk.NET.Windowing.Internals.ViewImplementationBase.Initialize() at Silk.NET.Windowing.WindowExtensions.Run(IView view) at SampleFramework.Game.Run() in /home/taiko/src/OpenTaiko/FDK/src/01.Framework/Core/Game.cs:line 363 at OpenTaiko.Program.Main() in /home/taiko/src/OpenTaiko/OpenTaiko/src/Common/Program.cs:line 103

IepIweidieng commented 5 days ago

What are your GPU specs? https://github.com/facebookresearch/House3D/issues/16

lupinthird commented 5 days ago

It's the integrated GPU on the Raspberry Pi 5 -- a VideoCore VII clocked at 800Mhz. glxinfo reports that a lot of GL and GLES stuff is supported. I don't currently have access, but wanted to clarify that I wasn't using an external GPU or anything like that. I'm just running the stock Raspberry Pi OS with the default configuration. If you need something more specific, let me know. Not sure how to best answer your question without a little bit of guidance.

lupinthird commented 2 days ago

glinfo.txt

I have included the output of glxinfo here. Not sure if this is helpful in the context of this discussion or not. I did attempt to run OpenTaiko on both X11 and Wayland, and both come back with the same response. It kind of makes sense, as it seems like something about OpenTK is borked on this platform.