-
Notifications
You must be signed in to change notification settings - Fork 16
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
Sleep tracking crashes about a quarter into the night #10
Comments
Thanks, I've posted this stack trace on the Garmin CIQ forums as this is something the Garmin people need to decipher. Link to the thread: https://forums.garmin.com/forum/developers/connect-iq/1411125-watch-app-stops-randomly-after-running-for-1-hour As far as I know, it is not possible to do debug logs in a release version of the app, so I cannot gather logs from users who download the app via the Connect IQ store. |
Sure, I'll build + sideload it. Give me a few weeks and I should hopefully have some logs for you. |
Hey. What Watch are you running it on @aaronjwood ? |
I'm using a Fenix 5 as well. I don't think it should be a big task, I just haven't had the time to get to it yet. |
Is it the garmind.debug.xml that you need or how do I enable debugging? |
Same issues here with VA3. Can I help you? |
I tried with a own compiled app on my watch yesterday but I don't now how to get good logging of the Garmin-eco-system. Do you know @MrFly ? |
I'm sorry, no. Think it has to he enabled in the app (programatically), then there could be many good log files on the watch. |
Was thinking we could make use of
Need to create the log file yourself though. I'm not seeing an API to create this file, it looks like the user has to go in and create the file manually through USB mode?!?! |
Seems that it is only possible with a manually deployed debug version of the app (comment on the following line) |
Yeah, hoping it's as easy as building a debug version, loading it to the watch, and creating the text file for logs. @Artaud where did you guys find that logs only work in debug builds? I've seen some of the Garmin devs on their forums say that |
Just tried this out, all you need to do is create the log file on the device. No need for a debug build. I just created
I'll use the tracker tonight and see what I get in the morning but I'm guessing there might need to be more log statements to catch the issue. Garmin also has this limitation: |
Alright. I'll create it and try this on my device this night! :) |
@aaronjwood That's great - the issue is that the log file name has to be different for every user who downloads the app, it changes every time you download the app, and (I'm not sure about this) will also change with each update. I also have got a wild idea what might be causing some of the issues. Seeing now how much logging is going on in there in the release version, maybe there is a memory leak on some watches when you don't have the log files created. |
Funny you mention that, I was thinking the same thing. The logs I posted last night showed my free memory dipping each time log is called to check the memory. I saw some people on the forums talking about removing printlns to save memory but I didn't see anything about them causing a leak. I had the app crash on me again last night so I'll post the logs from my watch ASAP. |
Perfect. To remove the logging, the only thing needed is to toggle the debug flag at
I've built the .prg for Fenix 5 that would do no logging: https://github.com/urbandroid-team/Sleep-as-Android-Garmin-Addon/blob/master/watch-releases/20180918-debug-Fenix5-nologging.prg |
Hmm unfortunately (at least from the logs) it doesn't look like it's a memory issue for me. Here's the .BAK file with the rotated logs:
I wonder if optimizing the logging would help with device battery life. From the above it looks like the app logs all night on every
But you know what? I had a crash in the watch again. This is from
The timestamp on that log directly relates to when the sleep app crashed for me. This morning I saw that the app had only tracked about 5% of my night before it crashed and it was around 2:15 AM that the chart showed tracking had stopped. So now the question is how is the sleep app causing the watch to crash internally? @hAmpzter can you check this log file as well to see if your Fenix 5 is internally crashing? @Artaud wondering if there's an issue with Garmin's CIQ where excessive logging for hours can cause a crash in the underlying system. Maybe they have a leak somewhere themselves...? |
@aaronjwood Exactly, that's what I was thinking, and we could confirm that by testing the non-logging version. I got only a cryptic response from Coleman on the Garmin team when I posted your crash stack trace on the Garmin forum, but it seems that it's not an isolated issue. I actually thought that when I build a release version of the app (there is a release flag on the compiler), then all logging would be disabled, so these issues wouldn't present themselves. But that does not seem to be the case. Could you please test the non-logging version tonight on your F5 (up here)? Big thanks |
Will do! I'll post back tomorrow after a night with the version you posted. |
@Artaud does this version work with the VA3 too? |
This build is specifically for F5, but the only difference is in image
resources so you can try it, it would probably work, but the layout and the
launcher icon may be distorted.
…On 16 Oct 2018 20:09, "Hans" ***@***.***> wrote:
@Artaud <https://github.com/Artaud> does this version work with the VA3
too?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADuCVlVORDJyOWdQJvA0ovN3D7_LC3vrks5uliDfgaJpZM4XL9tW>
.
|
Ok. Anything to do, except install this file? |
@Artaud Ok, just installed it and started sleep for a first test. The images are nearly the same than before, so this should work without problems. I'll give it a try this night. Tomorrow in the morning I will give feedback about it... |
@Artaud great! I think, you almost got it! The tracking worked till about three o'clock like a charm. That's 4 hours more than before |
@MrFly do you have a crash in your GARMIN/DEBUG/ERR_LOG file around the time that tracking stopped working? |
@aaronjwood yes, there is one
|
Hey. My logs are exactly the same problem as @aaronjwood is having. Last pieces of
And in the:
|
I crashed again last night using the version posted above. I only made it about 2 hours in so I didn't get much further than usual. |
Same for me on 645m. Actually it was better since watch app did not quit, but it stopped recording or sending HR. |
But that is the version I'm running. I'll try again now and see if I get any HR-data tonight. |
Yeah.. I still have no HR in my data. Is there anyone else on Samsung + Fenix 5 that it's working for? It worked one day in my recent history ( #10 (comment) ). |
And now I saw that I got an update a couple of seconds ago for the 12/12 update of Sleep as Android. I will try tonight and see if this version has fixed the no-HR-data error. |
I have a S9+ with a Fenix 5 and everything is working for me. This was true for the past couple of SAA beta updates. |
@aaronjwood I still have no HR-data on my Samsung Note8.. Hmm.. I'll try and backup everything and then reinstall all applications then. I have just gotten HR-data in one of the combinations with the betas lately. What are all the versions you have installed now of the three apps? |
@hAmpzter SaA: 12.12.18, Garmin Addon 06.12.18, watch app 28.11.18, garmin Connect 4.13.5, VA3 |
SaA: 20181212 (enrolled in beta) |
Just now I got an update for SaA: 20181214 |
Well, with the last update of SaA I was only able to make it through half the night with the tracker. Is it breaking for anyone else now? |
@aaeonjwood no, works like a charm (with known bugs like freeze on stopping) |
It crashes for me as well again. Don't know if it's SaA update or November security patch though. Installed them both on the same day. |
After that one crash when I updated to the lastest beta everything has been stable. @skros89 is it crashing consistently for you? |
Thanks for the tip @aaronjwood, it is indeed working now. I hadn't tested it again because the crash always wakes me up. |
For me this has started to work with everything. The whole night works and I get HR-data. :) |
Everything has been rock solid for me. Is it safe to get off the beta of SaA now @Artaud? If so maybe we can close this out as resolved. |
Phewww! Before closing the issue, I'd like to ask everyone else whether they still experience any issues with sleep tracking not surviving the night? |
No crashes at all. Watch app seems to work reliably. Having occasional phone to watch communication problems. Not able to repeat so can't nail down the conditions for the problem. Experiencing a lot of updates on the watch (daily) so might be Garmin breaking things. SAA beta also updating a lot. So thinking it's not the watch app. Also not related to this bug anyway. |
Hi @Artaud Please let me know what ever I can do to help resolve this issue |
Guys ! I am thinking to buy Fenix 5s but I was wondering if the Smart Alarm function from the Sleep as Android app works for you? It's super important option for me ! Thanks ! :) |
I ended my quest by purchasing a xiaomi mi fit 3 for ~30 EURo just to have
sleep tracking without hassle as I was annoyed that the Garmin sometimes
works and sometimes not. I'm still using Sleep as Android though :)
I hope this hint helps
…On Fri, 15 Feb 2019, 18:12 ulaland ***@***.*** wrote:
Guys ! I am thinking to buy Fenix 5s but I was wondering if the Smart
Alarm function from the Sleep as Android app works for you? It's super
important option for me ! Thanks ! :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AqOLHAmzI_QhlPMbMCeGhBEf47kNP8lQks5vNuqagaJpZM4XL9tW>
.
|
Sadly still doesn't work for me...
…On Fri, 15 Feb 2019, 19:12 ulaland ***@***.*** wrote:
Guys ! I am thinking to buy Fenix 5s but I was wondering if the Smart
Alarm function from the Sleep as Android app works for you? It's super
important option for me ! Thanks ! :)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABGyhbcdIh2pjXpM1aZyctyugzAZ7mvzks5vNuqZgaJpZM4XL9tW>
.
|
I just got the pie update for my phone yesterday and when I went to track my sleep last night I saw that no heart rate data came through. I'll try again tonight to confirm if it was a fluke or not. |
It seems that heart rate monitoring stopped working after my update. My watch tracks sleep all night but when I go to stop and save it I see that most of the chart shows deep sleep while the shows light. There are no instances of awake or REM which used to be tracked. @Artaud is SaA fully supported on Android 9? |
Disregard what I said. Let me do some more testing on this. I was having issues with my Fenix 5 syncing the wrong time (would continually put itself 3 hours back) which was causing my stats/charts to get all messed up in Garmin's app. I have no idea what happened but I could not prevent it from resetting itself every few hours. I ended up factory resetting it and had a huge problem with getting it to sync for the first time. Now I finally have everything back in place so let me try tracking my sleep for a few nights before I say that there's an issue with Android 9 :P |
Okay so sleep tracking seems to work okay, I just don't get any heart rate data anymore. |
Ugh, disregard again. When I look at my saved sleep tracking from last night I see heart rate data. What seems to be new (maybe intentional?) is when I stop tracking and go to save it I don't see the red line plotting heart rate data anymore. This led me to believe it wasn't working. |
Sorry to necro post, but did anyone find a resolution to this? I'm having what sounds like a very similar issue. If it's the same I'm happy to try and debug, if not I'll raise a new ticket :) Edit: I have a 645M and a OnePlus 6T, and I've already disabled battery optimisations for all the Sleep apps |
The problem seemed to come and go. When the watch/phaser and the Garmin Add-on are installed, it seems to work better. Garmin 3HR support was removed recently and I started using the sonar support. Seems to work and requires less charging of the Garmin watch. |
Guys, we had a big update which hopefully solved each and every issue :) (I wouldn't be that confident normally but we found a great workaround for the fundamental issue in communication between phone and watch) Give it a shot! |
Since the rewrite was released everything was working for me. Just recently things stopped working and now sleep tracking crashes a few hours after I've fallen asleep. I wake up in the morning to see my watch on my default widget. This happens regardless of how I start tracking (from the phone/watch) and is now consistent every time I use the app. I've tried to look for logs in the device but didn't see anything from this addon. I did find something in the
ERR_LOG.TXT
file underGARMIN/DEBUG
:It looks like I should be seeing a log file specifically for the app.
If you guys make another release with logging enabled I'd be happy to share the logs and help debug the issue.
The text was updated successfully, but these errors were encountered: