Skip to content
New issue

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

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

Already on GitHub? # to your account

getPixelColor segfault #343

Closed
syzer opened this issue Nov 22, 2017 · 2 comments
Closed

getPixelColor segfault #343

syzer opened this issue Nov 22, 2017 · 2 comments

Comments

@syzer
Copy link

syzer commented Nov 22, 2017

Expected Behavior

Current Behavior

#!/usr/bin/env node
const robot = require('robotjs')

// Get mouse position.
const mouse = robot.getMousePos()

// Get pixel color in hex format.
console.log(mouse)
const hex = robot.getPixelColor(mouse.x, mouse.y)

if you have 3 monitors
{ x: 5825, y: -145 }
and x > 6000
it Segmentation fault: 11

Context

Your Environment

  • RobotJS version:
"robotjs": "^0.3.7"
  • Node.js version:
    nvm use 8.9
    Now using node v8.9.0 (npm v5.5.1)
  • npm version:
  • Operating System:
    macOs
@syzer
Copy link
Author

syzer commented Dec 3, 2017

might be related to #88

@oktapodia
Copy link
Collaborator

This issue has been closed because it has been inactive for > 240 days.
You may reopen this issue if it has been closed in error.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants