Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1 #331
I want to use your plugin to make a "screenshot" from my mobile device.
We use Cordova 3.1 and we want to take a "Screenshot" of the displayed HTML Application.
On some Android devices (e.g. Nexus 4) the html2Canvas is working great! (Android 4.4 installed)
On an Samsung GT-I9100G (Android 4.1) or on an Samsung GT-S7562 (Android 4.0) I get an error (see below).
Does anyone have an idea, where this could come from and how I could fix this?
Hmm, well, I just capture the screen without any special settings, so the default resolution of the device should be used (as far as I did understand the documentation correctly).
So a shot with 320 x 480 Pixel (or 640 x 960 Pixel for Retina) is already too large for a canvas?
Hmm, I don't think that this can really be the problem...
And the same code works for an Android 4.4 device with a larger screen then the iPhone or the other Android 4.1 devices. So it can't be an issue concerning only the resolution or size of DOM-elements.
Or am I understanding something wrong?
I had the same problem on Cordova (Android); the fix for #183 indeed fixed it for me. However, please note that the latest tag has a build directory which corresponds to an outdated version which does not have this fix. This is also the version that you'll get when using Bower or NPM. So you'll need to build it yourself.