ianyh / Amethyst

Automatic tiling window manager for macOS à la xmonad.
https://ianyh.com/amethyst/
MIT License
14.81k stars 487 forks source link

Amethyst Crash #1015

Open thomasdziedzic-pd opened 4 years ago

thomasdziedzic-pd commented 4 years ago

Describe the bug Amethyst crashes while running in the background.

Applications: I had firefox, slack, and spotify running.

To Reproduce Run amethyst and eventually it will crash with the above applications.

Expected behavior To not crash.

Screenshots Not applicable.

Versions:

Debug Info

$ /Applications/Amethyst.app/Contents/MacOS/Amethyst --debug-info
Version: 0.15.3 (88)

OS version: Version 10.14.6 (Build 18G4032)

Has permissions: true

Screens:
    (0.0, 0.0, 1440.0, 900.0) [(0.0, 0.0, 1440.0, 900.0)]
    (-3008.0, 288.0, 3008.0, 1692.0) [(-3008.0, -1080.0, 3008.0, 1692.0)]

Manageable applications:
    talagent (com.apple.talagent)
    ViewBridgeAuxiliary (com.apple.ViewBridgeAuxiliary)
    Finder (com.apple.finder)
    ViewBridgeAuxiliary (com.apple.ViewBridgeAuxiliary)
    1Password 7 (com.agilebits.onepassword7)
    storeuid (com.apple.storeuid)
    Firefox (org.mozilla.firefox)
    Slack (com.tinyspeck.slackmacgap)
    Preview (com.apple.Preview)
    DocumentPopoverViewService (Preview) (com.apple.appkit.xpc.documentPopoverViewService)
    com.apple.appkit.xpc.openAndSavePanelService (Preview) (com.apple.appkit.xpc.openAndSavePanelService)
    Spotify (com.spotify.client)
    com.apple.appkit.xpc.openAndSavePanelService (Slack) (com.apple.appkit.xpc.openAndSavePanelService)
    Console (com.apple.Console)
    Simulator (com.apple.CoreSimulator.SimulatorTrampoline)
    com.apple.CoreSimulator.CoreSimulatorService (com.apple.CoreSimulator.CoreSimulatorService)
    iTerm2 (com.googlecode.iterm2)

Configuration:
restore-layouts-on-launch: 1
window-minimum-width: 0
screen-padding-top: 0
layouts: (
    tall,
    wide,
    fullscreen,
    column
)
window-margin-size: 5
floating: (
)
mod1: (
    option,
    shift
)
new-windows-to-main: 0
window-minimum-height: 0
screen-padding-bottom: 0
debug-layout-info: 0
window-resize-step: 5
screen-padding-right: 0
screen-padding-left: 0
window-margins: 0
use-canary-build: 0
follow-space-thrown-windows: 1
ignore-menu-bar: 0
mouse-follows-focus: 0
mod2: (
    option,
    shift,
    control
)
floating-is-blacklist: 1
enables-layout-hud-on-space-change: 1
enables-layout-hud: 1
float-small-windows: 0
focus-follows-mouse: 0

Additional context Attached the crash log: Amethyst_2020-05-08-145221_Thomas-Dziedzics-MacBook-Pro.txt

yvgny commented 4 years ago

I have the same problem and the crashes are very frequent. Seems linked to #1014 too.

Here is my debug info:

Version: 0.15.3 (88)

OS version: Version 10.14.6 (Build 18G3020)

Has permissions: true

Screens:
    (0.0, 0.0, 1440.0, 900.0) [(0.0, 0.0, 1440.0, 900.0)]

Manageable applications:
    Firefox (org.mozilla.firefox)
    talagent (com.apple.talagent)
    Finder (com.apple.finder)
    ViewBridgeAuxiliary (com.apple.ViewBridgeAuxiliary)
    CalNCService (com.apple.CalendarNotification.CalNCService)
    SiriNCService (com.apple.SiriNCService)
    Notes QuickLook Extension (Spotlight) (com.apple.Notes.QuickLookExtension)
    Parallels Desktop (com.parallels.desktop.console)
    QuickLookUIService (Spotlight) (com.apple.quicklook.QuickLookUIService)
    Typora (abnerworks.Typora)
    QuickLookUIService (Finder) (com.apple.quicklook.QuickLookUIService)
    Spotify (com.spotify.client)
    Atom (com.github.atom)
    Rappels (com.apple.reminders)
    BTTRelaunch (com.hegenberg.BTTRelaunch)
    Legacy Color Picker Extensions (BetterTouchTool) (com.apple.appkit.xpc.LegacyExternalColorPickerService)
    storeuid (com.apple.storeuid)
    Simulator (com.apple.CoreSimulator.SimulatorTrampoline)
    com.apple.CoreSimulator.CoreSimulatorService (com.apple.CoreSimulator.CoreSimulatorService)
    ViewBridgeAuxiliary (com.apple.ViewBridgeAuxiliary)
    iTerm2 (com.googlecode.iterm2)

Configuration:
mouse-swaps-windows: 1
window-margin-size: 15
follow-space-thrown-windows: 1
restore-layouts-on-launch: 1
debug-layout-info: 0
floating-is-blacklist: 1
mouse-resizes-windows: 1
mod1: (
    option,
    shift
)
mod2: (
    option,
    shift,
    control
)
screen-padding-right: 0
screen-padding-top: 0
screen-padding-left: 0
float-small-windows: 1
window-margins: 1
window-resize-step: 5
mouse-follows-focus: 1
ignore-menu-bar: 0
enables-layout-hud: 1
window-minimum-width: 0
floating: (
        {
        id = "com.apple.systempreferences";
        "window-titles" =         (
        );
    },
        {
        id = "com.apple.iCal";
        "window-titles" =         (
        );
    },
        {
        id = "org.m0k.transmission";
        "window-titles" =         (
        );
    }
)
enables-layout-hud-on-space-change: 0
focus-follows-mouse: 0
layouts: (
    tall,
    wide,
    fullscreen,
    column,
    bsp,
    floating
)
screen-padding-bottom: 0
window-minimum-height: 0
new-windows-to-main: 0
use-canary-build: 0

And the crash log: Amethyst_2020-04-21-101333.txt

shanecp commented 4 years ago

Can confirm frequent crashes. Is it possible to add an opt-in feature to create a crash log?

Version: 0.15.3 (88)

OS version: Version 10.15.5 (Build 19F101)

Has permissions: false

Screens:
    (0.0, 0.0, 1920.0, 1080.0) [(0.0, 0.0, 1920.0, 1080.0)]
    (1920.0, 0.0, 1920.0, 1080.0) [(1920.0, 0.0, 1920.0, 1080.0)]
    (-1920.0, 0.0, 1920.0, 1080.0) [(-1920.0, 0.0, 1920.0, 1080.0)]

Manageable applications:
    ViewBridgeAuxiliary (com.apple.ViewBridgeAuxiliary)
    Firefox (org.mozilla.firefox)
    Sublime Text (com.sublimetext.3)
    Control Strip (com.apple.controlstrip)
    talagent (com.apple.talagent)
    ViewBridgeAuxiliary (com.apple.ViewBridgeAuxiliary)
    Google Chrome (com.google.Chrome)
    iTerm2 (com.googlecode.iterm2)
    AppSSOAgent (com.apple.AppSSOAgent)
    Sourcetree (com.torusknot.SourceTreeNotMAS)
    Productive Time (com.electron.productive-time)
    QuickLookUIService (Finder) (com.apple.quicklook.QuickLookUIService)
    Finder (com.apple.finder)
    DisplayLinkManager (com.displaylink.DisplayLinkManager)
    Boom2Daemon (com.globaldelight.Boom2Daemon)
    storeuid (com.apple.storeuid)
    EmojiFunctionRowIM (com.apple.inputmethod.EmojiFunctionRowItem)
    PhpStorm (com.jetbrains.PhpStorm)
    coreautha (com.apple.LocalAuthentication.UIAgent)
    com.apple.appkit.xpc.openAndSavePanelService (Firefox) (com.apple.appkit.xpc.openAndSavePanelService)
    QuickLookUIService (com.apple.appkit.xpc.openAndSavePanelService (Firefox)) (com.apple.quicklook.QuickLookUIService)
    studentd (com.apple.studentd)
    com.apple.appkit.xpc.openAndSavePanelService (Sublime Text) (com.apple.appkit.xpc.openAndSavePanelService)
    QuickLookUIService (com.apple.appkit.xpc.openAndSavePanelService (Sublime Text)) (com.apple.quicklook.QuickLookUIService)
    photolibraryd (com.apple.photolibraryd)
    com.apple.CoreSimulator.CoreSimulatorService (com.apple.CoreSimulator.CoreSimulatorService)
    Simulator (com.apple.CoreSimulator.SimulatorTrampoline)
    com.apple.appkit.xpc.openAndSavePanelService (PhpStorm) (com.apple.appkit.xpc.openAndSavePanelService)
    QuickLookUIService (com.apple.appkit.xpc.openAndSavePanelService (PhpStorm)) (com.apple.quicklook.QuickLookUIService)
    Sequel Ace (com.sequel-ace.sequel-ace)
    BTTRelaunch (com.hegenberg.BTTRelaunch)

Configuration:
mouse-follows-focus: 0
mod1: (
    option,
    shift
)
mouse-resizes-windows: 1
restore-layouts-on-launch: 1
ignore-menu-bar: 0
screen-padding-top: 0
floating: (
)
screen-padding-left: 0
screen-padding-bottom: 0
follow-space-thrown-windows: 1
screen-padding-right: 0
debug-layout-info: 0
window-margins: 0
floating-is-blacklist: 1
use-canary-build: 0
enables-layout-hud: 1
mouse-swaps-windows: 1
focus-follows-mouse: 0
window-margin-size: 0
layouts: (
    tall,
    column,
    "tall-right",
    bsp,
    floating
)
enables-layout-hud-on-space-change: 1
window-minimum-height: 0
mod2: (
    option,
    shift,
    control
)
new-windows-to-main: 0
window-minimum-width: 0
float-small-windows: 1
window-resize-step: 5
schickm commented 4 years ago

@shanecp You should be able to find the crashes in ~/Library/Logs/DiagnosticReports

schickm commented 4 years ago

Amethyst for me crashes about 1-2 time per day, and like others here I'm not really sure what the pattern is.

Here's my debug info and a sampling of recent crashes:

Amethyst_debug_info.txt Amethyst_2020-08-20-095413_MattS2018-MAC.txt Amethyst_2020-08-20-085740_MattS2018-MAC.txt Amethyst_2020-08-19-093728_MattS2018-MAC.txt Amethyst_2020-08-17-110116_MattS2018-MAC.txt Amethyst_2020-08-17-082830_MattS2018-MAC.txt

bazhenov commented 4 years ago

Same problem. Seems like Silica related bug.

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libswiftCore.dylib              0x00007fff67d212bc swift_projectBox + 12
1   com.amethyst.Amethyst           0x0000000109a7b234 0x109a08000 + 471604
2   com.amethyst.Amethyst           0x0000000109a67e7c 0x109a08000 + 392828
3   org.cocoapods.Silica            0x0000000109fdcce1 observerCallback + 68
4   com.apple.HIServices            0x00007fff2c667f7e _XXMIGPostNotification + 717
5   com.apple.HIServices            0x00007fff2c68db13 _XPostNotification + 340
6   com.apple.HIServices            0x00007fff2c64af64 mshMIGPerform + 174
7   com.apple.CoreFoundation        0x00007fff2e398304 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
8   com.apple.CoreFoundation        0x00007fff2e398250 __CFRunLoopDoSource1 + 541
9   com.apple.CoreFoundation        0x00007fff2e396d79 __CFRunLoopRun + 2270
10  com.apple.CoreFoundation        0x00007fff2e395e3e CFRunLoopRunSpecific + 462
11  com.apple.HIToolbox             0x00007fff2cfc2abd RunCurrentEventLoopInMode + 292
12  com.apple.HIToolbox             0x00007fff2cfc27d5 ReceiveNextEventCommon + 584
13  com.apple.HIToolbox             0x00007fff2cfc2579 _BlockUntilNextEventMatchingListInModeWithFilter + 64
14  com.apple.AppKit                0x00007fff2b608039 _DPSNextEvent + 883
15  com.apple.AppKit                0x00007fff2b606880 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
16  com.apple.AppKit                0x00007fff2b5f858e -[NSApplication run] + 658
17  com.apple.AppKit                0x00007fff2b5ca396 NSApplicationMain + 777
18  com.amethyst.Amethyst           0x0000000109a0a33a 0x109a08000 + 9018
19  libdyld.dylib                   0x00007fff68404cc9 start + 1
kennyluk commented 3 years ago

Amethyst will crash about 5-10sec after ABBYY FineReader loads.

/Applications/Amethyst.app/Contents/MacOS/Amethyst --debug-info Version: 0.15.4 (91)

OS version: Version 10.14.6 (Build 18G7016)

Has permissions: true

Screens: (0.0, 0.0, 2560.0, 1600.0) [(0.0, 0.0, 2560.0, 1600.0)]

Manageable applications: talagent (com.apple.talagent) Finder (com.apple.finder) storeuid (com.apple.storeuid) 1Password 7 (com.agilebits.onepassword7) Bitwarden (com.bitwarden.desktop) Terminal (com.apple.Terminal) FineReader (com.abbyy.FineReaderPro) Firefox (org.mozilla.firefox)

Configuration: screen-padding-left: 0 mouse-swaps-windows: 0 floating: ( { id = "com.apple.finder"; "window-titles" = ( "Connect to Server", "Archive Utility" ); }, { id = "com.apple.systempreferences"; "window-titles" = ( ); }, { id = "org.mozilla.firefox"; "window-titles" = ( "Opening document.pdf" ); }, { id = "com.adobe.Acrobat.Pro"; "window-titles" = ( "", "Combine Files" ); }, { id = "com.iroad.viewer"; "window-titles" = ( ); }, { id = "com.panic.Transmit"; "window-titles" = ( Advanced, General, Sync, Files, Transfers, Keys, Rules, Cloud ); } ) new-windows-to-main: 0 follow-space-thrown-windows: 1 ignore-menu-bar: 0 window-minimum-height: 0 debug-layout-info: 0 enables-layout-hud: 1 focus-follows-mouse: 0 window-resize-step: 5 screen-padding-right: 0 window-margins: 0 window-margin-size: 0 window-minimum-width: 0 mod1: ( option, shift ) float-small-windows: 1 floating-is-blacklist: 1 screen-padding-top: 0 layouts: ( tall, fullscreen, bsp ) use-canary-build: 0 enables-layout-hud-on-space-change: 1 restore-layouts-on-launch: 1 screen-padding-bottom: 0 mouse-follows-focus: 0 mod2: ( option, shift, control )

crash:

[Amethyst_2021-03-22-101610_Aubade.txt] (https://github.com/ianyh/Amethyst/files/6179074/Amethyst_2021-03-22-101610_Aubade.txt)

jamesharr commented 1 year ago

I've been experiencing crashing randomly on me. I haven't quite tracked down a correlation to a specific action, app launch, or other event, yet. I have the details of my crash log attached, and will post if I figure out if a specific event or action seems to trigger a crash.

PS - I'm a new Amethyst user and am loving it so far. Nice work :)

ianyh commented 1 year ago

@jamesharr could you try 0.20.0b3?

jamesharr commented 1 year ago

@jamesharr could you try 0.20.0b3?

Installed and running. I'll report back at the end of today since I almost always trigger a crash once a day. After today, I'll be away from a computer until later in June.

Is it valuable to you if I run the debug build?

jamesharr commented 1 year ago

(June 12th) So far so good. I've thrown all my normal stuff at it (suspend, multi-monitor, changing monitors, moving windows by mouse), and it's been running since I first started it.

(June 19th) Still looks good. Amethyst has been running for a solid week and has survived suspend, monitor changes, etc.

jamesharr commented 1 year ago

July 14th; still running strong on 0.20.0b3

FelixLisczyk commented 1 year ago

I still get these random crashes with 0.20.0b3. Here is a recent crash report.

Amethyst-2023-07-13-151524.txt

jamesharr commented 6 months ago

FWIW, Amethyst has been running strong for me since 0.20.0b3. I've recently upgraded to 0.21.0b (109) and it's still running stable.

FelixLisczyk commented 6 months ago

I still get occasional segmentation fault crashes with the latest beta. But they occur less frequently than before.

Amethyst-2024-04-11-080023.txt

ianyh commented 6 months ago

I still get occasional segmentation fault crashes with the latest beta. But they occur less frequently than before.

Amethyst-2024-04-11-080023.txt

Could you open a new issue for this?

FelixLisczyk commented 6 months ago

I still get occasional segmentation fault crashes with the latest beta. But they occur less frequently than before. Amethyst-2024-04-11-080023.txt

Could you open a new issue for this?

I will attempt to reproduce the issue and, if successful, open a new issue. I haven’t experienced any new crashes in the past week.