Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7568971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:03:50+00:00 2026-05-30T15:03:50+00:00

For some reason Safari on iPad is throwing an error when I draw an

  • 0

For some reason Safari on iPad is throwing an error when I draw an image as follows:

INDEX_SIZE_ERR:DOM Exception 1: Index or size was negative, or greater than the allowed value

var img = new Image;
img.src = node.data.userimg;
ctx.drawImage(img, 20, 20, 38, 38);

where node.data.userimg is a URL to a twitter profile icon. This error is not thrown in normal desktop browsers. Originally these imgs were drawn at a dynamic point in relation to the node object but even setting them statically at 20, 20 is still throwing this error. Can iPad’s Safari not scale images without throwing this error? The images all seem to still draw in correctly if a bit slowly on most draw calls. I fear it might just be a performance issue since so much is being drawn on the canvas (a graph representing cities and associated tweets when clicked/touched).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:03:52+00:00Added an answer on May 30, 2026 at 3:03 pm

    Maybe these links help you …

    there is a chance that you get negative values… or that the image has not loaded before you want to draw it…

    Both cases are not much liked by the canvas…

    http://blog.ryanrampersad.com/2010/06/04/index_size_err-dom-exception-1-html-canvas/
    Canvas: JavaScript Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1

    Uncaught Error: INDEX_SIZE_ERR

    HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason, when you apply a background image to a tr in Safari
I have jQuery Mobile on iPad Safari and for some reason touch swipe events
For some unknown reasons, iPad Safari doesn't display a really long background image. In
For some reason http://shirazraqs.com is causing mobile Safari to crash. I've never seen anything
For some reason this basic JS to detect the browser's resolution works in Safari
I having trouble getting append() to work in safari for some reason, but it
I am using Typekit to load the league-gothic font and for some reason Safari
For some reason my site displays a Cannot display this message error in those
For some reason this page won't work in Opera + Safari http://dev.reggi.com/clients/mike2/ this is
For some reason, this code works all chrome, safari, and ei but not on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.