Repository navigation
Closed
Labels
bugSomething isn't workingreview requiredIssue has not been assigned yettarget:androidBug/Feature is targeted towards the Android releasetarget:commonBug/Feature concerns all build targets
Description
Version
26.39.0
Operating System
Android
Installation Method
APK (Direct Download)
Impact
Major (Feature completely broken)
Category
Other
Expected Behavior
Creating a custom exercise from the exercise library maintenance page saves it to the library, so it is available when logging workouts.
Actual Behavior
Saving a custom exercise fails with the error toast "Database operation failed" and the exercise is not created. The log shows repeated foreign key violations:
[2026-09-27][10:32:31][ERROR][librefit_lib::util::error_handler] Database operation failed: DatabaseError(ForeignKeyViolation, "FOREIGN KEY constraint failed")
[2026-09-27][10:32:31][ERROR][librefit_lib::util::error_handler] Database operation failed: DatabaseError(ForeignKeyViolation, "FOREIGN KEY constraint failed")
[2026-09-27][10:32:31][ERROR][librefit_lib::util::error_handler] Database error kind: ForeignKeyViolation, info: "FOREIGN KEY constraint failed"
[2026-09-27][10:32:31][ERROR][librefit_lib::util::error_handler] Database error kind: ForeignKeyViolation, info: "FOREIGN KEY constraint failed"
Steps to Reproduce
- Open the exercise library maintenance page
- Create a new custom exercise (name, category, muscles, ...)
- Save
- Error toast "Database operation failed"; the exercise does not appear in the library
Frequency
Always (100% of the time)
Additional Context (Optional)
- The ForeignKeyViolation indicates the INSERT references a row that does not exist in a related table — likely
exercise_category(or amusclemapping viaexercise_muscle). Possibly the create flow submits a category/muscle value that does not resolve to an existing id (wrong id, name-vs-id mismatch, or a stale/default id). - The exercise library maintenance page shipped with 26.39.0 (274 feature exercise library #284); this is the first release carrying the feature.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingreview requiredIssue has not been assigned yettarget:androidBug/Feature is targeted towards the Android releasetarget:commonBug/Feature concerns all build targets
Activity