[Solved] Sony X90J and X95J can't connect

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Sony X90J and X95J can't connect

Post by SubJunk »

Nice one painting the house, I see you fall into the same trap I do where we spend our holidays doing a different kind of work ;) and thanks for the appreciation. It's great to work with someone who will keep coming back with more logs since a lot of people give up before it gets resolved :)

To build from the branch you can follow these instructions https://github.com/UniversalMediaServer ... -build-UMS let me know if there's anything missing, but also I'm happy to keep uploading the builds as we go
Ranger187
Posts: 105
Joined: Sun Jun 03, 2012 12:11 am
Contact:

Re: Sony X90J and X95J can't connect

Post by Ranger187 »

Baha.... This is why I refused to code or program when I started in IT. Anything code based and NOPE. Got as far as pulling my branch and files... Compiling it just resulted in errors. I'll wait for the next release. :D :D :D :D

Now to test the TCL's. Since they all use the same renderer, I'll use the 28" in the kitchen as the base for the logs. Once it's figured out, it should work on the other TCL's here. I'm also very tired and sore from all that damn painting....

Here ya go.

This is what happens when I don't change anything and play a video. I need to go to MEDIA GALLERY and then play as the /DIR I'm trying to play from won't allow listing.

"No compatible media found" is what happens. Select Media Library and both play.

Log file attached.
Attachments
ums_dbg_2021-12-27-08-53.zip
(126.67 KiB) Downloaded 271 times
Ranger187
Posts: 105
Joined: Sun Jun 03, 2012 12:11 am
Contact:

Re: Sony X90J and X95J can't connect

Post by Ranger187 »

Next is with "force renderer" and "ROKU ULTRA" as the choice.

/DIR is now viewable 100%. Videos now play.

Replicating same steps as above. Went into /DIR played 2 movies. Then went to MEDIA LIBRARY and played the same 2. All played.

Log file attached!
Attachments
ums_dbg_2021-12-27-09-00.zip
(122.55 KiB) Downloaded 242 times
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Sony X90J and X95J can't connect

Post by Nadahar »

Regarding building UMS, it's not straight forward until you have all the correct tools installed and configured. You need a Java JDK (not the "runtime" you usually install that's called a JRE), but you also need $JAVA_HOME to point to the JDK folder. In addition, Maven must be installed. Both Java and Maven must be on the path. In addition you need Git to be able to clone the source files.

Once those things are in place, building is as simple as running

Code: Select all

mvn package
You might need to specify a "Maven profile" with "-P<profile name>" too, it depends on how UMS's pom.xml is set up, I don't remember now. In any case, the "difficult" part is getting Maven installed and configured.
Ranger187
Posts: 105
Joined: Sun Jun 03, 2012 12:11 am
Contact:

Re: Sony X90J and X95J can't connect

Post by Ranger187 »

Nadahar wrote: Tue Dec 28, 2021 4:41 am Regarding building UMS, it's not straight forward until you have all the correct tools installed and configured. You need a Java JDK (not the "runtime" you usually install that's called a JRE), but you also need $JAVA_HOME to point to the JDK folder. In addition, Maven must be installed. Both Java and Maven must be on the path. In addition you need Git to be able to clone the source files.

Once those things are in place, building is as simple as running

Code: Select all

mvn package
You might need to specify a "Maven profile" with "-P<profile name>" too, it depends on how UMS's pom.xml is set up, I don't remember now. In any case, the "difficult" part is getting Maven installed and configured.
Yup, already have all that installed on my one server. Don't need it that bad to sit through CLI and do all that. I have a beta release. Thanks though!
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Sony X90J and X95J can't connect

Post by SubJunk »

Nice, I'm going through the logs now. Hope you're a bit less sore today! I'm off to do Brazilian jiu jitsu after this so I'm prepared to be sore too :D

Here are my notes from the logs:

At 2021-12-27 08:50:59.066 we get a browse request for the root folder, to which we respond, including the Media Library (ID 28) and Pictures (ID 56) directories:

Code: Select all

  <container childCount="3" id="28" parentID="0" restricted="1">
    <dc:title>Media Library</dc:title>
    <res xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_FLAGS=00900000000000000000000000000000">http://192.168.50.153:5001/get/28/thumbnail0000JPEG_SM_Media+Library.jpg</res>
    <res xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_FLAGS=00900000000000000000000000000000">http://192.168.50.153:5001/get/28/thumbnail0000JPEG_TN_Media+Library.jpg</res>
    <res xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" protocolInfo="http-get:*:image/png:DLNA.ORG_PN=PNG_LRG;DLNA.ORG_FLAGS=00900000000000000000000000000000">http://192.168.50.153:5001/get/28/thumbnail0000PNG_LRG_Media+Library.png</res>
    <res xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" protocolInfo="http-get:*:image/png:DLNA.ORG_PN=PNG_TN;DLNA.ORG_FLAGS=00900000000000000000000000000000">http://192.168.50.153:5001/get/28/thumbnail0000PNG_TN_Media+Library.png</res>
    <upnp:albumArtURI xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" dlna:profileID="JPEG_SM">http://192.168.50.153:5001/get/28/thumbnail0000JPEG_SM_Media+Library.jpg</upnp:albumArtURI>
    <upnp:albumArtURI xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" dlna:profileID="JPEG_TN">http://192.168.50.153:5001/get/28/thumbnail0000JPEG_TN_Media+Library.jpg</upnp:albumArtURI>
    <upnp:albumArtURI xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" dlna:profileID="PNG_LRG">http://192.168.50.153:5001/get/28/thumbnail0000PNG_LRG_Media+Library.png</upnp:albumArtURI>
    <upnp:albumArtURI xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" dlna:profileID="PNG_TN">http://192.168.50.153:5001/get/28/thumbnail0000PNG_TN_Media+Library.png</upnp:albumArtURI>
    <upnp:class>object.container.storageFolder</upnp:class>
  </container>
  <container childCount="1" id="56" parentID="0" restricted="1">
    <dc:title>Pictures</dc:title>
    <res xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM;DLNA.ORG_FLAGS=00900000000000000000000000000000">http://192.168.50.153:5001/get/56/thumbnail0000JPEG_SM_Pictures.jpg</res>
    <res xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" protocolInfo="http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN;DLNA.ORG_FLAGS=00900000000000000000000000000000">http://192.168.50.153:5001/get/56/thumbnail0000JPEG_TN_Pictures.jpg</res>
    <res xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" protocolInfo="http-get:*:image/png:DLNA.ORG_PN=PNG_LRG;DLNA.ORG_FLAGS=00900000000000000000000000000000">http://192.168.50.153:5001/get/56/thumbnail0000PNG_LRG_Pictures.png</res>
    <res xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" protocolInfo="http-get:*:image/png:DLNA.ORG_PN=PNG_TN;DLNA.ORG_FLAGS=00900000000000000000000000000000">http://192.168.50.153:5001/get/56/thumbnail0000PNG_TN_Pictures.png</res>
    <upnp:albumArtURI xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" dlna:profileID="JPEG_SM">http://192.168.50.153:5001/get/56/thumbnail0000JPEG_SM_Pictures.jpg</upnp:albumArtURI>
    <upnp:albumArtURI xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" dlna:profileID="JPEG_TN">http://192.168.50.153:5001/get/56/thumbnail0000JPEG_TN_Pictures.jpg</upnp:albumArtURI>
    <upnp:albumArtURI xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" dlna:profileID="PNG_LRG">http://192.168.50.153:5001/get/56/thumbnail0000PNG_LRG_Pictures.png</upnp:albumArtURI>
    <upnp:albumArtURI xmlns:dlna="urn:schemas-dlna-org:metadata-1-0/" dlna:profileID="PNG_TN">http://192.168.50.153:5001/get/56/thumbnail0000PNG_TN_Pictures.png</upnp:albumArtURI>
    <dc:date>2021-12-23T16:42:36</dc:date>
    <upnp:class>object.container.storageFolder</upnp:class>
  </container>
The problem happens here:
At 2021-12-27 08:51:01.801 we delete ID 56 from the global ID repo (a garbage collection event that happens)

At 2021-12-27 08:51:02.849 we get the next browse request for the children of Pictures, which doesn't exist anymore:

Code: Select all

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <s:Body>
    <u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
      <ObjectID>56</ObjectID>
      <BrowseFlag>BrowseDirectChildren</BrowseFlag>
      <Filter>id,dc:title,dc:description,dc:date,upnp:longDescription,upnp:artist,upnp:album,upnp:albumArtURI,upnp:rating,upnp:scheduledStartTime,upnp:genre,res,res@duration,res@bitrate,res@size,res@protocolInfo,res@resolution,container@childCount,upnp:originalTrackNumber,res@pv:subtitleFileType,res@pv:subtitleFileUri</Filter>
      <StartingIndex>0</StartingIndex>
      <RequestedCount>10</RequestedCount>
      <SortCriteria/>
    </u:Browse>
  </s:Body>
</s:Envelope>
To which we respond with an empty request because the ID doesn't exist anymore:

Code: Select all

DEBUG 2021-12-27 08:51:03.633 [HTTPv2 Request Worker 1] net.pms.dlna.GlobalIdRepo GlobalIdRepo: id not found: 56
TRACE 2021-12-27 08:51:03.633 [HTTPv2 Request Worker 1] net.pms.network.RequestV2 Empty response sent to Unknown renderer:

HEADER:
  HTTP/1.1 204 No Content
  Server: Windows_10-amd64-10.0, UPnP/1.0 DLNADOC/1.50, UMS/10.14.2-SNAPSHOT
  Content-Length: 0
Unfortunately that's a tricky bug to fix because it's a symptom of a fix for a worse bug. Since you might be interested in an explanation, in the past, we did not have this bug because we held on to all the IDs, but that would lead to running out of memory if the server was on for a long time and/or with very large libraries. So the fix was to make IDs expire, but it was done in a simplistic way and so it can cause these problems. It's better than running out of memory, since the user can usually go out of the folder and enter it again as a workaround, which should give a fresh ID (if the renderer updates it)

At the time the fix was done, I didn't have the ability or understanding to do a better fix, but I might be able to do it now. I'll have a think about it and get back to you.

In the meantime here is your latest build which hopefully adds some polish to the SystemUpdateID fix from before, it would be good to know if it still works https://www.universalmediaserver.com/up ... d48e83.exe
Ranger187
Posts: 105
Joined: Sun Jun 03, 2012 12:11 am
Contact:

Re: Sony X90J and X95J can't connect

Post by Ranger187 »

Yes! I'm doing a lot better now. Last week of vacation so I'm couch surfing all week. I do Tae Kwon Do, Jeet Kune Do and a few others. But after my injury last year.... I held off doing them for a bit. When you break your back, neck, shoulder, clavicle and ribs (one punctured my lung), you tend to stop doing full contact. I think this year I'll start back up. Baha. I love the torture but the Kata is more fun.

Testing the build now and everything worked on the Sony X85J perfectly! Restarted the service and still worked. Exited UMS and opened and again, worked as it should!
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Sony X90J and X95J can't connect

Post by SubJunk »

Wow that's a lot of injuries, how did that happen?! I used to do harder things like muay thai, boxing, wrestling, karate, but these days I just do BJJ since I don't have the time to do more. Also both my old boxing and MMA gyms have both closed down now, mostly due to COVID restrictions.
I hope it goes well when you start up again!

I made a potential improvement to the bug - it is still similar to before and with a very large library it can run into the same problem, but the threshold for removing IDs is much higher. In my testing locally with about 10TB of media, it didn't remove any IDs, and is sitting at around 140 MB of memory used, so hopefully even with your larger library it will handle it. Guess we'll find out!

https://www.universalmediaserver.com/up ... 9bdfbe.exe
Ranger187
Posts: 105
Joined: Sun Jun 03, 2012 12:11 am
Contact:

Re: Sony X90J and X95J can't connect

Post by Ranger187 »

One of my Rotties cut me off at the top of the stairs coming down. My next step was on her back, or pull back and fall....HARD. I fell hard, head slamming into a stud. Flipped 2 flights of stairs. EMS took 1 hour to extricate me. 2 months AFTER I was released from Hospital, the same Rottie tore her rear knee. I had to drive her 2 hours each way with a broken back, 3 discs, shattered clavicle, broken discs in my neck. Injured my hip. Broke 6 ribs, 1 of which punctured my lung. I had to make multiple drives to her surgeon. What a year.....

Tested and the TCL Kitchen was able to list the dir and stream it. Looks to be a success!
User avatar
SubJunk
Lead Developer
Posts: 3705
Joined: Sun May 27, 2012 4:12 pm

Re: Sony X90J and X95J can't connect

Post by SubJunk »

Ranger187 wrote: Wed Dec 29, 2021 7:32 pm One of my Rotties cut me off at the top of the stairs coming down. My next step was on her back, or pull back and fall....HARD. I fell hard, head slamming into a stud. Flipped 2 flights of stairs. EMS took 1 hour to extricate me. 2 months AFTER I was released from Hospital, the same Rottie tore her rear knee. I had to drive her 2 hours each way with a broken back, 3 discs, shattered clavicle, broken discs in my neck. Injured my hip. Broke 6 ribs, 1 of which punctured my lung. I had to make multiple drives to her surgeon. What a year.....

Tested and the TCL Kitchen was able to list the dir and stream it. Looks to be a success!
Wow that's one of the craziest stories I've heard/read. You're a good dog dad. I'm glad you survived! Also glad that this fix worked!

I made a renderer for the TCL, called Roku TV. It should work for any device using the Roku TV (codename Liberty) hardware. There's another iteration of the hardware for 4K TVs that won't be detected, are yours all 1080p? Here's a build with the new config https://www.universalmediaserver.com/up ... 125650.exe
Post Reply