Skip to content

Segmentation Fault when retrieving window title #377

Description

@dwighthouse

Version
Node v17.0.1
nut.js v2.0.1

Short overview
Trying to retrieve title of any window results in Seg Fault and no other information, program ends immediately.

Issue occurs on

  • Virtual machine
  • Docker container
  • Dev/Host system

Detailed error description
Seg fault is occurring on Big Sur any time I attempt to find a window title, either through getWindows or getActiveWindow.

Steps to reproduce error
Run this script:

import { getActiveWindow } from '@nut-tree/nut-js';

(async () => {
    const window = await getActiveWindow();
    const title = await window.title;
    console.log(title);
})();

Expected Result:
Terminal

Actual Result:
zsh: segmentation fault node index.js

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DONEImplementation is done, but not yet merged into masterbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions