The call to `channel_sum` requires that the `weights` array is at least as large as the number of channels in the originating buffer. Switch to use the span overload as well since the method that takes a raw weights array is deprecated. Thanks to @aras_p for debugging the issue. Pull Request: https://projects.blender.org/blender/blender/pulls/106847