load_image_from URL and/or Webgl issue

Bugs will be moved here once resolved.

Post » Sat Sep 17, 2016 10:46 pm

Problem Description
I've noticed this since my last update to 233. I load images from URL into a sprite to save on download size. This has now become problematic. When I ran my programme using Internet Explorer 11, i got an error from the console complaining about a security error in glwrap.js (line 2127, col 4). In this scenario, if i disable webgl, the image loads correctly into the sprite.

When I was trying to replicate this bug in other browsers, i discovered that I could not get the image to load into the sprite with webgl enabled or disabled.

Attach a Capx
http://149.157.140.178/testcase/capx/image_import.capx

Description of Capx
single sprite which loads an image upon startup. image hosted on a website of mine.
sprite is rotated 10 degrees each second, just as a check to prove the programme is running

Steps to Reproduce Bug
  • load capx
  • run capx

Observed Result
with IE11 without webgl, the image is correctly loaded
with IE11 with webgl enabled, there is a browser warning of a security error in glwrap
with Firefox 48.02 with webgl enabled and not, the image is not loaded
with EDGE 38.14393 with webgl enabled and not, the image is not loaded

Expected Result
image of a yellow sun replaces black box and is rotated

Affected Browsers
  • Chrome: (didn't test)
  • FireFox: (YES)
  • Internet Explorer: (YES)
  • Edge: (YES)

Operating System and Service Pack
windows 10 professional (v1607)

Construct 2 Version ID
233 64bit
B
7
S
3
G
1
Posts: 184
Reputation: 1,352

Post » Fri Sep 23, 2016 12:52 pm

Closing as not a bug: your server is not configured to share images cross-domain. In fact there is an error message in the browser console explaining this:

Image from origin 'http://149.157.140.178' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:50000' is therefore not allowed access.
Scirra Founder
B
395
S
233
G
88
Posts: 24,376
Reputation: 193,842

Post » Sun Sep 25, 2016 9:35 pm

sorry.. missed that..
B
7
S
3
G
1
Posts: 184
Reputation: 1,352

Post » Sun Apr 30, 2017 3:22 pm

@ashley
how to configure a server to share images cross-domain ?
is this something with the .htaccess file ?
B
45
S
16
G
8
Posts: 792
Reputation: 8,306


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests