Roon loses data after Windows restart (ref#YIM8G2)

What’s happening?

· Other

How can we help?

· None of the above

Other options

· Other

Describe the issue

When Windows restarts, Roon loses all changes to time new files were added, what was played and additions to listen to later lists.

Describe your network setup

Network Type: Ubiquity UDM Pro with 3 access points in mesh configuration
Internet Service Provider: Quantum Fiber
The Roon NUC server running Windows 11 pro is connected directly to the UDM Pro

Hey @Bjorn_Levidow,

Thanks for writing in and sharing your report!

Can you be a bit more specific with your issue details - are you able to provide specific albums you’re seeing this issue with?

And with that, could you share a more detailed step-by-step process you follow to experience the issue?

Thank you!

My Roon sever has been running for a couple of weeks. When I played songs today, I found that some tracks would play for a second and then skip to the next track. I have seen this before and know that it is related to being out of memory on my Windows box that is exclusively my Roon server.
I logged into that box remotely (it is a headless server) and restarted it to fix the out of memory problem.
I added all these albums, and more, on Friday, Saturday, and Sunday but they all show up as being added today.

Before I restarted it:

  • All the albums (and more) shown above were shown on the right dates.
  • I had added at least 5 albums (Two of which I remember: Genisis Abacab and Yes 90215) to listen to later that were missing
    Basically, all of the state that I entered via a Roon client was not persisted across the restart.

Hello @Bjorn_Levidow

Thank you for sharing these details.

Given that your library is around 32,000 tracks and the system has 16 GB of RAM, it’s extremely unlikely that Roon itself exhausted the available memory under normal operation. If certain library states (like recently added albums or “Listen Later” lists) were lost after the restart, it suggests that the database didn’t successfully commit recent changes — possibly due to an interruption in write operations or a database rollback triggered by a system resource issue.

Could you please confirm the following so we can better understand the environment?

  1. Why did you choose to run Roon on Windows instead of Roon OS?
  2. When you observed the “out of memory” issue, did Task Manager actually show Roon consuming most of the memory? If possible, please share a screenshot of that view.
  3. Can you confirm whether this Windows system is used exclusively for Roon, or if there are other applications or background services running on it?

Waiting for the updates.

Hi @vadim

  1. I run Windows because I worked at Microsoft for 20 year, many of them in the Windows Core OS group where I was granted 2 patents for low level OS features. I know the platform pretty well :slight_smile: Also, with my Microsoft Alumni discount, Windows is very cheap.
  2. It isn’t Roon that is consuming all of the memory, though it does grow over time to consume up to 60% of the total memory. Here’s the screenshot of my current memory utilization.
  3. Yes. This machine only runs roon and out of the box Windows services.

I have contimplated running the RoonOS on this box instead for simplicity. If the RoonOS has and SMB server so that I can copy music to it without inserting a USB drive into it, I will think about moving to it when I have a free weekend.
Are there logs I should look at to see if there were database commit failures? Memory utilization was only at 80% when I went to restart the OS and I would think that Roon should be 1. flushing the cache frequenlty and 2. should raise an alert or something in the UX when there is a critical failure like a failed DB commit.

More data:
I was just in the middle of playing KNHC C89.5 live radio station and my Roon server crashed and lost all the state since the last restart.
Here’s the task manager after I restarted the Roon server manually.

Hello @Bjorn_Levidow,

I’ve checked the diagnostic data around the time you mentioned. Based on what I see, Roon was running smoothly — the logs conclude with playback entries, and the memory consumption was around 1.75 GB, which is considered normal behavior.

10/06 08:43:25 Info: [stats] 2106642mb Virtual, 2531mb Physical, 1750mb Managed, 781mb estimated Unmanaged, 3083 Handles, 99 Threads
10/06 08:43:42 Trace: [Living Room + Dining Room] [zoneplayer/raat] sync Naim Audio Mu-so -> Naim Audio NDX 2 result: Success
10/06 08:43:44 Trace: [Living Room] [Lossless, 16/44 FLAC => 16/44] [100% buf] [PLAYING @ 3:48/5:48] The Sea - Morcheeba
10/06 08:43:44 Trace: [Dining Room] [Enhanced, 16/44 FLAC => 16/44] [100% buf] [PLAYING @ 3:48/5:48] The Sea - Morcheeba
10/06 08:43:50 Trace: [Living Room + Dining Room] [zoneplayer/raat] sync Naim Audio Mu-so -> Naim Audio NDX 2 result: Success

Could you please check if there are any error traces or warnings related to Roon in the Windows Event Viewer around that time?

Hi @Bjorn_Levidow,

How would you like to proceed from here? Per @Vadim’s response above, we investigated Roon logs around the timestamp you shared and found memory consumption to be within the expected range.

If you’re still encountering discrepancies with your database after OS restarts, we can continue to investigate. Please share either a) the name of a playlist that has been reverted on startup or b) the name of a track that showed incorrect file change times on startup.

Otherwise, this thread will soon auto-close due to lack of OP response. Please reach out within the next few days to prevent the thread from closing. Thank you!

@vadim and @connor ,
Ok. This is weird. All the metadata I thought was missing or wrong has been restored. That’s definitely a good thing but I hate magic :smiley: Did you all do something to my install remotely? Do I have to unhook my clients from a my roon server to flush some cache?

On the issue of roonserver.exe crashing on me, I have more data. As you can see from this event log snapshot, my roonserver.exe has been crashing once or twice a day, regardless of memory consumption.


You can find a link to the event viewer log in XML format here: Roon Server Event Log Export
Please let me know if you want any more information about this.

1 Like

Good day @Bjorn_Levidow !

Thanks for sharing the logs from Event Viewer.

Can you please clarify, do you run Roon as Administrator ?

Or do you have any other limitation features enabled that might deny accesses to Roon ?

Looking forward to your reply!

Regards.

@alex_h :Thanks for the suggestion. I ran those commands, but it did not reduce the frequency of crashes. I do not run roonserver.exe as an administrator. Should I? I generally follow least privileges guidelines.
@vadim and @connor : The meta-data has been lost again with the latest crash.I saw this when I launched my Roon client.




I added all of those tracks on Sunday and Monday, not yesterday.

I played 90215 by Yes from the Listen Later queue yesterday, but it is nowhere to be found. Abacab is also missing again.

Memory utilization is low.

Any other advice, other than re-installing Windows or installing the RoonOS?

Thanks.

1 Like

Good day @Bjorn_Levidow !

Yes, please try to run all Roon software as Administrator (Both, Roon server and Roon Application Remote) .

Also, we’d recommend you to make sure that all updates are installed including latest update of .NET Runtime Framework.

And the last but not least, please disable antivirus software on the box if you have any.

Let us know please whether this prevents Crashes.

Regards.

@alex_h : I have updated the server to run as an administrator. I have installed all the available updates to the machine except the Windows 11 2025 H2 preview. There were no .NET runtime framework updates available.
There is no antivirus software running on the box.
I will update you on the crash situation tomorrow.

1 Like

Hi @Bjorn_Levidow,

Since it’s been a few days, we wanted to check in on your thread and see how things have been performing. We’ll be onstandby for your reply! :folded_hands:

I have determined that my server has been infected by a trojan. I’m going to be flattening it and installing ROCK on it so you can go ahead and close this thread.

However, given that the only software on the Windows box was the Roon server and I know, based on the diagnostics you have been able to do, that you have remote network access, you might want to look for security holes in your code.

1 Like