Memory leak in Origin 2.5.1 (multi-platform confirmed)

Here’s a video detailing the issue

After 3 minutes, Audirvana consumes so much RAM (>21GB) that music starts to crackle.

Debug info:

Audirvana Origin 2.5.1 (20501)

macOS Version 14.0 (Build 23A344) with 32GB physical RAM

SIGNAL PROCESSING:

	Polarity Inversion:
		Globally: OFF
		Per track: ON
	Effects plugins NOT ACTIVE

UPSAMPLING:
	r8brain with device max frequency upsampling
	r8brain filter parameters
	Bandwidth = 99.5%
	Stop band attenuation 218dB
	Phase linear

AUDIO VOLUME:
	Max allowed volume: 100
	Replay Gain: by album
	SW volume control: OFF

LIBRARY SETTINGS:
	Sync list: 1 folders
		AUTO: /Volumes/NAS/Music
	iTunes/Music library synchronization: not synchronized
	Library database path: /Users/user/Library/Application Support/Audirvana/AudirvanaDatabase.sqlite

Remote Control server:
	Listening on 127.0.0.1 on port 50704

=================== AUDIO DEVICE ========================


Active method: Local

Max. memory for audio buffers: 4096MB

Local Audio Engine: CoreAudio
	Exclusive access: ON
	Integer mode: ON
	Use max I/O buffer size: OFF
	Actual I/O buffer frame size: 512

Preferred device: 
	Topping DX7 Pro 
	Model UID:DX7 Pro:152A:8750
	UID:AppleUSBAudioEngine:Topping:DX7 Pro:14200000:1

Active Sample Rate: 96kHz
Hog Mode is off

Bridge settings:
	Sample rate limitation: none
	Sample rate switching latency: none
	Limit bitdepth to 24bit: OFF
	Mute during sample rate change: OFF

Selected device:DX7 Pro 
	Manufacturer: Topping
	Model name: Topping DX7 Pro 
	Model UID: DX7 Pro:152A:8750
	UID: AppleUSBAudioEngine:Topping:DX7 Pro:14200000:1
	USB Vendor ID: 0x152a
	USB Product ID: 0x8750
	ID 0x66 

10 available sample rates up to 768000Hz
	44100
	48000
	88200
	96000
	176400
	192000
	352800
	384000
	705600
	768000
Audio buffer frame size : 29 to 4096 frames
Current I/O buffer frame size : 512

Volume Control
	Physical: Yes
	Virtual: Yes
	Max volume alert: Disabled

MQA capability
	Auto-detect MQA devices: No
	Not a MQA device, user set to not MQA
DSD capability: DSD via PCM 1.1

Device audio channels
	Preferred stereo channels L:1 R:2
	Channel bitmap: Ox3, layout:
		Channel 0 mapped to 0
		Channel 1 mapped to 1

Audio channels in use
	Number of channels: 2
	Use as stereo device only: No
	Simple stereo device: Yes

1 output streams:
	Number of active channels: 2, in 1 stream(s)
		Channel #0 :Stream 0 channel 0
		Channel #1 :Stream 0 channel 1

Stream ID 0x67 2 channels starting at 1
30 virtual formats:
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Float 768kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Float 705.6kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Float 384kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Float 352.8kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Float 192kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Float 176.4kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Float 96kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Float 88.2kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Float 48kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Float 44.1kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 768kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 705.6kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 384kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 352.8kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 192kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 176.4kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 96kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 88.2kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 48kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 44.1kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 768kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 705.6kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 384kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 352.8kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 192kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 176.4kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 96kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 88.2kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 48kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 44.1kHz

40 physical formats
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Integer 768kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Integer 705.6kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Integer 384kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Integer 352.8kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Integer 192kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Integer 176.4kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Integer 96kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Integer 88.2kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Integer 48kHz
	2 ch Mixable linear PCM Interleaved 32 little endian Signed Integer 44.1kHz
	2 ch Mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 768kHz
	2 ch Mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 705.6kHz
	2 ch Mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 384kHz
	2 ch Mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 352.8kHz
	2 ch Mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 192kHz
	2 ch Mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 176.4kHz
	2 ch Mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 96kHz
	2 ch Mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 88.2kHz
	2 ch Mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 48kHz
	2 ch Mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 44.1kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 768kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 705.6kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 384kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 352.8kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 192kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 176.4kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 96kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 88.2kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 48kHz
	2 ch Non-mixable linear PCM Interleaved 32 little endian Signed Integer 44.1kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 768kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 705.6kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 384kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 352.8kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 192kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 176.4kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 96kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 88.2kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 48kHz
	2 ch Non-mixable linear PCM Interleaved 24 little endian Signed Integer aligned low in 32bit 44.1kHz

Local devices found : 2
	Device #0: ID 0x66 DX7 Pro 
		Manufacturer: Topping
		Model UID: DX7 Pro:152A:8750
		UID: AppleUSBAudioEngine:Topping:DX7 Pro:14200000:1
		USB Vendor ID: 0x152a
		USB Product ID: 0x8750
		Model name: Topping DX7 Pro 
	Device #1: ID 0x6c MacBook Pro Speakers
		Manufacturer: Apple Inc.
		Model UID: Speaker
		UID: BuiltInSpeakerDevice
		Model name: Apple Inc. MacBook Pro Speakers

UPnP


UPnP devices found : 0



Chromecast


Chromecast devices found : 0


Put your memory buffer at 20000 you have enough at 32gb

Put the I/O buffer on

Still buggy? Turn upsampling off.

None of this fixed the issue. Disabling upsampling reduced the rate of memory leak, but memory usage is still constantly increasing.

Intel

Yes mini late 2018, sonoma, when upsampling is off my Mac mini is running at Less then 3% cpu all the time :grinning:

Can’t verify now, in the woods for 2 days :grinning:

1 Like

@klz …Are you reducing the volume before up-sampling…? You may be hearing the overload clipping of r8Brain or maybe overloading your DAC input from the increase in dynamic-range…

Set your up-sampling for ‘Power of Two’… make sure you lower the volume before upsampling by -3dB or -6dB.

:notes: :eye: :headphones: :eye: :notes:

In light of @OffRode comment. I do not see any memory leak when using an Apple Silicon Mac. With 2.5.1 on Sonoma. Perhaps another Intel Mac user could respond?

Tested it this morning and yesterday evening before reverting to 2.4.0 due to a different issue.

1 Like

Could not agree more. Since the update too many issues as shown in the number of posts. For me playback on 2.5.1 and Sonoma was fine. Just refused to recognise the last track played in a playback queue in the playback history….

Not tried Radio’s but I did finally take up a Qobuz subscription and use it in Studio. Made music discovery more seamless and I like the additional album info. Only downside was when clicking on an album in my local library the track display comes up with a bit of a delay due to AS downloading the content from Qobuz. It’s only a second or so but definitely slower than AS with no Qobuz and I assume Origin also.

1 Like

I get 980 mbs download and 500 upload so not internet related and a second or so delay really is not an issue. Just wish when you clicked on a local album AS would display the track info straight away and just populate the Qobuz album review later when downloaded.

Thanks will check it out👍

1 Like

I understand your good intentions, but none of messages in this thread so far were really on topic. I’d appreciate if you moved discussions about upsampling, Apple Silicon, internet speed etc. to somewhere else.

1 Like

Hello everyone, I’m an old user of Audirvāna from the early days when Damien testing the app before final release… since then today’s Audirvāna reached a different level. Actually I’m not interacted here but the early age of Audirvāna. Things are changed!
Now, associated with this thread, I’m currently using Studio and facing the same “Memory “ problem when up sampling to the Dac’s maximum frequency!

The problem was not there with earlier version. I think, newly introduced DSD up sampling is also buggy. And I know, it takes some times to figure it out and fix. Looking forward to Damien . Best regards.

2 Likes

You are telling us that you hear the music “crackle” … You did not respond to my questions and suggestions…

:notes: :eye: :headphones: :eye: :notes:

I don’t have problems with native DSDxxx playback and PCMxxx up-sampled/modulated to DSD128… The sound-quality is superb…

macOS 12.7 (21G816)
MacBook Pro (15-inch, 2016)
2.7 GHz Quad-Core Intel Core i7
16 GB 2133 MHz LPDDR
Intel HD Graphics 530 1536 MB

I am using r8Brain to up-sample/modulate all PCMxxx to DSD128, with one (1) AU plug-in (Abbey Road Studio 3, virtualization/HRTF), Playback pre-load buffer is set to 5.5GB, and the library drive is connected locally on the USB 3.1 bus.
[/quote]

:notes: :eye: :headphones: :eye: :notes:

Another observation along with Audirvāna latest release and my beloved portable iFi XDSD Gryphon Dac(Audirvāna certified): when first released the 2.5.0, the dac was able to upsample DSD .iso to targeted DSD256 but some times after the app always ignored the target and played default DSD64 without up sampling.
Note that, the other formats like flac/ ape etc are played upsampled to DSD256! Don’t know what I saw about regarding DSD256 for iso or up sampling to DSD256 is for normal formats only!

Then the version 2.5.1 came and with “ memory leaking “- what ever you mentioned that, Just sharing an explanation what I wrote earlier to understand Damien to figure out… hope it will help.
Regards.

When playing an SACD .iso file, Audirvana must first extract the 1-bit DSD signal and then package this as a DoP file for playback on macOS platforms… a lot of CPU overhead…

:notes: :eye: :headphones: :eye: :notes:

I’m sorry, but I’m not surprised at all that sound starts to crackle when the application that is producing it consumes over 60% of available system memory. I experience the same issue with upsampling completely disabled, so I don’t think I have a reason to try different upsampling settings as it’s not a variable here.

Well, you have to ask yourself why I don’t have a problem with 2.5.1 and macOS…

:notes: :eye: :headphones: :eye: :notes:

Well, memory leaks shouldn’t be a part of any software under any circumstances that are controllable by user-changeable preferences. Would you agree with that?

I don’t have a memory leak… what you think may be a memory leak may not be that…