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

Files get wiped if saving when filesystem is full #2516

Open
4 tasks done
kmlyvens opened this issue Feb 1, 2025 · 0 comments
Open
4 tasks done

Files get wiped if saving when filesystem is full #2516

kmlyvens opened this issue Feb 1, 2025 · 0 comments

Comments

@kmlyvens
Copy link

kmlyvens commented Feb 1, 2025

⚠️ This issue respects the following points: ⚠️

  • This is a bug. Not a question or feature request.
  • The topic is not already reported at Issues. (I've searched it).
  • Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • The bug is still present in the latest development version (git master). (Please download and try the test version of Markor, named Marder. Don't worry; Markor and Marder appear as completely separate applications. You can install both side-by-side, and Markor settings are not touched. In case the issue is resolved there, you don't need to create a bug report. The change will be part of the next Markor update.)

Description

I just got some of my notes destroyed and I know what happened so I feel this can be made a github issue.

So, the root filesystem in my Android phone got filled up – when the notification telling me this popped up, I was in middle of updating my QuickNote.md in Markor. I pressed the „save“ button, but then I got a popup that „Write failed“. Okay, let me go to Total Commander and move some files from the root filesystem to the extra SD card so the next write operation succeeds. Indeed the free space in the root filesystem is zero, I spend half a minute there, my move is under way, I come back to Markor to save my file. I see an empty screen, my file is empty and the data has been lost.

So, I believe that when trying to save a file when the filesystem is full and the write operation fails, it gets truncated and replaced with a zero-length file. And Markor goes to some sort of a sleep mode when switching to another program and unloads the file from the active memory and then reloads it from the filesystem when coming back.

The result is that the „save“ button is deadly for data when the filesystem is full and the filesystem write call fails.

Please fix this. Or at least give us an option to make a simple .bak backup copy of the file before saving it.

Steps to reproduce

  1. Fill the root filesystem (or the one where the file resides).
  2. Update a note, press „save“.
  3. Go to home screen or another program.
  4. Come back to Markor.
  5. Boom, the file is gone.

Information

Android version: 8.0.0
Device: Samsung A8
App Version: v2.13.1 (156)

Source

F-Droid

Format / File type

Markdown

Additional info / Log

-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant