Skip to content
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

Loop "missing data: glucose data not available" but dexcom working #837

Closed
mitchellhenke opened this issue Oct 17, 2018 · 65 comments · Fixed by #868
Closed

Loop "missing data: glucose data not available" but dexcom working #837

mitchellhenke opened this issue Oct 17, 2018 · 65 comments · Fixed by #868

Comments

@mitchellhenke
Copy link
Contributor

mitchellhenke commented Oct 17, 2018

Discussed a little bit here where Loop shows Missing data: Glucose data not available, though the Dexcom app shows no gaps and appears to otherwise be functioning fine.

It is mentioned by @Kdisimone in the thread that this may be due to an iOS resource issue, but I was hoping there would be a way to make Loop reconnect? Someone else suggested that it's due to Apple Health lagging, but it never seemed to catch up in my case.

Looking back, Apple Health has no Glucose measurements from Loop during that time, but Dexcom shows no interruptions. I can get back into a working Loop state when it happens by toggling Bluetooth on and off.

I have set up Amplitude so I'll have that if it happens again in the future, but is there anything else I could do to help narrow down where the issue may be?

I’m using Dexcom G5 and Dexcom app and have seen the issue on Loop 1.9.2.

@mitchellhenke
Copy link
Contributor Author

mitchellhenke commented Oct 20, 2018

This happened again last night. Issue report uploaded in this gist: https://gist.github.com/mitchellhenke/089054cf1f92eed5878ba1a102723ac6

As before, Apple Health doesn't have glucose data for the time period. This time starting around 2am: image

@francesc0-cgm
Copy link

It happened to me too two times in 5 days

@Kdisimone Kdisimone changed the title Loop unable to read CGM data Loop "missing data: glucose data not available" but dexcom working Oct 22, 2018
@chelle0207
Copy link

This is not happening to me. It has in the past.

I’ve had a lot of Signal loss issues and other Bluetooth issues with Dexcom. My chats with the reps have resulted in many recommendations to reboot my iPhone nightly. I’m not great about doing it nightly, but I do it about once a day. I think that helps a lot. This seems to be an issue with Dexcom not connecting to the Internet.

At night, I run my Nightscout app, my Garmin app, Dexcom G5 app, and Loop. I don’t let my phone automatically update anything. Those kinds of things keep me connected pretty well. And I run everything on WiFi.

@jeremybarnum
Copy link

We have the 2 am problem (loop red, glucose data not available) but checking HK records, there is no gap visible which is weird. We are following FB troubleshooting steps and will report back. Starting by deleting server from loop.

@jeremybarnum
Copy link

jeremybarnum commented Oct 23, 2018

Deleting dex server from Loop did not work. One again a 2 am drop that persisted until wake-up. Interestingly no NS data uploaded during that period. Need to understand what that could indicate - more of an iPhone issue than a Loop issue? which is consistent with the idea that it's contemporaneous with iOS12. HK BG records are weird - Dex is the source but then Loop records twice, and then stops and there is no record of either app recording BGs - and this begins around the time that loop seems to have turned red (Loop is the blue icon).
img_0993
I probably don't understand the Dex backfill logic that well and the HK "priority" logic, if any. On wakeup, it was impossible to get BG back despite standard troubleshooting - BT toggle, force quitting Loop, confirming that Dex app is receiving BGs, which it was. I did note that some very old, since deleted, versions of Loop still showed up as being allowed to read from HK.
img_0994

I disabled that, but it makes me wonder. Only way to get back to green was to add back Dex server, and have it go to the cloud. During the day cloud icon is gone. This is iOS 12 with a 1.5.7 modified version. We will upgrade to 1.9.3 over the weekend but this is definitely a new problem that seems contemporaneous with iOS12, so while it will be nice if 1.9.3 solves it, it's not clear why that would be the case, unless it's something very subtle about the interaction between the new rileylink frameworks in 1.9.x, the heartbeat, the sniffing of the transmitter signal, and iOS12. Will try turning off WiFi tonight.

LoopIssueReport.pdf

@kenstack
Copy link

@jeremybarnum you need to check with @Kdisimone or @ps2 , but if I look at your issue report I think loop had crashed until moments before you sent the report (ie you interacted wtih the app). The launch date of the device manager is 26 seconds before the report date. That indicates that after a crash it didnt restart, which used to be a problem that @ps2 had fixed but i cant remeber if that was in 1.5.7 or after (I fought it for a long time but after he made some adjustments to how data gets saved to HK I think all was good). I believe it restarts based on the transmitter heartbeart, so if the dex app is crashing there is nothing to restart loop with (again check with the experts). If NS didnt have data then I assume share didnt have data so likely its a dex app issue, but that is just my opinion. We just upgraded my sons phone to ios 12 - first night the dex app crapped out after the ios 12 upgrade. Last few nights he takes the password off and leave the dex app up on the screen all night - rock solid last few nights - but that is just a few data points. check the analytics logs to see if you can see any crashes around that 2 am timeframe - dex app, loop, watch etc.

@jeremybarnum
Copy link

Thanks @kenstack, very helpful, will do. I also just noticed that even though I thought I had gotten rid of all the old apps that might be conflicting (a thing that I believe was also fixed in 1.9.x ) there was one. So we've deleted that.

@Piotras625
Copy link

I got same issue. I am using miaomiao and libre with spike, loop version 1.9.3 katie. Ios 12.0.1 Get missing data but after I open loop it comes straight on. Been doing I think everything now but no luck. Just wondering to clear my phone and start from scrateches.

@jeremybarnum
Copy link

FWIW we tried removing screen lock and having the Dexcom app up and that worked last night.

@chelle0207
Copy link

chelle0207 commented Oct 25, 2018 via email

@Piotras625
Copy link

Just to update. I also kept phone unlocked over night and loop worked great :)

@francesc0-cgm
Copy link

Which phone do you have? I have an iphone se

@Piotras625
Copy link

I have Iphone 5s. Unfortunatelly daughter is in school and we lost already connection as phone was locked all the time

@jeremybarnum
Copy link

jeremybarnum commented Oct 25, 2018

Probably worth having everyone clarify their platforms and versions to clarify whether this problem exists in 1.9.3 or is fixed? @Piotras625 post would suggest the problem still exists but if so why is everyone not seeing it, and @kenstack seems to think some recent improvements should have fixed it. Good news is leaving Dex open and phone unlocked seems to do the trick but that's not a proper solution. We are on iPhone SE with iOS12. UPDATE: I believe, but for reasons of branch management sloppiness I can't be totally sure, that the installed version is based on 1.5.2, with Loopkit 1.5.4 and rileylink_ios 1.2.2. Here it is - branch "1.5.2-x15-and-absorb-fix". Our version has been the same for months, but the problem arose after iOS12 update, although I can't definitely prove the causality there. We will probably update to 1.9.3 this weekend and we can't afford to try to reproduce tonight so I guess if the problem is gone in latest version, who cares. I'll report back.

@kenstack
Copy link

@jeremybarnum I think it would also be useful to make sure people clarify if they were getting dexcom bg data and the loop app didn't restart. For many people I think you will find the core issue is the dex app simply not restarting / working. If the dex app isnt getting data, likely that means there there is no heartbeat for Loop to wake up too. If there is dex data in someone's nightscout site and loop doesnt wake up, then that is a different story. Also, be careful to make sure you dont get fooled with backfill on dex data - if the dex app is down and then you restart it and it backfills, then that is not an issue with loop itself. Again I am not saying there isnt an issue with loop - but having been thru this before the first key is to make sure the dexcom app is live the whole time loop is down. One other point - even through all of the earlier issues we had, very very few people saw the issue even though we were running the exact same code. The dex app data issue seems to be resource related, so depending on how someone uses the phone, and phone resources itself, what else is running , etc. One repeatable example from this summer was my son playing fortnight on his Iphone X - the dex app would often stop working even during the day. also apple carplay - we sometimes get intermittent data when he gets into his car and uses maps and music. But, these are one off experiences fwiw.

@ps2
Copy link
Collaborator

ps2 commented Oct 25, 2018

@mitchellhenke Please edit your original post to indicate which Loop version and CGM source you're using. i.e. Dexcom G6 with Dexcom app, or Spike, etc. In the future, an issue report is usually very helpful.

@mitchellhenke
Copy link
Contributor Author

@ps2 I wasn't able to grab an issue report the first time, but I linked a gist above when it happened again: https://gist.github.com/mitchellhenke/089054cf1f92eed5878ba1a102723ac6

@Piotras625
Copy link

Hi guys. I just done everything from begining, so deleted my phone and started new one. Installed only Spike and Loop. All setup according to instruction. I get green loop for about 2 hours and if phone is not used than I get red circle and message that CGM data is missing. I definately got good password and login in the integration dexcom server as got BG for some time. Leave phone unlocked is solving the problem. When loop stops getting data from spike I still got NS running properly and can see BG on the followers devices. Could be situation that Spike is susspending internal server when screen is locked but keep sending data to NS?

@Kdisimone
Copy link
Collaborator

Piotras625 your issue is a different issue than the one being discussed in this thread. it sounds like a Spike integration issue specifically. Quite possible that there's an issue with spike and ios. A long time ago, there was a version of nightscoutshareserver that required the phone to remain unlocked to function too. @dabear might know more about that. Perhaps try sending him a message in gitter.

@Piotras625
Copy link

Ok thanks. At the moment I am trying to set up master bersion with nightscoutshareserver and see if that works. I will also build 1.9.3- katie version on different device to see if problem will continue

@chelle0207
Copy link

chelle0207 commented Oct 26, 2018

I think I’m having a similar issue again, this time in the daytime. I’m working in the ICU today, so I don’t have time to be attentive to my phone. I’ve had a lot of red loops. I captured an issue report really quickly earlier, and emailed it to myself.

I’m on G5. IOS 12.0.1. iPhone 7. Loop 1.9.1-KATIE. Dexcom has BGs but seemed not to be uploading them properly. Loop had lost BGs. I’ll try to upload my issue report and Loop screenshot. I don’t have Amplitude set up. When I tapped the dotted triangle in Dexcom, and BGs resumed uploading, Loop was able to get going again.

I’m low at this point, as Loop wasn’t able to head off the low (don’t worry; I’m eating lunch).

ADDENDUM: I don’t know how to upload on my phone. I’ll have to do that from my Mac tonight.

@mitchellhenke
Copy link
Contributor Author

mitchellhenke commented Oct 30, 2018

Happened again last night on Loop 1.9.3-dev

Issue report: https://gist.github.com/mitchellhenke/0ac6b7481663009befaebfb135164f29

I hadn't force closed the app or anything.

@kenstack
Copy link

@mitchellhenke was the dex app getting data the whole time ? or was the dex app missing data for some reason before you noticed loop not working. Thanks!

@mitchellhenke
Copy link
Contributor Author

@kenstack Dex was getting data the whole time, but Apple Health stopped receiving data

Dexcom screenshot

image

Apple Health screenshot

image

@jeremybarnum
Copy link

We have had two clean nights post upgrading to dm61-IRC, which is based on 1.9.3 dev. Interesting and concerning that you have the problem on that branch. We'll keep a lookout. We did have a sticky problem on the first night with pump comms which wasn't solved with usual tuning, button press, loop and phone restart, etc, but was solved with a RL power cycle. Seems intuitive that RL power cycle is a good idea post upgrade, but that's pure guesswork.

@kenstack
Copy link

@mitchellhenke I wonder why the dexcom app - if it was running - didnt write the bg data 3 hours later to HK. @Kdisimone may have more insight here. You have data on the display - could it be backfill ? Just wondering. Thanks for the posts

@jeremybarnum
Copy link

correction - we are in fact seeing the same problem despite being on 1.9.3 dev. While I can't be totally sure, it might actually be the case that it's happened every night. Tonight we are going back to unlocked screen with Dexcom app up and running. Unfortunately the issue report was captured as a screen shot. Here are screenshots of the error and also the analytics file showing a crash in the middle of the night. I am told the dex app was in fact running at the time but I can't be totally sure of that. We'll try to improve error capture/reporting but we can't afford to try to reproduce it tonight.
img_2994
img_2995
Loop-2018-11-01-045925.ips.pdf

@sethgagnon
Copy link

I have had the same happen to me using Spike. Seems like I need to delete my Spike account from Loop and restart the app to get it working again. Sometimes there is a long delay too before it starts picking up readings again. Next time I see it I will create an issue report too.

@jeremybarnum
Copy link

We were planning to remove screen lock last night but didn't do it, and therefore reproduced the error again. Seems like it's pretty much guaranteed to happen in the middle of the night. Enclosed are full issue report and also analytics log. To be clear, this is dev branch of 1.9.3, a slightly modified version of dm61's IRC branch, running on a fully updated iPhone SE, with only dex and loop running overnight. No Spike integration. And it seems like dex was running - or at least, that dex succesfully rebooted itself. I very seriously doubt that my modifications have anything to do with this problem, but if it's not that, and only some people are having it, then what is it? (my modifications are the 515 fix to rileylink_ios and the #577 change to loopkit - both of which I've used for some time with no issues). Any suggestions welcome.
issue_report.pdf

Loop-2018-11-02-015421.pdf

@human911
Copy link

human911 commented Dec 18, 2018

iOS 12.1.2
iPhone 7
Loop 1.9.3

This issue happens at least once every other week and only at night. iPhone plugged in charging and not charging. I have a video of my phone screen upon waking I can upload if it will help.

Updates: Added screenshots. When I received the "Missing Data" error Loop will return green a few moments later.

Loop Report 2018-12-05 06%3A13%3A24-08%3A00.zip
noglucosedata3
noglucosedata2
noglucosedata

@nb1114
Copy link

nb1114 commented Dec 22, 2018

Has anyone found a solution to this issue? I had tried keeping the phone without auto lock at night. It worked for a little while but has recently started with more frequency again.

iOS 12.1.2
iPhone 6s
Loop v1.9.3
Dex g6

TIA.

ps2 added a commit to LoopKit/CGMBLEKit that referenced this issue Jan 2, 2019
ps2 added a commit to LoopKit/CGMBLEKit that referenced this issue Jan 7, 2019
* As described in LoopKit/Loop#837

* Update dependency revisions
@ps2
Copy link
Collaborator

ps2 commented Jan 8, 2019

This fix is in Loop dev now. Please test!

@Kdisimone
Copy link
Collaborator

Nice!

@mitchellhenke
Copy link
Contributor Author

Thank you so much for fixing this issue that I'm assuming wasn't easy to track down.

I haven't had the issue since changing phones, but I've updated my app to include the fix and will share any issues if I come across them.

@jeremybarnum
Copy link

Same here - no recurrence on iPhone8 but will try to test on old offending SE with a test rig. Thanks @ps2.

@human911
Copy link

human911 commented Jan 15, 2019

Ran into the "Missing Data: Glucose Data not Available" on Loop 1.9.4 Dev at 3am last night.
Attached is a screenshot and Issue Report. Let me know if you need anything else.

iOS 12.1.3
iPhone 7
Loop 1.9.4 Dev

Loop Report 2019-01-15 03_07_38-08_00.zip

loopdevnoglucosedata
loopdev_nightscout

Loop-2019-01-15-062146.zip

@mitchellhenke
Copy link
Contributor Author

@human911 did that happen with or without last week's fix?

@Kdisimone
Copy link
Collaborator

@human911 your case looks a bit different. In your case the dexcom truly is out (timestamp and BG is old). The issue before was that loop had failed despite dexcom picking back up. I think you have a dexcom issue. Try the usual dexcom tricks. Delete unused transmitter IDs from BT. Close unused apps. Keep apps updated. Restart phone before bed (anecdotal).

@ps2
Copy link
Collaborator

ps2 commented Jan 15, 2019

@human911 Your issue report shows 40k pump events in Loop's db, likely caused by a bug on dev that was fixed here: 1746a75. Have you run loop with this fix? If not, please update to a recent version of dev, run loop for a while until you see a valid upload to NS, and then check your issue report (or attach another copy here for me to review). I am hoping that your events will get cleared out. I'm not sure this is related to your crash (@Kdisimone, he does have a crash), but having those events seems to indicate that maybe you're not running the updated dev.

@ps2 ps2 mentioned this issue Jan 15, 2019
@human911
Copy link

human911 commented Jan 15, 2019

Hey Everyone,
Dexcom was in fact was receiving data... although it did need a calibration sometime around 5 or 6am.
See attached.

I did not uninstall Loop 1.9.3 prior to building Loop Dev 1.9.4 with the fix last night.
Also rebooted the device before bed.
This is also a brand new Sensor and Transmitter.

Loop Dev has also crashed a few times... the screen just freezes.

Let me know if you need another other info. I will try removing and rebuilding Loop Dev tonight.

image1

image1

image

image1 1
image1 1

@ps2
Copy link
Collaborator

ps2 commented Jan 15, 2019

@human911, The ips (crash report) file you attached is from 6:21am, and it shows that Loop had been running for three hours (since 3:06 your time). Do you have a crash from 3am?

@human911
Copy link

@ps2 I just had it crash again at 10:30am pst
Attached are the logs.

Thanks for the help and feedback everyone.

Loop Report 2019-01-15 10_36_09-08_00.md.zip

@ps2
Copy link
Collaborator

ps2 commented Jan 15, 2019

Could you symbolicate those crashes?

@francesc0-cgm
Copy link

francesc0-cgm commented Mar 1, 2020

Experiencing this issue again in 2.1.0 (automatic bolus). My phone is an iPhone se with 13.3.1.
Dexcom app is working fine (mg/dl) but happens that loop remains without any BG. I have a - and an exclamative mark instead.
Tried to reboot, reinstall but nothing is fixing it atm.
Loop Report 2020-03-01 18:03:11+01:00.txt

Now I deleted all BG entries from Loop in health, denied Dexcom to upload BG to Health and re-enabled, deleted its entries, deleted in Mlab part of my data to empty space in NS.
I rebooted my iPhone, deleted my CGM source in Loop and put it again in. Still no new BG. Always - and exclamation mark.
I attach new log after these operations here below.

Loop Report 2020-03-01 18:24:26+01:00.txt

Managing it using BG via Dexcom share atm.

This is the error in loop:

Istantanea schermo 2020-03-01 (19 01 49)

EDIT:

After 2 or 3 rebuild I have it working again...Here is the log right now

Loop Report 2020-03-01 19:06:11+01:00.txt

Will check in the next days if it Will appear again

@francesc0-cgm
Copy link

This morning I had it again

@francesc0-cgm
Copy link

francesc0-cgm commented Mar 6, 2020

And this morning again. Could be a iPhone SE issue? I am the lonely one having this at this time

@mitchellhenke
Copy link
Contributor Author

@francesc0-cgm I think there’s some correlation. I experienced it on my SE, but have not since using a different phone (XR)

@francesc0-cgm
Copy link

@francesc0-cgm I think there’s some correlation. I experienced it on my SE, but have not since using a different phone (XR)

Ok thank you. Will try to change phone

@ashleysigette
Copy link

@francesc0-cgm We have this issue as well and we are not using an SE. The BG just goes missing but numbers still show in Dexcom app. I usually close apps, restart phone and then enter the Dexcom number into Apple Health which Loop then pulls in and that usually fixes it. The next update typically shows up in Loop.

@adamjay360
Copy link

I’m having similar issues with my Dexcom G6. Loop is "missing data: glucose data not available" but dexcom working just fine. Attached are screenshots. (I do own a 2nd RileyLink as emergency backup)

D982297C-990E-44C6-872C-F2AEF20653B0
B19DD62B-5604-4F3B-B862-97C50F582F04
29A0D11C-771E-44DB-AB92-D1A05E6DF4D4

@jm991
Copy link

jm991 commented Jan 8, 2021

I frequently get the "missing data: glucose data not available" while Dexcom still shows a value. I recently started getting it more often, and I can't help but think it was related to my recent "upgrade" from a G5 to a G6. I use an iPhone 8.

Good news is that turning bluetooth on and off from the iPhone settings seems to fix it, but it does cause some trouble with my basal rates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.