question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Beatmap imports may fail randomly

See original GitHub issue

Describe 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:closed
  • Created 4 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bdachcommented, Feb 23, 2021

@Akarinnnnn that map imported just fine for me. you may have a locally corrupted database.

0reactions
peppycommented, Jan 22, 2022

Should be resolved with realm.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found