Open-PS2-Loader: [ISSUE] Game freezing with Samba after a while [SMB]

Hello,

I use OPL from https://github.com/Jay-Jay-OPL/OPL-Daily-Builds, latest version to date. I load games over my home network using Samba Version 4.5.12-Debian on a Linux serveur 4.9.0-4-amd64 1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux.

I can play games just fine but when I leave the PS2 to idle for a while (45mn-1h), without touching anything, the game will freeze the next time it tries to load something. I tested this with multiple games.

Has anyone experienced this?

Could there be some settings on the Samba side that I need to adjust?

Here is my smb.conf file. Nothing fancy there.

[global]
        netbios name = Partage
        workgroup = USERS
        ntlm auth = Yes
        security = user
        hosts allow = 192.168.1.

[PS2SMB]
        path = /srv/PS2SMB
        force user = ps2
        hosts allow = 192.168.1.6
        read only = No
        valid users = ps2

Best,

About this issue

  • Original URL
  • State: open
  • Created 9 years ago
  • Comments: 61 (8 by maintainers)

Most upvoted comments

The issue still persists. I tried version 0.8, where it says in the changelog that a keep-alive has been implemented, as well as the latest stable 1.1.0. Happens with my Synology NAS and as well SMB configured over an USB stick directly in my Asus router.

After max. 50 minutes of idle time in a game, it just crashes when continuing. For example in Gun, which streams data when running around the map.

In this state, SMB is practically unusable on the PS2.

I don’t know what happened, but the problems seemed to have stopped.

Last I checked, I changed the PS2 login to a non existent one in my computer’s login, but I don’t know if that did anything.

I am using the latest beta and the latest merge pull release, which is as of this writing, 200eaa7. According to the Github page, it was released last week.

I’ll continue monitoring it and bring results as they come in.

Thank you for the loader, it’s a nice piece of engineering.

I’m experiencing this too.

My setup is basically following this guide exactly, a raspberry pi 4 running Raspbian with Samba on it. The only change to the SMB config file shown in this guide is that I later added the deadtime and keepalive lines mentioned earlier in this issue. The OPL files and .iso are on a USB drive that is plugged into it. The Pi’s wifi is shut off entirely (let alone connected to anything wirelessly), and it is hooked up to the PS2 via ethernet cable.

The PS2 loads FMCB via memory card. OPL is v1.1.0, also configured exactly like it is in the guide. It has no problem seeing the game or loading it.

The game I’ve been trying to replay is Okami. Before adding the deadtime and keepalive lines, the game was freezing within five minutes, even with player input (it froze during the opening prologue, which requires you to proceed the text yourself with X).

After adding the deadtime and keepalive lines, the game can run for about an hour before still freezing, again even with player input (the game froze while I was actively running around). I don’t think It’s a timeout issue.

–

When I had this setup going in the past with an older OPL, I could play games for hours on end without any crashes. So I decided to test playing the game with the original version of OPL I happened to have squirreled away, which is 0.9.3+.1436-Beta-f8ba41.

No freezing. I left the game running with occasional controller input for two hours and it was fine, and then actively played another two hours with no issues.

Additionally, I have the PS2 component cables plugged into an HDMI converter, then into an elgato, and then back out to my TV. While both versions of OPL I’ve tried will occasionally drop the connection, the 0.9.3 beta drops it much, much less than the v1.1.0 does (which was doing it every few minutes).

I think at some point a regression made it into later OPL, a memory leak or something, that is still unfixed with the latest versions. There seems to be some issue with transmitting the visual signal too in a way that the elgato set up is clearly picking up.

@kakig thank you for testing. Some games have built-in security mode: they check savefile modification time if it matches ps2 time. For such games it iw not allowed to change system time, once you stqrt playing, and probably freezed clock also affects that mechanism.

I want to share my experience, as I hope it will be useful to someone. I had this problem when trying to play God of War via SMB on a Japanese SCPH 9006 PS2 (w/ Matrix Infinity). The game just froze randomly after some time playing. I tried updating OPL to the latest release, disabling the Matrix and using Open Tuna, installing OPL in an original MC and tweaking samba configs, but none of that helped.

After a while without a solution and with not much else to try, I decided to replace the clock battery. I noticed it was dead when I was loading a save and the date was messed up. After replacing the CR2032 battery and adjusting the clock, the game works flawlessly.

I have limited knowledge of networking and SMB, but the clock needs to be properly adjusted for OPL work with SMB?

PS: I was curious about this and decided to make some tests. I removed the clock battery and tried to play the game with an adjusted and unadjusted clock. Turns out that whenever the PS2 clock is set to a wrong time, the game freezes. I’ve searched for similar issues but only found #685

I only just tried to see if it booted any games. I came, I heard and I found problems that were not addressed. But they might not have been the only problems with the system.

I heard that the Samba users were also having issues with the Samba server closing the connection after a period of inactivity. That will kill the connection permanently because the in-game driver cannot ever reconnect. For this issue, it is an exercise for the OPL developer(s) to solve. 😂

Now that a related patch has been suggested, tested and merged, I recommend that this issue ticket be closed if there are no further comments.

Thanks, that’s very helpful and you’ve given me everything I need to learn more. I appreciate it! @TnA-Plastic