Beatmap imports may fail randomly
See original GitHub issueDescribe the bug: osu!lazer likes to throw database errors every once in a while after trying to import all maps from stable. It seems like this issue is thread-based, as it is inconsistent, which means that specifically trying to import the mentioned map will work without throwing any errors.
osu!lazer version: 2019.704.0 / master
Logs:
Could not import (13022 Koji Kondo & Mahito Yokota - Egg Planet)
Microsoft.EntityFrameworkCore.DbUpdateConcurrencyException: Database operation expected to affect 1 row(s) but actually affected 0 row(s). Data may have been modified or deleted since entities were loaded. See http://go.microsoft.com/fwlink/?LinkId=527962 for information on understanding and handling optimistic concurrency exceptions.
at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.ThrowAggregateUpdateConcurrencyException(Int32 commandIndex, Int32 expectedRowsAffected, Int32 rowsAffected)
at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.ConsumeResultSetWithoutPropagation(Int32 commandIndex, RelationalDataReader reader)
at Microsoft.EntityFrameworkCore.Update.AffectedCountModificationCommandBatch.Consume(RelationalDataReader reader)
at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.Execute(IRelationalConnection connection)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(DbContext _, ValueTuple`2 parameters)
at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable`1 commandBatches, IRelationalConnection connection)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IReadOnlyList`1 entriesToSave)
at Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean acceptAllChangesOnSuccess)
at Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean acceptAllChangesOnSuccess)
at osu.Game.Database.DatabaseWriteUsage.Dispose(Boolean disposing) in G:\Dokumente\GitHub\osu\osu.Game\Database\DatabaseWriteUsage.cs:line 39
at osu.Game.Database.DatabaseWriteUsage.Dispose() in G:\Dokumente\GitHub\osu\osu.Game\Database\DatabaseWriteUsage.cs:line 54
at osu.Game.Database.ArchiveModelManager`2.<>c__DisplayClass28_0.<<Import>b__0>d.MoveNext() in G:\Dokumente\GitHub\osu\osu.Game\Database\ArchiveModelManager.cs:line 323
--- End of stack trace from previous location where exception was thrown ---
at osu.Game.Database.ArchiveModelManager`2.Import(TModel item, ArchiveReader archive, CancellationToken cancellationToken) in G:\Dokumente\GitHub\osu\osu.Game\Database\ArchiveModelManager.cs:line 265
at osu.Game.Database.ArchiveModelManager`2.Import(String path, CancellationToken cancellationToken) in G:\Dokumente\GitHub\osu\osu.Game\Database\ArchiveModelManager.cs:line 172
at osu.Game.Database.ArchiveModelManager`2.<>c__DisplayClass20_0.<<Import>b__0>d.MoveNext() in G:\Dokumente\GitHub\osu\osu.Game\Database\ArchiveModelManager.cs:line 113
I’m getting so many errors and stacktraces it’s hard to distinguish between individual errors. If this seems incomplete I can provide a full log file.
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
[resolved] randomly lost almost all of my beatmaps but ... - Osu!
The database file that contains certain map information, such as whether a map has been played before, was probably corrupted due to your ......
Read more >[Help] Downloading new beatmaps automatically triggers ...
open osu! and only the new maps should import when you're in the song ... even placing a random file in and taking...
Read more >Importing beatmaps and skins - osu!mac - Read the Docs
Download a random osu beatmap or skin (and get the osz file) · Right click on osu!.app · Click Show Package Contents ·...
Read more >osu! beatmaps crash the game :: Holodance Bug-Reports
Anyway I imported my favourite songs into the game, but most of them crash the game when loading it or midway. It's very...
Read more >Random OSU displays & Quicken "talking" to accounts ...
My sign-in window pops when I launch Quicken. Then, if I don't select all accounts, only random accounts are updated, and the list...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Akarinnnnn that map imported just fine for me. you may have a locally corrupted database.
Should be resolved with realm.