-
-
Notifications
You must be signed in to change notification settings - Fork 294
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] Backup on Android leads to buffer error #307
Comments
I haven't done much research, but I guess it depends on the available ram on your device. E.g. how many other apps you have opened. 40mb isn't that big. I thought the limit would be higher. |
Thats a good point. Will try to clean the cache everytime before doing a backup and see how it goes |
Since there isn't really anything, I can do to fix this. I'm closing this now. |
@Vinzent03 Hi, I am getting same buffer error when attempting to push, and my repo is tiny , the commit said 10 files changed, and device memory is big. I also closed all other apps. Any suggestions on what to do? I hope I can avoid cloning again |
Just wait and try again. Its working again after a while but its definately buggy. Sad that this is not investigated any further.. |
Also, clearing cache after getting the error didnt help. |
I have the same problem with a small repo. Can't get mobile to sync without buffer error. Have cleared the cache with no luck. |
@Vinzent03 maybe some advises on one could debug this? It seems like there are a few people experiencing the issue |
Or should I open the bug elsewhere? Any help would be greatly appreciated |
As said before I'm really sorry it's not working on your device, but I think there is nothing I can do. The underlying lib is not very memory saving. I know that's bad for a mobile. plugin, but that's the only way I found to make it work for at least some users. |
Ok no worries than. It works most of the time though Thanks for your work and sharing |
Leaving this here in case someone got the same troubles and looks for a solution. When you exclude the Obsidian app from memory management in Android settings, the plugin works just fine. I can do this in device management settings but this setting may dependt on the device. |
Could you please explain further? Can't seem to find how |
Succeeded to exclude the app from memory management, it is now working as expected. It depends of your android device, here how you can find the settings screen: |
I'm experiencing the same problem with a small vault and small files. The sync worked 1 or 2 times, now there's a buffer error every time and it's not pushing/pulling. I am very confused by the proposed solution by @0xShkk and @blqke. Also, might the sync of the app settings between PC and Android be a problem? Should these be excluded using .gitignore? Thanks for your help! |
I meant exactly this. It may be that this setting can't be found on all devices but just guessing here. For me it still works fine |
isomorphic git supports reducing the clone and fetch depth: https://isomorphic-git.org/docs/en/clone This comment suggests a method of keeping all the clients having a small and efficient git history, however I am not sure if these features are all implemented in these git libraries: Tagging in case closed issue is muted @Vinzent03 |
@HarvsG Great idea. Available in v2.17.0 |
So it seems this error doesn't have a fix yet which kinda sucks since I have the same problem. Cloning a vault crashes the app. Tried this battery option even though it is strange like the other person said and it didn't work. Also tried turning off every other app that was running. |
I am having this problem 100% of the time. My repo is only 1.5MB. I am on Android. I have tried the memory and the battery suggestions above with no success. @Vinzent03, could you share what other configurations or conditions might trigger the "buffer error"? Is there any obsidian-git logging I could capture? I have searched isomorphic-git for "buffer error" and it does not appear on the web or in the obsidian-git repo. Thank you! |
FYI @Vinzent03, and for any others that may land here... For my case, it was a "user shot self in foot", "user solved self" PEBKAC case... I was curious about what other factors might contribute to this error. I can tell you one... Because of other errors I had experienced, I had removed and re-cloned my repo more than once. In one reconfiguration, I moved my repo to a subfolder of its original location. So, originally my repo was in something like |
First off thanks to the maintainers for this fantastic plugin. In Settings -> Battery and Device Care -> Memory I increased the RAM Plus (which I assume is swap) to 8GB (seems overkill) and added Obsidian to the "Excluded apps" list. I haven't had any buffer error issues since. Still watching #572 intently though! EDIT: OK, after a few more days I've started getting buffer errors again. So maybe disregard this. |
Wondering if people could report the versions of Android, phone, and RAM with their problem. Pixel 5, 8GB RAM, Android 14 with Nov 5, 2023 security patch; Obsidian maxed out at 3.9 GB of RAM usage. |
I'm having the same problem. I haven't even managed to backup once, not even with trying every suggested method here. Surprising this hasn't been fixed yet as it seems to be a pretty major issue. |
Also getting this issue. Pixel 4a with 6 GB ram. I've had this happen twice. I don't remember what caused the first one, but the second seems to be caused by attempting to pull when the remote contains changes that modify a file that is already locally modified. I tried to discard the change and pull again, but the buffer errors continue to occur. Deleting the vault and re-cloning the repo has fixed it in both cases for me. Restarting Obsidian doesn't seem to do anything (I haven't tried force killing the app though). |
Hi,
I have a repo which contains a few Pictures. Its about 40 MB in size in total.
The strange thing is that sometimes it works to do a backup so the push completes and everything is completely in snyc.
And then out of nowhere when trying to do a backup it says initializing push and directly after that buffer error.
It's like yesterday evening it is working then the next morning it says buffer error and then few hours later it's working again. Only adding few lines of text between the backup attempts.
Could I debug this somehow or is my repo already too big?
Bug is on Android and Plugin version is 2.1.0
The text was updated successfully, but these errors were encountered: