We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexSuggestions & BugsSoftware Bugs › Nasty basic mode bug (sorry can't access BugsDB)
Page Index Toggle Pages: 1
Nasty basic mode bug (sorry can't access BugsDB) (Read 2482 times)
Nasty basic mode bug (sorry can't access BugsDB)
Oct 18th, 2007, 8:10pm
 
Hello,

I have just downloaded Processing 129, having previously used version 125.  In 129, for me no graphics work in basic mode (without methods).  Console output is functional (e.g. println()), and background() works, but that's it - no other graphics.  

This is as true of the included Processing examples as my own scripts!  All Processing examples in basic mode have nonfunctional graphics.  This is NOT true of the setup() and draw() methods:  these work fine.  In order to make any graphics function, I have to include a "void setup() {}" function and then package my code inside a draw() function.  So, to reiterate - basic mode is broken.

Re: Nasty basic mode bug (sorry can't access BugsD
Reply #1 - Oct 18th, 2007, 10:11pm
 
what happens if you put a basic mode app inside setup()? (and nothing in draw())

what sort of system are you on, etc?

what do you mean by "no graphics work"? no window comes up? the window isn't the right size? the windows the right size but empty?
Re: Nasty basic mode bug (sorry can't access BugsD
Reply #2 - Oct 18th, 2007, 10:26pm
 
Hello,

Let's use one of the Processing Example sketches - I've loaded up Basics -> Control -> Conditionals1.  

The size() and background() statements work:  When I run this sketch, a 200x200 window pops up with background set to 0 (or any value I type in).  So far so good.  If I were to put a statement such as print("Hello!") at the end of this sketch, this would function correctly as well.  However, the 200x200 window does nothing more:  no graphics are displayed inside it.

If I encapsulate the Conditionals1 code inside the setup() function, using a blank draw() function beneath it, then the result is the same:  a properly sized window appears with proper background, but no further graphics.

If I instead use a blank setup() function and encapsulate the Conditionals1 code inside the draw() function, then everything works perfectly.  

As a side note, one of the Processing example sketches probably needs a change:  Basics -> Color -> Colorwheel does not include a draw() function, hence won't display anything (I believe the FAQ says that Processing in methods mode requires a draw() function).

Thanks!

Re: Nasty basic mode bug (sorry can't access BugsD
Reply #3 - Oct 18th, 2007, 10:33pm
 
System notes:

Platform:  Windows XP Pro SP2, Celeron 2 GHz, 1GB ram, 50GB hard drive, standard Intel graphics chipset (no acceleration).  

Java incarnation:  Java development kit & runtime environment 6, build 1.6.0-b105, with Java media framework 2.1.1e installed.  

Processing 125 works fine; I'm trying 127 to see how that functions...
Re: Nasty basic mode bug (sorry can't access BugsD
Reply #4 - Oct 18th, 2007, 10:36pm
 
Interesting!   Processing 127 works perfectly! No issues.

Re: Nasty basic mode bug (sorry can't access BugsD
Reply #5 - Oct 18th, 2007, 11:25pm
 
scitoast wrote on Oct 18th, 2007, 10:36pm:
Interesting!   Processing 127 works perfectly! No issues.

yep, that's what i meant by "This release contains major changes to how size() is handled. It fixes two major bugs, but because size() is so fundamental, it may cause problems on other systems." Wink

i can't reproduce your problem on any of my machines, but i don't doubt it was introduced w/ the changes in 0128.
Re: Nasty basic mode bug (sorry can't access BugsD
Reply #6 - Oct 18th, 2007, 11:33pm
 
On the offchance this might be an issue with Java 6 (big and slow), I erased all java packages (JRE & JDK), then rebooted.  I downloaded Processing 129 with included java...unfortunately, this has not changed anything.  I'm going to try a different system and see if that makes a difference.

Cheers (and, at the end of the day, Processing is absolutely brilliant)
Re: Nasty basic mode bug (sorry can't access BugsD
Reply #7 - Oct 20th, 2007, 2:05pm
 
found and fixed for 0130, online shortly.
Page Index Toggle Pages: 1