Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening Movies/General results in short loading and whitescreen #1295

Closed
n00b42 opened this issue Aug 8, 2020 · 64 comments · Fixed by #1314
Closed

Opening Movies/General results in short loading and whitescreen #1295

n00b42 opened this issue Aug 8, 2020 · 64 comments · Fixed by #1314
Labels
bug Something isn't working question Further information is requested release/0.2 Issues that should be included in the 0.2 release

Comments

@n00b42
Copy link

n00b42 commented Aug 8, 2020

Opening Movies/General results in short loading and whitescreen

Version: 0.2.0-beta.22 (Docker)

Enabled Rollbar temporaryly.

@mregni
Copy link
Owner

mregni commented Aug 9, 2020

Are you navigating directly to the page or first loading the dashboard (for example)?

@mregni mregni added bug Something isn't working investigate some more investigation is needed before implementing question Further information is requested release/0.2 Issues that should be included in the 0.2 release labels Aug 9, 2020
@n00b42
Copy link
Author

n00b42 commented Aug 9, 2020

image

@n00b42
Copy link
Author

n00b42 commented Aug 9, 2020

and direct from url:

image

@mregni
Copy link
Owner

mregni commented Aug 10, 2020

Mmmm, that's some super weird stuff. Can you check your browser console if you see any errors or debug info?

@n00b42
Copy link
Author

n00b42 commented Aug 11, 2020

Oh, sorry, yes of course, forgot to check. There seems to be an error:
image

@mregni
Copy link
Owner

mregni commented Aug 11, 2020

Oke thanks! Seems like I have to remove some lost console.log lines as well!
Not sure if that would be the problem but let's try to fix the error and see what happens

@mregni mregni removed investigate some more investigation is needed before implementing question Further information is requested labels Aug 11, 2020
@n00b42
Copy link
Author

n00b42 commented Aug 11, 2020

If I open the page before synchronization it does not throw an error, just correctly informs me about "no movies".

image

@mregni
Copy link
Owner

mregni commented Aug 11, 2020

Oke thanks, that means the error has something to do with it. I presume you don't have the problem on other pages?

@n00b42
Copy link
Author

n00b42 commented Aug 11, 2020

Only on that page.

@mregni
Copy link
Owner

mregni commented Aug 11, 2020

Oke super, glad to hear that! I'll see how I can fix that error then asap.

@all-contributors please add @n00b42 for translation, userTesting and bug

@allcontributors
Copy link
Contributor

@mregni

I've put up a pull request to add @n00b42! 🎉

@n00b42
Copy link
Author

n00b42 commented Aug 11, 2020

@all-contributors please add @n00b42 for translation, userTesting and bug

Thank you :)

@allcontributors
Copy link
Contributor

@n00b42

I've put up a pull request to add @n00b42! 🎉

@n00b42
Copy link
Author

n00b42 commented Aug 11, 2020

Oh dear, citing already triggers the bot, wtf... sry

@mregni mregni reopened this Aug 11, 2020
@mregni
Copy link
Owner

mregni commented Aug 12, 2020

hehehehe, I'll remove the PR :D

@n00b42
Copy link
Author

n00b42 commented Aug 18, 2020

FYI: The issue persists on 0.2.1-dev.1294 (after docker update and new setup)

@mregni
Copy link
Owner

mregni commented Aug 19, 2020

aaargh, also the error in your console? To bad that I can't reproduce it.
If the error is still there can you give me the exact row number again (because I did some changes since your last screenshot)

@mregni mregni mentioned this issue Sep 8, 2020
@mregni
Copy link
Owner

mregni commented Sep 9, 2020

Released a fix in beta.24 for this. Can you test this? :)

@poulpor
Copy link

poulpor commented Sep 9, 2020

Thank you very much, still a white page but you get rid of some errors :)
Capture d’écran 2020-09-09 à 09 21 38

@mregni
Copy link
Owner

mregni commented Sep 9, 2020

Aaaaargh, no no no 😝
That means that the TopListCard component is not receiving any data from the backend and I have to search why that's happening. I'll come back with a fix :)

@Sammy-cmd
Copy link

How's the fix coming along?

@killwack
Copy link

Hi. Same issue for me with latest EmbyStat release. Can't use Embystat since beta.22. Currently using 0.2.0-beta.24.

Movie "general" screen stays fully white if accessed over embystats dashboard:

http://10.10.10.1:6555/movies/general white screen, not infos show up.

http://xxxx:6555/movies/graphs is working
http://xxxx:6555/movies/list is working

Will this issue ever be fixed?

Environment: Docker Container using Unraid

@mregni
Copy link
Owner

mregni commented Nov 6, 2020

I had to take a break from the project so didn't have time to look into it. I'll have a look when I start working on it again asap.

@killwack, why can't you use the beta.22 version?

@killwack
Copy link

Hi,

Sorry for responding so late. I have to figure out how to downgrade to beta.22 or an earlier release using UNRAID as my server and its docker container. This is new for me to set up a docker contrainer manually. (not using UNRAIDs GUI).

But thanks for your response and good to know that you try to figure out this issue.

@mattmuse
Copy link

Thank you for this project. This works fantastic on shows, but I too get the white screen on movies. Using firefox or edge.

Running the docker on unraid. If I can be of any help troubleshooting please let me know!

@aryehassbian
Copy link

Same here! It works on everything else BUT the Movies General - Getting White Screen on all Browsers that I have tested - Chrome (all kind), Firefox and Opera.
I have the latest version - just updated today - 05 FEB 2021. also emby is updated to latest as well.
Would be happy to know if there is a fix for that or anything we can do to make it work on our end as well.
Thanks

@chris2jz
Copy link

chris2jz commented Apr 7, 2021

Is there a fix for the white screen when we click on Movies from the menu?

@mregni
Copy link
Owner

mregni commented Aug 2, 2021

Sorry, the project has been in sleep modus for some time and I'm just starting to work on it again.
I just released beta.26 that included a lot of changes (UI and backend) and maybe that fixed this problem as well because I changed how the statistics are loaded in the UI. Can someone test this issue again and let me know what is happening?

@mregni mregni added question Further information is requested and removed ready to release labels Aug 2, 2021
@mattmuse
Copy link

mattmuse commented Aug 2, 2021 via email

@n00b42
Copy link
Author

n00b42 commented Aug 3, 2021

Same for me:

Uncaught (in promise) 
Object {
  config: Object { url: "job/", method: "get", baseURL: "/api/", … },
  ​data: Object { message: "An unhandled error occurred.", isError: false, detail: null, … },
  ​headers: Object { "content-type": "application/json; charset=utf-8", date: "Tue, 03 Aug 2021 22:40:48 GMT", server: "Kestrel", … },
  ​request: XMLHttpRequest { readyState: 4, timeout: 30000, withCredentials: false, … },
  ​status: 500,
  ​statusText: "Internal Server Error"
​}

@n00b42
Copy link
Author

n00b42 commented Aug 3, 2021

Network Analysis shows a 500 return code of a request to /api/job with the following answer:
{"message":"An unhandled error occurred.","isError":false,"detail":null,"stack":null}

@n00b42
Copy link
Author

n00b42 commented Aug 3, 2021

Also happens if I try to open the Jobs page.

@mregni
Copy link
Owner

mregni commented Aug 4, 2021

Did you do a clean install? I change the job structure meaning the database needs to be reinitiated. I think that's why you are getting a 500 on the /job API but I'm not 100% sure.
if you did a clean install then this is another problem that I have to look into.

@n00b42
Copy link
Author

n00b42 commented Aug 4, 2021

So, just did a clean install, but now can not get past Setup.
After I entered my servers config I get a blank white page.
(because it has been a while I am not perfectly sure everything is correct)

My console returns that a request GET http://192.168.0.200:6555/api/mediaserver/administrators fails with a status code of 500.

The log file shows an exception:

2021-08-04 18:26:27.4183 [ERROR] An unhandled error occurred. System.ArgumentNullException: Value cannot be null. (Parameter 'value')
   at Newtonsoft.Json.Utilities.ValidationUtils.ArgumentNotNull(Object value, String parameterName)
   at Newtonsoft.Json.Linq.Extensions.Value[T,U](IEnumerable`1 value)
   at Newtonsoft.Json.Linq.Extensions.Value[U](IEnumerable`1 value)
   at EmbyStat.Common.Converters.UserConverter.<>c.<ConvertToUserList>b__0_0(JToken user)
   at System.Linq.Enumerable.SelectEnumerableIterator`2.ToList()
   at EmbyStat.Common.Converters.UserConverter.ConvertToUserList(JArray model)
   at EmbyStat.Services.MediaServerService.GetAndProcessUsers()
   at EmbyStat.Services.MediaServerService.GetAllAdministrators()
   at EmbyStat.Controllers.MediaServer.MediaServerController.GetAdministrators()
   at lambda_method813(Closure , Object , Object[] )
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

@mattmuse
Copy link

mattmuse commented Aug 4, 2021 via email

@mregni
Copy link
Owner

mregni commented Aug 5, 2021

I just released a new beta version (beta.27). I removed a lot of properties in the UserConverter (where you get the null ref exception) so let's hope that this will fix the issue.
When I start using user data I will have to add the properties again but I will perform some more testing before updating the converter again.

Let me know how it works out!

@mattmuse
Copy link

mattmuse commented Aug 5, 2021 via email

@n00b42
Copy link
Author

n00b42 commented Aug 5, 2021

To answer your question: I did a clean install/setup with beta.27 and the setup issue seemed to persist at first.

To check if I did something different during setup, I tested an older version (e.g. beta.22). During the third setup page the old version detects my Emby server automatically, while the beta.27 does not.

Switching back to beta27, cleaning my browser cache seems to have done the trick: while the setup still does not detect my Emby server automatically, I could finish the setup by entering the IP/etc myself.

Furthermore: (After media sync) The Movies/General page is not white/erroring again, BUT all the stats and graphs are empty/0. (But, the Table page lists all my movies)

@mregni
Copy link
Owner

mregni commented Aug 6, 2021

Browser caching can be a pain 😞

@n00b42
I had to change the automatic detection a bit so I could detect multiple Emby servers in one network instead of just "the first one". Problem with that is that I have to detect the IP adres where the call came from (for example you are using http://192.168.72.1:6555 to browser EmbyStat) then I know I only have to search for Emby servers in the 192.168.1.255 network. This gets a little buggy when you start using docker or when you use localhost:6555 to browse EmbyStat.

For the empty stat pages, did you find some exceptions in the logs or some other strange behavior? I will try to add more Debug logs (I didn't knew how important Debug logs where until now so I still have to add them on a lot of places)

@mattmuse
Did you find some other exceptions in your log file this time? If it is still in the UserConverter file can you share your log with me, I added the RAW user data (feel free to sensor all private data).

@n00b42
Copy link
Author

n00b42 commented Aug 7, 2021

Just had another look, and suddenly the Movie Statistics/Graphs pages have content...
It seems that a (auto/scheduled) second run of the sync job did the trick...

@killwack
Copy link

killwack commented Aug 16, 2021

Hi mregni.

Your fix in Beta 0.27 worked for me too. After deleting and re-installing the embystat docker container in UNRAID and setting up any user & connection credentials in embystat I have synced my TV-series and movies.

The white screen issue in movies has been fixed, but as n00b42 previously mentioned, in movies any statistic information has been empty / 0. TV-series worked for me showing all statistics.

After re-syncing only my movies again, same issue with no information, empty stats. But refreshing / cleaning up the cache in firefox did the tick and all movie stats are listet now correctly.

Looks good and I think the white screen Issue has been fixed.

PS: Using UNRAID Version 6.9.1

BR

@mattmuse
Copy link

mattmuse commented Aug 17, 2021 via email

@github-actions
Copy link

github-actions bot commented Aug 1, 2022

This issue has been automatically closed because there has been no response to our question from the original author. With no answer to the question, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@github-actions github-actions bot closed this as completed Aug 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested release/0.2 Issues that should be included in the 0.2 release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants