renyuneyun / Easer

User-defined explicit automation for Android
https://renyuneyun.github.io/Easer/
GNU General Public License v3.0
815 stars 93 forks source link

Convert data aborted. Please see log for details. #135

Open bege10 opened 6 years ago

bege10 commented 6 years ago

Hi, when I open Easer I receive the message that data has an old format, convert in settings. But conversion ends with error message. Where is the mentioned log? The Activity Log doesn't say anything about the error. What can I do to convert the data?

renyuneyun commented 6 years ago

Sorry for the confusion. Activity Log is not what is meant here.

The log is either LogCat or the log function you can enable in the settings (which will produce the log under /sdcard/logger/).

You are the first one reporting failed to convert data... I guess that indicates a bug in the code (or some previous errors no handled neatly). Could you try to "export" the data, and open that exported file to see if there are any files with "0" size? (Or, if you wish, you can also upload that file here and I'll do that. Bear in mind that exported file contains all your Scripts, Profiles, Events and Conditions.)

bege10 commented 6 years ago

logs_0.zip

In the export zip there are no files with 0 size. The archive contains 4 folders named "event", "profile", "scenario", "script".

Additional request: Please, remove the ":" from the Easer export files. I cannot backup them to a Windows computer. Thank you very much.

renyuneyun commented 6 years ago

Hmm... I think I know what went wrong now: probably you created new relevant data after upgrading to v0.6.6 or v0.5.8, and there is a file name (directory name) conflict.

I'm not planning to change the "convert" behaviour, but you can fix this quite easily (or, you can also clear Easer's data, and start from beginning if you prefer):

  1. keep a copy of the exported file (in case anything goes wrong)
  2. unzip the exported file (to an empty directory you like, because you'll need to zip it later)
  3. move everything from scenario to event (I'm assuming you upgraded Easer from a version larger than v0.5.8; if not, I can give another set of instructions)
  4. delete the empty scenario directory (I'm assuming there is no file name conflict, which means you never created two scenarios / events with the same name)
  5. zip all three existing directories
  6. clear Easer's data (in Android settings)
  7. in Easer, import the zip file created in step 4
  8. (re-)set the settings of Easer

For the ":", you can always rename the exported file, and copy it to windows. This doesn't really matter.