Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Julien-Lynge · Mar 25, 2013 at 09:40 PM · buildwebplayercrossdomaincrossdomain.xml

SocketPolicyClient error w/ Mac Webplayer

I'm getting the following error with the mac webplayer running in Safari. It outputs the same error message over and over again (this is in Player.log), each time incrementing the number after SocketPolicyClient by 1. Eventually it'll get into the thousands:

 SocketPolicyClient1: Incoming GetPolicyStreamForIP
 SocketPolicyClient1: About to BeginConnect to 127.0.0.1:843
 SocketPolicyClient1: About to WaitOne
 SocketPolicyClient1: Caught exception: Connection refused
 Unable to connect, as no valid crossdomain policy was found
 null packet
 SocketPolicyClient2: Incoming GetPolicyStreamForIP
 SocketPolicyClient2: About to BeginConnect to 127.0.0.1:843
 SocketPolicyClient2: About to WaitOne
 SocketPolicyClient2: Caught exception: Connection refused
 Unable to connect, as no valid crossdomain policy was found
 null packet

According to the docs, port 843 is where the webplayer tries to fetch crossdomain.xml, so obviously it's stuck in some kind of infinite loop looking for the security policy for localhost. As far as I know we're not doing any weird proxying on the local machine, and no other process appears to be using that port.

Timing wise, it does this right after making a call to our search core:

 Search http://neis.fragileearthstudios.com:8080/neiscoreSolr/rest/search?q=*&start=0&rows=23&wt=json&facet=true&facet.field=tags&facet.field=server&facet.field=period&facet.field=status  begun at 2013-03-25 14:39:02.536

However, that site has a valid crossdomain: http://neis.fragileearthstudios.com/crossdomain.xml . It's entirely possible that the search bit is just coincidence - about 2 dozen different things are going on at that time as the application initializes various things.

We don't see this issue in Windows at all.

I'm going to submit this as a bug directly to Unity, but wanted to put it out there in case other people have seen something like this and it was due to user error.

Thanks!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Graham-Dunnett · Mar 25, 2013 at 09:55 PM

There are two related, but different things here:

a) crossdomain.xml which is a file issued by a web server when it accepts HTTP traffic.

b) A socket policy file, which is served on port 843, and is used to allow the webplayer to make socket connections to a server. A webserver is not used to serve this file.

These things do get frequently muddled up. If you are using the WWW class, then you'll need to use (a). If you are using sockets, then (b).

Your server does have a cross domain xml file on it, I was able to fetch it using curl. The errors you get come from the socket policy stuff, so I assume you're using sockets. I wasn't able to use telnet as per the docs to fetch the socket policy file, however. Note that the socket policy file isn't crossdomain.xml.

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Julien-Lynge · Mar 25, 2013 at 09:59 PM 0
Share

Thanks for your answer! Apparently I was misreading the docs - you're right in that 843 is only for socket issues.

However, we are not in fact using sockets anywhere. Additionally, this wouldn't explain why we have no issues with the Windows webplayer while we are stuck in some kind of infinite loop on $$anonymous$$ac webplayer.

Any other ideas?

avatar image Julien-Lynge · Mar 25, 2013 at 10:12 PM 0
Share

BTW, I have to apologize. After your post, I did a search through our code, and apparently our touch screen library (UniTUIO) does use sockets. I'm going to do a bit more investigation and let you know if I figure out anything else.

avatar image Julien-Lynge · Mar 25, 2013 at 10:35 PM 0
Share

Well, sure enough it appears to be caused by the touch screen library. Now at least we have something to go on in trying to track this down. Thanks Graham!

avatar image Graham-Dunnett ♦♦ · Mar 26, 2013 at 05:07 AM 0
Share

:-) Glad to have helped in a tiny way.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

11 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Yet another case of Unity Web Player Crossdomain.xml troubles 5 Answers

Distribute terrain in zones 3 Answers

Crossdomain policy problem. 2 Answers

Security.PrefetchSocketPolicy problem. 0 Answers

Is it possible to build each scene separately? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges