PlexConnect dies with Fanart (PIL) enabled

Hi,

 

here is Plex and PlexConnect installed on a Synology 213+. Additional there is the Python package installed and at the ATV Fanart enabled. But everytime I want to see the detail page of a movie the connection to PlexConnect dies and I getting the error that Trailers are not available.

 

I have attached the log. Perhaps you see what happened...

 

Thanks

 

Strange, the log just stops...

We have seen issues with the JPEG encoder missing for PIL- but those usually show an error in the logs. Are you able to run PlexConnect in a terminal and check for an error message/traceback there? Sometimes I have the feeling, some errors don't make it to the log... :-(

The DS213+ is not able to transcode, and I think I saw some mkv files in your log. Could this be the cause ? If you code transcoderaction=DirectPlay in ATV Settings does this gives you a different error message ?

The DS213+ is not able to transcode, and I think I saw some mkv files in your log. Could this be the cause ? If you code transcoderaction=DirectPlay in ATV Settings does this gives you a different error message ?

Mhh...all mkv are played without problems...much better than mp4. So i think this shouldn't be the problem. If I disable this feature all works fine...every mkv are played without problems.

Strange, the log just stops...

We have seen issues with the JPEG encoder missing for PIL- but those usually show an error in the logs. Are you able to run PlexConnect in a terminal and check for an error message/traceback there? Sometimes I have the feeling, some errors don't make it to the log... :-(

what do i need to execute in the terminal?

what do i need to execute in the terminal?

PlexConnect.py - after stopping the PlexConnect service.

Now I've executed PlexConect via terminal:

15:49:53 DNSServer: -> DNS response: 192.168.xxx.xxx
15:49:54 WebServer: serving .xml: /PlexConnect.xml
15:49:57 WebServer: serving .xml: /library/sections
15:49:57 WebServer: serving /js/utils.js
15:49:57 WebServer: serving .xml: /
15:49:57 WebServer: serving /js/sectionHoldSelect.js
15:49:58 WebServer: serving .xml: /library/sections
15:49:58 WebServer: serving /js/utils.js
15:49:58 WebServer: serving /js/sectionHoldSelect.js
15:50:00 WebServer: serving .xml: /library/sections/7
15:50:00 XMLConverter: Section scanner found, updating command.
15:50:01 WebServer: serving /js/utils.js
15:50:01 WebServer: serving /js/updateXML.js
15:50:01 WebServer: serving .xml: /library/sections/7
15:50:12 WebServer: serving /js/utils.js
15:50:19 WebServer: serving .xml: /library/metadata/2435
15:50:21 XMLConverter: Background (Source): http://192.168.xxx.xxx:32400/library/metadata/2435/art/1420938404 

Seems to be similar as in the logs.

Can you edit the Debug.py file and change the following line near the top, I think it’s about line 16:-
 

 “XMLConverter” : 0, </pre>to
 
 “XMLConverter” : 1, </pre>You’ll need to stop PlexConnect edit the file and restart it, then post the terminal output again.

This won't get you nowhere... look at the last lines of his log in the initial post:

21:01:32 XMLConverter: Background (Source): http://192.168.132.31:32400/library/metadata/2537/art/1420833692
21:01:32 ATVSettings: getsetting 0
21:01:33 PILBackgrounds: Check for Cachefile.
21:01:33 PILBackgrounds: No Cachefile found. Generating Background.
21:01:33 PILBackgrounds: Getting Remote Image.
21:01:33 PILBackgrounds: Merging Layers.
21:01:33 PILBackgrounds: Background size: 1920, 1080
21:01:33 PILBackgrounds: aTV Height: 1920, 1080

...then it just stops. It dies in PILBackgrounds.py, seemingly between lines 81 and 97.

Hm... how is your "blurRadius" setting? If not 0 try resetting it to 0.

If that wouldn't help, add a couple of print/dprint statements in between to understand where exactly it will freak out.

Hm... how is your "blurRadius" setting? If not 0 try resetting it to 0.


But if his blurRadius is not 0 then he'd hit this code at line 87:
 
    if blurRadius != 0:
        dprint(__name__,1 , "Blurring Lower Region")
        imgBlur = background.crop(blurRegion)
        imgBlur = imgBlur.filter(ImageFilter.GaussianBlur(blurRadius))
        background.paste(imgBlur, blurRegion)
Which would print the "Blurring Lower Region" line, even if the filter code fails.... but it's not :(

My guess would be some kind of permission error when writing the background image?

Right. And in XMLConverter/XML_ExpandLine we have a try/except that should catch issues. But even there we don't see the print out.

I just have no idea, where/why it fails in this way.

Maybe:-

layer = Image.open(stylepath + “/gradient_1080.png”)
is failing to load the gradient thus causing line 93:-

background.paste(layer, ( 0, 0), layer)
to fail?

OP could try editing PILBackground.py to remove line 93:- background.paste(layer, ( 0, 0), layer)

and see what happens.

Hi guys!

I have exactly the same issue and you already tried to help me in another topic related to fanart.

I solved it partially followed the suggestion of moody_blue:

Python from SynoCommunity

Installer 0.3-10

Git pull. 

That method works on my Synology 213+ but....everything works very slowly, spinning 8-10 times when I go to the library, 4-6 times when I go into the movie and back. When I hold the button for options it takes a long time and  small options window remain on screen after selection. Button menu helps.

Now I try once again with 0.5-7 installer. Everything flying! but PlexConnect dies when I go into the movie. (with Fanart "show")

roidy,

I tried your last suggestion - same result - trailers unavailable...

Mhh...any other tips? Seems that no-one nows if this should work? has anyone get this running via a synology diskstation?

I don't have a NAS myself... but are you able to run those lines from PILBackgrounds.py manually in a terminal/python? That way, we might be able to figure out which line causes that massive let down.

Now I try once again with 0.5-7 installer. Everything flying! but PlexConnect dies when I go into the movie. (with Fanart "show")

can you have a look at             #1280             ? 

I don't have a NAS myself... but are you able to run those lines from PILBackgrounds.py manually in a terminal/python? That way, we might be able to figure out which line causes that massive let down.

For this I need mor advice how to do this

can you have a look at             #1280             ? 

Yes...I have installed the Python Module. The other option is to install Python Module for Python 3. But this is not the right option i think, because Plex is based on Python2, right?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.