GithubHelp home page GithubHelp logo

Crash with strong CRC about gliden64 HOT 7 CLOSED

Rosalie241 avatar Rosalie241 commented on July 17, 2024
Crash with strong CRC

from gliden64.

Comments (7)

gonetz avatar gonetz commented on July 17, 2024

@Rosalie241 I checked the game from the provided save state.
At some moment the game calls gDPSetTileSize command, which set tile uls greater than lrs, so texture width becomes negative.
It causes crash either in texture checksum calculation or in OpenGL call.
The situation is weird. Probably it is a core issue. I put sanity checks to texture load functions to avoid the crashes, see commit 85bdd45. Please check if the problem is gone.

BTW, great texture pack!

from gliden64.

Rosalie241 avatar Rosalie241 commented on July 17, 2024

I can confirm your commit fixes the issue, it'd be odd if it's a core issue but I don't know.

Thank you for checking and fixing it ❤️

from gliden64.

Rosalie241 avatar Rosalie241 commented on July 17, 2024

An RMG user reported an issue with Donkey Kong 64 where the water turns invisible sometimes after I updated GLideN64,
I've decided to try it with Project64 and it happens there aswell, commenting out the code added in the commit fixes it again.

ROM MD5: 295D995852DB7BC9E8F29085E924C835

Mupen64plus and Project64 savestates: wherethewater.zip

so it seems that might not be a core issue, tested it on the latest stable Project64.

from gliden64.

gonetz avatar gonetz commented on July 17, 2024

so it seems that might not be a core issue, tested it on the latest stable Project64.

Yes, it's my mistake.
I reverted the wrong fix and added a proper (hopefully) one: f119c32

from gliden64.

GhostlyDark avatar GhostlyDark commented on July 17, 2024

Confirmed that Paper Mario doesn't crash anymore and the DK64 water is working. The N64 logo in the Zelda games also looked wrong, but anymore.

I've opened #2838 as a workaround for now, which does fix the crash when the strong CRC option is disabled but isn't a proper fix, I do feel it makes sense to not calculate the strong CRC if the option hasn't been enabled but your opinion might differ.

No, the option shouldn't be needed to load in strong CRC dumped textures. The idea is to enable the option whenever a texture artist needs it, dump any problematic textures and deactive it again to maintain compatibility with previous hashes. Strong CRC hashes should work regardless of the option being enabled or not, it should be solely toggled for dumping.

from gliden64.

gonetz avatar gonetz commented on July 17, 2024

No, the option shouldn't be needed to load in strong CRC dumped textures. The idea is to enable the option whenever a texture artist needs it, dump any problematic textures and deactive it again to maintain compatibility with previous hashes. Strong CRC hashes should work regardless of the option being enabled or not, it should be solely toggled for dumping.

Yes, exactly. If the crash is fixed without regressions in other games, #2838 should be closed.

from gliden64.

Rosalie241 avatar Rosalie241 commented on July 17, 2024

I can confirm the issues have been fixed, I've also closed the PR I made.

Thank you for looking into it ❤️

from gliden64.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.