Description
I compiled Ferium myself from the latest commits on the repository (using GitHub Actions, not the latest official release binary), and most functionality is working correctly after creating a fresh profile from scratch.
However, ferium upgrade still panics for certain mods while downloading/upgrading them, while many other mods work normally.
The panic appears to happen when Ferium encounters a mod/version entry with an empty files array and attempts to access index 0 without checking whether the vector is empty.
Steps to Reproduce
- Compile Ferium from the latest commits on the repository
- Create a new profile
- Add a larger set of mods (Modrinth/Fabric in my case)
- Run:
- Some mods download correctly, but Ferium eventually crashes with:
thread 'ferium-worker' panicked at libium/src/version_ext.rs:15:35:
index out of bounds: the len is 0 but the index is 0
Operating System
Linux
Installation Method
GitHub Actions
Ferium version
ferium 5.0.0
Additional Information
- This does NOT happen with every mod
- Many mods upgrade/download successfully
- The issue seems isolated to specific mod/version metadata
- I recreated my profile from scratch and confirmed the issue still occurs
- The latest official release binary appears more stable overall than the current repository state
- I suspect some API responses now return empty
files arrays for certain mod versions, which Ferium currently does not safely handle
Backtrace excerpt:
thread 'ferium-worker' panicked at libium/src/version_ext.rs:15:35:
index out of bounds: the len is 0 but the index is 0
Description
I compiled Ferium myself from the latest commits on the repository (using GitHub Actions, not the latest official release binary), and most functionality is working correctly after creating a fresh profile from scratch.
However, ferium upgrade still panics for certain mods while downloading/upgrading them, while many other mods work normally.
The panic appears to happen when Ferium encounters a mod/version entry with an empty files array and attempts to access index 0 without checking whether the vector is empty.
Steps to Reproduce
Operating System
Linux
Installation Method
GitHub Actions
Ferium version
ferium 5.0.0
Additional Information
filesarrays for certain mod versions, which Ferium currently does not safely handleBacktrace excerpt: