Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: race condition when loading #246

Open
MeikelLP opened this issue Dec 1, 2024 · 0 comments · May be fixed by #266
Open

bug: race condition when loading #246

MeikelLP opened this issue Dec 1, 2024 · 0 comments · May be fixed by #266
Assignees
Labels
type/bug Something isn't working

Comments

@MeikelLP
Copy link
Owner

MeikelLP commented Dec 1, 2024

What happened?

May happen when items are loaded slower than drops

How to reproduce?

No response

Stacktrace

[12:32:56.147][ERR]BackgroundService failed 
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Collections.Immutable.ImmutableArray`1.ThrowNullRefIfNotInitialized()
   at QuantumCore.Game.ItemManager.GetItemByName(ReadOnlySpan`1 name) in C:\Users\Meikel\Desktop\projekte\quantum-core-x\src\Libraries\Game.Server\ItemManager.cs:line 51
   at QuantumCore.Game.Services.DropProvider.ParseCommonLine(ReadOnlySpan`1 line, Int32 lineIndex, IFileInfo file) in C:\Users\Meikel\Desktop\projekte\quantum-core-x\src\Libraries\Game.Server\Services\DropProvider.cs:line 133
   at QuantumCore.Game.Services.DropProvider.LoadSimpleMobDropsAsync(CancellationToken cancellationToken) in C:\Users\Meikel\Desktop\projekte\quantum-core-x\src\Libraries\Game.Server\Services\DropProvider.cs:line 105
   at QuantumCore.Game.Services.DropProvider.LoadSimpleMobDropsAsync(CancellationToken cancellationToken) in C:\Users\Meikel\Desktop\projekte\quantum-core-x\src\Libraries\Game.Server\Services\DropProvider.cs:line 117
   at QuantumCore.Game.Services.DropProvider.LoadAsync(CancellationToken cancellationToken) in C:\Users\Meikel\Desktop\projekte\quantum-core-x\src\Libraries\Game.Server\Services\DropProvider.cs:line 66
   at QuantumCore.Game.GameServer.ExecuteAsync(CancellationToken stoppingToken) in C:\Users\Meikel\Desktop\projekte\quantum-core-x\src\Libraries\Game.Server\GameServer.cs:line 64
   at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)
[12:32:56.240][FTL]The HostOptions.BackgroundServiceExceptionBehavior is configured to StopHost. A BackgroundService has thrown an unhandled exception, and the IHost instance is stopping. To avoid this behavior, configure this to Ignore; however the BackgroundService will not be restarted.
System.NullReferenceException: Object reference not set to an instance of an object.
   at System.Collections.Immutable.ImmutableArray`1.ThrowNullRefIfNotInitialized()
   at QuantumCore.Game.ItemManager.GetItemByName(ReadOnlySpan`1 name) in C:\Users\Meikel\Desktop\projekte\quantum-core-x\src\Libraries\Game.Server\ItemManager.cs:line 51
   at QuantumCore.Game.Services.DropProvider.ParseCommonLine(ReadOnlySpan`1 line, Int32 lineIndex, IFileInfo file) in C:\Users\Meikel\Desktop\projekte\quantum-core-x\src\Libraries\Game.Server\Services\DropProvider.cs:line 133
   at QuantumCore.Game.Services.DropProvider.LoadSimpleMobDropsAsync(CancellationToken cancellationToken) in C:\Users\Meikel\Desktop\projekte\quantum-core-x\src\Libraries\Game.Server\Services\DropProvider.cs:line 105
   at QuantumCore.Game.Services.DropProvider.LoadSimpleMobDropsAsync(CancellationToken cancellationToken) in C:\Users\Meikel\Desktop\projekte\quantum-core-x\src\Libraries\Game.Server\Services\DropProvider.cs:line 117
   at QuantumCore.Game.Services.DropProvider.LoadAsync(CancellationToken cancellationToken) in C:\Users\Meikel\Desktop\projekte\quantum-core-x\src\Libraries\Game.Server\Services\DropProvider.cs:line 66
   at QuantumCore.Game.GameServer.ExecuteAsync(CancellationToken stoppingToken) in C:\Users\Meikel\Desktop\projekte\quantum-core-x\src\Libraries\Game.Server\GameServer.cs:line 64
   at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService)

OS Platform

Windows

Additional Information and Notes

No response

@MeikelLP MeikelLP added the type/bug Something isn't working label Dec 1, 2024
@MeikelLP MeikelLP added this to the 0.1 The Baseline milestone Dec 1, 2024
@MeikelLP MeikelLP self-assigned this Dec 1, 2024
@MeikelLP MeikelLP linked a pull request Dec 13, 2024 that will close this issue
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant