Skip to content

[audio] Memory/state corruption in the audio_module_playing example (regression) #2714

Closed
@jasonswearingen

Description

@jasonswearingen
  • I tested it on latest raylib version from master branch
  • I checked there is no similar issue already reported
  • My code has no errors or misuse of raylib

Issue description

I updated the Raylib-CsLo (C# Wrapper) to Raylib 4.2. To verify, I run all the examples (all 100+). They all "work", however I run the examples is a little different: They are all run within a single program, with each example scene loaded, run, unloaded. One after eachother.

In doing so, I discovered a bug with the audio system that was not in the raylib 4.0 release. (A Regression). When playing the ModulePlaying Sound example https://github.com/raysan5/raylib/blob/0abba4dc1854e71f58b252e840058178ea845e25/examples/audio/audio_module_playing.c that scene works, being loaded, executed, and unloaded seemingly correctly. But the next audio scene played will always crash upon it's exit. This leads me to belive that something about the multichannel sound streaming example corrupts the internal raylib state, so that the next example fails.

The error is not a thrown exception. The application crashes in the native code somewhere without an exception thrown. (Not visible from my C# debugger)

Environment

Windows 10 x64, running Raylib-CsLo latest (4.2-update branch). Raylib used is master branch, commit 6e8f3b0 (Sept 19th)

Code Example

You can probably see same symptoms by running a single application and running all the audio examples in order, inside the same app. Run the ModulePlaying example first, followed by all the other audio examples.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions