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

  • Home
  • SEARCH
  • 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 9001475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:26:30+00:00 2026-06-16T00:26:30+00:00

A relatively simple Processing script fails in both the 2.0 IDE’s Javascript mode and

  • 0

A relatively simple Processing script fails in both the 2.0 IDE’s Javascript mode and in browsers (via Processing.JS) for reason unknown. I’m pretty sure the same problem is stopping both methods. I’ve isolated a line that causes the failure and illustrated in the following pages:

  • Test1.html is a cut-down version of the project script that works
  • Test2.html demonstrates how Test1 fails when a single extra command is called (line 93), although it works fine in IDE’s Java mode. The offending line only seeks to re-print info that was already successfully printed in void setup(){}, hence my confusion.

All scripts are viewable here but the key line in Test2.pde is in void drawLinks().

Any idea what is causing this? I’ve wasted so many hours on this now! Its possible to just copy/paste the Test2.pde script into a new Processing 2.0 IDE to play around with it in Java and Javascript modes..

  • 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-06-16T00:26:31+00:00Added an answer on June 16, 2026 at 12:26 am

    It seems to be a problem with ProcessingJS’s version of ArrayList. While it is specified properly there seems to be a bug with the constructor that accepts an initialCapacity in it. A quite recent bug report also shows this.

    tl;dr: Remove the variable n from the creation of the arrayList in line 65,

    this.links = new ArrayList<Link>(n);
    

    should become:

    this.links = new ArrayList<Link>();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a relatively simple HTML / JavaScript form. Such as this: <form method='POST'
I have a relatively simple class which deletes a post: function delete_post($postid, $reason){ //Stuff
I am relatively new to Javascript so I'm hoping this is a simple mistake.
I coded a relatively simple script using python and also wrote doc strings for
I've created a simple page for processing three forms via jquery/ajax. Everything functions properly,
Good day, I am writing a relatively simple BASH script that performs an SVN
I have written some relatively simple jQuery plug-ins, but I am contemplating writing something
I have a relatively simple object with a method that makes an HTTP request.
I have a relatively simple question. Will using PHP guarantee that a form is
This is a relatively simple question, but I haven't been able to find a

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.