Memory leak in Origin 2.5.1 (multi-platform confirmed)

The differences I notice with my settings:

  • I use r8brain for upsampling to DSD.
  • I have tested with WASAPI and ASIO (not Kernel streaming).

In Windows it could be a problem with one of the above, but on the other hand it happens on MacOS too and MacOS does not have WASAPI and ASIO at all.
The mystery deepens :wink: since on my Windows system it still is stable. I am going to test with Kernel Streaming and SOX see if I get a leak as well.

I hope @Antoine and/or @Damien can reproduce this. What I have seen from other threads and release notes is that some changes have been made to the sound-engine of Audirvana and some bugs seem to have creeped in (DSD suddenly played in mono and other issues). Maybe a memory leak creeped in as well? Hope this mystery gets solved soon.

Hi @tomwest07 and @klz . I now can reproduce the memory leak. See also my post above.
I have tested on my Win11 system with WASAPI, ASIO and Kernel streaming. I also used SOX and r8brain for upsampling.

If I use the play-next and play-prev buttons I can confirm that Origin has a memory leak on my machine too. Before this I just tested with a long playlist and let Origin play. Then it did not happen.
When I press the play-prev and play-next buttons, every time more RAM is used by Audirvana and nothing released. After around 20 ‘play-next’ presses the RAM used by Origin went from 2 GB to 6 GB. Now after 10 or so more presses the RAM-usage went up even more until I got an ‘Insufficient memory’ message. My ‘music pc’ has 16 GB of RAM, so of course this may vary on other machines.

Conclusion: when using the ‘next’ and ‘previous’ buttons Origin 2.5.1 (and Studio?) leaks memory. This seems to be OS independent since it happens on Windows and MacOS. @Agoldnear also has/had problems with exactly these buttons. Is there a breaking change made in code?

@Antoine and @Damien can you reproduce this?

4 Likes

I am observing the same issue. Here are the relevant details of my setup.

Audirvana Origin 2.5.1 (20501)

macOS Version 13.6 (Build 22G120) with 16GB physical RAM

Connected account of : Michael Sacks

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

Preferred device:
Schiit Audio Schiit Unison Modius ES
Model UID:Schiit Unison Modius ES:30BE:101A
UID:AppleUSBAudioEngine:Schiit Audio:Schiit Unison Modius ES:14600000:1
Currently playing in Integer Mode:
Device: 2ch Non-mixable linear PCM Interleaved 32bits little endian Signed Integer, 8 bytes per frame 192kHz

Active Sample Rate: 192kHz
Hog Mode is on

I played two albums:

I did not click the play next button. I just selected the first song in the album and let each album play from start to finish.

Origin’s memory usage started at 915 Meg
I have played all of Livin on the Fault Line and Takin It to the Streets
Origin’s memory usage is currently at 6.08 Gig

As Origin advances to the next track I see memory usage climb by between 250 and 300 Meg.

It’s sad that couldn’t enjoy the music anymore with this nasty bug/bugs. I’ve to shut down my system for this and now listening to my vinyls, Old is Gold!

Damien should focus on this as his first priority ( I believe he is doing so ). I think everyone is effected.

Same issue here on Mac. Wondered what was going on. Looking in Activity Monitor even when album has finished playing, Audirvana is taking up 12.04GB of 16GB RAM. Please sort this out quickly as it is spoiling any form of music listening with screeches and crackles. Thank you.

Debug info as follows:

Audirvana Origin 2.5.1 (20501)

macOS Version 12.7 (Build 21G816) with 16GB physical RAM

SIGNAL PROCESSING:

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

UPSAMPLING:
r8brain with Power Of Two upsampling
r8brain filter parameters
Bandwidth = 99%
Stop band attenuation 208.537dB
Phase linear

AUDIO VOLUME:
Max allowed volume: 99.9801
Replay Gain: None
SW volume control: OFF

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

Remote Control server:
Listening on 127.0.0.1 on port 49435

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

Active method: Local

Max. memory for audio buffers: 4044MB

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

Preferred device:
AUDIOLAB AUDIOLAB USB Audio 2.0 Output
Model UID:AUDIOLAB USB Audio 2.0:2622:0041
UID:AppleUSBAudioEngine:AUDIOLAB :AUDIOLAB USB Audio 2.0:14400000:1

Active Sample Rate: 352.8kHz
Hog Mode is off

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

Selected device:AUDIOLAB USB Audio 2.0 Output
Manufacturer: AUDIOLAB
Model name: AUDIOLAB USB Audio 2.0 Output
Model UID: AUDIOLAB USB Audio 2.0:2622:0041
UID: AppleUSBAudioEngine:AUDIOLAB :AUDIOLAB USB Audio 2.0:14400000:1
USB Vendor ID: 0x2622
USB Product ID: 0x0041
ID 0xbf

8 available sample rates up to 384000Hz
44100
48000
88200
96000
176400
192000
352800
384000
Audio buffer frame size : 106 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: Unhandled

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 0xc0 2 channels starting at 1
24 virtual formats:
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 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
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 384kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 352.8kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 192kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 176.4kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 96kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 88.2kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 48kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 44.1kHz

32 physical formats
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 Mixable linear PCM Interleaved 16 little endian Signed Integer 384kHz
2 ch Mixable linear PCM Interleaved 16 little endian Signed Integer 352.8kHz
2 ch Mixable linear PCM Interleaved 16 little endian Signed Integer 192kHz
2 ch Mixable linear PCM Interleaved 16 little endian Signed Integer 176.4kHz
2 ch Mixable linear PCM Interleaved 16 little endian Signed Integer 96kHz
2 ch Mixable linear PCM Interleaved 16 little endian Signed Integer 88.2kHz
2 ch Mixable linear PCM Interleaved 16 little endian Signed Integer 48kHz
2 ch Mixable linear PCM Interleaved 16 little endian Signed Integer 44.1kHz
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
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 384kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 352.8kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 192kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 176.4kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 96kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 88.2kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 48kHz
2 ch Non-mixable linear PCM Interleaved 16 little endian Signed Integer 44.1kHz

Local devices found : 4
Device #0: ID 0xcf Built-in Output
Manufacturer: Apple Inc.
Model UID: AppleHDA:129
UID: AppleHDAEngineOutput:1B,0,1,2:0
Model name: Apple Inc. Built-in Output
Device #1: ID 0xbf AUDIOLAB USB Audio 2.0 Output
Manufacturer: AUDIOLAB
Model UID: AUDIOLAB USB Audio 2.0:2622:0041
UID: AppleUSBAudioEngine:AUDIOLAB :AUDIOLAB USB Audio 2.0:14400000:1
USB Vendor ID: 0x2622
USB Product ID: 0x0041
Model name: AUDIOLAB USB Audio 2.0 Output
Device #2: ID 0x2b Soundflower (2ch)
Manufacturer: ma++ ingalls for Cycling '74
Model UID: com_cycling74_driver_SoundflowerDevice:Soundflower
UID: SoundflowerEngine:0
Model name: ma++ ingalls for Cycling '74 Soundflower (2ch)
Device #3: ID 0x37 Soundflower (64ch)
Manufacturer: ma++ ingalls for Cycling '74
Model UID: com_cycling74_driver_SoundflowerDevice:Soundflower
UID: SoundflowerEngine:1
Model name: ma++ ingalls for Cycling '74 Soundflower (64ch)

UPnP

UPnP devices found : 0

Chromecast

Chromecast devices found : 0

I’m reverting to 2.4.0 until this issue is resolved.
Here’s an official download link for 2.4.0: https://audirvana.com/delivery/origin/mac/AudirvanaOrigin_2.4.0.dmg

3 Likes

Cheers, all is well now going back to 2.4.0 :slight_smile:

I am sure the small team at Audirvana are focused on trying to fix this amongst a few other issues with 2.5.1 so their responses may be very limited. Better to fix the code than respond to the comments.

If they have not done so already maybe they should contact a few of the IT educated users and establish an early access programme to broaden the net of beta testing .X releases a couple of weeks before release to the general users.

2 Likes

I agree. I don’t really expect an immediate answer. I just flagged their names to make sure that they are aware of the problem (they probably are now, but you never know :grinning:). As far as I know people just recognized this issue in this thread.

1 Like

I’ve been on the product development side of operational bug testing of both audio and video hardware and software… (not something I am anxious to engage in these days)

This seems to be a deep program related function… so, the focus would be on establishing a broad base of beta-testers of varying playback configurations and use scenarios… My mode of operation and typical use of various functions will be different than others and in some cases, the same as others…

For instance I rarely ever use the playback cue and never use playlists, and I up-sample/modulate all PCMxxx to DSD128, after AU plug-in DSP processing, where I have a reasonably large library of 16/44.1kHz files and growing library of DXD 24/352.8kHz files and DSD files and I never stream files and my system configuration is based on local connection to my MBP, via USB 3 and Thunderbolt 3/4 with the library on a USB3.1 bus connected HDD.

Whatever happened here, is to be expected, when the focus is blurred by an impetus of unnecessary immediacy, based on too wide of a reach from the fundamental principles that have created, a superbly sounding audiophile digital-audio playback engine… Is native DSD256 and are the DSD512 and DSD1024 derivatives really competitive targets? I argue that it is esoteric and has limited value in comparison to DSD128 and maybe DSD256 in general application on the majority of systems… I may argue differently when there are ubiquitous catalogs of native DSD256 recordings.

Nah. It is just a memory leak. :grinning: Somewhere in the code the memory allocated earlier is not released. Nothing a few hours with a debugger can’t fix. Good luck to the development team. Lots of coffee and croissants will do the trick. :+1: :+1: :+1: :+1: Good luck to Damien and Antoine :+1: :+1: :+1: :+1:. I feel the pain. I have been there a couple of times :wink: :hot_face:

6 Likes

I second the sentiment… :sunglasses:

Change were made to make some new company dacs to be proof tested with Audirvana and all the rest was forgotten in the last 2 updates… 2.5 was released and bugs were found just after release… 2.5.1 was release just after it to make a quick repair but that version s*cks too.

i trashed 2.5 and 2.5.1 in my hard drive backup… last version for me is 2.4

DSD bug, UPNP on my Bravia TV doesn’t play anymore, can’t have an album complete with count plays… the last song of an album can’t have a count of 1 after finishing… even after restart, but put back v2.4 and all is good…

Just glad it didn’t messed up my database…

1 Like

Hi @RunHomeSlow Could you advise how to go about going back to Studio 2.40 from 2.5.1.

My RAM usage has just increased from just under 4 to 29GB in about 2 hours. I’m operating on a late 2014 iMac using Big Sur 11.7.10

I did notice that @klz provided a link to the .dmg file earlier.

Thanks in advance.

the link posted in that other thread is good if you are on a Mac…
i did post the 2.4 version earlier also for Studio and Origin 2.4 for Mac too in this thread…

just open the .dmg if you are on a mac and drag the software to your applications folder…
and replace when asked… that is it :slight_smile:

1 Like

Many thanks. Never had any issues with AS before.

Seems straight forward, hopefully i can avert any diasters. :smile:

1 Like

Keep the 2.4 .dmg as a backup… I always do :slight_smile:
keep them all, you’ll never know when needed :slight_smile:

3 Likes

Even if you have software update enable in Audirvana,
when it is updated, always go to your Audirvana account page
and Download the latest version, and safe it somewhere else :slight_smile:

PC user is different i think? can it be saved, i don’t know…

https://audirvanausers.b2clogin.com/audirvanausers.onmicrosoft.com/b2c_1a_web_signin/oauth2/v2.0/authorize?client_id=2ab02e1b-3761-4c71-8198-e2598c8847d3&scope=https%3A%2F%2Faudirvanausers.onmicrosoft.com%2F2ab02e1b-3761-4c71-8198-e2598c8847d3%2Fuser_impersonation%20openid%20profile%20offline_access&redirect_uri=https%3A%2F%2Fmy.audirvana.com%2Fauthentication%2Flogin-callback&client-request-id=e76372d9-fae9-41f5-8540-a83a86174b21&response_mode=fragment&response_type=code&x-client-SKU=msal.js.browser&x-client-VER=2.16.1&x-client-OS=&x-client-CPU=&client_info=1&code_challenge=cF8TLUkkjNDLp6RPKRAleRjQs02tqxtvwTJ5B9_Qvdw&code_challenge_method=S256&nonce=3de1d0f2-c6fb-4e50-9dda-e93e3e395219&state=eyJpZCI6ImRhZTZlYWQ5LTEzZGUtNDQ5OC1iMTMxLWE1NDM5NmZmYzZmMCIsIm1ldGEiOnsiaW50ZXJhY3Rpb25UeXBlIjoicmVkaXJlY3QifX0%3D|3O__Ktwd3ZL5okZKeQBSZzCHTS3p-LyUEhlfAm2t62w

Thanks for assist. Worked like a charm.

Fingers crossed!!

I still have old trusty Foobar and Audirvana 3.5 installed on Windows. They do a fine job as well. Never throw all your eggs in one basket :egg::wink:

3 Likes