thasmin / Podax

Podcast client for Android
Other
165 stars 34 forks source link

Podax loses track of time #188

Closed sinarf closed 10 years ago

sinarf commented 10 years ago

I'm using podax heavily for some time now, but since I switch to the Nexus 5 I have several issues but the more annoying one is: When I play a podcast, the sound is good but the elapsed time field isn't updated after a while after a while. It seems that it is not just a display issue because If I pause and resume this is this bogus time that is used.

I'm a software developper and would love to help solve this issue, even if it just mean trying patches on my software, or running a debug version that could maybe log the problem.

Please, feel free to ask for more information, or if you want me to try something.

thasmin commented 10 years ago

Does this happen every time or just sometimes?

sinarf commented 10 years ago

Sorry I didn't see your message earlier.

It happens most of the times, I tried to figure out a way to make it happened all the time, but I didn't found any consistent way to do this. The only thing I saw is that it seems to happenned most of the time when the lock screen is on. In that case it might be related to energy saving that may have change in Kit Kat.

Hope that helps.

philcolbourn commented 10 years ago

Ditto. I noticed same problem with nexus 5. I too was hoping to discover a pattern of behavour to post a useful bug report but it was not consistent.

So as I recall, if I play a podcast it seems to work fine. Time pointer moves as expected. If I pause it after I have turned screen off for a while, it resumes much much earlier. Probably about time that screen lock occurred. Initially I thought it was a feature to resume a few seconds earlier to play a bit of context, but when it 'jumped' back 1 hour or so, I though that was too much context.

A related issue is that the current playing podcast is not always displayed. Again, I have not got a pattern for this issue yet.

philcolbourn commented 10 years ago

Update:

  1. setup to lock screen immediately when power button is pressed.
  2. play podcast.
  3. wait 5s
  4. press power button
  5. wait 5s
  6. press power button and unlock screen
  7. progress bar is on 8s and not moving.
  8. press pause then play. nothing
  9. press pause then play. nothing
  10. press pause then play. podcast resumes at 8s and progress bar resumes.
thasmin commented 10 years ago

Still cannot reproduce. I've had this happen to me a few times in the car but I can't reproduce it at home. I don't drive to work any more so it's been a while, but I think it would usually happen when I first got into the car and forwarded to the next podcast. Does anyone else have more clues concerning when this happens?

philcolbourn commented 10 years ago

My last post reliably produced this fault. Today, after turning off Bluetooth and rebooting, I can not replicate behavior. Instead it is more random. I am now getting 15s delay in pausing, and stuck progress bar occasionally. I'll try to video behavior. Also, I have no issues with podax on my nexus s at all. None that I have noticed.

philcolbourn commented 10 years ago

I just had a new problem where I touched pause then play. Icon changed to a triangle but nothing happened. No sound. No progress. Hitting triangle returned to pause symbol after which it works normally. It seems that events are being delayed or not getting to or processed by podax. I also feel that progress bar gets out of sync and I think I saw it jump backwards.

philcolbourn commented 10 years ago

I think podcast does get these events based on podax icon changing on notification bar.

thasmin commented 10 years ago

I epiphanized that the timer that updates that time must not be running and behold, timers in Android are unreliable. I switched it to a background thread in 04e9983.

sinarf commented 10 years ago

I'm now on podax version 6.1.5 and Android 4.4.2.

I still have the problem. The steps provided above reproduce the problem consistently but I have to wait longer than 5s with the lock screen on.

Is there something I can do to help? I would really love to help you fix this issue.

sinarf commented 10 years ago

It doesn't seem to be possible for me to reopen that issue, should I open a new one? I would rather not.

thasmin commented 10 years ago

I'm still unable to reproduce the issue. Does it have to be a podcast that just started?

sinarf commented 10 years ago

No, it doesn't need to be a new podcast. It happens even if you resuming a podcasts.

Not sure what's the next step to find out where the problem comes from. :'(

thasmin commented 10 years ago

Does someone want to test a new build that may fix the problem? If you know how to build apps, it's in the master branch. Otherwise respond or send me an email and I'll send you an APK to sideload.

philcolbourn commented 10 years ago

i'll test your apk.

Phil

On Wed, Jan 1, 2014 at 12:13 PM, Dan Goldstein notifications@github.comwrote:

Does someone want to test a new build that may fix the problem? If you know how to build apps, it's in the master branch. Otherwise respond or send me an email and I'll send you an APK to sideload.

— Reply to this email directly or view it on GitHubhttps://github.com/thasmin/Podax/issues/188#issuecomment-31416721 .

sinarf commented 10 years ago

As promise I would love to try the new apk

Happy New Year. sinarf. Le 1 janv. 2014 02:13, "Dan Goldstein" notifications@github.com a écrit :

Does someone want to test a new build that may fix the problem? If you know how to build apps, it's in the master branch. Otherwise respond or send me an email and I'll send you an APK to sideload.

— Reply to this email directly or view it on GitHubhttps://github.com/thasmin/Podax/issues/188#issuecomment-31416721 .

philcolbourn commented 10 years ago

Running CM 11 4.4.2 Podax 6.1.8 - side loaded.

Summary: seems to be missing events.

  1. Reboot phone
  2. Let Podax download any podcasts pending.
  3. Launch Podax. I am 1:16 way into a podcast.
  4. Press Play - nothing
  5. Press Play - starts playing
  6. Press Pause at 1:26 - paused
  7. Press Play - nothing
  8. Press Play - start playing
  9. Press Pause at 1:44 - paused
  10. Press Play - nothing
  11. Press Play - Icon changes to 'pause' icon but nothing happens
  12. Press Pause - paused
  13. Press Play - nothing
  14. Press Play - starts playing
  15. Press Pause at 1:59 - nothing. Keeps playing. Counter stops. Podcast continues. About 15 seconds later, podcast stops. Icon changes to 'play' icon
  16. Press Play - nothing
  17. Press Play - starts playing - seems to have gone back
  18. Press Pause at 2:42 - paused
  19. Press Play - nothing
  20. Press Play - icon changed to 'pause' icon. Waited about 30 seconds. Podcast started to play.
  21. Press Pause at 3:21 - kept playing. About 15s later it stopped playing
  22. Press Play - nothing. Waited about 2 minutes - nothing
  23. Press Play - playing

(what I need is a podcast of someone counting seconds)

  1. Press Pause at 4:10 - paused
  2. Press Play - nothing happened for over a minute
  3. Press Play - playing
thasmin commented 10 years ago

6.1.8 has a bunch of problems I discovered while using it today. @sinarf I'll give you a copy when I get a chance to fix these frequent crashes.

sinarf commented 10 years ago

Just getting back from vacations. Ok, keep me posted.

Michel Blavin.

On Thu, Jan 2, 2014 at 9:58 PM, Dan Goldstein notifications@github.comwrote:

6.1.8 has a bunch of problems I discovered while using it today. @sinarfhttps://github.com/sinarfI'll give you a copy when I get a chance to fix these frequent crashes.

— Reply to this email directly or view it on GitHubhttps://github.com/thasmin/Podax/issues/188#issuecomment-31483971 .

thasmin commented 10 years ago

I'll send you a new version this weekend if that's OK.

sinarf commented 10 years ago

That's OK with me. Le 7 janv. 2014 17:27, "Dan Goldstein" notifications@github.com a écrit :

I'll send you a new version this weekend if that's OK.

— Reply to this email directly or view it on GitHubhttps://github.com/thasmin/Podax/issues/188#issuecomment-31752553 .

ImNtReal commented 10 years ago

I'm on Android 4.3.1, and the latest Podax in the store, and am having problems also. The only common thing I can find with the podcasts that have the issues is that they are all OGG. I don't think I've been able to reproduce it with a MP3.

thasmin commented 10 years ago

I've put version 6.1.8 as a beta release. I haven't tried this before so let me know if it doesn't work. You should be able to download it by going to this link: https://play.google.com/apps/testing/com.axelby.podax

ImNtReal commented 10 years ago

That's 404ing for me.

sinarf commented 10 years ago

I get a 404,too. Le 11 janv. 2014 17:11, "Dan Goldstein" notifications@github.com a écrit :

I've put version 6.1.8 as a beta release. I haven't tried this before so let me know if it doesn't work. You should be able to download it by going to this link: https://play.google.com/apps/testing/com.axelby.podax

— Reply to this email directly or view it on GitHubhttps://github.com/thasmin/Podax/issues/188#issuecomment-32099758 .

thasmin commented 10 years ago

I'm not getting a 404. So now I can't reproduce two issues. :-) I don't know what to say. I had to make a Google+ community to get it to work, so maybe you can use the link through there? https://plus.google.com/communities/104316227369085837652

sinarf commented 10 years ago

Works fine. I'll get back to you with an update. :-) Le 13 janv. 2014 21:17, "Dan Goldstein" notifications@github.com a écrit :

I'm not getting a 404. So now I can't reproduce two issues. :-) I don't know what to say. I had to make a Google+ community to get it to work, so maybe you can use the link through there? https://plus.google.com/communities/104316227369085837652

— Reply to this email directly or view it on GitHubhttps://github.com/thasmin/Podax/issues/188#issuecomment-32206769 .

ImNtReal commented 10 years ago

Joining the community did the trick.

philcolbourn commented 10 years ago

I got 404. Then I managed to become a tester. Then link worked. On Jan 14, 2014 7:17 AM, "Dan Goldstein" notifications@github.com wrote:

I'm not getting a 404. So now I can't reproduce two issues. :-) I don't know what to say. I had to make a Google+ community to get it to work, so maybe you can use the link through there? https://plus.google.com/communities/104316227369085837652

— Reply to this email directly or view it on GitHubhttps://github.com/thasmin/Podax/issues/188#issuecomment-32206769 .

lhsi commented 10 years ago

I think I am seeing a similar issue, however it happens when I get a notification while listening. Using Nexus 5.

  1. Play podcast (with headphones in and screen locked)
  2. Receive message, podcast playback stops, message sound plays

Expected: podcast resumes playback from when stopped, or resumes a couple of seconds back. Actual: playback resumes at an earlier point, usually the point when playback was stated earlier

I did also notice the playback progress line seemed to have gotten stuck while observing this. I usually start playback using either the widget or the little button on my headphones if that helps at all.

ImNtReal commented 10 years ago

The beta version doesn't seem to have helped my situation. I played an OGG podcast (Coder Radio), and the counter stayed at zero. Sometimes bouncing around to other time codes will make it start counting, again.

sinarf commented 10 years ago

I confirm that the beta is not solving the problem. Time stops after 5min in 2 podcasts one of 15 min (npr ask me another special) and one of more than hour (twig). Both mp3.

Good luck with that! :-D Le 13 janv. 2014 21:21, "Michel Blavin" michel@blavin.fr a écrit :

Works fine. I'll get back to you with an update. :-) Le 13 janv. 2014 21:17, "Dan Goldstein" notifications@github.com a écrit :

I'm not getting a 404. So now I can't reproduce two issues. :-) I don't know what to say. I had to make a Google+ community to get it to work, so maybe you can use the link through there? https://plus.google.com/communities/104316227369085837652

— Reply to this email directly or view it on GitHubhttps://github.com/thasmin/Podax/issues/188#issuecomment-32206769 .

philcolbourn commented 10 years ago

I get some qwirks on jelly bean 4.1.2. But is this issue isolated to kit Kat? Is this some change Google has made to api?

thasmin commented 10 years ago

It's definitely not related to KitKat. I just changed the name of the issue to reflect that.

thasmin commented 10 years ago

I think I found the issue. Version 6.1.9 has been uploaded to the beta channel. Please tell me if it fixes the problem. And if this does fix the problem, kudos to @philcolbourn who noticed that 5 seconds was part of the problem.

ImNtReal commented 10 years ago

So far with some minimal testing it seems to be fixed for me.

philcolbourn commented 10 years ago

Whilst I'd love to accept your praise, I believe all credit goes to you Dan.

Phil

On Thu, Jan 16, 2014 at 9:15 AM, Dan Goldstein notifications@github.comwrote:

I think I found the issue. Version 6.1.9 has been uploaded to the beta channel. Please tell me if it fixes the problem. And if this does fix the problem, kudos to @philcolbourn https://github.com/philcolbourn who noticed that 5 seconds was part of the problem.

— Reply to this email directly or view it on GitHubhttps://github.com/thasmin/Podax/issues/188#issuecomment-32421320 .

philcolbourn commented 10 years ago

I only seem to have access to 6.1.8 On Jan 16, 2014 3:27 PM, "phil colbourn" philcolbourn@gmail.com wrote:

Whilst I'd love to accept your praise, I believe all credit goes to you Dan.

Phil

On Thu, Jan 16, 2014 at 9:15 AM, Dan Goldstein notifications@github.comwrote:

I think I found the issue. Version 6.1.9 has been uploaded to the beta channel. Please tell me if it fixes the problem. And if this does fix the problem, kudos to @philcolbourn https://github.com/philcolbourn who noticed that 5 seconds was part of the problem.

— Reply to this email directly or view it on GitHubhttps://github.com/thasmin/Podax/issues/188#issuecomment-32421320 .

thasmin commented 10 years ago

I'm pretty sure this is fixed. Reopen if it's still broken in 6.2 or greater.

sinarf commented 10 years ago

I confirm that the problem seems to be fixed in the last version.

Thanks a lot.

Michel Blavin.

On Wed, Jan 29, 2014 at 2:01 AM, Dan Goldstein notifications@github.comwrote:

I'm pretty sure this is fixed. Reopen if it's still broken in 6.2 or greater.

— Reply to this email directly or view it on GitHubhttps://github.com/thasmin/Podax/issues/188#issuecomment-33546383 .