GithubHelp home page GithubHelp logo

Comments (10)

LIJI32 avatar LIJI32 commented on August 16, 2024 1

Found the bug, it's actually in RetroArch itself:

https://github.com/libretro/RetroArch/blob/9c305f7e95c1392aab25c9830957f7d1a979b3ad/audio/audio_driver.c#L765

audio_driver_rewind_ptr can underflow and randomly overwrite memory.

from sameboy.

andres-asm avatar andres-asm commented on August 16, 2024

Can you get a stacktrace?

from sameboy.

prataczak avatar prataczak commented on August 16, 2024

Is stacktrace the same thing as log? (pardon my ignorance :) )

from sameboy.

prataczak avatar prataczak commented on August 16, 2024

I'll assume the answer to my question is yes, please give me instructions on how to proceed otherwise.

Log 1 - RetroArch crashes when 'escape' is pressed to exit emulator, after rewinding for a couple of seconds, and waiting a couple more. https://pastebin.com/x1D2Xw9j

Log 2 - RetroArch crashes as soon as the rewind hotkey is released. https://pastebin.com/XRR5mS3Q

Log 3 - RetroArch displays glitched graphics after release of rewind key, then crashes when 'escape' key is pressed. https://pastebin.com/E2HDqPpA

Again, I do have 'Auto Save State' turned on. I suspect that has something to do with the crash on exit.
Edit: I turned off auto save, and the issue still occurs, so scratch this.

It is worth noting that exiting the emulator without attempting a rewind does not seem to trigger a crash. I do have a core override for SameBoy, it only one line - aspect_ratio_index = "21".

from sameboy.

prataczak avatar prataczak commented on August 16, 2024

More details that may be helpful - the ROM's crc is 6C41D3CD, and is called Batman - The Video Game (World).gb. It is loaded from a zipped archive.

I am using Windows 10 with the latest updates.

from sameboy.

LIJI32 avatar LIJI32 commented on August 16, 2024

I'll try to reproduce it on my Mac, probably some silly memory management issue.

from sameboy.

LIJI32 avatar LIJI32 commented on August 16, 2024

...But rewinding doesn't seem to work for me at all with RetroArch, holding the rewind key seems to do nothing :S

from sameboy.

LIJI32 avatar LIJI32 commented on August 16, 2024

Managed to reproduce a memory corruption on the macOS build after using rewind, should be easy now.

from sameboy.

LIJI32 avatar LIJI32 commented on August 16, 2024

Opened a relevant RetroArch issue (libretro/RetroArch#6382)

from sameboy.

andres-asm avatar andres-asm commented on August 16, 2024

Thanks for looking into it!

from sameboy.

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.