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

Debug assertion "Frame went past end of buffer" #32

Open
ghost opened this issue Mar 3, 2018 · 1 comment
Open

Debug assertion "Frame went past end of buffer" #32

ghost opened this issue Mar 3, 2018 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Mar 3, 2018

Is this a known issue?

../lib/include/Blip_Buffer.h:230: void Blip_Buffer::end_frame(blip_time_t): Assertion `( "Blip_Buffer::end_frame(): Frame went past end of buffer", samples_avail() <= (long) buffer_size_ )' failed.

It happens here:

#4  0x00007fffed56903d in Blip_Buffer::end_frame (this=0x7fffed5ce0c0 <APU::buf>, t=29783) at ../lib/include/Blip_Buffer.h:229
#5  0x00007fffed568e31 in APU::run_frame (elapsed=29783) at ../src/apu.cpp:45
#6  0x00007fffed55da7d in CPU::run_frame () at ../src/cpu.cpp:273

For context, I was working on a libretro port of your emulator core, but I do not think that is the issue here. The frame count is always at 38 when this crash happens. I'm testing with SMB1 (World).

@AndreaOrru
Copy link
Owner

AndreaOrru commented Mar 6, 2018

For context, I was working on a libretro port of your emulator core

That's cool!

I wasn't aware of this specific issue, however many people have reported problems with audio (especially on Linux). Rewriting the APU core from scratch is in my TODO list. Well, as soon as I can find some time to hack on my personal projects again.

@AndreaOrru AndreaOrru added the bug label May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant