Skip to content

Most of the examples crash or work incorrectly on Mac due to Pyglet issues #467

@ageitgey

Description

@ageitgey

Bug Report

Thanks for this cool library - it looks great and will be fun to play with!

I was trying it out on a Mac, but almost all the examples crashed or were unusable. However I believe it is not the fault of this library and is related to bugs in pyglet. Despite that, I thought it was worth at least documenting for other users since things aren't currently working as expected on Mac.

Actual behavior:

  1. Examples that set the window size via code will fail to resize the window. The window stays the default size. (Fixed by upgrading to Pyglet 1.4.2)
  2. In the resizeable_window example, the window can't be resized by the user. Grabbing a resize handle freezes or crashes the program.
  3. Any example programs using the mouse will map the mouse input to only the bottom left 1/4 of the window area instead of the whole window area. I believe this is because arcade asked Pyglet to resize the window and assumes it did, but it didn't actually happen which throws off the coordinate space calculations. (Fixed by upgrading to Pyglet 1.4.2)
  4. All examples segfault when you click the red "window close" button in the window toolbar.

I believe all of these issues are inter-related and due to pyglet/pyglet#5 - the root issue is that window resizes aren't working at all in Pyglet/PyCocoa on newer Macs.

Expected behavior:

  1. None of the above things should happen.

Steps to reproduce/example code:

  1. Run any of the example programs using python.org's Python 3.7.* builds on macOS 10.14 Mojave on a recent Macbook Pro and arcade 2.1.1 / pyglet 1.4.0b1.

Again, I believe the root cause is pyglet/pyglet#5 in pyglet and not the fault of this library. But unfortunately that means everything is currently broken on the Mac.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions