Popcorn-desktop: cannot resume stopped episode

Created on 21 Jan 2021  路  3Comments  路  Source: popcorn-official/popcorn-desktop

I'm on Windows 10 and have the latest version dowloaded from Jenkins.

I play an episode with about a dozen of seeds (and more peers), I press ESC and get out of it. I play it again, it would play what was already downloaded but stays stuck at 0 peers and 0 seeds. I've read some closed issues but:

  • I think after waiting 5 minutes is reasonable to assume nothing will ever happen
  • I deleted all the items in "seedbox", now stuck at "connecting"
  • unchecking the "seedbox" feature in the settings only hid the button, no change in behaviour
  • I deleted the cached files, no change
  • there's a setting "activate udate seeding" which doesn't change anything either
  • streaming or locally watching doesn't make a difference

Unbenannt

So basically my only chance to watch an episode is to not ever interrupt it. Other episodes will work, unless I interrupt them - then they go dead, never ever managing to (re)connect. Is there some torrent intrinsic feature which kicks me out in some way?

bug help wanted

Most helpful comment

Its an old issue related to how the Seedbox feature stops (pauses) torrents. More specifically
https://github.com/popcorn-official/popcorn-desktop/blob/a5025d176141eb228e0b57009e7377962e4d48c7/src/app/lib/streamer.js#L130 and
https://github.com/popcorn-official/popcorn-desktop/blob/a5025d176141eb228e0b57009e7377962e4d48c7/src/app/lib/views/seedbox.js#L187

which remove the peers then takes a good amount of time for them to be resolved again when resume (for some bad health torrents they don't resolve at all). Not sure what can be done about it since WebTorrent doesn't really stop connections with just pause() alone, but since curiously none has opened an issue about it (though it has been mentioned a number of times in other issues) marking this as 'Bug' in the hope that a fix or a workaround will be found.

For now if you have issues resuming torrents try disabling the Seedbox feature in the settings, It doesn't just hide the 'Download' button. Like
https://github.com/popcorn-official/popcorn-desktop/blob/a5025d176141eb228e0b57009e7377962e4d48c7/src/app/lib/streamer.js#L126
implies the action taken to stop a torrent is different when the Seedbox feature is disabled. No removePeer() involved. Instead it defaults to the old, pre-seedbox, single active torrent Popcorn Time streamer behavior which basically destroy()'s the torrent on stop. (like always ofc this wont delete the cache so whatever % you downloaded will still be there if you reload without exiting the app or have 'clear cache on exit' set to disabled)

All 3 comments

Correction!
It will reconnect and work, AFTER I RESTART PCT.
But it will still show weird values in the view popup, see screenshot.
Unbenannt1

Its an old issue related to how the Seedbox feature stops (pauses) torrents. More specifically
https://github.com/popcorn-official/popcorn-desktop/blob/a5025d176141eb228e0b57009e7377962e4d48c7/src/app/lib/streamer.js#L130 and
https://github.com/popcorn-official/popcorn-desktop/blob/a5025d176141eb228e0b57009e7377962e4d48c7/src/app/lib/views/seedbox.js#L187

which remove the peers then takes a good amount of time for them to be resolved again when resume (for some bad health torrents they don't resolve at all). Not sure what can be done about it since WebTorrent doesn't really stop connections with just pause() alone, but since curiously none has opened an issue about it (though it has been mentioned a number of times in other issues) marking this as 'Bug' in the hope that a fix or a workaround will be found.

For now if you have issues resuming torrents try disabling the Seedbox feature in the settings, It doesn't just hide the 'Download' button. Like
https://github.com/popcorn-official/popcorn-desktop/blob/a5025d176141eb228e0b57009e7377962e4d48c7/src/app/lib/streamer.js#L126
implies the action taken to stop a torrent is different when the Seedbox feature is disabled. No removePeer() involved. Instead it defaults to the old, pre-seedbox, single active torrent Popcorn Time streamer behavior which basically destroy()'s the torrent on stop. (like always ofc this wont delete the cache so whatever % you downloaded will still be there if you reload without exiting the app or have 'clear cache on exit' set to disabled)

Thank you!
Although there's still something weird, not obviously seedbox-related:

  • that after the restart the Download/Upload numbers show 0 although it works fine
  • that even if I delete the entry in the seedbox and the files from the cache directory it still won't work until a restart
Was this page helpful?
0 / 5 - 0 ratings

Related issues

dollhaus picture dollhaus  路  3Comments

123Olairy picture 123Olairy  路  3Comments

rohinarora picture rohinarora  路  4Comments

kk47042 picture kk47042  路  3Comments

tiotrom picture tiotrom  路  4Comments