Random crashes on Apple Silicon macOS, internet-facing (Possible .NET issue) #6661

Closed
opened 2026-02-07 03:57:39 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @grizzogor on GitHub (Jan 16, 2025).

This issue respects the following points:

  • This is a bug, not a question or a configuration issue; Please visit our forum or chat rooms first to troubleshoot with volunteers, before creating a report. The links can be found here.
  • This issue is not already reported on GitHub (I've searched it).
  • I'm using an up to date version of Jellyfin Server stable, unstable or master; We generally do not support previous older versions. If possible, please update to the latest version before opening an issue.
  • I agree to follow Jellyfin's Code of Conduct.
  • This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one.

Description of the bug

After hosting an internet-facing Jellyfin instance for a couple of days on a headless base model M2 Mac mini, the Jellyfin server will seemingly crash at random times of the day, requiring a click of the "Restart" option in the Menu Bar. When it happens, it shows the following in the logs:

[2025-01-16 06:38:03.491 -05:00] [FTL] [156] Main: Unhandled Exception
System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point. (Parameter 'socketAddress')
   at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAccept(SocketAddress remoteSocketAddress)
   at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSyncSuccess(Int32 bytesTransferred, SocketFlags flags)
   at System.Net.Sockets.SocketAsyncContext.AcceptOperation.InvokeCallback(Boolean allowPooling)
   at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
   at System.Threading.Thread.StartCallback()

I had looked up the log and it seems to be a .NET issue, resolved 3 days ago in runtime version 9.0.2.

Reproduction steps

  1. Start the internet-facing Jellyfin Server on a Apple Silicon Mac.
  2. Wait for about 24-48 hours. (Sometimes it can take up to a week to manifest.)
  3. The Jellyfin Server goes offline and shows the previously mentioned log.

What is the current bug behavior?

The Jellyfin Server crashes.

What is the expected correct behavior?

The Jellyfin Server stays up.

Jellyfin Server version

10.10.0+

Specify commit id

No response

Specify unstable release number

No response

Specify version number

No response

Specify the build version

10.10.3

Environment

- OS: macOS 15.2
- Linux Kernel: 
- Virtualization: None
- Clients: Browsers, Mobile Devices, Apple TV, Google TV
- Browser: Zen Browser 1.6b (Firefox 134)
- FFmpeg Version: 7.0.2
- Playback Method: A mix between Transcode and Direct Play depending on client
- Hardware Acceleration: Apple VideoToolBox
- GPU Model: Apple M2
- Plugins: none
- Reverse Proxy: none
- Base URL: none
- Networking: Host
- Storage: SMB Share to a NAS mounted on machine startup.

Jellyfin logs

[2025-01-16 04:45:38.095 -05:00] [ERR] [62] Microsoft.AspNetCore.Server.Kestrel: Connection id ""0HN9KUBJ5O88L"", Request id ""0HN9KUBJ5O88L:00000001"": An unhandled exception was thrown by the application.
System.UriFormatException: Invalid URI: The hostname could not be parsed.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions)
   at System.UriBuilder.get_Uri()
   at Jellyfin.Api.Middleware.BaseUrlRedirectionMiddleware.Invoke(HttpContext httpContext, IServerConfigurationManager serverConfigurationManager)
   at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application)
[2025-01-16 06:27:42.782 -05:00] [INF] [56] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/Volumes/Public/Media/Music"
[2025-01-16 06:27:42.783 -05:00] [INF] [56] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/Volumes/Public/Media/Shows"
[2025-01-16 06:27:42.785 -05:00] [INF] [56] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/Volumes/Public/Media/Movies"
[2025-01-16 06:27:42.786 -05:00] [INF] [56] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[2025-01-16 06:27:48.485 -05:00] [INF] [135] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Media Segment Scan" Completed after 0 minute(s) and 5 seconds
[2025-01-16 06:27:49.375 -05:00] [INF] [63] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/Applications/Jellyfin.app/Contents/MacOS/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/Volumes/Public/Media/Movies/Flywheel (2007)/Flywheel (2007).mkv\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2025-01-16 06:27:49.586 -05:00] [ERR] [54] MediaBrowser.Providers.Movies.MovieMetadataService: Error in "TheMovieDb"
System.FormatException: The input string '17345-flywheel' was not in a correct format.
   at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)
   at System.Convert.ToInt32(String value, IFormatProvider provider)
   at MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieProvider.GetMetadata(MovieInfo info, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, Boolean replaceData, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken)
[2025-01-16 06:27:49.587 -05:00] [ERR] [54] MediaBrowser.Providers.Manager.ProviderManager: "TmdbMovieImageProvider" failed in GetImageInfos for type "Movie" at "/Volumes/Public/Media/Movies/Flywheel (2007)/Flywheel (2007).mkv"
System.FormatException: The input string '17345-flywheel' was not in a correct format.
   at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)
   at System.Convert.ToInt32(String value, IFormatProvider provider)
   at MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieImageProvider.GetImages(BaseItem item, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ProviderManager.GetImages(BaseItem item, IRemoteImageProvider provider, String preferredLanguage, Boolean includeAllLanguages, CancellationToken cancellationToken, Nullable`1 type)
[2025-01-16 06:27:52.357 -05:00] [INF] [62] Jellyfin.Drawing.ImageProcessor: Creating image collage and saving to "/var/folders/lv/fv_2xkjj1llfhjb5hmd60g0w0000gn/T/jellyfin/caa797ff952749a89957c8d63d28fd06.png"
[2025-01-16 06:27:52.603 -05:00] [INF] [62] Jellyfin.Drawing.ImageProcessor: Completed creation of image collage and saved to "/var/folders/lv/fv_2xkjj1llfhjb5hmd60g0w0000gn/T/jellyfin/caa797ff952749a89957c8d63d28fd06.png"
[2025-01-16 06:27:52.651 -05:00] [INF] [63] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Completed after 0 minute(s) and 9 seconds
[2025-01-16 06:27:52.682 -05:00] [INF] [94] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/Volumes/Public/Media/Shows"
[2025-01-16 06:27:52.696 -05:00] [INF] [62] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/Volumes/Public/Media/Music"
[2025-01-16 06:27:52.714 -05:00] [INF] [50] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/Volumes/Public/Media/Movies"
[2025-01-16 06:38:03.491 -05:00] [FTL] [156] Main: Unhandled Exception
System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point. (Parameter 'socketAddress')
   at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAccept(SocketAddress remoteSocketAddress)
   at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSyncSuccess(Int32 bytesTransferred, SocketFlags flags)
   at System.Net.Sockets.SocketAsyncContext.AcceptOperation.InvokeCallback(Boolean allowPooling)
   at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
   at System.Threading.Thread.StartCallback()
[RESTARTED SERVER]
[2025-01-16 07:54:07.334 -05:00] [INF] [1] Main: Jellyfin version: "10.10.3"
[2025-01-16 07:54:07.374 -05:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /Users/grizz/Library/Application Support/jellyfin/log]"]
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Arguments: ["/Applications/Jellyfin.app/Contents/MacOS/jellyfin.dll", "--webdir", "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web", "--ffmpeg", "/Applications/Jellyfin.app/Contents/MacOS/ffmpeg", "--datadir", "/Users/grizz//Library/Application Support/jellyfin"]
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Operating system: "Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec  6 18:51:28 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8112"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Architecture: Arm64
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: 64-Bit Process: True
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: User Interactive: True
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Processor count: 8
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Program data path: "/Users/grizz/Library/Application Support/jellyfin"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Log directory path: "/Users/grizz/Library/Application Support/jellyfin/log"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Config directory path: "/Users/grizz/Library/Application Support/jellyfin/config"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Cache path: "/Users/grizz/Library/Application Support/jellyfin/cache"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Temp directory path: "/var/folders/lv/fv_2xkjj1llfhjb5hmd60g0w0000gn/T/jellyfin"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Web resources path: "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web"
[2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Application directory: "/Applications/Jellyfin.app/Contents/MacOS/"
[2025-01-16 07:54:07.483 -05:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/Users/grizz/Library/Application Support/jellyfin/cache"
[2025-01-16 07:54:07.559 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[2025-01-16 07:54:07.614 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["192.168.4.1/22"]
[2025-01-16 07:54:07.614 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[2025-01-16 07:54:07.614 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["192.168.4.1/22"]
[2025-01-16 07:54:07.617 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: [Removed for privacy.]
[2025-01-16 07:54:07.617 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["::"]
[2025-01-16 07:54:07.617 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is "Allowlist"
[2025-01-16 07:54:07.617 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
[2025-01-16 07:54:08.817 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TMDb" "10.10.3.0"
[2025-01-16 07:54:08.817 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Studio Images" "10.10.3.0"
[2025-01-16 07:54:08.817 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "OMDb" "10.10.3.0"
[2025-01-16 07:54:08.827 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "MusicBrainz" "10.10.3.0"
[2025-01-16 07:54:08.827 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "AudioDB" "10.10.3.0"
[2025-01-16 07:54:08.866 -05:00] [INF] [1] Main: Kestrel is listening on "all interfaces"
[2025-01-16 07:54:09.103 -05:00] [WRN] [1] Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware: The WebRootPath was not found: "/wwwroot". Static files may be unavailable.
[2025-01-16 07:54:09.181 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks
[2025-01-16 07:54:09.190 -05:00] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Generate Trickplay Images" set to fire at 2025-01-17 03:00:00.000 -05:00, which is 19:05:50.8099710 from now.
[2025-01-16 07:54:09.193 -05:00] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Extract Chapter Images" set to fire at 2025-01-17 02:00:00.000 -05:00, which is 18:05:50.8069100 from now.
[2025-01-16 07:54:09.275 -05:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version "7.0.2"

FFmpeg logs


Client / Browser logs

No response

Relevant screenshots or videos

No response

Additional information

No response

Originally created by @grizzogor on GitHub (Jan 16, 2025). ### This issue respects the following points: - [x] This is a **bug**, not a question or a configuration issue; Please visit our forum or chat rooms first to troubleshoot with volunteers, before creating a report. The links can be found [here](https://jellyfin.org/contact/). - [x] This issue is **not** already reported on [GitHub](https://github.com/jellyfin/jellyfin/issues?q=is%3Aopen+is%3Aissue) _(I've searched it)_. - [x] I'm using an up to date version of Jellyfin Server stable, unstable or master; We generally do not support previous older versions. If possible, please update to the latest version before opening an issue. - [x] I agree to follow Jellyfin's [Code of Conduct](https://jellyfin.org/docs/general/community-standards.html#code-of-conduct). - [x] This report addresses only a single issue; If you encounter multiple issues, kindly create separate reports for each one. ### Description of the bug After hosting an internet-facing Jellyfin instance for a couple of days on a headless base model M2 Mac mini, the Jellyfin server will seemingly crash at random times of the day, requiring a click of the "Restart" option in the Menu Bar. When it happens, it shows the following in the logs: ``` [2025-01-16 06:38:03.491 -05:00] [FTL] [156] Main: Unhandled Exception System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point. (Parameter 'socketAddress') at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAccept(SocketAddress remoteSocketAddress) at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSyncSuccess(Int32 bytesTransferred, SocketFlags flags) at System.Net.Sockets.SocketAsyncContext.AcceptOperation.InvokeCallback(Boolean allowPooling) at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() at System.Threading.Thread.StartCallback() ``` I had looked up the log and it seems to be [a .NET issue](https://github.com/dotnet/runtime/issues/102663), resolved 3 days ago in runtime version 9.0.2. ### Reproduction steps 1. Start the internet-facing Jellyfin Server on a Apple Silicon Mac. 2. Wait for about 24-48 hours. (Sometimes it can take up to a week to manifest.) 3. The Jellyfin Server goes offline and shows the previously mentioned log. ### What is the current _bug_ behavior? The Jellyfin Server crashes. ### What is the expected _correct_ behavior? The Jellyfin Server stays up. ### Jellyfin Server version 10.10.0+ ### Specify commit id _No response_ ### Specify unstable release number _No response_ ### Specify version number _No response_ ### Specify the build version 10.10.3 ### Environment ```markdown - OS: macOS 15.2 - Linux Kernel: - Virtualization: None - Clients: Browsers, Mobile Devices, Apple TV, Google TV - Browser: Zen Browser 1.6b (Firefox 134) - FFmpeg Version: 7.0.2 - Playback Method: A mix between Transcode and Direct Play depending on client - Hardware Acceleration: Apple VideoToolBox - GPU Model: Apple M2 - Plugins: none - Reverse Proxy: none - Base URL: none - Networking: Host - Storage: SMB Share to a NAS mounted on machine startup. ``` ### Jellyfin logs ```shell [2025-01-16 04:45:38.095 -05:00] [ERR] [62] Microsoft.AspNetCore.Server.Kestrel: Connection id ""0HN9KUBJ5O88L"", Request id ""0HN9KUBJ5O88L:00000001"": An unhandled exception was thrown by the application. System.UriFormatException: Invalid URI: The hostname could not be parsed. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind, UriCreationOptions& creationOptions) at System.UriBuilder.get_Uri() at Jellyfin.Api.Middleware.BaseUrlRedirectionMiddleware.Invoke(HttpContext httpContext, IServerConfigurationManager serverConfigurationManager) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application) [2025-01-16 06:27:42.782 -05:00] [INF] [56] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/Volumes/Public/Media/Music" [2025-01-16 06:27:42.783 -05:00] [INF] [56] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/Volumes/Public/Media/Shows" [2025-01-16 06:27:42.785 -05:00] [INF] [56] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/Volumes/Public/Media/Movies" [2025-01-16 06:27:42.786 -05:00] [INF] [56] Emby.Server.Implementations.Library.LibraryManager: Validating media library [2025-01-16 06:27:48.485 -05:00] [INF] [135] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Media Segment Scan" Completed after 0 minute(s) and 5 seconds [2025-01-16 06:27:49.375 -05:00] [INF] [63] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/Applications/Jellyfin.app/Contents/MacOS/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"/Volumes/Public/Media/Movies/Flywheel (2007)/Flywheel (2007).mkv\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format" [2025-01-16 06:27:49.586 -05:00] [ERR] [54] MediaBrowser.Providers.Movies.MovieMetadataService: Error in "TheMovieDb" System.FormatException: The input string '17345-flywheel' was not in a correct format. at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value) at System.Convert.ToInt32(String value, IFormatProvider provider) at MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieProvider.GetMetadata(MovieInfo info, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.ExecuteRemoteProviders(MetadataResult`1 temp, String logName, Boolean replaceData, TIdType id, IEnumerable`1 providers, CancellationToken cancellationToken) [2025-01-16 06:27:49.587 -05:00] [ERR] [54] MediaBrowser.Providers.Manager.ProviderManager: "TmdbMovieImageProvider" failed in GetImageInfos for type "Movie" at "/Volumes/Public/Media/Movies/Flywheel (2007)/Flywheel (2007).mkv" System.FormatException: The input string '17345-flywheel' was not in a correct format. at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value) at System.Convert.ToInt32(String value, IFormatProvider provider) at MediaBrowser.Providers.Plugins.Tmdb.Movies.TmdbMovieImageProvider.GetImages(BaseItem item, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.GetImages(BaseItem item, IRemoteImageProvider provider, String preferredLanguage, Boolean includeAllLanguages, CancellationToken cancellationToken, Nullable`1 type) [2025-01-16 06:27:52.357 -05:00] [INF] [62] Jellyfin.Drawing.ImageProcessor: Creating image collage and saving to "/var/folders/lv/fv_2xkjj1llfhjb5hmd60g0w0000gn/T/jellyfin/caa797ff952749a89957c8d63d28fd06.png" [2025-01-16 06:27:52.603 -05:00] [INF] [62] Jellyfin.Drawing.ImageProcessor: Completed creation of image collage and saved to "/var/folders/lv/fv_2xkjj1llfhjb5hmd60g0w0000gn/T/jellyfin/caa797ff952749a89957c8d63d28fd06.png" [2025-01-16 06:27:52.651 -05:00] [INF] [63] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Completed after 0 minute(s) and 9 seconds [2025-01-16 06:27:52.682 -05:00] [INF] [94] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/Volumes/Public/Media/Shows" [2025-01-16 06:27:52.696 -05:00] [INF] [62] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/Volumes/Public/Media/Music" [2025-01-16 06:27:52.714 -05:00] [INF] [50] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/Volumes/Public/Media/Movies" [2025-01-16 06:38:03.491 -05:00] [FTL] [156] Main: Unhandled Exception System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point. (Parameter 'socketAddress') at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationAccept(SocketAddress remoteSocketAddress) at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSyncSuccess(Int32 bytesTransferred, SocketFlags flags) at System.Net.Sockets.SocketAsyncContext.AcceptOperation.InvokeCallback(Boolean allowPooling) at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() at System.Threading.Thread.StartCallback() [RESTARTED SERVER] [2025-01-16 07:54:07.334 -05:00] [INF] [1] Main: Jellyfin version: "10.10.3" [2025-01-16 07:54:07.374 -05:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, /Users/grizz/Library/Application Support/jellyfin/log]"] [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Arguments: ["/Applications/Jellyfin.app/Contents/MacOS/jellyfin.dll", "--webdir", "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web", "--ffmpeg", "/Applications/Jellyfin.app/Contents/MacOS/ffmpeg", "--datadir", "/Users/grizz//Library/Application Support/jellyfin"] [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Operating system: "Darwin 24.2.0 Darwin Kernel Version 24.2.0: Fri Dec 6 18:51:28 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8112" [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Architecture: Arm64 [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: 64-Bit Process: True [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: User Interactive: True [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Processor count: 8 [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Program data path: "/Users/grizz/Library/Application Support/jellyfin" [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Log directory path: "/Users/grizz/Library/Application Support/jellyfin/log" [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Config directory path: "/Users/grizz/Library/Application Support/jellyfin/config" [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Cache path: "/Users/grizz/Library/Application Support/jellyfin/cache" [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Temp directory path: "/var/folders/lv/fv_2xkjj1llfhjb5hmd60g0w0000gn/T/jellyfin" [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Web resources path: "/Applications/Jellyfin.app/Contents/Resources/jellyfin-web" [2025-01-16 07:54:07.375 -05:00] [INF] [1] Main: Application directory: "/Applications/Jellyfin.app/Contents/MacOS/" [2025-01-16 07:54:07.483 -05:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "/Users/grizz/Library/Application Support/jellyfin/cache" [2025-01-16 07:54:07.559 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies [2025-01-16 07:54:07.614 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["192.168.4.1/22"] [2025-01-16 07:54:07.614 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: [] [2025-01-16 07:54:07.614 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["192.168.4.1/22"] [2025-01-16 07:54:07.617 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: [Removed for privacy.] [2025-01-16 07:54:07.617 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["::"] [2025-01-16 07:54:07.617 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is "Allowlist" [2025-01-16 07:54:07.617 -05:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: [] [2025-01-16 07:54:08.817 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TMDb" "10.10.3.0" [2025-01-16 07:54:08.817 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Studio Images" "10.10.3.0" [2025-01-16 07:54:08.817 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "OMDb" "10.10.3.0" [2025-01-16 07:54:08.827 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "MusicBrainz" "10.10.3.0" [2025-01-16 07:54:08.827 -05:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "AudioDB" "10.10.3.0" [2025-01-16 07:54:08.866 -05:00] [INF] [1] Main: Kestrel is listening on "all interfaces" [2025-01-16 07:54:09.103 -05:00] [WRN] [1] Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware: The WebRootPath was not found: "/wwwroot". Static files may be unavailable. [2025-01-16 07:54:09.181 -05:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks [2025-01-16 07:54:09.190 -05:00] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Generate Trickplay Images" set to fire at 2025-01-17 03:00:00.000 -05:00, which is 19:05:50.8099710 from now. [2025-01-16 07:54:09.193 -05:00] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Extract Chapter Images" set to fire at 2025-01-17 02:00:00.000 -05:00, which is 18:05:50.8069100 from now. [2025-01-16 07:54:09.275 -05:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version "7.0.2" ``` ### FFmpeg logs ```shell ``` ### Client / Browser logs _No response_ ### Relevant screenshots or videos _No response_ ### Additional information _No response_
OVERLORD added the bugupstream labels 2026-02-07 03:57:39 +03:00
Author
Owner

@gnattu commented on GitHub (Jan 16, 2025):

8.0 backport merged 3 days ago: https://github.com/dotnet/runtime/pull/108334, hopefully can be included in dotnet 8.0.13

This is in rare cases that the address returned is empty and dotnet just throws and terminated the main thread but I cannot reproduce on my environment. Maybe you can try disable IPv6 and bind explicitly to an IPv4 address to see if that workarounds this issue at the moment.

@gnattu commented on GitHub (Jan 16, 2025): 8.0 backport merged 3 days ago: https://github.com/dotnet/runtime/pull/108334, hopefully can be included in dotnet 8.0.13 This is in rare cases that the address returned is empty and dotnet just throws and terminated the main thread but I cannot reproduce on my environment. Maybe you can try disable IPv6 and bind explicitly to an IPv4 address to see if that workarounds this issue at the moment.
Author
Owner

@felix920506 commented on GitHub (Feb 16, 2025):

@gnattu it was released in dotnet 8.0.13 https://github.com/dotnet/runtime/releases/tag/v8.0.13

@felix920506 commented on GitHub (Feb 16, 2025): @gnattu it was released in dotnet 8.0.13 https://github.com/dotnet/runtime/releases/tag/v8.0.13
Author
Owner

@felix920506 commented on GitHub (Feb 16, 2025):

Closing as this is addressed. A fix will be included in the next Jellyfin release.

@felix920506 commented on GitHub (Feb 16, 2025): Closing as this is addressed. A fix will be included in the next Jellyfin release.
Author
Owner

@felix920506 commented on GitHub (Feb 17, 2025):

A new release with the fix has been published.

@felix920506 commented on GitHub (Feb 17, 2025): A new release with the fix has been published.
Author
Owner

@mstgrv commented on GitHub (Nov 27, 2025):

I'm getting this issue with Jellyfin 10.11.3, was this definitely fixed? Running macOS 26.1, on an M4 mac mini. Jellyfin was still running but couldn't be accessed via the web, had to quit & restart the app to be able to connect again.

The exact log file entry was:

System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point. (Parameter 'socketAddress')
   at System.Net.IPEndPoint.Create(SocketAddress socketAddress)
   at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSyncSuccess(Int32 bytesTransferred, SocketFlags flags)
   at System.Net.Sockets.SocketAsyncEventArgs.AcceptCompletionCallback(IntPtr acceptedFileDescriptor, Memory`1 socketAddress, SocketError socketError)
   at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
   at System.Threading.Thread.StartCallback()```
@mstgrv commented on GitHub (Nov 27, 2025): I'm getting this issue with Jellyfin 10.11.3, was this definitely fixed? Running macOS 26.1, on an M4 mac mini. Jellyfin was still running but couldn't be accessed via the web, had to quit & restart the app to be able to connect again. The exact log file entry was: ```[2025-11-26 04:53:06.390 -08:00] [FTL] [51] Main: Unhandled Exception System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point. (Parameter 'socketAddress') at System.Net.IPEndPoint.Create(SocketAddress socketAddress) at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSyncSuccess(Int32 bytesTransferred, SocketFlags flags) at System.Net.Sockets.SocketAsyncEventArgs.AcceptCompletionCallback(IntPtr acceptedFileDescriptor, Memory`1 socketAddress, SocketError socketError) at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() at System.Threading.Thread.StartCallback()```
Author
Owner

@andreasschmitz commented on GitHub (Jan 13, 2026):

I'm getting this issue with Jellyfin 10.11.3, was this definitely fixed? Running macOS 26.1, on an M4 mac mini. Jellyfin was still running but couldn't be accessed via the web, had to quit & restart the app to be able to connect again.

The exact log file entry was:

System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point. (Parameter 'socketAddress')
   at System.Net.IPEndPoint.Create(SocketAddress socketAddress)
   at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSyncSuccess(Int32 bytesTransferred, SocketFlags flags)
   at System.Net.Sockets.SocketAsyncEventArgs.AcceptCompletionCallback(IntPtr acceptedFileDescriptor, Memory`1 socketAddress, SocketError socketError)
   at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
   at System.Threading.Thread.StartCallback()```

I also still regularly encounter this problem. I am running 10.11.5 on macOS 14.8.3 on an Intel-era Mac mini.

@andreasschmitz commented on GitHub (Jan 13, 2026): > I'm getting this issue with Jellyfin 10.11.3, was this definitely fixed? Running macOS 26.1, on an M4 mac mini. Jellyfin was still running but couldn't be accessed via the web, had to quit & restart the app to be able to connect again. > > The exact log file entry was: > > ``` > System.ArgumentException: The supplied System.Net.SocketAddress is an invalid size for the System.Net.IPEndPoint end point. (Parameter 'socketAddress') > at System.Net.IPEndPoint.Create(SocketAddress socketAddress) > at System.Net.Sockets.SocketAsyncEventArgs.FinishOperationSyncSuccess(Int32 bytesTransferred, SocketFlags flags) > at System.Net.Sockets.SocketAsyncEventArgs.AcceptCompletionCallback(IntPtr acceptedFileDescriptor, Memory`1 socketAddress, SocketError socketError) > at System.Net.Sockets.SocketAsyncEngine.System.Threading.IThreadPoolWorkItem.Execute() > at System.Threading.ThreadPoolWorkQueue.Dispatch() > at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart() > at System.Threading.Thread.StartCallback()``` > ``` I also still regularly encounter this problem. I am running 10.11.5 on macOS 14.8.3 on an Intel-era Mac mini.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#6661