Skip to content

[Bug]: Cumulative ghost space in sd card #4908

@Palloxin

Description

@Palloxin

Problem description

So I use termux to mass replace text in files with regex.

The problem is, every time I send the command to replace, the sd card loses free space. And that space is undetectable by normal file explorers, even windows explorer.

Steps to reproduce the behavior.

Install termux, give storage permission, and then cd a path with html files, or txt idk.

Then u use this command to replace the text:
find . -type f -name "*.html" -exec sed -i -E 's/\baabb//g' {} +

Note: I have the sd card set as mi main storage location.

video.mp4

In the video u can noticed th free space going from 45.20Gb to 45.08Gb after the replacement.

I am reporting because I suddenly found my sd card free space to absolutely 0 bytes, I did everything from clearing cache and disintalling termux and other apps, nothing the ghist space couldnt be found.

So I put the sd into a pc and analized it with a specific program and...

Image

I was finally able to get the space back.

note that the amount of files it checked dont even amount to 30mb, while the soace increases by 120mb every time

What is the expected behavior?

Every replacement doesnt occupy more space, or at least it is cleaned right afterward automatically.

or

-if the app is unistalled, that occupied space must be freed, which didnt happen

System information

  • Termux application version: 0.118.2
  • Android OS version: android 8 miui 8
  • Device model: huaw p8 lite 2017

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions