Skip to content

DiskBar: Add some safety checks to constraints calculations - #901

Merged
danirabbit merged 3 commits into
mainfrom
lenemter/try-to-fix-crashes
Aug 17, 2025
Merged

DiskBar: Add some safety checks to constraints calculations#901
danirabbit merged 3 commits into
mainfrom
lenemter/try-to-fix-crashes

Conversation

@lenemter

Copy link
Copy Markdown
Member

Addresses #879 and #898

Shouldn't produce any side effects. Tested by putting random numbers into test partitions in PartitioningView.get_test_diskinfo and this appears to fix them. This is not really a good testing but worth seeing whether this fixes issue with real partitions.

@lenemter
lenemter requested a review from a team August 16, 2025 09:16
@lenemter lenemter moved this to Needs review in OS 8.1.0 Aug 16, 2025

@danirabbit danirabbit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with the new crash case Ryo added and I can confirm this fixes the crash

@danirabbit
danirabbit enabled auto-merge (squash) August 17, 2025 18:27
@danirabbit
danirabbit merged commit ab63d1a into main Aug 17, 2025
5 checks passed
@danirabbit
danirabbit deleted the lenemter/try-to-fix-crashes branch August 17, 2025 18:28
@github-project-automation github-project-automation Bot moved this from Needs review to Done in OS 8.1.0 Aug 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants