greenshot icon indicating copy to clipboard operation
greenshot copied to clipboard

Cannot take screenshot on latest Windows 10 when / after using Slack window sharing

Open ceecko opened this issue 3 years ago • 58 comments

Describe the bug On latest Windows 10 I sometimes get to a situation where it's not possible to create a screenshot with Greenshot. When you try to capture a region, a small rectangle (about 100x50px) of the top left screen is randomly placed on the screen and that's the only area you can interact with to select the region.

After restarting Windows the issue is usually gone. Happens only sometimes but it's pretty annoying ;)

To Reproduce Example steps to reproduce the behavior:

  1. Capture region (either via context menu or using a key)

Expected behavior Standard way to capture a region is available

Screenshots This is how it looks when you try to capture a screenshot IMG_2646

Versions (please complete the following information):

  • Greenshot version 1.2.10.6
  • Windows 10 (19043.1081)

Additional context Only happens occasionally

ceecko avatar Jun 23 '21 13:06 ceecko

The only way I have issue, taking screenshots, is if the opened window on top is protected. Never the issue you have described. Try deleting your greenshot settings, reinstalling greenshot, changing display settings maybe something to do with dpi/scaling.

Chaython avatar Jun 30 '21 05:06 Chaython

@Chaython I've tried all those things before opening a ticket to make sure I don't bother you guys ;) Greenshot in general works ok. Sometimes though I see this behavior and I need to reboot to fix it.

Since you've mentioned a protected window could cause this, I'm going to check if it's not the combination of Windows Terminal and GeForce Experience software messing up fullscreen/windowed mode since I see a notification coming up once in a while GeForce Experience has been activated although no game is running.

I tried to reproduce it but no luck so far. I'll send an update here once I can replicate the issue. If you have a "debug" build which I can use and send you logs, I'm happy to run it.

ceecko avatar Jun 30 '21 10:06 ceecko

https://getgreenshot.org/faq/where-can-i-find-greenshots-log-file/

https://getgreenshot.org/faq/how-can-i-make-greenshot-write-debug-information-to-its-log-file/


From: ceecko @.> Sent: June 30, 2021 4:17 AM To: greenshot/greenshot @.> Cc: Chaython @.>; Mention @.> Subject: Re: [greenshot/greenshot] Cannot take screenshot on latest Windows 10 (#320)

@Chaythonhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FChaython&data=04%7C01%7C%7Cbfb5bea10bcc49d7ef7b08d93bb048a2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637606450581255692%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=q%2F6SHsbxXVESoJm8uBsGBRjAPGBBH21wn4bU515Xrws%3D&reserved=0 I've tried all those things before opening a ticket to make sure I don't bother you guys ;) Greenshot in general works ok. Sometimes though I see this behavior and I need to reboot to fix it.

Since you've mentioned a protected window could cause this, I'm going to check if it's not the combination of Windows Terminal and GeForce Experience software messing up fullscreen/windowed mode since I see a notification coming up once in a while GeForce Experience has been activated although no game is running.

I tried to reproduce it but no luck so far. I'll send an update here once I can replicate the issue. If you have a "debug" build which I can use and send you logs, I'm happy to run it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fgreenshot%2Fgreenshot%2Fissues%2F320%23issuecomment-871276879&data=04%7C01%7C%7Cbfb5bea10bcc49d7ef7b08d93bb048a2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637606450581255692%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=CvzM0w%2Bp2tA9Jvc3PzP7aJouIztpG5iJjoJczmHMJ5I%3D&reserved=0, or unsubscribehttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABRPSR335CCBKAFJIR6MW3TTVLVMBANCNFSM47FZWKTA&data=04%7C01%7C%7Cbfb5bea10bcc49d7ef7b08d93bb048a2%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637606450581265689%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=hepwmPDf39kBFVGducvmdjaVQY1zlSGWCo4xBAnpSX0%3D&reserved=0.

Chaython avatar Jun 30 '21 16:06 Chaython

I could think of 2 possible issues:

  • Most likely issue: Maybe the Windows snipping-tool is somehow intervening, Go into the windows settings, search for “snipping” and you will get an option “Use the PrtScrn button to open screen snipping”, go to that “page” and almost at the bottom you can enable or disable windows snippings. If it's enabled, disable! If it's disabled, enable and disable it. Try working with Greenshot again.
  • You are using PowerToys with FancyZones, if so add greenshot.exe to the exclude list in the powertoys fancy zones configuration.

(I first though the most likely option was FancyZones, but I suddenly saw the capture, and it is the same as the following bug: https://greenshot.atlassian.net/browse/BUG-2784)

Lakritzator avatar Jun 30 '21 20:06 Lakritzator

Once I replicate the issue, I'm going to try resetting the print screen settings. However I'm using a mac keyboard with Windows which does not really have a print screen button so I mapped it to F14 instead.

image

ceecko avatar Jun 30 '21 20:06 ceecko

No, I don't mean the Greenshot settings, go into the settings of windows itself.

Lakritzator avatar Jun 30 '21 22:06 Lakritzator

enable & disable the radio button here: image

Lakritzator avatar Jun 30 '21 22:06 Lakritzator

@Lakritzator I understand, thanks. What I wanted to point out was that my keyboard does not have a print screen button and Greenshot is mapped to F14 instead so I don't use a print screen button to capture regions. Thus I would assume the snipping from Windows is not affecting this.

I'll give it a try though once I replicate the issue.

ceecko avatar Jul 01 '21 06:07 ceecko

The issue has just appeared. I don't see anything in particular in the log though. Turning the print screen shortcut on and off a couple times did not help.

2021-07-01 13:33:37,138 [Greenshot] DEBUG - [Greenshot.Helpers.CaptureHelper] Capturing with mode Region and using Cursor True
2021-07-01 13:33:37,138 [Retrieve window details] DEBUG - [Greenshot.Helpers.CaptureHelper] start RetrieveWindowDetails
2021-07-01 13:33:37,143 [Retrieve window details] DEBUG - [Greenshot.Helpers.CaptureHelper] end RetrieveWindowDetails
2021-07-01 13:33:37,240 [Greenshot] DEBUG - [GreenshotPlugin.Core.WindowCapture] Capturing the mouse cursor.
2021-07-01 13:33:37,240 [Greenshot] DEBUG - [GreenshotPlugin.Core.WindowCapture] CaptureRectangle Called!
2021-07-01 13:33:37,308 [Greenshot] DEBUG - [GreenshotPlugin.Core.Capture] Image is set with the following specifications: {Width=5120, Height=1440} - Format24bppRgb
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _mX
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _mY
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _mouseMovePos
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _cursorPos
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _captureMode
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _windows
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No value: _selectedCaptureWindow
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _mouseDown
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _captureRect
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _capture
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _previousMousePos
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _fixMode
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No value: _windowAnimator
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _zoomAnimator
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _isZoomerTransparent
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _isCtrlPressed
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: _showDebugInfo
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No value: components
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: scrollPosition
2021-07-01 13:33:37,319 [Greenshot] DEBUG - [GreenshotPlugin.Controls.GreenshotForm] No Control or ToolStripItem: deviceDpi
2021-07-01 13:33:39,006 [Greenshot] DEBUG - [Greenshot.Forms.CaptureForm] Closing captureform
2021-07-01 13:33:39,006 [Greenshot] DEBUG - [Greenshot.Forms.CaptureForm] Remove CaptureForm from currentForm
2021-07-01 13:33:39,011 [Greenshot] DEBUG - [Greenshot.Helpers.CaptureHelper] Disposing capture

ceecko avatar Jul 01 '21 11:07 ceecko

Hello. I'm experiencing this same bug. Greenshot has worked well for over a year and I probably use it a handful of times a day.

It just starting acting like this, when I want press PrtSc (to take a screenshot), it shows a small, weird rectangle in the upper left of the screen (there is a good MP4 video in the jira ticket https://greenshot.atlassian.net/browse/BUG-2825)

I checked and the windows snipping tool functionality is "OFF" (like screenshot @Lakritzator posted) I don't have power tools (fanzyzoom) installed.

Since it started happening a couple weeks ago, rebooting usually fixes it, but it always comes back. Greenshot is rendered unusable (ie can't take region screenshot) until system is rebooted.. I've uploaded a screenshot of what it looks like. The text it shows is the same text of the window.

greenshotbug

luckyvalentine avatar Jul 28 '21 18:07 luckyvalentine

As a side note, I just reverted to an older version and it still happens (version Greenshot-INSTALLER-1.2.9.129-RELEASE)

luckyvalentine avatar Jul 28 '21 19:07 luckyvalentine

I could think of 2 possible issues:

  • Most likely issue: Maybe the Windows snipping-tool is somehow intervening, Go into the windows settings, search for “snipping” and you will get an option “Use the PrtScrn button to open screen snipping”, go to that “page” and almost at the bottom you can enable or disable windows snippings. If it's enabled, disable! If it's disabled, enable and disable it. Try working with Greenshot again.
  • You are using PowerToys with FancyZones, if so add greenshot.exe to the exclude list in the powertoys fancy zones configuration.

(I first though the most likely option was FancyZones, but I suddenly saw the capture, and it is the same as the following bug: https://greenshot.atlassian.net/browse/BUG-2784)

For other people coming along looking for info on a similar issue, I have PowerToys installed and disabling FancyZones has fixed Greenshot for me. Specifically I was seeing a small non-interactable window at the top left of my screen when trying to capture a screenshot.

IkerGimenez avatar Aug 05 '21 10:08 IkerGimenez

This issue with PowerToys should be solved with our latest builds, planed to be released. See here: https://github.com/greenshot/greenshot/releases

Lakritzator avatar Oct 04 '21 19:10 Lakritzator

I am getting this same issue. I read through the details above and snipping tool is off, I don't have powertoys or fancyzones. This issue manifests as Greenshot working fine for some period, something happens (yet to identify what) and then every attempt to press PrntScreen results in the little window. Multiple presses of PrntScreen simply shows more of those little windows (see attached). I have to reboot to get it working again. Is there anything I can do to help diagnose it as it's super annoying and I really like Greenshot so would love it to work again. Windows version: Edition Windows 10 Home Version 21H1 Installed on ‎23/‎08/‎2021 OS build 19043.1266 Experience Windows Feature Experience Pack 120.2212.3920.0 Greenshot 1.2.10 Build 6

I tried the release candidate mentioned above - 1.3.211 and it had the same issue.

I have noticed that once this issue happens Notepad++ also seems to go weird if I open it up - I just tried the Greenshot.log file and saw Notepad++ all weird with lots of padding. Not sure if that helps.

image

Thanks Nick

nick-foster avatar Oct 12 '21 05:10 nick-foster

@nick-foster It's very unlikely this issue happens if you do not have PowerToys running.

So I have to ask are you sure it's not running in the background? you can see it near the other icons and the clock. image

Or in the Task Manager: image

I just want to make sure we are not tracing ghosts. Even if you tried 1.3, there might be an older version of PowerToys which doesn't handle the Windows correctly.

Can you tell me of any other tools you have installed? Tools that might influence the size of your Windows, like automatically position them?

Did you try the trick with the snipping tool, enable / disable it?

Lakritzator avatar Oct 12 '21 07:10 Lakritzator

Hi @Lakritzator, Thanks for the quick response. A reboot fixed the issue from earlier, but it is likely to happen again but I can't predict when.

I have checked in the system tray and this is what I see: image Nothing that looks like PowerToys from your screenshot. The closest is "Dell PremierColor" but it seems to just be about color.

I don't knowingly have any tools which can influence the size of windows. The only thing I can think of is that I have two screens:

  1. Built in laptop screen - 4K with scaling set to 200%
  2. External WQHD screen 3440 x 1440 - no scaling at 100%

In the Task Manager I only have the following with 'P' image

This is the snipping tool setting when I checked image I have also tried turn it on and off again and restarting.

Any advice on what to capture or trace if it happens again?

Thanks

nick-foster avatar Oct 12 '21 08:10 nick-foster

@Lakritzator I confirm the same. No PowerToys, FancyZones or other software which could affect this.

ceecko avatar Oct 12 '21 10:10 ceecko

I confirm the issue persists on the latest Windows 11 (22000.282) as well

ceecko avatar Nov 08 '21 16:11 ceecko

I'm still at a loss of what is happening here. Also what interaction between notepad++ could be there.

@nick-foster I did see dropbox and evernote (?) icons, can you check if the screenshot integration of dropbox is active.

@ceecko Do you also use notepad++? Just trying to see any relations.

Lakritzator avatar Dec 16 '21 09:12 Lakritzator

@Lakritzator I do use notepad++. I did not manage to trigger the bad behavior in relation to notepad++ though yet.

ceecko avatar Dec 16 '21 09:12 ceecko

@ceecko

@Lakritzator I do use notepad++. I did not manage to trigger the bad behavior in relation to notepad++ though yet.

Thanks for the feedback, if there is anything else you notice let me know. I'm really still at a loss, more people have this but I myself do not. Troubleshooting such issues can only work if I can reproduce it. Do you use dropbox (I do not) or other apps which are visible on the screen shots of nick?

Lakritzator avatar Dec 16 '21 09:12 Lakritzator

@Lakritzator Slack and Geforce Experience utility I guess image

If you'd like to create a build with some "extreme" debugging enabled, I'm happy to install it :)

ceecko avatar Dec 16 '21 09:12 ceecko

@ceecko Slack seems to be a common nominator, which I do not use. (GeForce I have) Maybe there is something in Slack, which I doubt as I know most of it's functioning...

I wouldn't know what I could make to add some debugging, besides that I might output the size of the crop window (that which allows you to select your capture). I was in the progress of updating some dependencies for the 1.3 build, so I added this... who knows, maybe it helps.

If you have the Greenshot version 1.3.220 which I just made available, you will need to modify the log4net.xml in the installation directory, and change the line with <level value="INFO" /> to <level value="DEBUG" /> If the issue occurs, not down the time, copy the log file some place, and check if there is anything in there you do not like to have published (username, window titles etc) and attach it. You can find the log with the information here: https://getgreenshot.org/faq/where-can-i-find-greenshots-log-file/

Lakritzator avatar Dec 16 '21 10:12 Lakritzator

Just wanted to confirm that I had the same bug ... and was able to stop it from happening by exiting the desktop version of Slack. When I restart Slack the problem does not immediately manifest itself. But I think we confirmed that Slack is the culprit!

hoomank avatar Jan 14 '22 04:01 hoomank

@Lakritzator I confirm what hoomank says - quitting slack solves the issue. I think the easiest way to replicate this is the following:

  1. Start Greenshot
  2. Start Slack
  3. Call someone on slack and share a window (not screen) - this adds a green rectangle around the window
  4. Greenshot stops working
  5. Quit Slack
  6. Greenshot starts working

I'm happy to provide more debugging logs but I think it's going to be easiest to install Slack locally, do a call and figure out what's going on there.

ceecko avatar Jan 17 '22 15:01 ceecko

Ah great find!

This might help, and this explains why I could not reproduce it, I do not use Slack. Also I though shortly about Slack, as I saw the icon in the screenshots, but I do not remember it providing functionality which might cause issues with Greenshot. Never thought about Window or Screen sharing... 😒

Even if I will be able to reproduce it, I'm not sure if it is something on our side (I think it is not) so this either means I could workaround the issue (not good) OR it's the small free tool vs a big $$$ corp...

But first let's see where the journey goes 😏

Lakritzator avatar Jan 17 '22 20:01 Lakritzator

I think I cannot reproduce this, as I do not have a paid slack account. I think what you describe is not available for mere mortals.

image

Lakritzator avatar Jan 17 '22 22:01 Lakritzator

I reported an issue with Slack here: https://greenshot.slack.com/help/requests/3881492 You probably can't read this, but it's more for my history so I can find it back.

Lakritzator avatar Jan 17 '22 22:01 Lakritzator

Already got an answer, that was very fast, and I supplied them with more information. Going to bed now, way past my bedtime! 😴

Lakritzator avatar Jan 17 '22 23:01 Lakritzator

@Lakritzator I'll be happy to invite you to our channel where we can give it a try. I'll just need an email address to send an invitation to.

ceecko avatar Jan 18 '22 08:01 ceecko