box64 icon indicating copy to clipboard operation
box64 copied to clipboard

Celeste crashes with RISC-V dynarec enabled

Open Manorhos opened this issue 1 year ago • 12 comments

Trying to run this on a Star64 (StarFive JH7110, 8 GB RAM) with an external GPU (Radeon HD 7870). The game works up until the opening cutscene (with promising performance!), but once the level is going to load, it crashes with a System.OutOfMemoryException. celeste.log

When running the game with BOX64_DYNAREC=0, it works, but of course very slowly.

This is on the current itch.io version of the game (1.4.0.0), box64 version 7bef7724.

Manorhos avatar Jan 20 '24 12:01 Manorhos

can you try updating your box64?

ghost avatar Jan 28 '24 07:01 ghost

Still the same, unfortunately: celeste.log

Manorhos avatar Jan 28 '24 12:01 Manorhos

Now I've tried running it with BOX64_DYNAREC_TEST=1, seems like there might be something wrong with SSE register handling? dynarec_diff.log.gz

Manorhos avatar Jan 29 '24 14:01 Manorhos

Ok, I reproduce the issue on my side (just received a MilkV Pioneer, so I could test this with a proprer graphic card). I'll check dynarec_test on my side indeed, looks promising.

ptitSeb avatar Jan 29 '24 16:01 ptitSeb

So, I pushed some fixes on the Dynarec. It helps, but doesn't fix completly the loading of Celeste...

ptitSeb avatar Jan 29 '24 21:01 ptitSeb

Ah, Celeste has been crashing before entering the 2D game scene since the beginning of RV64 porting.. I forgot to open a ticket for it.

ksco avatar Jan 30 '24 04:01 ksco

Should be fixed now. You can update and try again.

ptitSeb avatar Jan 30 '24 18:01 ptitSeb

Awesome, it runs pretty playable! Thanks for fixing! It seems to crash occasionally (after entering and exiting the options menu, then entering a level or so, had one SIGABRT and one uncaught exception until now), should I post more logs here if I get usable ones or open other issues for that?

Manorhos avatar Jan 31 '24 02:01 Manorhos

you can post logs in here

ghost avatar Jan 31 '24 06:01 ghost

crash.log

Played the second level for a while, Save and Quit, re-entered the level, then got this crash.

Manorhos avatar Jan 31 '24 21:01 Manorhos

@Manorhos is this still an issue with the latest Box64?

LukeShortCloud avatar Oct 24 '25 22:10 LukeShortCloud

I've played up to mid-Chapter 3 now on v0.3.8 and I can't really say anything conclusive, except that the game runs a lot more stable than it used to. I've had one single crash upon loading Chapter 2's B-Side right after unlocking it, but I can't reproduce a crash by loading levels repeatedly anymore. Unfortunately, I didn't save a log for that one crash I had, I'll post one if I get another.

One thing I noticed is that on some runs of the game there are a bunch of FillBlock segfaults while on other runs these just don't happen. I'll attach an example log of that (the segfault at the end happened while quitting the game).

log1.txt

Manorhos avatar Oct 27 '25 00:10 Manorhos