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] screenpipe uses ~400gb of disk space #1208

Open
twilwa opened this issue Jan 24, 2025 · 9 comments
Open

[bug] screenpipe uses ~400gb of disk space #1208

twilwa opened this issue Jan 24, 2025 · 9 comments
Labels
bug Something isn't working

Comments

@twilwa
Copy link

twilwa commented Jan 24, 2025

describe the bug
brief description of the bug.

system info

  • os: [e.g. macos 10.15.7, windows 10, ubuntu 20.04] macos sequoia
  • screenpipe version: [e.g. 1.2.3] 0.27

additional context
add any other context, screenshots, or error logs here.

Image
  • you can find logs in ~/.screenpipe on macOS/Linux, and %APPDATA%\.screenpipe on Windows.
  • you can get app logs by right clicking in the app background and clicking the console tab.

curious if i can check if it's hallucinating, but when watching my storage it's ticking down fairly consistently while screenpipe is open. doesn't indicate where that disk usage is happening, going to uninstall and see if this helps

@twilwa twilwa added the bug Something isn't working label Jan 24, 2025
@twilwa
Copy link
Author

twilwa commented Jan 24, 2025

Image

found the culprits i think, i can't imagine this is intended behavior. will reinstall and see if issue persists

@tribhuwan-kumar
Copy link
Contributor

me.gif

@hunnywar
Copy link
Contributor

@twilwa are you running screenpipe 24*7 ?
thats great BTW :)
@louis030195 We need log rotation

@hunnywar
Copy link
Contributor

Implement Log Rotation

Limit Log Size: Rotate logs when they exceed a specified size (e.g., 50 MB).
Max Log Files: Keep only a fixed number of old log files (e.g., 5) to prevent storage issues.

Implementation:
Use Rust libraries like:

flexi_logger (recommended for simple rotation).
log4rs (more customizable).

@hunnywar
Copy link
Contributor

@tribhuwan-kumar

damh !
so relatable

@louis030195
Copy link
Collaborator

hmm

@louis030195
Copy link
Collaborator

had this issue before thought we solved it

@louis030195
Copy link
Collaborator

Image

@louis030195
Copy link
Collaborator

might be a edge case, say something crashed a lot in a loop generating bunch of logs? just guessing

fn setup_logging(local_data_dir: &PathBuf, cli: &Cli) -> anyhow::Result<WorkerGuard> {

yeah indeed

we rotate on day not on size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants