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.
IndexProgramming Questions & HelpIntegration › Java/CGContextFlush problem
Page Index Toggle Pages: 1
Java/CGContextFlush problem (Read 611 times)
Java/CGContextFlush problem
Mar 3rd, 2008, 5:00pm
 
Hi,

I've written a Processing sketch that works fine as an application, but when I make it into an embedded Java applet it just displays a blank screen. I've looked at my Console (I'm using a Mac) and notice this message:
Mar  3 15:50:30 macs-mac-mini

/Applications/Firefox.app/Contents/MacOS/firefox-bin: CGContextFlush: invalid context

Does anyone know what I'm doing wrong here? Any help appreciated - I'm new to Processing!

The only library I'm using is proXML...

Phil
Re: Java/CGContextFlush problem
Reply #1 - Apr 30th, 2008, 4:59am
 
I am having a similar message here
http://dmtr.org/syntype/
The applet is usingControlP5 library.
first it was not running inside a browser because of missing public variable declaration.

now it runs here and throws this message:
4/29/08 11:56:07 PM [0x0-0x19d19d].com.apple.Safari[5789] Tue Apr 29 23:56:07 Katana.local Safari[5789] <Error>: CGContextFlush: invalid context

People notified me it crashed some browsers too.
Re: Java/CGContextFlush problem
Reply #2 - Apr 30th, 2008, 1:18pm
 
crashes safari and firefox here on my macbook pro immediately. flying over this technote lets me guess that it might be a drawing vs. update issue such as Over-flushing or Extended Drawing Interval as described in the technote (i didnt go through it in detail). maybe you have some code to look at (if not too big) controlP5 applets work fine for me here though, without any crash.
best,
andi
Page Index Toggle Pages: 1