Open pablohpsilva-forjnetwork opened 1 year ago
The underlying code for screen.capture
does not allocate it’s own memory but forwards the one allocated by the corresponding capture function.
nut-tree/nut.js properly copies allocated memory to the addons address space, thus it does not have this problem
After rebuilding robotjs for Electron 21+, I have an error whenever I try to robotjs.screen.capture. More information can be found in this Electron issue on github.
Expected Behavior
It should simply work as intended in older Electron versions.
Current Behavior
The following error appears whenever I call robotjs.screen.capture:
Steps to Reproduce (for bugs)
Context
I was trying to take a screenshot using the
x,y,width,height
solution robotjs provides so I could try to run tesseract on the returned buffer.Your Environment