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

After implementing RetroAchievements in the emulator, some games became unplayable... #19076

Open
2 of 5 tasks
Kalex25678 opened this issue Apr 18, 2024 · 6 comments
Open
2 of 5 tasks

Comments

@Kalex25678
Copy link

Game or games this happens in

ULUS10490 - GTA Chinatown Wars

What area of the game / PPSSPP

As soon as I leave the tattoo shop and open the menu the game causes this crash (twitch.tv/videos/2122639045?t=4h40m16s) , the funny thing is that in older versions like 1.9.2 this bug doesn't happen (Detail: These types of bugs started to appear frequently after implementing the R.A in the emulator),

I tried locking on the 333 MHz frequency as it always fixed most issues (in older versions) (twitch.tv/videos/2122639045?t=4h53m50s)

Another example is Resistance: Retribution which always crashes in the same part, even when downloading other isos and changing the emulator settings the bug continues (sometimes it's a blue screen and sometimes it's a purple screen) (twitch.tv/videos/2116363760?t=2h23m13s)

What should happen

It simply shouldn't happen because in old versions (without the implementation of R.A in the emulator) there was no crash.

Logs

No response

Platform

Windows

Mobile device model or graphics card (GPU)

920MX

PPSSPP version affected

1.17.1

Last working version

1.9.2

Graphics backend (3D API)

Vulkan

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.
@hrydgard
Copy link
Owner

If 1.9.2 is really the last working version, then RetroAchievements support is definitely not to blame.

That's not to say that there aren't problems though. I've had several reports of crashes in GTA Chinatown but have not been able to reproduce them so far...

@Kalex25678
Copy link
Author

Kalex25678 commented Apr 18, 2024

If 1.9.2 is really the last working version, then RetroAchievements support is definitely not to blame.

That's not to say that there aren't problems though. I've had several reports of crashes in GTA Chinatown but have not been able to reproduce them so far...

The funny thing is that this didn't happen before the implementation of R.A in the emulator, I was able to play smoothly... I don't know if it's some specific type of reading done by R.A in the game and this causes some memory reading errors in the game...

Not to mention that most of the time R.A simply disconnects and tries to reconnect all the time, some games don't stay like this but others remain for a long period, an example is GOW Ghost Of Sparta which I played with achievements and in some parts the game stuck in a purple and blue screen (Detail: I managed to solve this problem by downloading the same ISO and before opening it I exited R.A and entered the game again, once this was done it stopped disconnecting all the time for no reason and the error screens also stopped appearing).

You said it's not an error related to the R.A implementation (that's ok, I'll take it into consideration since I don't understand much about programming) but in my experience, after this implementation the emulator started with these strange problems... Even though it wasn't connected to My account always shows the message "Connecting to the R.A network", trying to synchronize even when logged out and generally when this message appears it is almost certain that it will give some type of error (usually a purple screen).

In the case of Resistance: Retribution, I looked on the compatibility forum and saw that the versions I was using were compatible, the game runs perfectly but in some areas such as the beginning of the game and the time marked in the video, the game causes these crashes...

When the game has no connection to R.A (Zero achievements or information about possible implementations of future achievements), it doesn't cause any type of bug and I can play perfectly until the end.

Well... I tried to explain my experience I had with the implementation of R.A, you said that this has no correlation and I take that into consideration, I hope you see more about this type of reading that R.A does in some games because the R.A reads the game's memory and performs an execution on it to release achievements (even though he doesn't have these achievements, he reads the memory to check)

DETAIL: The version that was used was my personal backup for testing is 1.9.2, and before the update to version 1.17.1 I was using 1.16 and these bugs did not occur (I did not test Resistance: Retribution)

@anr2me
Copy link
Collaborator

anr2me commented Apr 18, 2024

He probably said it was unrelated to RA implementation because you put 1.9.2 as the last working version (which is too far from RA implementation) on your first post instead of 1.16 (which is more plausible)

Btw, were you using the release version of 1.17.1?
Have you tried using the latest dev builds from https://www.ppsspp.org/devbuilds which may have fixed some of the crash issue.

@Kalex25678
Copy link
Author

He probably said it was unrelated to RA implementation because you put 1.9.2 as the last working version (which is too far from RA implementation) on your first post instead of 1.16 (which is more plausible)

Btw, were you using the release version of 1.17.1? Have you tried using the latest dev builds from https://www.ppsspp.org/devbuilds which may have fixed some of the crash issue.

I have already tested, uninstalled, cleaned all emulator records on the PC and the same problem continues to occur... I will use the old versions until the problem is resolved or a new version is released (1.17.2 or 1.18.0) or until have an alternative version without the R.A implementation to test...

@Kalex25678
Copy link
Author

Kalex25678 commented Apr 19, 2024

Just to update: using version v1.17.1.1-329-g7d46f5a0a and disabling achievements and exiting R.A, the game stopped causing a blue screen, now this crash only appears in the tattoo shop (https://ibb.co/fXq95Dv), probably due to some game defragmentation bug... This raises more suspicions that it is R.A, because as I said, R.A reads the game's memory even if there are no achievements and because of this it can cause a blue screen when opening 'pause' menu when leaving the tattoo shop after completing it.

This reminds me of RALibRetro, some specific games when loading achievements or reading the game's memory caused it to crash and close the emulator, in the case of PPSSPP the game crashes and shows a blue screen.

I also noticed that by disabling achievements in GTA Chinatown Wars the game appears to have gained a little more FPS, before I could only play on 2xPSP and now I can play on 3xPSP without any problems.

@hrydgard
Copy link
Owner

It does seem like RA is imposing a bit of performance overhead when enabled, maybe more than necessary, I will investigate that at some point. Disabling it should remove all possible RA-caused slowdown though, as you noticed.

I'll see if we are missing some validation of RA memory accesses, though looking at your crash screen, it looks like it's the game performing the access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants