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

Missing _update(), _update60, or _draw causes segmentation fault (if playing music?) #185

Open
HTV04 opened this issue Feb 14, 2023 · 0 comments

Comments

@HTV04
Copy link

HTV04 commented Feb 14, 2023

I tried running a simple program that plays music with the following code:

music(0)

However, this soon led to a segmentation fault. I then tried adding _init():

function _init()
music(0)
end

Still led to a segmentation fault. Finally, I tried running this:

music(0)

function _draw()
end

This runs fine, and also works for _update and _update60. Running FAKE-08 through a debugger reveals that this seems to be undefined behavior with SDL_RenderPresent(renderer), within sdl2basehost.cpp (line 76). Could this be an issue with the audio buffer? Why does it work when _update(), _update60, or _draw is present?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant