jimdc / TradeTracker

by Advent Fintech LLC
1 stars 0 forks source link

When app is running for many hours, the scan stops without crashing #112

Closed nick433 closed 6 years ago

nick433 commented 6 years ago

Steps to reproduce the bug:

  1. Open the app, set scanning to 'on'
  2. Put app in the background for a "long period of time" (@nick433 how long?)
  3. Open the app

What you expected to see: Scan is still running and stocks are still there.

What you saw instead:

  1. Brief white 'loading' screen (What does this mean? -James)
  2. Stock/crypto list is empty
  3. Scan is not running

So the same problem I mentioned Sunday. I added stocks to confirm that indeed the scan wasn't running.

nick433 commented 6 years ago

Perhaps start_sticky will be the savior. Not sure what causes the service and the app to just stop without it being a crash. But there was no crash, I confirmed on fabric.io and there was no crash message to my phone

jimdc commented 6 years ago

Persistence is related to https://github.com/jimdc/TradeTracker/issues/94, but that issue deals more with restarting after a crash, instead of after (maybe) the Android OS kills the service thread.

nick433 commented 6 years ago

start_sticky fixed this problem