Thanks to visit codestin.com
Credit goes to github.com

Skip to content

OOM when launching (0.22.2) #1291

@mrnoname1000

Description

@mrnoname1000

I've left slskd running with Docker for several months without checking on it and now it seems to have entered an endless crashloop. Here are some logs:

Logs (DEBUG=true)
at slskd.Program.Main(String[] args)


                    ▄▄▄▄     ▄▄▄▄     ▄▄▄▄
              ▄▄▄▄▄▄█  █▄▄▄▄▄█  █▄▄▄▄▄█  █
              █__ --█  █__ --█    ◄█  -  █
              █▄▄▄▄▄█▄▄█▄▄▄▄▄█▄▄█▄▄█▄▄▄▄▄█
╒════════════════════════════════════════════════════════╕
│           GNU AFFERO GENERAL PUBLIC LICENSE            │
│                   https://slskd.org                    │
│                                                        │
│              0.22.2.0 (0.22.2.0+a2e1e65b)              │
└────────────────────────────────────────────────────────┘
[12:04:44 INF] Version: 0.22.2.0 (0.22.2.0+a2e1e65b)
[12:04:44 INF] System: .NET 8.0.12, Unix 6.9.7.64, 64 bit, 40 processors
[12:04:44 INF] Process ID: 7 (64 bit)
[12:04:44 INF] Invocation ID: a1da1c39-fa36-4b1c-9c60-2a0232ac0388
[12:04:44 INF] Instance Name: default
[12:04:44 INF] Configuring application...
[12:04:44 INF] Using application directory /app
[12:04:44 INF] Using configuration file /app/slskd.yml
[12:04:44 INF] Storing application data in /app/data
[12:04:46 INF] Listening for HTTP requests at http://0.0.0.0:5030/
[12:04:46 INF] Using base url /
[12:04:46 INF] Serving static content from /slskd/wwwroot
[12:04:46 INF] Configuration complete.  Starting application...
[12:04:46 INF] Blacklist disabled
[12:04:46 INF] Application started
[12:04:57 ERR] An exception occurred while iterating over the results of a query for context type 'slskd.Transfers.TransfersDbContext'.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at Microsoft.Data.Sqlite.SqliteValueReader.GetGuid(Int32 ordinal)
   at lambda_method19(Closure, QueryContext, DbDataReader, ResultContext, SingleQueryResultCoordinator)
   at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext()
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at Microsoft.Data.Sqlite.SqliteValueReader.GetGuid(Int32 ordinal)
   at lambda_method19(Closure, QueryContext, DbDataReader, ResultContext, SingleQueryResultCoordinator)
   at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext()
[12:04:57 ERR] Failed to list uploads: Exception of type 'System.OutOfMemoryException' was thrown.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at Microsoft.Data.Sqlite.SqliteValueReader.GetGuid(Int32 ordinal)
   at lambda_method19(Closure, QueryContext, DbDataReader, ResultContext, SingleQueryResultCoordinator)
   at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at slskd.Transfers.Uploads.UploadService.List(Expression`1 expression, Boolean includeRemoved)
[12:04:57 ERR] Hosting failed to start
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at Microsoft.Data.Sqlite.SqliteValueReader.GetGuid(Int32 ordinal)
   at lambda_method19(Closure, QueryContext, DbDataReader, ResultContext, SingleQueryResultCoordinator)
   at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at slskd.Transfers.Uploads.UploadService.List(Expression`1 expression, Boolean includeRemoved)
   at slskd.Application.Microsoft.Extensions.Hosting.IHostedService.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__15_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
[12:04:57 FTL] Application terminated unexpectedly
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at Microsoft.Data.Sqlite.SqliteValueReader.GetGuid(Int32 ordinal)
   at lambda_method19(Closure, QueryContext, DbDataReader, ResultContext, SingleQueryResultCoordinator)
   at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at slskd.Transfers.Uploads.UploadService.List(Expression`1 expression, Boolean includeRemoved)
   at slskd.Application.Microsoft.Extensions.Hosting.IHostedService.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__15_1(IHostedService service, CancellationToken token)
   at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)
   at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.RunAsync(IHost host, CancellationToken token)
   at Microsoft.Extensions.Hosting.HostingAbstractionsHostExtensions.Run(IHost host)
   at slskd.Program.Main(String[] args)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    In progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions