Description

Hit this when I made a blueprint and Subscribed to ALL quantization events instead of the one I was interested it and tried to use all of them as my Quantization Boundary. The alt title of this bug is "be mean to Quartz"

Blueprint for reference:

  [Image Removed]

Steps to Reproduce

1) Create a Quartz clock
2) Subscribe to all quantization events on the clock
3) Make a delegate event off the Subscribe to All Quantization Events node
4) Set the event to trigger Spawn Sound at Location and Play Quantized
5) Connect the Quantization Type on the event to a Make QuartzQuantizationBoundary node. Set the 
6) Connect that to the In Quantization Boundary on Play Quantized
7) Trigger the clock to start (if not on Event BeginPlay)

Expected Result:
 It's somewhat expected that this would not be a valid work flow; however, there should be some safeguard in place (compile warning, output log warning, etc)

Actual result:
 Editor crashes

Callstack
Unhandled Exception: EXCEPTION_INT_DIVIDE_BY_ZERO

UE4Editor_AudioMixer!Audio::FQuartzMetronome::GetFramesUntilBoundary() [QuartzMetronome.cpp:189]
UE4Editor_AudioMixer!Audio::FQuartzClock::AddQuantizedCommand() [AudioMixerClock.cpp:298]
UE4Editor_AudioMixer!Audio::FQuartzClockManager::AddCommandToClock() [AudioMixerClockManager.cpp:292]
UE4Editor_AudioMixer!<lambda_8981f16765d523102b9fbcaa275999ca>::operator() [AudioMixerSourceManager.cpp:790]
UE4Editor_AudioMixer!Audio::FMixerSourceManager::PumpCommandQueue() [AudioMixerSourceManager.cpp:2792]
UE4Editor_AudioMixer!Audio::FMixerSourceManager::ComputeNextBlockOfSamples() [AudioMixerSourceManager.cpp:2682]
UE4Editor_AudioMixer!Audio::FMixerDevice::OnProcessAudioStream() [AudioMixerDevice.cpp:720]
UE4Editor_AudioMixerCore!Audio::FOutputBuffer::MixNextBuffer() [AudioMixer.cpp:201]
UE4Editor_AudioMixerCore!Audio::IAudioMixerPlatformInterface::RunInternal() [AudioMixer.cpp:669]
UE4Editor_AudioMixerCore!Audio::IAudioMixerPlatformInterface::Run() [AudioMixer.cpp:701]
UE4Editor_Core!FRunnableThreadWin::Run() [WindowsRunnableThread.cpp:86]

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-117147 in the post.

0
Login to Vote

Fixed
ComponentUE - Audio - Quartz
Affects Versions4.275.05.2
Target Fix5.3
Fix Commit26759540
Main Commit26760056
Release Commit26759540
CreatedJun 3, 2021
ResolvedAug 1, 2023
UpdatedAug 3, 2023