Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Arm / Armv7 builds of Launchpad incorrectly detect drive free space as 0GB due to overflow on int32 #2606

Open
jadkins-me opened this issue Jan 7, 2025 · 0 comments

Comments

@jadkins-me
Copy link

Node-Launchpad 0.5.1 & 0.5.2

Target : Linux ARM and Linux ARMv7

While you are able to select a drive using the [o]ptions, Ctrl+d Storage Drive, and it might show as 64GB free.

When you go to the "Create Node" Ctrl+G option, the drive is detected as having only 1GB free, and you are unable to create a node.

This is possibly due to loose typing, and overflow on the variable used to represent the free space in bytes.

It looks like an issue on Arm / Armv7 builds where the drive size is over-flowing (can’t be displayed) and is defaulting to 1GB. The max size on 32bit is 2147483647 Int32, in bytes which is roughly 2.14GB (not enough)…

It will be better to convert the byte value of drive space out into rounded down GB's to remove this issue.

Note : Using the Arch64 build removes this constraint, but that won't work on older Arch hardware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant