Popcorn-desktop: Terms of Service Issue

Created on 3 Oct 2020  路  10Comments  路  Source: popcorn-official/popcorn-desktop

When Terms of Service showing and click accept the movies is not showing only loading screen. I have to reopen the app to work properly.

bug help wanted

All 10 comments

All info asked on the template is there for a reason, without that info we can't offer any support.

What @dutchy1001 said though this issue exists (probably duplicate of closed https://github.com/popcorn-official/popcorn-desktop/issues/880). It basically shows the first run disclaimer again randomly 1 in like 30-40 times and PCT wont load anything even if you click accept. You just have to close Popcorn Time and restart it again and everything works normally no settings or databases altered.
Attaching some screenshots below from when the error happens vs a normal run.

Normal run
noerror
Error run
error

When I'm receiving the ToS screen again, all my settings are getting reset to default. Any fix for this ? Thanks !

@HaoZ0r They dont get reset. Its an error with Popcorn Time reading its database. Just exit and start it again. Your settings will be there.

@HaOz0r They dont get reset. Its an error with Popcorn Time reading its database. Just exit and start it again. Your settings will be there.

@kiriles90 whenever i tried to do so, all the settings were reset and the folder itself got deleted and moved to the C:/ partition :(
Will try again next time i get the ToS screen though, hope something changes :)

@pcenta does https://github.com/pcenta/popcorn-desktop/commit/efa418bd9b25d91d0dd21e33e7e2f79f14957ae7 work? Why didnt you PR?
It happens too sporadically here to test it reliably.

@pcenta does https://github.com/pcenta/popcorn-desktop/commit/efa418bd9b25d91d0dd21e33e7e2f79f14957ae7 work? Why didnt you PR?
It happens too sporadically here to test it reliably.

It doesn't work. I thought it fixed the problem but it didn't.

@pcenta Hmm I think I found the issue, everytime this error occurs (e.g screenshots above) it seems its because /src/app/lib/providers/tvshowtime.js tries to load before /src/app/lib/providers/cache_providerv2.js has finished loading and https://github.com/popcorn-official/popcorn-desktop/blob/f14455085ad63b0bc4bc4747a263e1d2341ecdbf/src/app/lib/providers/tvshowtime.js#L14 returns with an error which bugs the app (/src/app/bootstrap.js does the loading)

Not 100% sure how to go about it though.. Any ideas?

EDIT: https://github.com/kiriles90/popcorn-desktop/commit/abfa4486c7652c67ca372d9c9cf3270693bc917d seems to do the trick.

@kiriles90
It's a bit annoying workaround that could cause issues going forward (hardcoded filenames and DOM queries). But at the same time I'm not familiar enough with everything to offer anything better.
My blind answer is what about if we expose 'initialized' boolean in providers and then in critical function check if all required modules are initialized.

hardcoded filenames and DOM queries

GitHub's diff is a bit misleading, expand up/down the rest was there, I just added tvshowtime.js. Exposing an 'initialized' boolean isnt a bad idea but I think we'd still have to split the ones that need delaying from the ones that are needed for them or else we'll be relying on alphabetic sorting, which atm works for our purpose (IF we wait for 'initialized' before we jump to the next) since T(_vshowtime_) is after C(_ache_providerv2_) but doesn't mean will work in the future. Anyway I'll try to code/test the idea.

My concern is we don't add to the already bit long startup time. https://github.com/kiriles90/popcorn-desktop/commit/abfa4486c7652c67ca372d9c9cf3270693bc917d seems to be fine in that aspect effectively 0ms added, but I'll think about it a bit more today/tomorrow before merging anything because its not the prettiest solution code-wise.

Ofc if you want to add any thoughts or code etc by all means. (and anyone else reading this)

EDIT: Merged since it fixes the issue with no impact on startup performance, the line above still stands though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kk47042 picture kk47042  路  3Comments

msamyelsheikh picture msamyelsheikh  路  4Comments

lucasdcrk picture lucasdcrk  路  3Comments

jojobling picture jojobling  路  4Comments

vanhelsing2042 picture vanhelsing2042  路  4Comments