-
Branch created:
fix/disk-cycling-crashChanges committed locally. The branch needs to be pushed to the remote repository. Once pushed, a pull request will be created.
Commit: 61c13bf - Fix crash when cycling through disks quickly
-
State changed as pull request JB-12 is open
-
OneDev
changed state to 'In Review' 4 weeks ago
Previous Value Current Value Open
In Review
-
Pull request created: JB-12
https://onedev.schleckselbrot.de/Jukebox/~pulls/12
The PR contains all the fixes for the crash when cycling through disks quickly.
-
State changed as code fixing the issue is committed (61c13bfe)
-
OneDev
changed state to 'Closed' 2 weeks ago
Previous Value Current Value In Review
Closed
| Type |
Bug
|
| Priority |
Major
|
| Assignees |
Not assigned
|
Issue Votes (0)
When users cycle through disks really fast, the application crashes with a NullReferenceException in
Avalonia.Media.Imaging.Bitmap.get_Size()during layout.Root Cause: The bitmap property was being set to
nullbefore loading the new bitmap, causing the UI to accessBitmap.Sizeon a null object during layout passes.Solution:
IsNotNullConverterto safely handle null bitmaps in UIIsVisiblebindings to Image controls to hide them when bitmap is nullFiles Changed:
DiskTitleViewModel.cs- Fixed race condition in UpdateCover()NowPlayingViewModel.cs- Fixed race condition in UpdateCover()SlideshowViewModel.cs- Fixed race condition in Advance()IsNotNullConverter.cs- New converter for null checksDiskTitleView.axaml- Added null-safety bindingNowPlayingView.axaml- Added null-safety bindingSlideshowView.axaml- Added null-safety binding