Error at start of "3D Drawing" Chapter 16

Just starting out the 16th Chapter of “Processing: A Programming Handbook for Visual Designers and Artists” and I ran into an error of sorts on the first example.

I am getting some red warnings and the program won’t run - except once I click the red exit icon on the window it will load very briefly before closing. See screenshots.

I am using Processing 3.5.4 on a 2015 MacBook Pro running OSX 11.5.1

Tried the usual tricks of restart, no external monitors, etc. Same result.

Ran the example “box” code from the reference as well and same problem.

I know the textbook is based off of the 2.0+ distro but the reference page has the same result as noted above. I get the same problem for every example in the chapter.

Here is the error:

||0   AppKit                              0x00007fff22c38261 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 352|
|---|---|
||1   AppKit                              0x00007fff22c22e32 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1296|
||2   AppKit                              0x00007fff22c2291b -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42|
||3   libnativewindow_macosx.jnilib       0x00000001339c23fe Java_jogamp_nativewindow_macosx_OSXUtil_CreateNSWindow0 + 398|
||4   ???                                 0x0000000113020a88 0x0 + 4613868168|

Any ideas on how to rectify this?

Thank you!


For what it’s worth this did not happen in Processing 4

Hello,

Take a look at this topic:

:)

1 Like

Thank you for the reply.

That trick of including frameRate(30); in the sketch did allow it to run though the error was still present in the console.

Good to keep this in mind!