FreeTubeApp / FreeTubeApp/FreeTube

[Bug]: Watching progress for a video is not saved when the app non-gracefully stopped.

Open
#9,458 4 comments 0 reactions 0 assignees View on GitHub
B: inconsistent behavior B: usability
Dominant language
Vue
Stars
21.9k
Forks
1.5k
Avg merge
1d 14h
Merged PRs (30d)
62

Description

### Guidelines

- [x] I have encountered this bug in the [latest release of FreeTube](https://github.com/FreeTubeApp/FreeTube/releases).
- [x] I have encountered this bug in the [official downloads of FreeTube](https://github.com/FreeTubeApp/FreeTube#official-downloads). **The only official downloads are from the [https://freetubeapp.io](https://freetubeapp.io/#download) website, the [FreeTubeApp/FreeTube GitHub repository](https://github.com/FreeTubeApp/FreeTube/releases) and the [io.freetubeapp.FreeTube flatpak](https://flathub.org/en/apps/io.freetubeapp.FreeTube) from Flathub.**
- [x] I have [searched the issue tracker for **open and closed** issues](https://github.com/FreeTubeApp/FreeTube/issues?q=is%3Aissue+sort%3Arelevance-desc) that are similar to the bug report I want to file, without success.
- [x] I have searched the [documentation](https://docs.freetubeapp.io/) for information that matches the description of the bug I want to file, without success.
- [x] This issue contains only one bug.
- [x] I have read and agree to follow the [rules](https://docs.freetubeapp.io/community/rules/).

### Describe the bug

# Steps to reproduce
1. Launch FreeTube.
2. Start watching any video.
3. Let the video play for a while.
4. Trigger an ungraceful shutdown of FreeTube, for example:
- send the KILL signal to the `freetube` process, or
- send a shutdown signal to the computer/machine (e.g., press the power button), or
- unplug the power from the computer.
5. Launch FreeTube again.
6. Resume watching the same video as in step 2.
7. Observe that playback progress is not saved. The video either:
- resumes from the last saved timestamp (when progress had already been saved to history earlier), or
- starts from the beginning (when progress had not been saved to history earlier).

### Expected Behavior

The app should allow the user to continue watching the video from the point where it stopped working unexpectedly.

### Issue Labels

usability issue, inconsistent behavior

### FreeTube Version

0.25.0 Beta

### Operating System Version

Garuda Linux Broadwing, kernel 7.1.3-zen2-2-zen

### Installation Method

.AppImage

### Primary API used

Local API

### Last Known Working FreeTube Version (If Any)

_No response_

### Upload screenshots or videos

_No response_

### Additional Information

_No response_

### Nightly Build

- [ ] I have encountered this bug in the latest **official** [nightly build](https://docs.freetubeapp.io/development/nightly-builds), do not check this box if you are using an unofficial or custom build.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the listed steps with a video and an ungraceful FreeTube shutdown, then compare the resumed position with the last playback point. Trace how playback progress is saved to history during normal use and how the app handles relaunching after the process or computer stops unexpectedly. Done means the same video resumes from its latest watched position after each listed shutdown scenario.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.