question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chrome not freeing up HDD space after offline content deletion

See original GitHub issue

Have you read the FAQ and checked for duplicate open issues?: yes

What version of Shaka Player are you using?: 2.4.3

Can you reproduce the issue with our latest release version?: yes

Can you reproduce the issue with the latest code from master?: yes

Are you using the demo app or your own custom app?: custom app (electron)

If custom app, can you reproduce the issue using our demo app?: yes

What browser and OS are you using?: MacOS / Windows

What are the manifest and license server URIs?: any manifest

What did you do?

  1. Download one or multiple offline manifest
  2. Clear/Delete the files (using shakaplayer code, not by clearing the db manually)

What did you expect to happen? The available HDD space of the indexeddb to be reclaimed

What actually happened? The available HDD space of the removed manifest of indexeddb are not reclaimed, chrome (chromium) is not compressing the LevelDB files on disk, as a result the references are removed in Indexeddb (and seemingly removed) however they still taking up space on the HDD.

Downloading a new manifest sub-sequential seems to trigger a db compress action, however still not clearing all the previous data (just reducing the size with small chunks). This will lead to a situation where a users HDD is full and/or indexeddb quota is reached.

Technically this seems to be a bug in both webkit / chrome https://bugs.chromium.org/p/chromium/issues/detail?id=488851 https://bugs.webkit.org/show_bug.cgi?id=178204

However it would be interesting to review if there are workarounds to enforce/manually trigger a leveldb compression action after a manifest deletion

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
joeyparrishcommented, Apr 1, 2020

As far as we know, there’s no API for that. The browser should do it automatically, but there’s a bug in Chrome preventing it from working correctly.

1reaction
vaagecommented, Sep 24, 2018

We already allow someone to implement their own storage mechanism. With that you should be able to plug-in an alternative back-end to store the content.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Free up space on your Chromebook - Google Support
If your Chromebook is running low on disk space, we recommend deleting files you don't need anymore. Check how much storage is being...
Read more >
10 Fixes to Make Chrome Use Less Disk Space - MakeUseOf
If Chrome is still consuming too much disk space even after cleaning the drive in your device, you can clear your browser's cookies...
Read more >
Clearing Storage Space on Your Chromebook [Tutorial]
Clearing Storage Space on Your Chromebook [Tutorial]If your Chromebook is running low on disk space, we recommend deleting files you don't ...
Read more >
How to Free Up Space on Your Chromebook - Help Desk Geek
1. Delete Redundant Files or Move Them to Cloud Storage · 2. Uninstall Unused Apps · 3. Clear Chrome's Browsing Data · 4....
Read more >
How to Free Up Disk Space in Windows | PCMag
Open Storage Settings​​ Open Settings > System > Storage to view the total space you have available, what space has been used across...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found