jaredks / rumps

Ridiculously Uncomplicated macOS Python Statusbar apps
BSD 3-Clause "New" or "Revised" License
3.09k stars 179 forks source link

Segmentation fault if menu is clicked while alert is visible #175

Open rupertleveneucd opened 2 years ago

rupertleveneucd commented 2 years ago

On OS X 10.13, the following gives me a segfault.

import rumps

class BarApp(rumps.App):
    @rumps.clicked("Test")
    def test(self, _):
        rumps.alert("Now click BarApp twice, then click OK.\nResult: segfault")

BarApp("BarApp").run()

To reproduce:

  1. Select BarApp -> Test on the BarApp menu.
  2. An alert box appears. Without dismissing the alert, click BarApp twice in the menu bar. The menu appears after the first click (with all menu items disabled, strangely), and is then dismissed after the second click.
  3. Click OK in the alert box to get Segmentation fault: 11.

Changing rumps.alert to rumps.window gives the same behaviour.

WGandy commented 2 years ago

I'm getting a segmentation fault 11 just by importing rumps. Macos Mojave Python 3.9 installed via homebrew

daredoes commented 2 years ago

Are these Intel or M1 chips?

rupertleveneucd commented 2 years ago

I'm on Intel.