Skip to content
New issue

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

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

Already on GitHub? # to your account

Error: "Uncaught DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The image element contains cross-origin data, and may not be loaded." on chrome browser #1

Open
musaby opened this issue Nov 29, 2018 · 1 comment

Comments

@musaby
Copy link

musaby commented Nov 29, 2018

Simplesoccer works on Firefox but I get the error in Chrome ( Mac OS X - Mojave * Chrome version:70.0.3538.102 )

WebSocket connection to 'wss://localhost:9193/' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

Uncaught DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The image element contains cross-origin data, and may not be loaded.
at d.WebGLRenderer.updateTexture (file:///Users/bilgisayarx/Desktop/simplesoccer-master/public/js/vendor.js:186:1237)
at d.WebGLSpriteBatch.renderBatch (file:///Users/bilgisayarx/Desktop/simplesoccer-master/public/js/vendor.js:186:17365)
at d.WebGLSpriteBatch.flush (file:///Users/bilgisayarx/Desktop/simplesoccer-master/public/js/vendor.js:186:17194)
at d.WebGLSpriteBatch.render (file:///Users/bilgisayarx/Desktop/simplesoccer-master/public/js/vendor.js:186:12379)
at c.Sprite.d.Sprite._renderWebGL (file:///Users/bilgisayarx/Desktop/simplesoccer-master/public/js/vendor.js:185:6856)
at c.World.d.DisplayObjectContainer._renderWebGL (file:///Users/bilgisayarx/Desktop/simplesoccer-master/public/js/vendor.js:185:3247)
at c.Stage.d.DisplayObjectContainer._renderWebGL (file:///Users/bilgisayarx/Desktop/simplesoccer-master/public/js/vendor.js:185:3247)
at d.WebGLRenderer.renderDisplayObject (file:///Users/bilgisayarx/Desktop/simplesoccer-master/public/js/vendor.js:185:31313)
at d.WebGLRenderer.render (file:///Users/bilgisayarx/Desktop/simplesoccer-master/public/js/vendor.js:185:30913)
at c.Game.updateRender (file:///Users/bilgisayarx/Desktop/simplesoccer-master/public/js/vendor.js:189:30424)

eric-therond added a commit that referenced this issue Nov 29, 2018
@eric-therond
Copy link
Owner

Hello
I have updated the readme, could you try this :

npm install -g brunch
brunch w --server

The application will be available at http://localhost:9192

Eric

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants