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

Dolphin crashes with "Memory over 2GB" and "WriteRest op out of range" errors #160

Closed
ryantargz opened this issue Jul 23, 2020 · 20 comments
Closed
Labels

Comments

@ryantargz
Copy link

ryantargz commented Jul 23, 2020

Slippi Dolphin loads up fine, but after double clicking the melee iso, I'm met with multiple error dialogs: "Warning: Executable memory ended up above 2GB!" appears 1-3 times, then "Warning: WriteRest op out of range (0x9375d0f5 uses 0x7cd3a8)" appears 3+ times with different hex memory values. And then dolphin crashes/closes entirely.

One thing I found was that if I select a different CPU Emulator Engine other than "JIT Recompiler", the game would run, albeit very slow and not actually playable. But that leads me to believe the problem lies with the default recommended JIT Recompiler.

However, after toiling with it more, I HAVE found a workaround while using the default JIT Recompiler, which is to select the default ISO as melee and have it run the default ISO upon dolphin start, and to uncheck "Use Panic Handlers" (not sure if that part makes any real difference, other than squelching pop-up errors). With this method, I can get dolphin to start and run the game about 20% of the time, and the other 80% it will run and then crash/close immediately. Not sure why loading the ISO immediately on startup is more effective than dolphin loading my game folder list first and then choosing an ISO, but I hope that helps determine root cause.

I am running the following:
Slippi 2.2.1 w/ an authentic SSBM 1.02 ISO
macOS Catalina 10.15.6
Intel i9 9900k
32 GB Memory
Radeon RX 5700 XT 8 GB

Also, for sanity, I ran the same SSBM ISO on a vanilla dolphin emulator (dolphin-emu.org) with 100% success. Build version was 5.0-11991.

@ryantargz
Copy link
Author

After chatting in discord, it looks like this is a known issue with the older JIT Recompiler, and to be fixed with a mainline Slippi port. Until then, hopefully this temporary workaround helps some people get playing.

@DustinAlandzes
Copy link

DustinAlandzes commented Jul 28, 2020

It seems to happens, but I can always get it working by retrying a few times

here's system information/debugging information maybe it will help:
https://gist.github.com/DustinAlandzes/38fe19219695af897d1175d7defde2c8

I can confirm that it works consistently with interpreter/cached interpreter but really slow

@NikhilNarayana
Copy link
Member

NikhilNarayana commented Jul 29, 2020

Just wanted to make it clear that i added the won't fix label because we would rather move to mainline (where it has been fixed for a while) than fix an emulation issue.

@NikhilNarayana NikhilNarayana changed the title Dolphin crashes with "Memory over 2GB" and "WriteRest op out of range" errors on macOS Dolphin crashes with "Memory over 2GB" and "WriteRest op out of range" errors Aug 5, 2020
@lararosekelley
Copy link

Curious if anyone has found a consistent workaround for this by messing with settings or something else - happens like 70% of the time for me when running in Slippi 2.2.3 on macOS 11.1. Just bumping so other Mac users have a reference point going into 2021.

@DustinAlandzes
Copy link

DustinAlandzes commented Dec 31, 2020

sadly no, I close everything and retry sometimes up to 50-100 times but it always works eventually

on Big Sur 1.11


I recorded an Automator script to press reopen on repeat for 10 minutes and it worked at least once.

retry slippi dolphin.zip

First un-check "Use Panic Handlers" (Config button > Interface Tab) :
image

Make sure "Start Default ISO on Launch" is checked (Config button > General Tab), and set melee 1.02 as your default iso (Config button > Paths Tab):
image

Start it when you get this popup and it will run for 10 minutes
image

hopefully you will eventually get this screen:
image


update: i'm using windows 10 in bootcamp now and it works so much better. maybe I could try linux too

@lilleswing
Copy link

Is there a ticket open on mainline for this? Has this been fixed on Dolphin? I was getting these issues on OSX today.

@JosJuice
Copy link
Contributor

This was fixed a few years ago in mainline.

@zDEFz
Copy link

zDEFz commented Apr 1, 2021

Still happening

@cnkeats
Copy link
Contributor

cnkeats commented Apr 1, 2021

Still happening

Slippi has not yet moved to mainline

@promilo
Copy link

promilo commented May 29, 2021

I am also getting this error too on big surr, what does mainline mean?

@NikhilNarayana
Copy link
Member

Mainline refers to official Dolphin.

@zDEFz
Copy link

zDEFz commented May 29, 2021

Found a workaround:

  1. Buy Parallels Pro for much cash
  2. Add cheats for not rendering any background video on all levels. In particular, dream fountains is laggy.

@ryanmcgrath
Copy link
Collaborator

I'm looking for people who still experience this issue. Feel free to DM me in the Slippi Discord if this is you; I've been looking into this again lately and need a few people who can reliably reproduce this error to test some things.

(There's no guarantee it actually works, but this bug is maddeningly not reproducible on any of my machines - and I'd like to fix it if I can)

@VitamintK
Copy link

Your message could not be delivered. This is usually because you don't share a server with the recipient or the recipient is only accepting direct messages from friends.

@ryanmcgrath
Copy link
Collaborator

Ah, right. My username on Discord is knux#6598. DMs should be open (nobody's had issues in the past...). If nothing else you can email me: ryan@rymc.io

@zDEFz
Copy link

zDEFz commented Sep 23, 2021

I'm looking for people who still experience this issue. Feel free to DM me in the Slippi Discord if this is you; I've been looking into this again lately and need a few people who can reliably reproduce this error to test some things.

(There's no guarantee it actually works, but this bug is maddeningly not reproducible on any of my machines - and I'd like to fix it if I can)

I left Discord because it requires you to have an mobile phone number assigned to it when you want to use it through a VPN. Additionally, deleting messages is not possible easily ...
Discord isn't good.

On what version should I try to reproduce the issue?

@ryanmcgrath
Copy link
Collaborator

Latest version, and as noted in my last comment, my email is open if Discord is a blocker for you.

@zDEFz
Copy link

zDEFz commented Sep 23, 2021

Latest version, and as noted in my last comment, my email is open if Discord is a blocker for you.

Weird, can't reproduce it anymore. It's perhaps 1 out of 10 where it spits this error message.
Wondering what changed.

@ryanmcgrath
Copy link
Collaborator

Can probably close this now as I don't believe there's any further things that can be done here, short of what I did in PR #331.

@NikhilNarayana
Copy link
Member

And now we wait for mainline

@project-slippi project-slippi locked and limited conversation to collaborators Jan 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests