-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when trying to take a screenshot (same issue in KDE and i3) #206
Comments
Im experiencing the same issue |
This happened to me too. The issue is that it is not being able to detect any display. In my case, I had no display set as primary, which is what the code looks for when you have no display manually configured: const screen = screens.find(options.screen ? screen => screen.id === options.screen : screen => screen.primary) I'm not sure how or if it is possible to set the "screen" option from the application, I haven't found a way. To fix it, I just set my main display as primary using After doing that, the issue was solved. Maybe a check could be added that shows an error when no display is detected, or fallback to selecting the first display in the list if none is set to primary. |
In my case :
So if I have :
and :
|
On my laptop, the internal display's id is |
Just tested in a debian 10 VM and everything worked just fine. I tried in an ubuntu VM but i just got a message about an |
Every time i have tested magiccap and got this error, i have been using 2 displays. Just tried it with just my laptop display and it worked just fine without any issues. I know for a fact that i have a display set as primary (i tried both internal and external display as primary with the same effect of the |
Yeah just had a look at the |
Just tested in the debian 10 VM in vmware with 2 displays and had the exact same error i am getting on my host. It is most likely something to do with the display IDs being something like |
Just had a friend test with multiple displays and the issue was non-existent with their laptop display and then the same issue with an external display connected. |
I am having the same issue on i3. I will test with a single monitor later on today. Just as a side note I am running Debian 11/bullseye |
this is still happening, they haven't done anything to even try and fix this |
Information
MagicCap Version: 2.1.2
System OS: Linux 5.0.0-29-generic / Platform: linux
Installation ID: f5fb6431-a2ff-4e69-9c25-9c5fe250bad5
Config: {"clipboard_action":2,"elixire_token":"TOKEN REDACTED","hotkey":null,"install_id":"f5fb6431-a2ff-4e69-9c25-9c5fe250bad5","light_theme":false,"save_capture":true,"save_path":"/home/lewis/Pictures/MagicCap/","upload_capture":true,"uploader_type":"elixire"}
Details
Description
When trying to take a screen capture or a GIF capture, you receive a "TypeError: Cannot read property 'crop' of undefined" error in the terminal. I have the same issue in KDE and i3 and I have the same issue with previous versions of MagicCap. No screenshot is taken.
Steps to reproduce
Attempt to take a screenshot or GIF capture when running MagicCap in the terminal if no screen capture is being taken. Not sure on the precise cause
Expected behaviour
MagicCap takes the screen capture or GIF capture without any errors being logged in the terminal and a screenshot/GIF is taken.
Screenshots
When clicking the "Screen Capture" button:
When clicking the "GIF Capture" button:
The text was updated successfully, but these errors were encountered: