You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
@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 ;).
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:
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
The text was updated successfully, but these errors were encountered: