hrydgard / hrydgard/ppsspp

Crashing while running Luadev r0 (lua interpreter)

Open
#19,085 17 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Homebrew PGF / sceFont
Dominant language
C++
Stars
14.5k
Forks
2.6k
Avg merge
15h 17m
Merged PRs (30d)
143

Description

Game or games this happens in

Luadev r0 (lua interpreter)

What area of the game / PPSSPP

EDIT: Strangely, this seems to be font related, see below.

PPSSPP no longer supports this old homebrew lua interpreter
It used to work on version 1.9.3
and it does work on jpcsp.

How to reproduce:

git clone https://github.com/jcnmsg/luadev-r0-psp.git
mkdir ./luadev-r0-psp/projects/hello-world-test
cp ./luadev-r0-psp/EBOOT.PBP ./luadev-r0-psp/projects/hello-world-test/

create a file script.lua in ./luadev-r0-psp/projects/hello-world-test/

blue = color.new(0,0,255) 
white = color.new(255, 255, 255)
black = color.new(0, 0, 0)
 
screen.print(10, 10, "Hello world!" , 0.6, blue, blue)
screen.print(10, 26, "This is my first program and it runs on the PSP!" , 0.4, white, black)
 
screen.flip()
 
while true do
    screen.waitvblankstart()
end

start EBOOT.PBP in ./luadev-r0-psp/projects/hello-world-test/EBOOT.PBP

What should happen

PPSSPP shouldn't crash and handle the unimplemented features.

Logs
13:44:177 user_main    E[FILESYS]: FileSystems/DirectoryFileSystem.cpp:58 DirectoryFileSystem::OpenFile('/syslib.prx'): FAILED, 2 - access = 1 ''
13:44:177 user_main    E[LOADER]: HLE/sceKernelModule.cpp:2030 80010002=sceKernelLoadModule(umd0:/syslib.prx, 00000000, 00000000): file does not exist
13:44:178 user_main    E[FILESYS]: FileSystems/DirectoryFileSystem.cpp:58 DirectoryFileSystem::OpenFile('/recovery.lua'): FAILED, 2 - access = 1 ''
13:44:188 user_main    E[FILESYS]: FileSystems/DirectoryFileSystem.cpp:58 DirectoryFileSystem::OpenFile('/recovery.lue'): FAILED, 2 - access = 1 ''
13:44:208 user_main    E[FILESYS]: FileSystems/DirectoryFileSystem.cpp:58 DirectoryFileSystem::OpenFile('/script.lue'): 
FAILED, 2 - access = 1 ''

Platform

Linux / BSD

Mobile device model or graphics card (GPU)

GT 720

PPSSPP version affected

PPSSPP v1.17.1 [flatpak]

Last working version

1.9.3

Graphics backend (3D API)

OpenGL / GLES

Checklist
  • Test in the latest git build in case it's already fixed.
  • Search for other reports of the same issue.
  • Try resetting settings or older versions and include if the issue is related.
  • Try without any cheats and without loading any save states.
  • Include logs or screenshots of issue.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the crash using the cloned luadev-r0-psp project, its EBOOT.PBP, and the provided script.lua on PPSSPP v1.17.1 or a current build. Start with the reported log entries and the font-related behavior noted in the issue. Done means the Luadev example no longer crashes and the affected unimplemented features are handled.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, lua
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.