Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blank sketch window on Mac #15

Closed
villares opened this issue Oct 10, 2017 · 4 comments
Closed

Blank sketch window on Mac #15

villares opened this issue Oct 10, 2017 · 4 comments

Comments

@villares
Copy link

Test script:

from p5 import *

def setup():
    size(640, 360)
    no_stroke()
    background(204)

def draw():
    if mouse_is_pressed:
        fill(random_uniform(255), random_uniform(127), random_uniform(51), 127)
    else:
        fill(255, 15)

    circle_size = random_uniform(low=10, high=80)

    circle((mouse_x, mouse_y), circle_size)

def key_pressed(event):
    background(204)

run()

Expected behavior:
First example on repository Read-me
Actual behavior
Window opens, but no drawing occurs
Errors produced (if any):
2017-10-09 21:39:53.023 Python[1582:13154] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/9t/v5g1f4f12cq4fylgk0kbr6200000gn/T/org.python.python.savedState
p5 version:
p5-0.3.0a2
Python version:
3.6.3
Operating System:
Mac OS 10.11.6 (El Capitan)
screen shot 2017-10-09 at 9 41 09 pm

@abhikpal
Copy link
Member

This looks like #10 again! Can you try running one of the test-sketches from that issue and see if you get similar results?

@villares
Copy link
Author

Hi @abhikpal it looks a bit different... no drawing at all...
screen shot 2017-10-12 at 5 38 13 pm

@abhikpal
Copy link
Member

Hmmm.. okay. This looks new. Let's see if more people can reproduce this.

@abhikpal abhikpal changed the title First example not drawing Blank sketch window on Mac Oct 13, 2017
@AJnsm
Copy link

AJnsm commented Nov 10, 2017

I get exactly the same: a blank window pops up, of the correct size, but no actual animation. However, for me the window that pops up is pure black. mouse_x and _y print out fine and update continuously. Changing background() has no effect. frame_count and focused both give the expected and correct output.

Expected behavior:
First example on repository Read-me
Actual behavior
Pure black window opens, but no drawing occurs
Errors produced (if any):
2017-11-10 13:00:04.885 Python[3607:62148] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/3s/txf6jjfn1hl0y_qz_lqdkkc00000gp/T/org.python.python.savedState
p5 version:
p5-0.3.0a2
Python version:
3.6.3
Operating System:
Mac OS 10.11.6 (El Capitan)

UPDATE: The "error" message disappeared for me after running the command mentioned in this thread: https://stackoverflow.com/questions/18733965/annoying-message-when-opening-windows-from-python-on-os-x-10-8
However, all the other behaviour is still the same.

@abhikpal abhikpal added this to the Pre-VisPy release milestone Jun 5, 2018
@abhikpal abhikpal self-assigned this Jun 5, 2018
@abhikpal abhikpal modified the milestones: Pre-VisPy release, Port backend to VisPy Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants