After compiling PPSSPP or flat install , opengl ES errors, SDL problem?

Game ROMs compatibility, performance and new cores
Post Reply
rohezalzal
Posts: 28
Joined: Mon Apr 15, 2024 10:13 pm
languages_spoken: english
ODROIDs: odroid ultra go
Has thanked: 3 times
Been thanked: 1 time
Contact:

After compiling PPSSPP or flat install , opengl ES errors, SDL problem?

Post by rohezalzal »

I installed Lubuntu on my odroid go and I am using it as a laptop replacement. But I got problems getting any emulator to run besides Mednafen. When I build PPSSPP or use the flatpak (tip: install the flatpak ppa), I get EGL erros.

Code: Select all

MESA: error: ZINK: failed to choose pdev
glx: failed to create drisw screen
libEGL warning: DRI2: failed to authenticate
MESA: error: ZINK: failed to choose pdev
libEGL warning: egl: failed to create dri2 screen
ERROR: EGL Error EGL_BAD_ACCESS detected in file /run/build/ppsspp/SDL/SDLGLGraphicsContext.cpp at line 269 (0x3002)
EGL ERROR: Unable to make GLES context current.
EGL_Init() failed 
There is a special SDL Version for Odroid Mali. Would this work with an Odroid Ultra Go?

Code: Select all

sudo apt update
sudo apt upgrade
bash -c "$(curl -sL http://deb.odroid.in/install_ppsspp.sh)"
cd /root/ppsspp
./PPSSPPSDL
https://wiki.odroid.com/odroid-n2/os_im ... u/20210902

rohezalzal
Posts: 28
Joined: Mon Apr 15, 2024 10:13 pm
languages_spoken: english
ODROIDs: odroid ultra go
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: After compiling PPSSPP or flat install , opengl ES errors, SDL problem?

Post by rohezalzal »

Got it running via this script:

Code: Select all

#!/bin/bash
echo odroid | sudo -S service lightdm stop
#sudo here is optional
echo odroid | sudo -S /opt/ppsspp/PPSSPPSDL > ppsspp.txt 2>&1 
echo odroid | sudo -S service lightdm start


It loads mali, but it is complaining about missing access rights.

"give ppsspp permission to access storage"

It does not matter if you run it as root or normal user. Realy strange. Not mentioning of the problem in the logfiles. The flatpack version has filesystem access (but no gpu acceleration). I am kind of confused right now.

Code: Select all

48:27:049 Core/Config.cpp:1551 E[LOADER]: Failed to read /root/.config/ppsspp/PSP/SYSTEM/controls.ini. Setting controller config to default.
48:27:056 Core/Config.cpp:1224 E[LOADER]: Error saving config - can't read ini '/root/.config/ppsspp/PSP/SYSTEM/ppsspp.ini'
48:27:073 Core/Config.cpp:1269 I[LOADER]: Config saved (got storage permission): '/root/.config/ppsspp/PSP/SYSTEM/ppsspp.ini'
48:27:073 Core/Config.cpp:1275 E[LOADER]: Error saving config - can't read ini '/root/.config/ppsspp/PSP/SYSTEM/controls.ini'
48:27:074 Core/Config.cpp:1282 I[LOADER]: Controller config saved: /root/.config/ppsspp/PSP/SYSTEM/controls.ini
48:27:325 Core/Config.cpp:1269 I[LOADER]: Config saved (clearFailedGPUBackends): '/root/.config/ppsspp/PSP/SYSTEM/ppsspp.ini'
48:27:326 Core/Config.cpp:1282 I[LOADER]: Controller config saved: /root/.config/ppsspp/PSP/SYSTEM/controls.ini
48:39:795 Core/Config.cpp:1269 I[LOADER]: Config saved (MainScreen::OnExit): '/root/.config/ppsspp/PSP/SYSTEM/ppsspp.ini'
48:39:812 Core/Config.cpp:1282 I[LOADER]: Controller config saved: /root/.config/ppsspp/PSP/SYSTEM/controls.ini
48:39:827 Core/Config.cpp:1269 I[LOADER]: Config saved (NativeShutdown): '/root/.config/ppsspp/PSP/SYSTEM/ppsspp.ini'
48:39:828 Core/Config.cpp:1282 I[LOADER]: Controller config saved: /root/.config/ppsspp/PSP/SYSTEM/controls.ini
FbDevDispaly: w=480, h=854, vx=480, vy=1708 (buffers=2)
FbDevDisplay: buffer_count=2
EGL: major=1, minor=4
EGL: Vendor=ARM
EGL: Version=1.4 Bifrost-"git"
EGL: ClientAPIs=OpenGL_ES
EGL: Extensions=EGL_KHR_partial_update EGL_EXT_image_dma_buf_import EGL_KHR_config_attribs EGL_KHR_image EGL_KHR_image_base EGL_KHR_fence_sync EGL_KHR_wait_sync EGL_KHR_gl_colorspace EGL_KHR_get_all_proc_addresses EGL_IMG_context_priority EGL_KHR_no_config_context EGL_ARM_pixmap_multisample_discard EGL_ARM_implicit_external_sync EGL_KHR_gl_texture_2D_image EGL_KHR_gl_renderbuffer_image EGL_KHR_create_context EGL_KHR_surfaceless_context EGL_KHR_gl_texture_cubemap_image EGL_EXT_create_context_robustness
EGL: ClientExtensions=EGL_EXT_client_extensions EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses

Device: name=/dev/input/event0
Device: name=/dev/input/event1
Device: name=/dev/input/event2
Device: name=/dev/input/event3
AddDevice: adding (0)=(/dev/input/event3)
Input device name: "odroidgo_joypad"
Input device ID: bus 0x19 vendor 0x484b product 0x1000
Input device mapper: Go4EventMapper
I: Config.cpp:526: Longest display side: -1 pixels. Choosing scale 1
Pixels: 960 x 544
Virtual pixels: 1920 x 1088
I: gpu_features.cpp:174: GPU Vendor : ARM ; renderer: Mali-G52 version str: OpenGL ES 3.2 git.c8adbf9.122c9daed32dbba4b3056f41a2f23c58 ; GLSL version str: OpenGL ES GLSL ES 3.20
I: gpu_features.cpp:291: OpenGL ES 3.1 support detected!

I: NativeApp.cpp:776: NativeInitGraphics
I: NativeApp.cpp:852: NativeInitGraphics completed
I: GLRenderManager.cpp:196: Running first frame (0)
I: NativeApp.cpp:863: NativeShutdownGraphics
I: NativeApp.cpp:890: NativeShutdownGraphics done
I: GLRenderManager.cpp:225: GL submission thread paused. Frame=1
I: GLRenderManager.cpp:133: ThreadEnd
I: NativeApp.cpp:1307: NativeShutdown called
I: SDLMain.cpp:928: Leaving main
AL lib: (EE) alc_cleanup: 1 device not closed

crashoverride
Posts: 5874
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 651 times
Contact:

Re: After compiling PPSSPP or flat install , opengl ES errors, SDL problem?

Post by crashoverride »

rohezalzal wrote:
Thu May 16, 2024 5:51 am
48:27:049 Core/Config.cpp:1551 E[LOADER]: Failed to read /root/.config/ppsspp/PSP/SYSTEM/controls.ini. Setting controller config to default.
Only the user "odroid" is configured with the correct default PSP settings. If you are running as "root", then no configuration file is present and PPSSPP will create default versions that may not work correctly.

rohezalzal
Posts: 28
Joined: Mon Apr 15, 2024 10:13 pm
languages_spoken: english
ODROIDs: odroid ultra go
Has thanked: 3 times
Been thanked: 1 time
Contact:

Re: After compiling PPSSPP or flat install , opengl ES errors, SDL problem?

Post by rohezalzal »

Same happened with odroid, just wanted to make sure, it is not a file system access right problem. When you give an image as parameter PPSSPP works and can create save states. Strange.

Post Reply

Return to “Game emulations”

Who is online

Users browsing this forum: No registered users and 1 guest