Xdrip+ application using a large amount of internal memory #2387
Replies: 9 comments 6 replies
-
I have been using xDrip for almost 4 years now not on the same phone. Currently, xDrip on my phone shows App size: 30MB and user data: 60MB. None of that answers your question. It's just my thoughts. How long have you been using xDrip? I wonder if you can perform an experiment. However, it depends how much free space you have left on the phone. |
Beta Was this translation helpful? Give feedback.
-
Is this the issue? |
Beta Was this translation helpful? Give feedback.
-
Thanks for finding that. I'll find/install a play store backup solution. :( and see if backing up the data, uninstalling xDrip+, reinstalling xDrip+, and restoring the data fixes it. Details in a bit. |
Beta Was this translation helpful? Give feedback.
-
Good bit about backup to google drive. Sorry, I try not to cloud. I tried my phones LG Backup to SD card, uninstall/reinstall, restoration of backup. I found an export that I had made a week ago'ish 10/12 Which sqlite3 complains about: Luckily it did .dump and I got: Reviewing that sqlite3 dump file I found a bunch of lines (via pgup/pgdn hold down to see scroll by): Sounds like a table I dont need contents in. So if I drop those from the dumped file, run the dumped file back into sqlite3 and get a .sql file, perhaps I can load it back into xdrip+ and get my history back? One would think. My guess is that table is mixing stuff I care about, and stuff I dont care about. I know you may care, but I really dont care about illegal time parse data. Im ignorant. I just want the gui to say "corporate competition makes it really hard for users to access their data." (yes, I am frustrated.) So, I'll dig deeper to see what I can cut out of hte 3.7GB of "INSERT INTO UserErrors VALUES" to see if I can reconstruct the export and get my history back. Feels like something should be done at the code level to handle large timeframes...maybe influxdblite3? Any advice is greatly appreciated. |
Beta Was this translation helpful? Give feedback.
-
So removing specifically the following string seems to reduce the 3.7GB file to 292MB. Are the "We have an illegal time at parseData" important or can I just strip them from the database? |
Beta Was this translation helpful? Give feedback.
-
I was unable to successfully prune the database. DB corruption as reported by sqlite3. Unable to load into xDrip+. Ended up uninstalling which freed up the space. Must be a bug in xDrip+. I'm on Android 6.0. Can someone look at this? |
Beta Was this translation helpful? Give feedback.
-
When I tried to open the sqlite3 database using the linux sqlite3 app, it said the database was corrupted. There must be a bug somewhere in the code. All I can think of is that I'm android 6. Ideas? Tests you'd like me to run? |
Beta Was this translation helpful? Give feedback.
-
Navid200, I'm going to reinstall a second time. Perhaps attempting to import the db (at 300+MB after stripping it) it loaded a setting that caused it to fill again. Yes it has grown to 4.3GB. I didnt see it "grow" but the reinstall cant be over 2 weeks old. This time, I'll just reinstall without attempting an import and let you know. Jon, I hate having to experiment as it throws away a bunch of data. Hopefully after I figure out why it's eating space, I can patch back in the old DB and get my last couple years back on the phone. I will update the ticket in several days. (ps- I also wish and maybe we do, that we have some way to dump exports into a influxdb so you could setup chronograf or grafana to view reports. ) Let me know if there's something more specific. Perhaps I'm the only one having this issue? Bill |
Beta Was this translation helpful? Give feedback.
-
Ok, I got my space back. Uninstalled xDrip+. (I suspect maybe the import function trying to import a huge file with the errors listed above tanked and left that .sqlite file hanging around. Really recommend xDrip+ have a feature to store all data and configs on a SD card. Really recommend Android die a painful death. Oh well.) |
Beta Was this translation helpful? Give feedback.
-
I've been running Xdrip+ for a while now. (years).
Great product. Thanks to all who birthed it and helped it mature into the product it is. Wonder what the cummulative A1C drop for all users is. My guess -2 points for me! Sum all that up and think of how many billions saved in medical costs for avoided complications. Pat yourself on the back!
Ok, my issue.
Running on non-rooted ( :( ) Android 6 phone. This phone cannot move the application to the SD card. I do not have a backup solution installed on the phone right now.
The phone says I'm using something like 4.68GB of internal memory for the application.
Via the application, I see no way to free that memory up.
Another discussion that was closed due to inactivity said this may be debug logs. I tried to find that discussion again but could not.
Is there any way to purge the 4.68 w/o loosing my BG readings? Or if so, keeping the last 90 days?
In application memory management should be supported. Clean up non-essential logs, aggregate BG readings older than X (ie older than 90, I could keep just 1 reading every thirty mins).
Beta Was this translation helpful? Give feedback.
All reactions