Skip to content

ARM version of normalize randomly gives wrong results #264489

@nplawes

Description

@nplawes

brew config AND brew doctor output OR brew gist-logs <formula> link

$ brew config
HOMEBREW_VERSION: 5.0.11
ORIGIN: https://github.com/Homebrew/brew
HEAD: a36eea6fe705eef966f0acd609e471c9b7541a6b
Last commit: 8 days ago
Branch: stable
Core tap JSON: 26 Jan 01:20 UTC
Core cask tap JSON: 26 Jan 01:20 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.dPRivT9okg/org.xquartz:0
HOMEBREW_DOWNLOAD_CONCURRENCY: 24
HOMEBREW_EDITOR: vi
HOMEBREW_FORBID_PACKAGES_FROM_PATHS: set
HOMEBREW_MAKE_JOBS: 12
HOMEBREW_NO_ENV_HINTS: set
Homebrew Ruby: 3.4.8 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.8/bin/ruby
CPU: dodeca-core 64-bit arm_lobos
Clang: 17.0.0 build 1700
Git: 2.50.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 26.2-arm64
CLT: 26.2.0.0.1.1764812424
Xcode: N/A
Rosetta 2: false


nick$ brew doctor
Your system is ready to brew.


nick$ brew gist-logs normalize
Error: No logs.

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.
  • My issue is not about a failure to build a formula from source.

What were you trying to do (and why)?

Trying to normalize and mp3 file to get the gain

What happened (include all command output)?

On ARM Mac, running the same command 10 times, gives 5 wrong results...

nick$ for i in {1..10} ; do /opt/homebrew/bin/normalize -nq file.mp3 ; done
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
1246.8728dBFS 0.0000dBFS -1258.8728dB file.mp3
414.5950dBFS 0.0000dBFS -426.5950dB file.mp3
2139.7512dBFS 0.0000dBFS -2151.7512dB file.mp3
504.6345dBFS 0.0000dBFS -516.6345dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3

What did you expect to happen?

On Intel Mac, running the same command 10 times is consistent (as expected)

nick$ for i in {1..10} ; do /usr/local/bin/normalize -nq file.mp3 ; done
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3
-8.1750dBFS 0.0000dBFS -3.8250dB file.mp3

Step-by-step reproduction instructions (by running brew commands)

brew install normalize
hash -r
for i in {1..10} ; do normalize -nq file.mp3 ; done

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream issueAn upstream issue report is needed

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions