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

In-Game: Unexpected warning "Prevented call into an uninitialised yyal from Audio_BusDestroy" when a game is closed #9221

Open
gm-bug-reporter bot opened this issue Jan 30, 2025 · 4 comments
Assignees
Labels
ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached

Comments

@gm-bug-reporter
Copy link

Description

This message pops up in the output window everytime I run my game. It prevents me from importing asset packages as I get this error:

ProjectTool failed because of an internal program error:

Unexpected character encountered while parsing value: �. Path 'AudioGroups[0].targets', line 5, position 145.

Steps To Reproduce

Running the game without haaving touched any audio stuff at all. Importing assets (Comprehensive cross-platform input for GameMaker 8.1.0) to project.

Which version of GameMaker are you reporting this issue for?

IDE v2024.11.0.179 Runtime v2024.11.0.226

Which operating system(s) are you seeing the problem on?

Mac 15.1

8dba3058-e2e8-4098-be00-d83ca2207d9f

@gm-bug-reporter gm-bug-reporter bot added ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached labels Jan 30, 2025
@KingDevyn
Copy link

KingDevyn commented Jan 30, 2025

I'm getting "Warning: Prevented call into an uninitialised yyal from Audio_BusDestroy" message in my output when exiting my game for some reason. I commented out my one use of the constant "audio_bus_main" and still got it.

Edit for more context: This error happens after the last possible step I can take in the debugger during the game's end.

@toby-yoyo
Copy link

This message is harmless - it is just a warning (for us, not users) that there was a blocked attempt to call into the yyal library after it had been deinitialised. This will have come from the garbage collector destroying the audio_bus_main struct on game end and the runtime attempting to tell yyal to destroy the corresponding 'real' audio bus (which will have already been destroyed when the library was deinitialised).

Despite all that, we should still suppress the call in this instance in order not to give the impression that the user is facing a real issue.

@stuckie stuckie moved this from Triage to Backlog in Team Workload Jan 31, 2025
@YYDan YYDan changed the title Warning: Prevented call into an uninitialised yyal from Audio_BusDestroy In-Game: Unexpected warning "Prevented call into an uninitialised yyal from Audio_BusDestroy" when a game is closed Jan 31, 2025
@YYDan
Copy link
Collaborator

YYDan commented Jan 31, 2025

Suspect the projecttool failure is something separate and should be filed as its own bug report.

@mistletoe
Copy link

mistletoe commented Feb 1, 2025

I've just seen this mysterious error as well.

@toby-yoyo : I'm not sure I follow what you're saying here. If we've ended the game, then why is the error getting thrown at all? If we've intialized an audio bus... what procedure should we be calling to make sure this cannot happen? It's weird getting a "harmless" error for something that shouldn't be happening in the first place; one would think that once game_end() has been called, no further callbacks should be performed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ide-bug Bugs with the GameMaker IDE project This issue has a sample project attached
Projects
Status: Backlog
Development

No branches or pull requests

4 participants