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 7410233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:12:16+00:00 2026-05-29T06:12:16+00:00

I keep getting some weird error in Processing, using the following tiny piece of

  • 0

I keep getting some weird error in Processing, using the following tiny piece of code:

void setup() {
  size(200,200);
}

void draw() {
  background(0);
  loadPixels();
  updatePixels();
}

The error: (with stack trace)

    Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (-1) and height (-1) cannot be <= 0
    at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
    at java.awt.image.BufferedImage.<init>(BufferedImage.java:357)
    at sun.lwawt.macosx.CImage$Creator.createFromImage(CImage.java:101)
    at sun.lwawt.macosx.CPlatformWindow.getImageForTarget(CPlatformWindow.java:693)
    at sun.lwawt.macosx.CPlatformWindow.updateIconImages(CPlatformWindow.java:519)
    at sun.lwawt.macosx.CPlatformWindow.setVisible(CPlatformWindow.java:484)
    at sun.lwawt.LWWindowPeer$1.run(LWWindowPeer.java:260)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
    at java.awt.EventQueue.access$000(EventQueue.java:101)
    at java.awt.EventQueue$3.run(EventQueue.java:666)
    at java.awt.EventQueue$3.run(EventQueue.java:664)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:240)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:142)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:134)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Now at first I thought this was a bug, because there previously was another bug that disappeared when I restarted Processing. It seems it still doesn’t have good Mac OS X Lion support (that’s what I’m using). But I tried both the stable release and the prerelease and both have the same error. Has anyone else gotten this? Does anyone know how to fix it? Do I need to install a better JDK or something?

  • 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-29T06:12:17+00:00Added an answer on May 29, 2026 at 6:12 am

    Oddly enough it started working fine after a couple of restarts. It’s weird and I don’t know why it behaved like that. Anyways, it works now.

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

Sidebar

Related Questions

I keep getting the following error when trying to parse some html using BeautifulSoup:
I'm running some code through JSHint and I keep getting the following error: Don't
I keep getting this error while trying to modify some tables. Here's my code:
I am having some issues with my code, and keep getting the same error,
im getting a weird error using this code (part of a class): from sys
I have the following code and keep getting the error: AttributeError: 'NoneType' object has
I keep getting Clang errors on the following type of code and I can't
i keep getting this and nothin is helpful can some one solve this error
I am using protobuf now for some weeks, but I still keep getting exceptions
Been working on this query for some time now... Keep getting the error Corrosponding

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.