TiddloidLite icon indicating copy to clipboard operation
TiddloidLite copied to clipboard

Inconsistent Saving to Google Drive

Open quailman1031 opened this issue 3 years ago • 9 comments

Most of the time saving changes to a Tiddlywiki page displays a message "Error processing the file" for my wiki from Google Drive. Also, when clicking to open a wiki page previously opened from Google Drive, the app will often say "The wiki is no longer available. Do you want to remove it?" I saw this behavior in an earlier version of TiddloidLite as well.

quailman1031 avatar May 30 '21 17:05 quailman1031

Open your GDrive app once before opening Tiddloid Lite. Sometimes providers other than local storage may be not ready for use.

donmor avatar May 30 '21 17:05 donmor

I tried that. Sometimes it works fine while having Google Drive open, but other times it shows the same behavior. I am running on Android version 10. I don't recall having any problems on my older phone running a previous version of Andriod.

quailman1031 avatar May 31 '21 02:05 quailman1031

I have no idea, it should work in theory. I tested on my phone (8.1) with no problem, and AVD (10) for local storage. In fact I tested this app with nutstore, a net disk in my country, because of the restricted Internet connection.

Usually permission restriction or aggressive background app management could cause this problem. You can try fetching debug log if possible. Either get the pre-release debug apk or build one from source, then install it on the device with problem, and use adb logcat to fetch the log.

donmor avatar May 31 '21 02:05 donmor

I just lost a bunch of data because it didn't save and I closed the app assuming the auto-save was functional 😭. Would it be possible for the app to at least make temporary local backups (maybe opt-in in settings?) as this has happened more than once.

Also if auto-save is enabled but changes can't be saved, can we have an option to prevent further input into the app? I don't tend to notice the tiny little red warning bar at the top of the screen when I'm entering text on the bottom of the screen...

Griffork avatar Jun 12 '21 12:06 Griffork

There's an error message on saving failure, especially when a cloud drive is not responding. If not, then there's something wrong with the cloud drive. By now I'm testing Tiddloid 2.0, which merged all nice stuff of Tiddloid and Lite. There's a backup system that save previous versions into external files directory(INTERNAL/Android/data/top.donmor.tiddloid/files) under SAF single file mode. I'll consider adding a feature that saving the current data to the backup directory on IO error, despite the backup setting.

donmor avatar Jun 12 '21 13:06 donmor

And I'll make it consider the file to be dirty if the last saving met a failure. If you see any error message, immediately export your tiddlers to internal storage. Make sure you're using TiddlyWiki version 5.1.22 and later to enable exporting.

donmor avatar Jun 12 '21 13:06 donmor

Please consider trying the new Tiddloid 2.0 (still under alpha state) -> Click here

donmor avatar Jun 12 '21 13:06 donmor

@donmor I don't know if the error was/wasn't showing or if I wasn't noticing it. Since I have auto-save enabled it'd often save when I'm not looking or am interacting elsewhere on the page so I often don't notice the warning message (if it is there). That's why I was asking for some more obvious feedback (exporting does me no good if I don't know I need to export).

I don't know if it's different on different devices by the error message is a pale red warning that appears in the top 50th of the screen (possibly exacerbated by my phone's 'dimple camera'), that's not somewhere I tend to look when I'm editing tiddlers.

I will try 2.0. I installed it but I don't see anywhere to enable the backup system. Is it on by default? Does it back up on auto saves, manual saves or both?

Thanks for your help.

Griffork avatar Jun 14 '21 04:06 Griffork

Long press the wiki in the list, and you will see the checkbox indicating the status of backup of the wiki. You can roll back to a previous version or delete these files here. Backup files are placed in the same folder to the HTML files under legacy mode and SAF folder mode, and for SAF file mode, they're in INTERNAL/Android/data/top.donmor.tiddloid/files/<folder_named_by_encoded_path>, where the fail-safe dumps are also placed in. If the file failed to be saved, Tiddloid will try to dump the data that is supposed to be saved, and generate a HTML file here, no matter what mode the wiki is. To recover your wiki, firstly make the storage (GDrive fore example) return to normal, and for legacy/SAF folder wikis, you have to navigate to that folder and get the file back, and for SAF file wikis, all you need to do is rolling back with the latest version.

donmor avatar Jun 14 '21 12:06 donmor