stride3d / stride

Stride (formerly Xenko), a free and open-source cross-platform C# game engine.
https://stride3d.net
MIT License
6.62k stars 957 forks source link

GameStudioThumbnailService.cs Debugger diagnostics break #27

Open avestura opened 6 years ago

avestura commented 6 years ago
if (thumbnailsInProgressAndContinuation.ContainsKey(asset.Id) && System.Diagnostics.Debugger.IsAttached)
{
    // Virgile: This case should not happen, but it happened to me once and could not reproduce.
    // Please let me know if it happens to you.
    // Note: this is likely not critical and should work fine even if it happens.
    System.Diagnostics.Debugger.Break();
}

Virgile: This case should not happen,...

Anything that can go wrong, will go wrong. -- Morphy Law

xen2 commented 6 years ago

Good quote! It was happening once in a while, always seemed harmless but will have to check the logic details again someday.