Need help!---variable value got cleared after reboot

655 views
Skip to first unread message

Cathy Lansy

unread,
May 1, 2013, 9:06:14 PM5/1/13
to tas...@googlegroups.com
Hi, i have been encountering this problem a long time, at first, i thought it is tasker's shortcoming, however after i bought another android tablet pad, and had tasker installed, i found the user-defined variable value still being stored after reboot.
 
so i am kinda expecting to get some answers of why the user-defined variable value would get cleared(empty) after reboot in my HTC droid.
 
that really bothers me a lot since currenly i have implemented some status profiles which needs variable value to be used. after phone reboots, the value got reset to empty would make me lose previous stored data.
 
i have attached the debugging logs file here, please help me out.
 
many thanks in advance.
 
Cathy
log.txt

Matt R

unread,
May 2, 2013, 12:04:30 AM5/2/13
to tas...@googlegroups.com
I'm not going to try looking through that log, but are the variables that get reset on the phone the same as ones that DON'T get reset on the tablet? Are the related tasks/profiles the same? User-defined variables shouldn't reset on reboot.

Matt

Pent

unread,
May 2, 2013, 6:00:55 AM5/2/13
to Tasker
If they get reset, you have a profile resetting them or there's a
problem with the ROM.

If some variables reset and others not, it's almost certainly a
profile (since they're all stored in the same file).

Pent

Cathy Lansy

unread,
May 2, 2013, 7:07:23 AM5/2/13
to tas...@googlegroups.com
Hi,
 
Pent and Matt,
 
after reboot, the profile setting, tasks, scene, all are fine, no data loss and working well. the only problem is the user-defined variable value all (not part of them, but all) got cleared, it is kinda troubling me since i have set up some status profiles which would store data in the variable value.
 
my ROM is the HTC stock 2.3.5 ROM, not any 3rd party ROM.
 
i have no idea why a rebooting would clear tasker variable value? wondering where or how the user-defined variable value store? in sdcard tasker folder?
 
cause as far as i know, a rebooting would clear all apps previously cached in system RAM, then refreshes the OS, then booting up the apps which requires to booted after startup.
 
 
if there is problem within my ROM, why it just clears the variable value only?
 
please fill me in.
 
thanks anyway for your kind reply.
 
 
Cathy

Pent

unread,
May 2, 2013, 7:41:32 AM5/2/13
to Tasker
> i have no idea why a rebooting would clear tasker variable value? wondering
> where or how the user-defined variable value store? in sdcard tasker folder?

Same place as profiles etc, but in a different file.

> if there is problem within my ROM, why it just clears the variable value
> only?

No idea, but such problems exist.

Pent

Cathy Lansy

unread,
May 2, 2013, 10:17:05 PM5/2/13
to tas...@googlegroups.com
Hi,
 
Pent,
 
i have looked through tasker folder in sdcard, then didn't see the file which you mentioned of variable value stored.
 
however, i did find something in the phone root directory.
 
under /data/data/net.dinglisch.android.taserm/shared_prefs, i found a file named "net.dinglisch.android.tasker.varry.xml" , when i opened it, i can see my previous stored user-defined variable values are still in there after reboot. however, in tasker variable tab, the values are still the same case, got reset to empty. (NB.: variables are fine, just the values part)
 
 
"net.dinglisch.android.tasker.varry.xml", is it the file you mentioned earlier which would store variables values??
 
so, i guess there is nothing to do with my ROM, since i can see the variable values are still in there, just somehow for some reason, tasker doesn't retreive it. does it mean the tasker version which i currently use is corrupted?
 
 
please, i really need some help..... that matters to me.
 
thanks anyway.
 
Cathy

Pent

unread,
May 3, 2013, 1:46:59 AM5/3/13
to Tasker

> "net.dinglisch.android.tasker.varry.xml", is it the file you mentioned
> earlier which would store variables values??

Yes.

> so, i guess there is nothing to do with my ROM, since i can see the
> variable values are still in there,

Is the file readable ?

Maybe Android has corrupted the file. Try deleting it so it's
recreated.
Then store one simple variable, reboot, and check the contents.

Pent

Cathy Lansy

unread,
May 6, 2013, 8:33:27 PM5/6/13
to tas...@googlegroups.com
Hi,
 
Pent, sorry for the late response.
 
i have been testing on finding a solution for this issue these days.
 
after a couple testings of rebooting, i found that the the data stored in "net.dinglisch.android.tasker.varry.xml" got reset to default, not sure if my ROM clears it while shutting down, or during rebooting?
 
i guess i misjudged before which i mentioned previously that the "net.dinglisch.android.tasker.varry.xml" still contains the previous stored data.
 
 
so i did some test, i set up a profile to copy the file "net.dinglisch.android.tasker.varry.xml" to SD card while shutting down and copy back to override it after rebooting.
 
i thought it would work, however, the outcome is sad and frustrating. i checked the file "net.dinglisch.android.tasker.varry.xml" after a reboot, and the stored data is well overrided, but come back to tasker, in the variable tab, still no value in there.
 
Pent, would you please tell me how to tell tasker to invoke or re-read the data in that file "net.dinglisch.android.tasker.varry.xml"?
 
after a reboot -- copy backup from SD card and override it ----after done, disable tasker application package ---- then enable it, will this trick work? to tell tasker to re-read the data in that file "net.dinglisch.android.tasker.varry.xml"?
 
i also did try uninstall tasker and then reboot, and then re-install it, no luck, turns out the same result.
 
i almost get desperated of this issue.
 
awaiting your early reply. thanks!
 
Cathy

Pent

unread,
May 7, 2013, 2:03:02 AM5/7/13
to Tasker
> after a couple testings of rebooting, i found that the the data stored in
> "net.dinglisch.android.tasker.varry.xml" got reset to default, not sure if
> my ROM clears it while shutting down, or during rebooting?

No idea.

Sure it's not a Variable Clear action ?

> Pent, would you please tell me how to tell tasker to invoke or re-read the
> data in that file "net.dinglisch.android.tasker.varry.xml"?

Tasker doesn't ever read the file. There's an API for storing data,
the API uses
the file. It probably stores copies in memory after reading it once.
It
probably doesn't expect the file to be changed externally.

> i almost get desperated of this issue.

The issue to Google would be something like 'android SharedPreferences
lost after reboot'

Pent

Cathy Lansy

unread,
May 7, 2013, 7:44:50 AM5/7/13
to tas...@googlegroups.com
Hi,
 
Pent, many thanks for you kind reply.
 
firstly, i am very much sure it is not a variable clear action, cause i did check a couple times on every profile enter action, nothing setting wrong. and as i said previously, before rebooting the phone, the variable values are all well kept in tasker variable tab.
 
secondly, i did 2 testings earlier, 1 is kill tasker process and services, then re-load it, get into the variable tab, all values got reset to empty. but if i go into the data/data to see the XML file, the previously stored string values are still in the file.
 
2 is disable tasker package, then enable it, and re-load tasker, go into tasker variable tab, values got reset to empty too. And then go into data/data to see that XML file, the previous stored string values got reset to default. (default means just some string names and so on, no values)
 
Pent, after those 2 testings, i get sorta confused, you see, i didn't reboot the phone, and got the same outcome.
 
is it normal that way as tasker api designed or some kind of bug in this tasker version i am using?
 
please advise me.
 
many thanks in advance.
 
Cathy
 
 
(PS.  BTW, i did try factory reset my HTC droid earlier, and re-install tasker before i did those 2 testings, and turns out the same outcome too.)

Pent

unread,
May 7, 2013, 9:17:44 AM5/7/13
to Tasker
> is it normal that way

No idea, I don't recommend killing Tasker.

> as tasker api designed or some kind of bug in this
> tasker version i am using?

As far as I'm aware no one else has the problem.

As I mentioned: *Tasker does not take care of storing and retrieving
the data, Android does that*

Pent

GermainZ

unread,
May 7, 2013, 1:06:06 PM5/7/13
to tas...@googlegroups.com
Are you sure you don't have any Variable Clear action? IIRC, that action supports wildcards, so putting "*" in there will clear all your variables.
Search for it - you could have it in a Monitor Start profile, but don't look in the profiles. Just search for it using Tasker's Search option.

Cathy Lansy

unread,
May 8, 2013, 7:38:58 AM5/8/13
to tas...@googlegroups.com
Hi,
 
thanks so much for your concern, i am very much sure there is no such issue as you said about. cause you see, if it did, how come it waits a long long time until i reboot the phone? it doesn't make any sense.
 
and i have flashed my phone with a new android 4.0.4 ROM, then import all previous profiles, tasks and scenes which i exported to SD card before i flashed the phone.
 
of course, after i did some rebooting, this problem never happens again anymore.
 
so, maybe Pent is right abou that, some kind of system error within my previous ROM.
 
well, this case is over.
 
thanks to all
 
Cathy
Reply all
Reply to author
Forward
0 new messages