ps2homebrew / Open-PS2-Loader

Game and app loader for Sony PlayStation 2
https://ps2homebrew.github.io/Open-PS2-Loader/
Academic Free License v3.0
2.18k stars 273 forks source link

[ISSUE]: ingame debug version "hangs" at logo #926

Open israpps opened 1 year ago

israpps commented 1 year ago

Checks

Describe the issue

If I run ingame debug variant the program fps drop to 15 on logo and it does not go beyond the logo screen.

no log reaches either netcat or ps2client.

ee_sio debug on the other hand runs flawlessly

Console model

SCPH-70011

OPL version / revision

latest beta from github actions

In which device(s) have you experienced this issue?

No response

Context and extra information

Ran the ELF from USB

no mx4sio connected at boot No iHDD connected

rickgaiser commented 1 year ago

ingame debugging loads the entire networking stack (just like smb mode), making it a big load on the IOP. So this form of debugging causes many issues.

ingame debugging is debugging the IOP, ee_sio is for debugging the EE. They cannot be compared becouse they debug a different program running on a different CPU.

Is this a new issue, if yes, since when?

israpps commented 1 year ago

ingame debugging loads the entire networking stack (just like smb mode), making it a big load on the IOP. So this form of debugging causes many issues.

ingame debugging is debugging the IOP, ee_sio is for debugging the EE. They cannot be compared becouse they debug a different program running on a different CPU.

Is this a new issue, if yes, since when?

In the past In-game debug builds would take longer to display logo I never saw a framerate drop and eternal waiting at logo

I mentioned EE SIO just to skip the question

Does it happen on other debug builds too?

rickgaiser commented 1 year ago

I confirm the issue.

In PCSX2 I see the same sector being read over and over again, in an endless loop. Here's 2 loops for example:

StRead called: sectors 16:80652b00, mode: 0, stat: 1,1
StRead: buffer underrun. 0/16 read.
sceCdGetError 0
sceCdSC(0xFFFFFFF6, 0x0)
sceCdSC(0xFFFFFFF6, 0x9)
StRead called: sectors 16:80652b00, mode: 0, stat: 1,1
StRead: buffer underrun. 0/16 read.
sceCdGetError 0
sceCdSC(0xFFFFFFF6, 0x0)
sceCdSC(0xFFFFFFF6, 0x9)
israpps commented 1 year ago

more details on the issue: on newer builds framerate does not seem to drop anymore.... and also happens on iopcore_debug....

Log of ps2client

UDPTTY loaded!
☻KPRTTY enabled!
IOX/File_Manager_Rpc: Write Request
        -- ID=50, ret=0
IOX/File_Manager_Rpc: Write Request
[IOPTRAP]:
ioptrap starts.
IOX/File_Manager_Rpc: Write Request
        -- ID=51, ret=0
IOX/File_Manager_Rpc: Write Request
[PS2LINK]:
initializing host
Thread id: baf95d
host: mounted
IOP cmd: Starting thread
IOP cmd thread started
Naplink thread started
 - PS2 Side application -
sys_mbox_new: mbox 24784647
sys_sem_new: CreateSema cnt 0 sema 24782925

@AKuHAK what about a new issue tag for the debugging related issues?