[r114] Component returned failure code: 0x80004005

0 favourites
  • 7 posts
From the Asset Store
5 levels with simple coding Source-code (.c3p) + HTML5 Exported
  • Javascript error!

    NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMCanvasRenderingContext2D.save]

    localhost/Text_plugin.js, line 163 (col undefined)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!

    Line: | Text:

    160     if (glmode)

    161     {

    162          myscale = this.layer.getScale();

    163          ctx.save();

    164          ctx.scale(myscale, myscale);

    165     }

    Source: dl.dropbox.com/s/kcfiupkyrfpkm2c/ScaleTestError.capx

    Browser: FireFox

    The error occurs when size of < 640px.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I ran your .capx and the green square expanded smoothly whilst pressing left mouse, and returned to normal when left mouse released. No error occurred.

    You should include the exact steps to re-create the error, or we're just shooting in the dark :)

  • Have you tried updating your graphics card drivers? This might be a driver bug the browser is running in to.

  • Error will occur if the window size is less than 640px!

  • I see it in that capx too. (only that capx)

    I tried the Capx, shrunk the browser to a small size and I get an error in Firefox and requires forced shutdown:

    ----

    Javascript error!

    NS_ERROR_FAILURE: Failure

    localhost/glwrap.js, line 1366 (col undefined)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!

    ---

    In Chrome, the browser goes black, no error. but will close down fine.

    In IE it works fine, as expected. (surprised me too.)

    My games size fine in all of them. My graphics card is up to date.

    Edit: just realized, the error says GL wrap, so no wonder IE works.

  • It seems to be from setting the layer scale too large. You're increasing the layer 1 scale as the window size shrinks. Just put 'on start of layout: set layer 1 scale to 100' and you get the same error. Maybe there should be some limit to layer scale?

    <img src="https://dl.dropbox.com/u/8367729/construct/pics/layerScaleFirefoxError.png" border="0" />

    <img src="https://dl.dropbox.com/u/8367729/construct/pics/layerScaleChromeError.png" border="0" />

  • Closing as it's a bug in your events. You literally have an event that says if the window width is less than 640, set the scale to ~100x (you include a * 100, which you probably put in by accident). Browsers can run out of memory using extreme scales.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)