# P2D, P3D only show grey screen -- until java window is closed

**URL:** <https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370>\
**Category:** Processing\
**Created:** [April 15, 2021, 1:47am UTC](https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370 "2021-04-15T01:47:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![willowisp](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@willowisp](https://discourse.processing.org/u/willowisp)\
**Post date:** [April 15, 2021, 1:47am UTC](https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370/1 "2021-04-15T01:47:45Z")

</div>

When I’m trying to use P2D or P3D rendering, only a blank, grey screen is shown.

This is the simplest code I could come up with to illustrate the problem:

```auto
size(200, 200, P2D);
background(0);

```

Expected output is a black background, but instead, there is a grey one:  
 ![Grey Screen](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/7/7a674c2b52560890d3300970ef68ddca0a4b01ce.png)

When I close the sketch (using the ‘x’ button (which is in red in the above screenshot)), the correct output flashes in the fraction of a second before the window closes.

This is happening in any sketch where I use P2D or P3D instead of the default renderer.

I’m using Processing 3.5.4 (on macOS 12.2.3, if that is somehow relevant). I’ve tried unistalling/reinstalling processing (as well as restarting my machine).

Is anyone else having this problem? I would appreciate any advice.

I was thinking about opening an issue on github for this, but I want to make sure it is actually a problem, and not something that is just a problem on my end.

---

<div class="post-metadata">

**Author:** ![micuat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micuat/32/19407_2.png) [@micuat](https://discourse.processing.org/u/micuat)\
**Post date:** [April 15, 2021, 1:51pm UTC](https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370/2 "2021-04-15T13:51:05Z")

</div>

Hi! That sounds strange. Did the code work as expected before? Did the OS upgrade recently?

---

<div class="post-metadata">

**Author:** ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)\
**Post date:** [April 15, 2021, 2:49pm UTC](https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370/3 "2021-04-15T14:49:55Z")

</div>

I wonder if this is related to the similar issue discussed in [Problems with P2D and P3D renderers with new Apple M1 processor](https://discourse.processing.org/t/problems-with-p2d-and-p3d-renderers-with-new-apple-m1-processor/27287) ? Maybe try the `frameRate(..)` “fix” if you haven’t.

---

<div class="post-metadata">

**Author:** ![RetProf](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@RetProf](https://discourse.processing.org/u/RetProf)\
**Post date:** [April 15, 2021, 4:20pm UTC](https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370/4 "2021-04-15T16:20:21Z")

</div>

Did you mean mac OS 11.2.3 ??

---

<div class="post-metadata">

**Author:** ![willowisp](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@willowisp](https://discourse.processing.org/u/willowisp)\
**Post date:** [April 15, 2021, 6:17pm UTC](https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370/5 "2021-04-15T18:17:51Z")

</div>

This worked. Thank you! Sorry that I missed that thread when looking earlier!

---

<div class="post-metadata">

**Author:** ![willowisp](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@willowisp](https://discourse.processing.org/u/willowisp)\
**Post date:** [April 15, 2021, 6:22pm UTC](https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370/6 "2021-04-15T18:22:50Z")

</div>

And yes, I did mean 11.2.3. A quote for context from the other thread (for the convenience of people finding this in the future).

> [@Problems with P2D and P3D renderers with new Apple M1 processor](https://discourse.processing.org/t/problems-with-p2d-and-p3d-renderers-with-new-apple-m1-processor/27287/4):
>
> So this issue appears to be the result of the new macOS 11.1 and since the current stable release of the Processing IDE for the Mac is 10.13 - those who have or plan to acquire a new Apple product that will use the OS 11.1 - may encounter this issue and hopefully a fix will appear in the 4.0 version of Processing is released.

---

<div class="post-metadata">

**Author:** ![RetProf](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@RetProf](https://discourse.processing.org/u/RetProf)\
**Post date:** [April 15, 2021, 9:13pm UTC](https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370/7 "2021-04-15T21:13:09Z")

</div>

Thank you for the clarification. Adding the frameRate(xx); command to “setup” should help you test/run this sketch in the IDE but if you experience is similar to mine, you will not be able to export an app that runs. I haven’t spent much time trying to resolve this issue and until they release a version of Processing that is compatible with OS 11.x.x, it may remain a problem.

---

<div class="post-metadata">

**Author:** ![philipplehmann](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/philipplehmann/32/4111_2.png) [@philipplehmann](https://discourse.processing.org/u/philipplehmann)\
**Post date:** [August 3, 2021, 3:14pm UTC](https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370/8 "2021-08-03T15:14:01Z")

</div>

Is there any news regarding this topic?  
Has anyone exported an functional P3D app for / on a M1 processor?

Best Philipp

---

<div class="post-metadata">

**Author:** ![RetProf](https://avatars.discourse-cdn.com/v4/letter/r/9fc29f/32.png) [@RetProf](https://discourse.processing.org/u/RetProf)\
**Post date:** [August 3, 2021, 9:59pm UTC](https://discourse.processing.org/t/p2d-p3d-only-show-grey-screen-until-java-window-is-closed/29370/9 "2021-08-03T21:59:43Z")

</div>

Philipp,

I have not been working with Processing since I got the new Mac - partly because of this problem. I have been working with C++ and OpenFrameworks… but was recently informed that there is a beta version of Processing in development that is intended to support the M1 processor. Eventually I will do more with Processing so I hope that is the case!
