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

Libretro port graphic problems when launching game on Linux #14084

Closed
raidenii opened this issue Feb 8, 2021 · 19 comments
Closed

Libretro port graphic problems when launching game on Linux #14084

raidenii opened this issue Feb 8, 2021 · 19 comments
Labels
Libretro Issue on Libretro but not all ports. No Feedback / Outdated?

Comments

@raidenii
Copy link

raidenii commented Feb 8, 2021

What happens?

  1. Libretro port shows a blank/grey screen when launching the game.
  2. 2nd launch of any ppsspp game in the same RA session leads to a black screen. This started from a long time ago

What should happen?

Game should load properly under both situations.

What hardware, operating system, and PPSSPP version? On desktop and mobile phone, GPU matters for graphical issues.

Please test newest version in https://buildbot.orphis.net/ppsspp/

RetroArch 1.9.1, PPSSPP commit b539ce8, using glcore as video driver
Running on Odroid Go Advance (Linux, aarch64, Mali G31 GPU)

Additional details:

When the 1st issue happens, RA log says:

...
[libretro ERROR] [SCEIO] Not a valid PGD file. Open as normal file.
[libretro INFO] [HLE] call sceNpDrmEdataGetDataSize 6
[libretro INFO] [SCEIO] stdout: leona enable
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: AlvionMain run start
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: ------- System Memory Info -------
[libretro INFO] [SCEIO] stdout: System TotalFreeMemSize 198144
[libretro INFO] [SCEIO] stdout: System MaxFreeMemSize 196608
[libretro INFO] [SCEIO] stdout: ------- Heap Info -------
[libretro INFO] [SCEIO] stdout: Total free size : 18021496
[libretro INFO] [SCEIO] stdout: Total space allocated from system : 18021632
[libretro INFO] [SCEIO] stdout: Number of ordinary blocks  : 0
[libretro INFO] [SCEIO] stdout: Number of FPL regions  : 1
[libretro INFO] [SCEIO] stdout: Total space allocated from FPL(arena)  : 18021632
[libretro INFO] [SCEIO] stdout: Total allocated space  : 136
[libretro INFO] [SCEIO] stdout: Total memory that can be allocated  : 18021496
[libretro INFO] [SCEIO] stdout:  -----------------------
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 10760192, addr = 0x9531fe0
[libretro INFO] [SCEIO] stdout: taskInit {
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 90144, addr = 0x951bfb8
[libretro INFO] [SCEIO] stdout: rsvInit : 0x0951bfb8 : 0x00016020
[libretro INFO] [SCEIO] stdout: }
[libretro INFO] [SCEIO] stdout: file read AFS id = 0 size = 10760192
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 190464, addr = 0x94ed7a0
[libretro INFO] [SCEIO] stdout: file read AFS id = 73 size = 190464
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 346112, addr = 0x9498f80
[libretro INFO] [SCEIO] stdout: file read AFS id = 84 size = 346112
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 30912, addr = 0x94916b8
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 1024, addr = 0x94912b0
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 512, addr = 0x94910a8
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 8496, addr = 0x948ef70
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 4096, addr = 0x948df68
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 2048, addr = 0x948d760
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 4096, addr = 0x948c758
[libretro INFO] [SCEIO] stdout: s_pModelAnm 948c758
[libretro INFO] [SCEIO] stdout:  read ins ptr 9498f80 size 346112
[libretro INFO] [SCEIO] stdout:  Ins_Stage read = 338(KB) ovl=0(KB)
[libretro INFO] [SCEIO] stdout:  TexEnv = 0,  nTex    = 1
[libretro INFO] [SCEIO] stdout:  nAnim  = 1,  nIfo    = 1
[libretro INFO] [SCEIO] stdout:  nAlk   = 1,  nSprite = 1
[libretro INFO] [SCEIO] stdout:  nLocal = 0,  nOvl    = 0
[libretro INFO] [SCEIO] stdout: nTexEnv 2
[libretro INFO] [SCEIO] stdout: Init_AlvAnimSeq ok
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: ------- System Memory Info -------
[libretro INFO] [SCEIO] stdout: System TotalFreeMemSize 198144
[libretro INFO] [SCEIO] stdout: System MaxFreeMemSize 196608
[libretro INFO] [SCEIO] stdout: ------- Heap Info -------
[libretro INFO] [SCEIO] stdout: Total free size : 6583312
[libretro INFO] [SCEIO] stdout: Total space allocated from system : 18021632
[libretro INFO] [SCEIO] stdout: Number of ordinary blocks  : 11
[libretro INFO] [SCEIO] stdout: Number of FPL regions  : 1
[libretro INFO] [SCEIO] stdout: Total space allocated from FPL(arena)  : 18021632
[libretro INFO] [SCEIO] stdout: Total allocated space  : 11438320
[libretro INFO] [SCEIO] stdout: Total memory that can be allocated  : 6583312
[libretro INFO] [SCEIO] stdout:  -----------------------
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [JIT] ThreadPool: Bad number of threads 0

2nd issue log:

[libretro INFO] [HLE] call sceNpDrmEdataGetDataSize 6
[libretro INFO] [SCEIO] stdout: leona enable
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: AlvionMain run start
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: ------- System Memory Info -------
[libretro INFO] [SCEIO] stdout: System TotalFreeMemSize 198144
[libretro INFO] [SCEIO] stdout: System MaxFreeMemSize 196608
[libretro INFO] [SCEIO] stdout: ------- Heap Info -------
[libretro INFO] [SCEIO] stdout: Total free size : 18021496
[libretro INFO] [SCEIO] stdout: Total space allocated from system : 18021632
[libretro INFO] [SCEIO] stdout: Number of ordinary blocks  : 0
[libretro INFO] [SCEIO] stdout: Number of FPL regions  : 1
[libretro INFO] [SCEIO] stdout: Total space allocated from FPL(arena)  : 18021632
[libretro INFO] [SCEIO] stdout: Total allocated space  : 136
[libretro INFO] [SCEIO] stdout: Total memory that can be allocated  : 18021496
[libretro INFO] [SCEIO] stdout:  -----------------------
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 10760192, addr = 0x9531fe0
[libretro INFO] [SCEIO] stdout: taskInit {
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 90144, addr = 0x951bfb8
[libretro INFO] [SCEIO] stdout: rsvInit : 0x0951bfb8 : 0x00016020
[libretro INFO] [SCEIO] stdout: }
[libretro INFO] [FRAMEBUF] Creating FBO for 04088000 (z: 04110000) : 480 x 272 x 3
[libretro WARN] [G3D] Memcpy fbo upload 04488000 -> 04088000 (size: 88000)
[libretro WARN] [G3D] Got an error after init: 00000501 (GL_INVALID_VALUE)
[libretro INFO] [FRAMEBUF] Creating FBO for 04000000 (z: 04110000) : 480 x 272 x 3
[libretro WARN] [SCEGE] FBO reusing depthbuffer, c=04000000/d=04110000 and c=04088000/d=04110000
[libretro WARN] [G3D] Got an error after init: 00000501 (GL_INVALID_VALUE)
[libretro WARN] [G3D] Got an error after init: 00000501 (GL_INVALID_VALUE)
[libretro INFO] [SCEIO] stdout: file read AFS id = 0 size = 10760192
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 190464, addr = 0x94ed7a0
[libretro INFO] [SCEIO] stdout: file read AFS id = 73 size = 190464
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 346112, addr = 0x9498f80
[libretro INFO] [SCEIO] stdout: file read AFS id = 84 size = 346112
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 30912, addr = 0x94916b8
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 1024, addr = 0x94912b0
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 512, addr = 0x94910a8
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 8496, addr = 0x948ef70
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 4096, addr = 0x948df68
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 2048, addr = 0x948d760
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 4096, addr = 0x948c758
[libretro INFO] [SCEIO] stdout: s_pModelAnm 948c758
[libretro INFO] [SCEIO] stdout:  read ins ptr 9498f80 size 346112
[libretro INFO] [SCEIO] stdout:  Ins_Stage read = 338(KB) ovl=0(KB)
[libretro INFO] [SCEIO] stdout:  TexEnv = 0,  nTex    = 1
[libretro INFO] [SCEIO] stdout:  nAnim  = 1,  nIfo    = 1
[libretro INFO] [SCEIO] stdout:  nAlk   = 1,  nSprite = 1
[libretro INFO] [SCEIO] stdout:  nLocal = 0,  nOvl    = 0
[libretro INFO] [SCEIO] stdout: nTexEnv 2
[libretro INFO] [SCEIO] stdout: Init_AlvAnimSeq ok
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: ------- System Memory Info -------
[libretro INFO] [SCEIO] stdout: System TotalFreeMemSize 198144
[libretro INFO] [SCEIO] stdout: System MaxFreeMemSize 196608
[libretro INFO] [SCEIO] stdout: ------- Heap Info -------
[libretro INFO] [SCEIO] stdout: Total free size : 6583312
[libretro INFO] [SCEIO] stdout: Total space allocated from system : 18021632
[libretro INFO] [SCEIO] stdout: Number of ordinary blocks  : 11
[libretro INFO] [SCEIO] stdout: Number of FPL regions  : 1
[libretro INFO] [SCEIO] stdout: Total space allocated from FPL(arena)  : 18021632
[libretro INFO] [SCEIO] stdout: Total allocated space  : 11438320
[libretro INFO] [SCEIO] stdout: Total memory that can be allocated  : 6583312
[libretro INFO] [SCEIO] stdout:  -----------------------
[libretro INFO] [SCEIO] stdout:
[libretro WARN] [G3D] Got an error after init: 00000501 (GL_INVALID_VALUE)
@unknownbrackets
Copy link
Collaborator

Is this similar to #13737?

Everything works fine with PPSSPP proper, right?

-[Unknown]

@raidenii
Copy link
Author

raidenii commented Feb 9, 2021

It's not - no game can load properly at all, just a grey screen right after loaded.
I have yet to build/test standalone, although I assume it shall work fine. Will try build it tomorrow and test.

@raidenii
Copy link
Author

raidenii commented Feb 9, 2021

@unknownbrackets

Confirmed, the standalone version (at commit c4a4fbd) works fine, does not have the two issues mentioned. This happens to libretro core only.

@orbea
Copy link
Contributor

orbea commented Feb 14, 2021

@unknownbrackets Duplicate issue of #10784.

@raidenii
Copy link
Author

Hold on, can we please re-open this? While the 2nd issue might be a duplicate of the one referenced, the 1st issue is definitely something new - I remember the builds made back in Oct 2020 does not have the first issue I mentioned.

@unknownbrackets unknownbrackets added the Libretro Issue on Libretro but not all ports. label Feb 15, 2021
@raidenii
Copy link
Author

I think the first issue is related to #14151 (and maybe #10784) too, switching to gl driver and the 1st launch of game works fine (2nd launch leads to a scrambled screen). However, the 1st issue seems to be introduced by some recent commits in the past month or two.

@raidenii
Copy link
Author

I'll close this and track #10784.

@raidenii
Copy link
Author

raidenii commented Mar 7, 2021

An update: the 1st issue is caused by commit 0c885db.

@raidenii raidenii reopened this Mar 7, 2021
@raidenii
Copy link
Author

Disabling Allow cores to switch video drivers allow newer cores to run with glcore driver.

@unknownbrackets
Copy link
Collaborator

The 0c885db issue should've already been fixed by #13484. Did you test after that change (which would've been in b539ce8?

I know there are issues with the way libretro or at least the port to libretro handles GPU backends, as noted in #10784. I think proper core profile handling has just not been implemented. It's waiting for someone enthusiastic about emulator frontends to fix it.

-[Unknown]

@raidenii
Copy link
Author

raidenii commented Apr 11, 2021

Unfortunately, with commit b539c38 it still does not work. Here's the log:

[libretro INFO] [SCEKERNEL] 276=sceKernelCreateThread(user_main, 08804114, 00000020, 262144, 80004000, 00000000)
[libretro INFO] [SCEKERNEL] 0=sceKernelStartThread(276, 33, 09fffed0)
[libretro INFO] [SCEIO] stdout: TotalFreeMemSize 18936832
[libretro INFO] [SCEIO] stdout: MaxFreeMemSize 18934784
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEUTIL] 0=sceUtilityLoadModule(00000100)
[libretro INFO] [SCEIO] stdout: Load Module: SCE_UTILITY_MODULE_NET_COMMON
[libretro INFO] [SCEUTIL] 0=sceUtilityLoadModule(00000101)
[libretro INFO] [SCEIO] stdout: Load Module: SCE_UTILITY_MODULE_NET_ADHOC
[libretro INFO] [SCEUTIL] 0=sceUtilityLoadModule(00000300)
[libretro INFO] [SCEIO] stdout: Load Module: SCE_UTILITY_MODULE_AV_AVCODEC
[libretro INFO] [SCEUTIL] 0=sceUtilityLoadModule(00000302)
[libretro INFO] [SCEIO] stdout: Load Module: SCE_UTILITY_MODULE_AV_LIBATRAC3PLUS
[libretro INFO] [SCEUTIL] 0=sceUtilityLoadModule(00000500)
[libretro INFO] [SCEIO] stdout: Load Module: SCE_UTILITY_MODULE_NPDRM
[libretro INFO] [SCEMODULE] ~SCE module, skipping header
[libretro INFO] [SCEMODULE] Loading module sceFont_Library with version 0101, devkit 05000010
[libretro INFO] [LOADER] Decrypting tag 457B06F0
[libretro INFO] [LOADER] Decrypting tag 457B06F0
[libretro INFO] [LOADER] Decrypting tag 457B06F0
[libretro INFO] [SCEMODULE] 279=sceKernelLoadModule(name=disc0:/PSP_GAME/USRDIR/MODULE/LIBFONT.PRX,flag=00000000,(...))
[libretro INFO] [SCEIO] stdout: Load Module: LIBFONT.PRX
[libretro INFO] [SCEMODULE] sceKernelStartModule(279,asize=00000000,aptr=00000000,retptr=00000000,00000000): faked (undecryptable module)
[libretro INFO] [SCEIO] stdout: Start Module: LIBFONT.PRX
[libretro INFO] [SCEKERNEL] 282=sceKernelCreateThread(SceWaveMain, 08846438, 00000010, 512, 00000000, 00000000)
[libretro INFO] [SCEKERNEL] 0=sceKernelStartThread(282, 12, 08951608)
[libretro WARN] [SCENET] sceNetInit(poolsize=327680, calloutpri=18, calloutstack=0, netintrpri=18, netintrstack=0) at 08864f54
[libretro INFO] [SCENET] 0=sceNetAdhocInit(): at 08864f7c
[libretro INFO] [SCENET] sceNetAdhocctlInit(19456, 20, 08b0885c) at 08864fe0
[libretro INFO] [SCEKERNEL] 283=sceNetAdhocctlInit(19456, 20, 08b0885c)
[libretro INFO] [SCENET] FriendFinder: Begin of Friend Finder Thread
[libretro ERROR] [SCENET] DNS Error Resolving

[libretro WARN] [SCENET] UNTESTED sceNetAdhocctlAddHandler(8864e4c, 0): added handler 0
[libretro WARN] [SCENET] sceNetAdhocMatchingInit(65536) at 08865048
[libretro INFO] [SCEIO] stdout: state change: [TOP]   >>>   [TOP]
[libretro INFO] [SCEKERNEL] 284=sceKernelCreateThread(CRI ADX Audio, 08826ac0, 00000016, 32768, 00000000, 00000000)
[libretro INFO] [SCEKERNEL] 0=sceKernelStartThread(284, 0, 00000000)
[libretro INFO] [SCEKERNEL] 285=sceKernelCreateThread(CRI ADX File, 08826b38, 00000018, 16384, 00000000, 00000000)
[libretro INFO] [SCEKERNEL] 0=sceKernelStartThread(285, 0, 00000000)
[libretro INFO] [SCEKERNEL] 286=sceKernelCreateThread(CRI Wave out, 0883f308, 00000010, 16384, 00000000, 00000000)
[libretro INFO] [SCEKERNEL] 0=sceKernelStartThread(286, 0, 00000000)
[libretro INFO] [SCEIO] stdout: PSPCI: "disc0:/PSP_GAME/USRDIR/BGM.BIN" Opened.(sceIoOpen fd = 4 size = 31502336)
[libretro INFO] [SCEIO] stdout: PSPCI: "disc0:/PSP_GAME/USRDIR/DATA.BIN" Opened.(sceIoOpen fd = 5 size = 322541568)
[libretro INFO] [SCEIO] stdout: PSPCI: Total 2 files.
[libretro INFO] [SCEKERNEL] 292=sceKernelCreateThread(CRI ADXATR Waveout Thread1, 088493e4, 00000010, 16384, 00000000, 00000000)
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: CreateHeap Before
[libretro INFO] [SCEIO] stdout: TotalFreeMemSize 18219776
[libretro INFO] [SCEIO] stdout: MaxFreeMemSize 18218240
[libretro INFO] [SCEIO] stdout: Create New Heap, Size = 18021632
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: CreateHeap After
[libretro INFO] [SCEIO] stdout: TotalFreeMemSize 198144
[libretro INFO] [SCEIO] stdout: MaxFreeMemSize 196608
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: ------- System Memory Info -------
[libretro INFO] [SCEIO] stdout: System TotalFreeMemSize 198144
[libretro INFO] [SCEIO] stdout: System MaxFreeMemSize 196608
[libretro INFO] [SCEIO] stdout: ------- Heap Info -------
[libretro INFO] [SCEIO] stdout: Total free size : 18021496
[libretro INFO] [SCEIO] stdout: Total space allocated from system : 18021632
[libretro INFO] [SCEIO] stdout: Number of ordinary blocks  : 0
[libretro INFO] [SCEIO] stdout: Number of FPL regions  : 1
[libretro INFO] [SCEIO] stdout: Total space allocated from FPL(arena)  : 18021632
[libretro INFO] [SCEIO] stdout: Total allocated space  : 136
[libretro INFO] [SCEIO] stdout: Total memory that can be allocated  : 18021496
[libretro INFO] [SCEIO] stdout:  -----------------------
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [HLE] call sceNpDrmSetLicenseeKey(0888b694)
[libretro INFO] [HLE] call sceNpDrmEdataSetupKey 6
[libretro ERROR] [SCEIO] Not a valid PGD file. Open as normal file.
[libretro INFO] [HLE] call sceNpDrmEdataGetDataSize 6
[libretro INFO] [SCEIO] stdout: leona enable
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: AlvionMain run start
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: ------- System Memory Info -------
[libretro INFO] [SCEIO] stdout: System TotalFreeMemSize 198144
[libretro INFO] [SCEIO] stdout: System MaxFreeMemSize 196608
[libretro INFO] [SCEIO] stdout: ------- Heap Info -------
[libretro INFO] [SCEIO] stdout: Total free size : 18021496
[libretro INFO] [SCEIO] stdout: Total space allocated from system : 18021632
[libretro INFO] [SCEIO] stdout: Number of ordinary blocks  : 0
[libretro INFO] [SCEIO] stdout: Number of FPL regions  : 1
[libretro INFO] [SCEIO] stdout: Total space allocated from FPL(arena)  : 18021632
[libretro INFO] [SCEIO] stdout: Total allocated space  : 136
[libretro INFO] [SCEIO] stdout: Total memory that can be allocated  : 18021496
[libretro INFO] [SCEIO] stdout:  -----------------------
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 10760192, addr = 0x9531fe0
[libretro INFO] [SCEIO] stdout: taskInit {
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 90144, addr = 0x951bfb8
[libretro INFO] [SCEIO] stdout: rsvInit : 0x0951bfb8 : 0x00016020
[libretro INFO] [SCEIO] stdout: }
[libretro INFO] [SCEIO] stdout: file read AFS id = 0 size = 10760192
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 190464, addr = 0x94ed7a0
[libretro INFO] [SCEIO] stdout: file read AFS id = 73 size = 190464
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 346112, addr = 0x9498f80
[libretro INFO] [SCEIO] stdout: file read AFS id = 84 size = 346112
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 30912, addr = 0x94916b8
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 1024, addr = 0x94912b0
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 512, addr = 0x94910a8
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 8496, addr = 0x948ef70
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 4096, addr = 0x948df68
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 2048, addr = 0x948d760
[libretro INFO] [SCEIO] stdout: PSPHeapAlloc size = 4096, addr = 0x948c758
[libretro INFO] [SCEIO] stdout: s_pModelAnm 948c758
[libretro INFO] [SCEIO] stdout:  read ins ptr 9498f80 size 346112
[libretro INFO] [SCEIO] stdout:  Ins_Stage read = 338(KB) ovl=0(KB)
[libretro INFO] [SCEIO] stdout:  TexEnv = 0,  nTex    = 1
[libretro INFO] [SCEIO] stdout:  nAnim  = 1,  nIfo    = 1
[libretro INFO] [SCEIO] stdout:  nAlk   = 1,  nSprite = 1
[libretro INFO] [SCEIO] stdout:  nLocal = 0,  nOvl    = 0
[libretro INFO] [SCEIO] stdout: nTexEnv 2
[libretro INFO] [SCEIO] stdout: Init_AlvAnimSeq ok
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [SCEIO] stdout: ------- System Memory Info -------
[libretro INFO] [SCEIO] stdout: System TotalFreeMemSize 198144
[libretro INFO] [SCEIO] stdout: System MaxFreeMemSize 196608
[libretro INFO] [SCEIO] stdout: ------- Heap Info -------
[libretro INFO] [SCEIO] stdout: Total free size : 6583312
[libretro INFO] [SCEIO] stdout: Total space allocated from system : 18021632
[libretro INFO] [SCEIO] stdout: Number of ordinary blocks  : 11
[libretro INFO] [SCEIO] stdout: Number of FPL regions  : 1
[libretro INFO] [SCEIO] stdout: Total space allocated from FPL(arena)  : 18021632
[libretro INFO] [SCEIO] stdout: Total allocated space  : 11438320
[libretro INFO] [SCEIO] stdout: Total memory that can be allocated  : 6583312
[libretro INFO] [SCEIO] stdout:  -----------------------
[libretro INFO] [SCEIO] stdout:
[libretro INFO] [JIT] ThreadPool: Bad number of threads 0

@gouchi
Copy link
Contributor

gouchi commented Sep 14, 2021

Hi,

Can you make a test with Lakka if you reproduce the issue ?

Thank you.

@crocket
Copy link
Contributor

crocket commented Oct 26, 2021

  • RetroArch 1.9.11
    • glcore driver & gl driver
    • PPSSPP is in /path/to/retroarch/system
  • Compiled libretro ppsspp core from ppsspp 1.12.3
  • GPU // Radeon HD 6450

On libretro ppsspp core, black screen appears for all games.

$ grep -i error retroarch.log
[libretro ERROR] [IO] Missing filesystem for lang/.ini
[libretro ERROR] [IO] Missing filesystem for 'langregion.ini'
[libretro ERROR] [LOADER] Failed to read /controls.ini. Setting controller config to default.
[libretro ERROR] [FILESYS] DirectoryFileSystem::OpenFile('/s_reverse'): FAILED, 2 - access = 1 ''

standalone ppsspp has no issue.

@crocket
Copy link
Contributor

crocket commented Oct 26, 2021

I made ppsspp libretro core work by compiling it again without gles2 support and using gl driver in retroarch.
ppsspp libretro core was compiled with gles2 when it had the issue.
Retroarch wasn't compiled with opengl and without gles. Retroarch doesn't want to support opengl and gles simultaneously.
ppsspp libretro core and retroarch should be compiled with either gles or opengl unless you want to see black screen.

With glcore driver, I see these errors which crash retroarch.

$ grep -i error retroarch.log
[libretro ERROR] [IO] Missing filesystem for lang/.ini
[libretro ERROR] [IO] Missing filesystem for 'langregion.ini'
[libretro ERROR] [LOADER] Failed to read /controls.ini. Setting controller config to default.
[ERROR] [GLCore]: Failed to compile shader: 0:3(16): error: interface blocks with an instance name are not allowed in GLSL 1.40 (GLSL 1.50 or GLSL ES 3.00 required)
[ERROR] [GLCore]: One or more shaders failed to compile.
[ERROR] Failed to create filter chain.
[ERROR] [GLCore]: Failed to init filter chain.
[ERROR] [Video]: Cannot open video driver ... Exiting ...
[ERROR] Fatal error received in: "init_video()"

It seems ppsspp libretro core should automatically switch to gl driver.

@unknownbrackets
Copy link
Collaborator

Are you sure that error isn't from retroarch? We don't generate those types of messages.

https://github.com/libretro/RetroArch/search?q=%22Failed+to+compile+shader%22

If we failed to compile a shader, we would put a newline in the error. Sounds like you're reporting this bug in the wrong place.

-[Unknown]

@crocket
Copy link
Contributor

crocket commented Oct 26, 2021

With

export MESA_GL_VERSION_OVERRIDE=4.4COMPAT
export MESA_GLSL_VERSION_OVERRIDE=440

glcore driver also works.

@unknownbrackets
Copy link
Collaborator

Is this still an issue?

-[Unknown]

@gouchi
Copy link
Contributor

gouchi commented Jun 2, 2024

@raidenii Please answer, if you still got the issue or it is fixed.

Thank you.

@raidenii
Copy link
Author

raidenii commented Jun 3, 2024

I believe it's fixed. Thank you.

@raidenii raidenii closed this as completed Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Libretro Issue on Libretro but not all ports. No Feedback / Outdated?
Projects
None yet
Development

No branches or pull requests

5 participants