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

AudioStreamPlayer3D crashes the game #82420

Open
Tracked by #76797
stilestr opened this issue Sep 27, 2023 · 2 comments
Open
Tracked by #76797

AudioStreamPlayer3D crashes the game #82420

stilestr opened this issue Sep 27, 2023 · 2 comments

Comments

@stilestr
Copy link

Godot version

Godot v4.1.1.stable

System information

Windows 11 - Vulkan (Forward+) - dedicated AMD Radeon RX 7900 XTX (Advanced Micro Devices, Inc.; 31.0.21029.6002) - AMD Ryzen 7 5800X 8-Core Processor (16 Threads)

Issue description

I have a project in which the player can right click to spawn a ball, which is a RigidBody3D (using Jolt). This ball is rather simple:
image

The balls free themselves after 5 seconds, so there are never more than 10 balls on screen at once. Despite this, after only a few seconds of creating balls, the game will always crash without any error. I believe this to be caused by the AudioStreamPlayer3D node, as deleting it from the ball scene removes this issue.

2023-09-26.21-10-46.mp4

This issue occurs whether or not there is actually audio playing, just by the nodes existing does it cause the game to crash.
It will crash at about the same point whether or not the audio is playing.
Also worth noting that the .wav file loaded into the stream is only 22KB, it is just a few millisecond long sine wave.

Steps to reproduce

From the attached project, play the scene "dark scene.tscn". Don't do anything, just let it play until the Node counter reaches about 200 (sometimes it is able to reach 500). The game will crash with no error.

Minimal reproduction project

audio glitch.zip

@jsjtxietian
Copy link
Contributor

Confirmed with Godot v4.1.1.stable.

@viksl
Copy link
Contributor

viksl commented Oct 3, 2023

@stilestr Please create a minimal reproduction project. Right now it's your entire project, minimal reproduction project should isolate the issue to bare bones, make a new godot project and reproduce it there.
Currently it could be anything in your project interfering.

Your project indeed crashes but if I create a new project, add AudioStreamPlayer3D and let it queue free after couple seconds I can create thousands of these and even let it play without any crash so it's difficult to tell where your problem could lie without as trivial reproduction project as possible ;).

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

No branches or pull requests

4 participants