Open mpmxyz opened 4 months ago
I simplified your replication object down to just the AudioClipPlayer
and PlaybackSynchronizer
components, and I am not able to replicate the crash, @mpmxyz. If I change the speed on the target, the driving temporarily breaks / stops playback entirely, but if I adjust the source at all, either changing its speed or playback position, it will synchronize again as expected- but no crash occurs.
There are still things that can be addressed here, e.g. the PlaybackSynchronizer should also drive the speed / other controls on the AudioClipPlayer component to prevent them from being modified that way.
Otherwise, I suspect that this could be yet another issue caused by the asset being linked in a dyanmic variable instead of statically. E.g. likely having a common origin with #156 / #1296 / #1347 and other similar issues.
Would you mind also trying to replicate the issue with statically linked assets / minimizing your replication object to see if you can further isolate what in specific causes the crash to occur, @mpmxyz?
FYI, the exception is not related to any dynamic variables at all and it is not the playback drive that breaks but the inspector UI where you tried to change the speed. (Spawn two inspectors looking at "Target"!)
For emphasis I attached the exception that occurs when I follow your instructions and break the inspector UI. (resrec:///U-TheAutopilot/R-92bd3c94-ec33-435a-8e87-0c6b18f6f0d5)
The different behaviour between the asset's UI and the inspector UI is because the former uses ProtoFlux to change the speed.
This results in an abortion of impulse execution if you trigger it directly and a session crash if you trigger it indirectly via FireOnX
.
Describe the bug?
A playback driven by a
PlaybackSynchronizer
breaks inspector UI or crashes your session when attempting to change the speed of the driven playback.To Reproduce
resrec:///U-TheAutopilot/R-8cc4aa3d-b257-4847-9d52-e0f1168a34cf
Expected behavior
The driven property should resist changes without errors.
Screenshots
No response
Resonite Version Number
2024.7.19.1211
What Platforms does this occur on?
Windows
What headset if any do you use?
No response
Log Files
Anonymous - 2024.7.19.1211 - 2024-07-20 01_02_12.log Contains the following actions:
Additional Context
No response
Reporters
No response