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
Unable to import events/profiles #56
Comments
Hmm... Do you have any other file pickers? Do they behave the same way (i.e. also have this problem)? Maybe Android 8.0 changed some behaviors in the file manager/selector, but I doubt other apps have followed the change (yet). |
I tried with Amaze, it lets me select the file but Easer doesn't actually import it. There is nothing generated in the easer log either :( |
Hmm... I figured out where possibly went wrong. |
Hmm, no that did not work. I tried:
Is there a directory on /sdcard or something that I need to clear out? |
No, that's not in If you wish, I can provide a patch to (hopefully) solve this problem. Though I'd rather test things more and include this in v0.5.3. p.s. If you have root access, you may also try to copy-paste the file structure to |
Hmm, so I cleared out everything that the app creates and it doesn't import. I'd definitely test a patch or the next release, whatever is easiest for you! |
So when you say 'the data directories already exist' is causing this, if I go to (in Android not easer app) 'settings'-->apps-->easer and 'clear data & cache', this should delete all data the app has created under /data... right? Doing that doesn't seem to help the problem, I still cannot import the file. |
@craftyguy I have a guess. The only affected lines are (in ryey.easer.core.data.Helper):
So, I guess directories are also treated as a |
(As a progress indicator:) Splitting Events to Event Logic + Scenarios has been done and tested. I'm trying to find a best way to add the control of continuation / persistance / repeatable (as in #55) to Events. After that, the most important change of v0.5.3 will be done and it will be pushed (unless there is anything else important). |
@renyuneyun Ah, your guess makes sense, though I should see that exception printed somewhere if it were true.. right? I don't see it in the Easer log though (under /sdcard), would it be printed to the system log (logcat)? |
Ok, I think this confirms your theory. I re-ran Easer and tried to import the zip with logcat running, here's the exception that was printed to logcat:
|
v0.5.3 is out :) F-droid version may be out a few days later since #57 mentioned that they figured out the problem. |
Thanks, I will test this right now! |
@renyuneyun importing my exported profiles worked with v0.5.3, however it locked up when trying to view a profile, and after force-closing it, it now just immediately closes when I try to 'start' the Easer service again. I will try to provide a log when i get home. Note that I got a warning that my data was 'old' and to covert it, which I did do under settings. |
Hmm, I don't remember a compability change in these versions (though I was hoping to LOL). The warning for "old data" is for the old xml format. Have you succeeded in converting the data format (e.g. a toast stating success, or this warning is not shown again on next start up)? Does this problem still exist after converting to the new format? |
Here's the sequence of events:
Subsequent attempt so repeat steps 8-9 have the same effect, Easer closes immediately after tapping on 'start' |
That seems to be a result of "bad" data. The curious part is that bad data should be ignored when encountered... (Plus, there shouldn't be any bad data in your situation...) It would be the best if you can provide a log (either logcat or the logging stored in p.s. If appropriate (e.g. there aren't any sensitive data), you can also provide the exported data (the |
logcat of steps 8 & 9 here: https://craftyguy.net/paste/vLbIYD2q I also attached the zip file. I modified this zip to obfuscate MAC addresses. If you need the original I can email it directly to you. |
They ought to be fixed in v0.5.3.1 :) There are three bugs involved in total... |
@renyuneyun looks like it works! I was able to successfully import my exported data and start Easer (after clearing data first, as you suggested). Thank you for fixing this!! 😄 The only other issue is with the default picker on Android 8 not recognizing the Easer data export as a valid file to pick. I could make a new issue for this if you want, or keep this one open, or ?? |
I exported on 0.47 (fdroid version) and tried to import on the latest (0.52 from github), however the file picker won't let me select the exported zip file. This is on Android 8.1.
This screenshot shows that the exports from Easer are not selectable:
The text was updated successfully, but these errors were encountered: