Roon 1.0 r 21 played AirPlay for a few hours then ran out of memory

1.0 r21 had been going SO MUCH better, allowing me to play over AirPlay for multiple hours … even letting me group 2 AirPlay devices reliably. But then it just stopped again - and pausing and playing the remote again resulted in 1 second more audio, then nothing, then it went quiet, with both core and remote still running. Error at the time on the core indicated out of memory - looks like Roon was using 2.8 GB of memory.

I did get it going again for a few seconds - by closing down Aperture on the Mac running the core. That was using 3 GB memory. But this is an MBP with 16 GB RAM, and not running much else. But then it stopped again. For good.

Oh, and p.s. with this version you can’t create new profiles - the dialog just waits forever. But that’s a different topic!

Excerpt from log at the time of the first interruption, when it was playing from TIDAL, followed by lots more out of memory exceptions:

06/14 20:34:35 Info:
–[ SignalPath ]---------------------------------------------
SignalPath Quality = HighQuality
Elements:
Source Format=Flac 44100/16/2 Quality=Lossless
Output OutputType=AirPlay Quality=HighQuality

06/14 20:34:35 Info: [library] recorded play for profile d1215a20-f072-4113-bf06-d36ee0862ecb: mediaid=50:1:fb605b88-9a6d-45c0-95db-c681ac3808e2 metadataid= contentid=168:0:35683402 libraryid=50:1:fb605b88-9a6d-45c0-95db-c681ac3808e2
06/14 20:34:35 Trace: [library] finished with 26 dirty tracks 2 dirty albums 5 dirty performers 29 dirty works 1 dirty performances 0 clumping tracks, 0 compute tracks, 0 deleted tracks, 0 tracks to (re)load, 0 tracks to retain, and 9 changed objects
06/14 20:34:35 Trace: [library] endmutation in 14ms
06/14 20:34:35 Trace: [airplay/client] Living Room Apple TV (192.168.1.186:5000) server lost 1 packets starting at seq 30552
06/14 20:34:35 Trace: [airplay/client] Living Room Apple TV (192.168.1.186:5000) resent packet to 192.168.1.186:49780 with seq 30552
06/14 20:34:35 Info: [zoneplayer/base] Queueing: http://audio-pop.tidal.com/65438653/20140926152411_26.flac?token=st=1434310475~exp=1434312275~hmac=d8a70dadb8f9e696931a3455b400f4168bc1eeac582b0c642493db735e7fd3a7
06/14 20:34:36 Info: [zoneplayer/base] Open result (Queueing): Result[Status=Success]
06/14 20:34:37 Trace: [airplay/client] Kitchen AirPort Express (192.168.1.206:5000) server lost 1 packets starting at seq 20812
06/14 20:34:37 Trace: [airplay/client] Kitchen AirPort Express (192.168.1.206:5000) resent packet to 192.168.1.206:6000 with seq 20812
06/14 20:34:38 Trace: [airplay/client] Living Room Apple TV (192.168.1.186:5000) server lost 1 packets starting at seq 30957
06/14 20:34:38 Trace: [airplay/client] Living Room Apple TV (192.168.1.186:5000) resent packet to 192.168.1.186:49780 with seq 30957
06/14 20:34:38 Trace: [airplay/client] Kitchen AirPort Express (192.168.1.206:5000) server lost 1 packets starting at seq 20945
06/14 20:34:38 Trace: [airplay/client] Kitchen AirPort Express (192.168.1.206:5000) resent packet to 192.168.1.206:6000 with seq 20945
06/14 20:34:38 Info: [stats] 3909mb Virtual, 891mb Physical, 301mb Managed, 59 Threads, 322 FDs (264 REG, 33 IPv4, 9 DIR, 7 KQUEUE, 4 CHR, 3 PIPE, 1 systm, 1 unix)
06/14 20:34:40 Trace: [airplay/client] Kitchen AirPort Express (192.168.1.206:5000) server lost 1 packets starting at seq 21097
06/14 20:34:40 Trace: [airplay/client] Kitchen AirPort Express (192.168.1.206:5000) resent packet to 192.168.1.206:6000 with seq 21097
06/14 20:34:40 Warn: [streamingmediafile] caching http://audio-pop.tidal.com/65438653/20140926152411_26.flac?token=st=1434310475~exp=1434312275~hmac=d8a70dadb8f9e696931a3455b400f4168bc1eeac582b0c642493db735e7fd3a7 failed: System.OutOfMemoryException: Out of memory
at (wrapper managed-to-native) object:__icall_wrapper_mono_gc_alloc_vector (intptr,intptr,intptr)
at (wrapper alloc) object:AllocVector (intptr,intptr)
at System.Security.Cryptography.CryptoStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) [0x00000] in :0
at Sooloos.Media.StreamingMediaCache.Encrypt (System.Byte[] blob) [0x00000] in :0
at Sooloos.Media.StreamingMediaCache.Put (Int32 keyid, Int32 pagen, System.Byte[] data) [0x00000] in :0
at Sooloos.Media.StreamingMediaFileImpl+c__AnonStorey1.<>m__0 (IAsyncResult ar) [0x00000] in :0
06/14 20:34:40 Trace: [airplay/client] Kitchen AirPort Express (192.168.1.206:5000) server lost 1 packets starting at seq 21165
06/14 20:34:40 Trace: [airplay/client] Kitchen AirPort Express (192.168.1.206:5000) resent packet to 192.168.1.206:6000 with seq 21165
06/14 20:34:41 Trace: [airplay/client] Kitchen AirPort Express (192.168.1.206:5000) server lost 1 packets starting at seq 21255
06/14 20:34:41 Trace: [airplay/client] Kitchen AirPort Express (192.168.1.206:5000) resent packet to 192.168.1.206:6000 with seq 21255
06/14 20:34:45 Trace: [airplay/client] Kitchen AirPort Express (192.168.1.206:5000) server lost 1 packets starting at seq 21733
06/14 20:34:45 Trace: [airplay/client] Kitchen AirPort Express (192.168.1.206:5000) resent packet to 192.168.1.206:6000 with seq 21733
06/14 20:34:50 Trace: [airplay/client] Living Room Apple TV (192.168.1.186:5000) server lost 1 packets starting at seq 32424
06/14 20:34:50 Trace: [airplay/client] Living Room Apple TV (192.168.1.186:5000) resent packet to 192.168.1.186:49780 with seq 32424
06/14 20:34:52 Trace: [library] endmutation in 13ms

06/14 20:36:09 Info: [stats] 3928mb Virtual, 917mb Physical, 336mb Managed, 52 Threads, 311 FDs (264 REG, 22 IPv4, 9 DIR, 7 KQUEUE, 4 CHR, 3 PIPE, 1 systm, 1 unix)
06/14 20:36:22 Warn: [concurrency] version changed out from under us. retry
06/14 20:36:24 Info: [stats] 3932mb Virtual, 917mb Physical, 336mb Managed, 57 Threads, 310 FDs (264 REG, 21 IPv4, 9 DIR, 7 KQUEUE, 4 CHR, 3 PIPE, 1 systm, 1 unix)
06/14 20:36:39 Info: [stats] 3929mb Virtual, 917mb Physical, 336mb Managed, 53 Threads, 310 FDs (264 REG, 21 IPv4, 9 DIR, 7 KQUEUE, 4 CHR, 3 PIPE, 1 systm, 1 unix)
06/14 20:36:54 Info: [stats] 3932mb Virtual, 917mb Physical, 336mb Managed, 55 Threads, 310 FDs (264 REG, 21 IPv4, 9 DIR, 7 KQUEUE, 4 CHR, 3 PIPE, 1 systm, 1 unix)
06/14 20:37:09 Info: [stats] 3931mb Virtual, 917mb Physical, 336mb Managed, 53 Threads, 310 FDs (264 REG, 21 IPv4, 9 DIR, 7 KQUEUE, 4 CHR, 3 PIPE, 1 systm, 1 unix)

There is a significant memory leak fixed as of build 22 (alpha). This will be released to everyone early next week.

It is a bit strange that your virtual memory is so high when the app is actually not being too bad in terms of physical/managed memory. Not a failure case I’ve seen before.