GithubHelp home page GithubHelp logo

Comments (12)

naelstrof avatar naelstrof commented on July 28, 2024

I can't replicate the issue: http://farmpolice.com/content/videos/f1506a11.webm

Can you give me more hints?

from maim.

naelstrof avatar naelstrof commented on July 28, 2024

Does setting --mask=off help?

from maim.

nylen avatar nylen commented on July 28, 2024

Linking to naelstrof/slop#15 as it may be related.

from maim.

nylen avatar nylen commented on July 28, 2024

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.

nylen avatar nylen commented on July 28, 2024

And, I get that error regardless of whether I set --mask=off or include a filename.

from maim.

naelstrof avatar naelstrof commented on July 28, 2024

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.

naelstrof avatar naelstrof commented on July 28, 2024

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.

nylen avatar nylen commented on July 28, 2024

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.

naelstrof avatar naelstrof commented on July 28, 2024

This should fix that: 5427e94

from maim.

nylen avatar nylen commented on July 28, 2024

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.

naelstrof avatar naelstrof commented on July 28, 2024

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.

nylen avatar nylen commented on July 28, 2024

You're on a bug killing spree! Works perfectly now.

from maim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.