Javascript error cause page stop loading

plex-web

#1

Confirmed on Version 3.49.1 and Version 3.53.4

Here is a example.

It only happens when going to show page from other page. It does not occurs when you refresh on it.

The console error is

Uncaught TypeError: Cannot read property 'split' of undefined
at i (main-1-b7b117af161ddf7d4be8-plex-3.53.4-892c250.js:443)
at r.render (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:327)
at f._renderValidatedComponentWithoutOwnerOrContext (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:341)
at f._renderValidatedComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:341)
at f._updateRenderedComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:339)
at f._performComponentUpdate (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:339)
at f.updateComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:338)
at f.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:336)
at Object.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:464)
at Object.updateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:325)
at h._reconcilerUpdateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:321)
at h._updateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:323)
at h.updateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:322)
at h._updateDOMChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:304)
at h.updateComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:300)
at h.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:299)
at Object.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:464)
at f._updateRenderedComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:340)
at f._performComponentUpdate (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:339)
at f.updateComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:338)
at f.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:336)
at Object.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:464)
at Object.updateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:325)
at h._reconcilerUpdateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:321)
at h._updateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:323)
at h.updateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:322)
at h._updateDOMChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:304)
at h.updateComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:300)
at h.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:299)
at Object.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:464)
at f._updateRenderedComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:340)
at f._performComponentUpdate (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:339)
at f.updateComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:338)
at f.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:336)
at Object.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:464)
at Object.updateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:325)
at h._reconcilerUpdateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:321)
at h._updateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:323)
at h.updateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:322)
at h._updateDOMChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:304)
at h.updateComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:300)
at h.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:299)
at Object.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:464)
at f._updateRenderedComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:340)
at f._performComponentUpdate (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:339)
at f.updateComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:338)
at f.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:336)
at Object.receiveComponent (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:464)
at Object.updateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:325)
at h._reconcilerUpdateChildren (vendors-2-0fb34d10524a1632b2b5-plex-3.53.4-892c250.js:321)

From Chrome,
e.className = ""PrePlaySummary-summary-1NL8g"
e.children = undefined
r = i.split("
"): <= caused the error


#2

From my debugging, it seems like the redux state is broken when this happen, i.e. summary field is missing in state. I also notice that if I reduce the number of casts, e.g. 1 cast only, the problem is gone.

But without the source code, it is hard to go further. I hope the web dev to look into this.


#3

Thanks, we have a fix for this exact error going out in our next release in a week


#4

@chrishoage said:
Thanks, we have a fix for this exact error going out in our next release in a week

That sounds great. I hope that version will also bundle into local version soon.


#5

@chrishoage said:
Thanks, we have a fix for this exact error going out in our next release in a week

Although it fix the JavaScript error, the content still not loaded.

I have updated the server to 1.13.2.5142 and the web UI is 3.55.2.


#6

Could you share the XML for the content in question? If you go to the ... menu and choose "Get Info" there should be a link to the XML.

I wonder if there is something in the string we're not expecting and breaking on


#7

@chrishoage said:
Could you share the XML for the content in question? If you go to the ... menu and choose "Get Info" there should be a link to the XML.

I wonder if there is something in the string we're not expecting and breaking on

Well, there aren't "Get Info" for the show or season. It only shows in episodes. You want all of them? I attached all 26 of them (the forum does not let me upload 7z).

I doubt you can extract any useful information though because I tried to copy the files to another library and they work fine. I think it may related to Plex server response. If you need to investigate the network requests, I can give to access for a week or something. PM me your email if you need it.


#8

Well, there aren't "Get Info" for the show or season. It only shows in episodes.

Ah, I'm sorry I missed that this was for the show or season. You're right that the episodes can't help me figure out the reason with the seasons. I presume the summary works for all these episodes?

If you could follow these steps that would be very helpful. I'm going to presume you're using the Chrome browser, but these steps should work for any modern browser

  1. Navigate to Plex
  2. Open the "Developer Tools" for the browser
  3. Click the "Network" tab
  4. Navigate to the season that does not show a summary
  5. Your URL should contain text that looks something like /details?key=%2Flibrary%2Fmetadata%2F42201
  6. In the Network tab of the Developer Tools there is a filter box, copy the string after %2F (in my example its 42201 yours will be different)
  7. Type in /library/metadata/42201 (replace 42201 with the string you copied)
  8. Click on the first result
  9. In the window to the right you should see Response
  10. Copy the response and post it here

Sorry for the hoops, I am going to file an internal issue to expose Get Info on Shows and Seasons because there really isn't any reason to not do it


#9

001.txt : /library/metadata/27479 (Enter Show)
002.txt: /library/metadata/27479/children (Enter Show)
003.txt: /library/metadata/27480 (Enter Season)
004.txt: /library/metadata/27480/children (Enter Season) First 20
005.txt: /library/metadata/27480/children (Enter Season) Remaining 6
006.txt: /library/metadata/27479/children (Go back to Show, interface broken)

Sorry for the hoops, I am going to file an internal issue to expose Get Info on Shows and Seasons because there really isn't any reason to not do it

I don't mind to help debugging as I am a programmer myself.


#10

To be clear of the behavior I should be checking: When you view the summary on the Pre Play for the show and the season of this metadata you do not see any summary at all?


#11

@joshuaavalon Followup to my last comment, could you share a screenshot of what you see on these metadata items?


#12

@chrishoage said:
To be clear of the behavior I should be checking: When you view the summary on the Pre Play for the show and the season of this metadata you do not see any summary at all?

Go to the show from home, it shows fine.
Go to show, go to season, back to show, it doesn't.
Go to show, go to season, refresh, back to show, it shows fine.

From what I observed, not every show / season has this behavior, even 1 show can have a season does and another season doesn't.

Second, it always involved go to the show page second time.

@chrishoage said:
@joshuaavalon Followup to my last comment, could you share a screenshot of what you see on these metadata items?

You can watch the video on the first comment.

I still recommend share you the Plex for you to investigate will be much faster as I use a friend account, I can still see this behavior.


#13

I was not able to reproduce using the steps in the video. I took a closer look at the xml and noticed this library is using a custom agent.

Are you able to reproduce this issue using a plex provided agent?


#14

@chrishoage said:
I was not able to reproduce using the steps in the video. I took a closer look at the xml and noticed this library is using a custom agent.

Are you able to reproduce this issue using a plex provided agent?

https://github.com/joshuaavalon/AvalonXmlAgent.bundle

The custom agent is just read from XML files.

I only have 3 shows that are using Plex agent. They don't have this problem.

I have tried to unmatch it and use manual input, it still has the problem.

This discussion isn't going anywhere. I messaged you some testing details.


#15

I'm having the same issue since quite some time.
If I can give anything just ask.
For me it's on the main screen (using plex app for windows 2.11.1.870) but in windowed mode. This show an interface similar to plex web (well exactly the same to be exact).

On the main screen, under "recently added TV" If I click the "Marvel Cloak and dagger" show, it bring me to the season 1 view of this show and most of the time it will not show the details, I must go back and try again.
Once it work it will still work correctly until I decide to do the same with another show.


#16

@VVagnard said:
I'm having the same issue since quite some time.
If I can give anything just ask.
For me it's on the main screen (using plex app for windows 2.11.1.870) but in windowed mode. This show an interface similar to plex web (well exactly the same to be exact).

On the main screen, under "recently added TV" If I click the "Marvel Cloak and dagger" show, it bring me to the season 1 view of this show and most of the time it will not show the details, I must go back and try again.
Once it work it will still work correctly until I decide to do the same with another show.

Can you test on the web version?


#17

@joshuaavalon said:

@VVagnard said:
I'm having the same issue since quite some time.
If I can give anything just ask.
For me it's on the main screen (using plex app for windows 2.11.1.870) but in windowed mode. This show an interface similar to plex web (well exactly the same to be exact).

On the main screen, under "recently added TV" If I click the "Marvel Cloak and dagger" show, it bring me to the season 1 view of this show and most of the time it will not show the details, I must go back and try again.
Once it work it will still work correctly until I decide to do the same with another show.

Can you test on the web version?

Same issue.
Here is a video on what happen : https://youtu.be/fXlm28ILvqk


#18

I only have 3 shows that are using Plex agent. They don't have this problem.

Then this is an issue with the custom agent. Unfortunately I am not able to help debug what is wrong with this custom agent. Good luck and I hope you figure it out!


#19

@chrishoage said:

I only have 3 shows that are using Plex agent. They don't have this problem.

Then this is an issue with the custom agent. Unfortunately I am not able to help debug what is wrong with this custom agent. Good luck and I hope you figure it out!

It seems like other have the same problem ^


#20

That video does not show the same behavior. The behavior in your video is about the summary not showing up, the behavior int he second video is about the children of the show (seasons / episodes) not resolving.

I'd need to know more information about the second example, like what PMS version the user is running.