redfish64 / TinyTravelTracker

Private Android GPS tracker
GNU General Public License v3.0
135 stars 31 forks source link

TTT doesn't stay active - Pixel 2 #83

Open mxdsa opened 6 years ago

mxdsa commented 6 years ago

Ever since switching to the Pixel 2, TTT won't stay active. I recently upgraded to Android 9 and its the same story. The application starts up and tracks, but sometime throughout the day it closes. Not sure how long it lasts. I've given it as many permissions as I can find.

I know this isn't much info to go on, but has anyone else had this issue? Probably more helpful - is there a log somewhere on the phone that I can dig up and provide?

I really like TTT because it provides me with access to my own data, which I use for myself. (Even tho the Big Datas get it too.)

Thanks!

NitroNils commented 6 years ago

Hello,If you go to the settings and the 'bottom-most' entry you can toggle the 'wake lock log' which might hold valuable info. In the options description it states where it is stored (root directory of your external storage).Good luck with solving this - issues tend to get solved, but U need a good deal of patience.Love this app too.Sent from my Huawei Mobile-------- Original Message --------Subject: [redfish64/TinyTravelTracker] TTT doesn't stay active - Pixel 2 (#83)From: mxdsa To: redfish64/TinyTravelTracker CC: Subscribed Ever since switching to the Pixel 2, TTT won't stay active. I recently upgraded to Android 9 and its the same story. The application starts up and tracks, but sometime throughout the day it closes. Not sure how long it lasts. I've given it as many permissions as I can find. I know this isn't much info to go on, but has anyone else had this issue? Probably more helpful - is there a log somewhere on the phone that I can dig up and provide? I really like TTT because it provides me with access to my own data, which I use for myself. (Even tho the Big Datas get it too.) Thanks!

—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread. {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/redfish64/TinyTravelTracker","title":"redfish64/TinyTravelTracker","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/redfish64/TinyTravelTracker"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"TTT doesn't stay active - Pixel 2 (#83)"}],"action":{"name":"View Issue","url":"https://github.com/redfish64/TinyTravelTracker/issues/83"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/redfish64/TinyTravelTracker/issues/83", "url": "https://github.com/redfish64/TinyTravelTracker/issues/83", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } }, { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "TTT doesn't stay active - Pixel 2 (#83)", "sections": [ { "text": "", "activityTitle": "mxdsa", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@mxdsa", "facts": [ { "name": "Repository: ", "value": "redfish64/TinyTravelTracker" }, { "name": "Issue #: ", "value": 83 } ] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"redfish64/TinyTravelTracker\",\n\"issueId\": 83,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"redfish64/TinyTravelTracker\",\n\"issueId\": 83\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/redfish64/TinyTravelTracker/issues/83" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 370662638\n}" } ], "themeColor": "26292E" } ]

mxdsa commented 6 years ago

I'm attaching an excerpt of the Wake Lock Debug file. You can see that the application stops on August 31. Is there any information here that hints at the problem? ttt_wake_lock_debug-excerpt.txt

auduner commented 5 years ago

There was a bug with "flight mode" interrupting logging some time ago. Could it be that?

redfish64 commented 5 years ago

I noticed it has "Gps Strategy is shutdown" in the log. This indicates that android is killing the background process (aka service) that periodically logs points. I'm not sure why it's doing this. It could be running out of memory. Sorry I don't have more info than this but hopefully it gives you something to go on.

Maybe this will help, dunno: http://www.androidbeat.com/2017/03/how-to-stop-android-apps-killed-marshmallow-nougat/

jeroenev commented 5 years ago

same Issue on my Oneplus3T, running OxygenOS with android 8 and also when running LineageOS with android 9

redfish64 commented 5 years ago

I did a small attempt at a fix for this. v 1.1.45, should be out in a couple of days as it works through the f-droid system

igor-cali commented 4 years ago

I experience this issue with version 1.1.45. If I enable the wakelog option, the issue does not happen anymore. Maybe there is something in the code that should be done even if the wakelog is disabled.

redfish64 commented 4 years ago

I also have this issue. Sorry, but I have been quite busy. I'll try to figure out a solution soon. Maybe a week or so, no promises, though.

mxdsa notifications@github.com 於 2018年8月21日 週二 22:59 寫道:

Ever since switching to the Pixel 2, TTT won't stay active. I recently upgraded to Android 9 and its the same story. The application starts up and tracks, but sometime throughout the day it closes. Not sure how long it lasts. I've given it as many permissions as I can find.

I know this isn't much info to go on, but has anyone else had this issue? Probably more helpful - is there a log somewhere on the phone that I can dig up and provide?

I really like TTT because it provides me with access to my own data, which I use for myself. (Even tho the Big Datas get it too.)

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/redfish64/TinyTravelTracker/issues/83, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1W0jIMFcu_zOVgjLJ-6j6t5gmnCJZUks5uTCBfgaJpZM4WF9zu .

redfish64 commented 4 years ago

I created a new version, 1.1.47. Should be out on f-droid in a couple days. Not sure if it is going to work or not, but since it takes a few days for the bug to manifest on my phone, decided to just release it to let people try it if they'd like.

redfish64 commented 4 years ago

I made another small tweak because 1.1.48 wasn't working. This schedules a job that runs every 10 minutes or so and restarts the service if stopped. Hopefully it will work, but not sure.

redfish64 commented 4 years ago

Nothing seems to work. I was able to fix it for my Note 8 (Oreo) in settings, by going to Apps, searching for Tiny Travel Tracker and disabling "Optimize battery usage". Please let me know if something like this exists for the Pixel and fixes the issue. I will update the README if so.