Skip to content

Commit e745c3d

Browse files
committed
update warning
1 parent 4a64c4e commit e745c3d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py5_resources/py5_module/py5/macos_problem.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def enable_safety_check():
5252

5353
MESSAGE = """Sorry, but you can't use an OpenGL renderer in your Sketch right now. Doing so might cause Python to crash.
5454
55-
Here's the problem: On macOS machines with Intel CPUs and/or older macOS versions, py5 seems to crash when you use an OpenGL renderer in an IPython or Jupyter session if the first Sketch run in that Python session used the default (JAVA2D) renderer. Sorry if that sounds crazy. This is an unfortunate side effect of an important code change that significantly improved py5 for all macOS users.
55+
Here's the problem: On macOS machines with Intel CPUs and/or older macOS versions, this version of py5 seems to crash when you use an OpenGL renderer in an IPython or Jupyter session if the first Sketch run in that Python session used the default (JAVA2D) renderer. Sorry if that sounds crazy. This is an unfortunate side effect of an important code change that significantly improved py5 for all macOS users.
5656
5757
The root issue is somewhere in native macOS code that Processing and py5 both depend on. Hopefully in the future we will find a real fix or a better workaround.
5858
@@ -84,8 +84,8 @@ def enable_safety_check():
8484
If the above test code does cause Python to crash on your machine, it's OK. If you really need to mix Java2D and OpenGL renderers together in one Python session, you just need to make sure that the first executed Sketch is always an OpenGL Sketch. For convenience, you can use the following code to open a quick Sketch right after importing py5. This will ensure the first Sketch is always an OpenGL Sketch, eliminating the problem (and this warning) entirely:
8585
8686
import py5
87-
8887
from py5 import test
88+
8989
test.test_p2d()
9090
9191
If you'd like to read about our progress understanding this issue, please visit the above GitHub issue thread.

0 commit comments

Comments
 (0)