Luke 43745 Posted November 19 Posted November 19 On 11/16/2026 at 11:48 AM, BenLovell said: The option for App Nap doesn't show in the info panel for the server application, but I looked in Activity Monitor to confirm it's not active. Here's a screenshot. But when exactly did you do that ?
RevWayne 8 Posted November 19 Posted November 19 I'm very interested in this topic because I am having a very similar problem. Intermittently, not all the time and not at any predictable interval, Emby cuts off before the program being recorded is finished. Sometimes, like BenLovell, it cuts off at about the 25 minute mark (on a 2 hour program). Twice it cut off at about 1:45, with about 15 minutes left on the program. I, too, have MacOS with OTA (Connect Duo). I'm going to investigate the suggestions made so far, but since this is intermittent, it will be hard to know if anything worked (or to send a log file) until it does mess up again.
BenLovell 1 Posted November 19 Author Posted November 19 @LukeIve never made any changes to that setting so as far as I’m aware it’s been like that since I installed Emby Server years ago.
Luke 43745 Posted November 19 Posted November 19 5 minutes ago, BenLovell said: @LukeIve never made any changes to that setting so as far as I’m aware it’s been like that since I installed Emby Server years ago. I mean when did you take the screenshot ?
BenLovell 1 Posted November 20 Author Posted November 20 (edited) @LukeI asked Claude and ChatGPT to compare the code from the server releases around the time I started having issues. They both found the same changes between releases that could be causing my issues. Here's the reply from Claude. 4.9.5.0 tracked live-stream users with a simple counter. The stream started at 1 in its constructor, MediaSourceManager incremented and decremented it directly, and the stream closed at 0. 4.10.0.40 replaces that with a consumer-ID scheme, and it looks half-finished: Counting is still a bare counter. LiveStream now has AddConsumer(string) and RemoveConsumer(string), but they just do ConsumerCount++ and ConsumerCount--, which is not thread-safe. They ignore the ID entirely. A Consumers dictionary is created in the constructor and never read or written anywhere, so there is no per-consumer tracking. The initial count moved. The constructor no longer sets the count to 1. The increment now happens only in EmbyTV.GetChannelStreamWithDirectStreamProvider, once when a stream is shared and once when a new one is created. A stream created any other way would start at 0 instead of 1. I did not check whether any other path creates one. Removal is unconditional. MediaSourceManager.CloseLiveStreamInternal now calls RemoveConsumer unless the ID is empty and close-all is set. It then closes and removes the stream as soon as the count is 0 or below. The IDs don’t line up. The recorder uses a Recording_… ID and the ffmpeg encode path sets its own LiveStreamConsumerId, both written into LiveStreamRequest.ConsumerId. Nothing reads that field. OpenLiveStreamInternal takes the ID from request.PlaySessionId, which is empty for a recording. So the IDs passed to add and to remove never match. EmbyTV.RecordStream itself is unchanged. Its log message “Recording completed” prints whenever the record call returns without an error. If something else drops the count to 0 and closes the stream underneath the recorder, the copy loop would probably end cleanly and log a normal completion over a short file. That would explain why the log says the recording finished. I have not confirmed that behavior. It seems likely that it's corrected in the most recent beta. Any idea when it will be pushed to release? Edited November 20 by BenLovell
Luke 43745 Posted November 20 Posted November 20 Hi, I would try updating to Emby Server 4.10.2 and then see how things compare. Thanks.
BenLovell 1 Posted November 20 Author Posted November 20 @LukeThat’s what I’m currently running. I just used the older versions to test because that’s when the problem solved. It seems there was a change made to the way the tuners are addressed that might have caused the issue.
BenLovell 1 Posted November 20 Author Posted November 20 Sorry. Should have said that’s when the problem started. Autocorrect got me.
BenLovell 1 Posted November 20 Author Posted November 20 @LukeI ran a check of 4.10.2 and it shows the same issues in the earlier versions that appear to be corrected in the most recent beta.
RevWayne 8 Posted November 22 Posted November 22 I am still looking for answers. I had the problem happen again last night - Emby recorded 34 minutes of a 2:30 TV show, and then quit. I have attached the logs from last night. The show should have started at 7:00pm CST and ended at 9:30pm CST. There is a lot that I don't understand from reading the logs, but what I do understand is that is repeatedly says a socket failed, which, according to my reading,, means that there was a network problem. But there was no network problem. I was watching another program, a movie I had saved in my movie files in Emby, during this time and it worked perfectly. My MacOS is up to date. So is my Emby Server (4.10.2). I need some guidance for next steps, please. embyserver-63930909396.txt
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now