# Error at start of "3D Drawing" Chapter 16

**URL:** <https://discourse.processing.org/t/error-at-start-of-3d-drawing-chapter-16/34497>\
**Category:** Processing\
**Created:** [January 7, 2022, 5:39am UTC](https://discourse.processing.org/t/error-at-start-of-3d-drawing-chapter-16/34497 "2022-01-07T05:39:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![CaseyJ](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/caseyj/32/15118_2.png) [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Post date:** [January 7, 2022, 5:39am UTC](https://discourse.processing.org/t/error-at-start-of-3d-drawing-chapter-16/34497/1 "2022-01-07T05:39:29Z")

</div>

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](https://processing.org/reference/box_.html)” 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:

```auto
||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!

 ![Screen Shot 2022-01-06 at 10.25.19 PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/b1bbb3d8bd3bf8c797f7a7f222a99ba7a9c81a31.png)  
 ![Screen Shot 2022-01-06 at 10.30.25 PM (2)](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/600e58ee1202e4e6ac13159416db8bde93da2f92.png)

---

<div class="post-metadata">

**Author:** ![CaseyJ](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/caseyj/32/15118_2.png) [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Post date:** [January 7, 2022, 6:04am UTC](https://discourse.processing.org/t/error-at-start-of-3d-drawing-chapter-16/34497/2 "2022-01-07T06:04:23Z")

</div>

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

 ![Screen Shot 2022-01-06 at 11.03.33 PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/d/d6b5cdfb84efdb0613fb2c3de820804745be5f62.jpeg)

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [January 9, 2022, 2:54am UTC](https://discourse.processing.org/t/error-at-start-of-3d-drawing-chapter-16/34497/3 "2022-01-09T02:54:25Z")

</div>

Hello,

Take a look at this topic:

> [@Big Sur and new Macs](https://discourse.processing.org/t/big-sur-and-new-macs/25374/5):
>
> A blank screen while using processing on Big Sur happens on older machines as well, not just M1. For myself it affected P3D programs. A user on the Github site has indicated that including frameRate will let the screen display normally. I have tested this with several P3D examples myself.

`:)`

---

<div class="post-metadata">

**Author:** ![CaseyJ](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/caseyj/32/15118_2.png) [@CaseyJ](https://discourse.processing.org/u/CaseyJ)\
**Post date:** [January 14, 2022, 11:54pm UTC](https://discourse.processing.org/t/error-at-start-of-3d-drawing-chapter-16/34497/4 "2022-01-14T23:54:04Z")

</div>

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!
