Comments (12)
I can't replicate the issue: http://farmpolice.com/content/videos/f1506a11.webm
Can you give me more hints?
from maim.
Does setting --mask=off help?
from maim.
Linking to naelstrof/slop#15 as it may be related.
from maim.
Oh I understand what it's doing now. My primary display :0 is actually 2560x1024, and it would be black since the machine is idle.
When I specify --xdisplay=:1
I get this:
$ maim --xdisplay=:1
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 149 (RANDR)
Minor opcode of failed request: 25 (RRGetScreenResourcesCurrent)
Serial number of failed request: 9
Current serial number in output stream: 9
from maim.
And, I get that error regardless of whether I set --mask=off
or include a filename.
from maim.
Sorry that you had to open this huge can of worms, when I started to write maim a year ago I didn't even know more than one x screen could exist, but left in --xdisplay as a token measure.
This particular error is caused by maim trying to find the physical monitor sizes and locations using xrandr, but for whatever reason they don't exist in your virtual environment. (or xrandr simply isn't supported).
I'll try to figure out what's wrong.
from maim.
If you mind helping me debug, I've pushed a commit which should get you past the X error: 04dcaae
I still need to set up reading the display from env vars and such, but it's really late and I should get some sleep.
from maim.
I don't mind at all. slop
and maim
are great programs, I'd like to help out so I and others can be able to use them in more places :)
It segfaults now. gdb log: http://nylen.tv/maim/maim-gdb-01.txt
I'm not very familiar with debugging C/C++ code, let me know what I need to do next.
from maim.
This should fix that: 5427e94
from maim.
Okay, you are going to hate me :) your fix for grabbing the cursor worked, but:
now I get a blank screen: http://nylen.tv/maim/[email protected]
when I should get this: http://nylen.tv/maim/scrot-match-5247e9.png
but it works fine with --mask=off
: http://nylen.tv/maim/maim@5247e9-mask=off.png
from maim.
Haha no I love it that I have someone to help me flush out the --xdisplay functionality and error robustness.
510575a Should fix this.
from maim.
You're on a bug killing spree! Works perfectly now.
from maim.
Related Issues (20)
- maim screenshots copied to the clipboard won't paste in certain cases. HOT 2
- maim doesnt pipe output to clipboard using xclip inside WM config; does outside HOT 2
- Scrolling screenshot HOT 5
- Image corruption HOT 6
- Add support for `-` filename syntax HOT 1
- maim builds without libICE and libSM HOT 8
- Parser of maim for image names work incorrectly HOT 3
- New Fedora package maintainer HOT 4
- Screen freezes for a bit whenever i use maim HOT 3
- No screenshots when invoked via custom keyboard shortcut on Gnome HOT 4
- How to copy screenshot to selection and also download the screenshot in one command? HOT 2
- Save and copy to clipboard
- Support for high refresh rate monitors HOT 1
- `maim -s` prints help, requires filename HOT 2
- maim does not capture video image - rpi4
- Adjust the selection area before taking a screenshot HOT 2
- Improving accuracy: magnifier, crosshairs, pixel values, resizable selection HOT 1
- Can't screenshot selection when focused on dropdown menu (Couldn't grab the mouse after 10 tries.)
- glitches HOT 2
- maim doesn't work while dmenu is already active HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maim.