grabbox icon indicating copy to clipboard operation
grabbox copied to clipboard

2.0.1 just doesn't work

Open koshic opened this issue 7 years ago • 14 comments

App doesn't react to shortcuts, and shows error after "upload from clipboard" click:

image

In logs, I saw only single error per attempt: image

I'm using latest dropbox (31.3.23) & macOS (10.12.6), and have no problems with them. Permissions seems to be set correctly, GrabBoxv2 folder exists in dropbox folder.

koshic avatar Jul 23 '17 19:07 koshic

@VladimirGrenaderov Are you saying that saving a regular screenshot does not work either? Looks like clipboard uploads were broken, but I just released 2.0.2. If you take a regular screenshot to your desktop it does not pick it up?

jorgenpt avatar Jul 29 '17 18:07 jorgenpt

@jorgenpt Yep, in 2.0.1 regular screenshot doesn't work too. After upgrade to 2.0.2, "upload from clipboard" works as expected. But anyway, no reaction to hotkeys (screenshots correctly placed in desktop folder / clipboard). I was reset system hotkeys to default values - no effect. Also I was delete all grabbox data, plists, etc. - still no effect :(

There is very strange situation, but I didn't make any changes in system after upgrade to v2. May be the problem is how you handle those hotkeys (or any other events after screenshot was created)?

koshic avatar Jul 29 '17 19:07 koshic

Few months ago after updating to macOS Sierra Grabbox stopped reacting to screenshots. I tried several reinstall, deletion of files from /Library/Preferences and /Library/Application Support without any change of behavior. My screenshots were set to a custom location, but I also tried to set it back to /Desktop/. The app does not seem to detect screenshots. I've already updated to version 2.0.2. Uploading from the clipboard works perfectly.

@jorgenpt any advice on how to solve this problem? Are there logs that I can check to understand what's happening?

Thank you for your help.

rabye avatar Aug 09 '17 21:08 rabye

@rabye @VladimirGrenaderov

Can you try the following steps, please?

  1. Quit GrabBox
  2. Open Console (/Applications/Utilities/Console.app)
  3. Type "GrabBox" into the search bar in the top right of Console
  4. Start GrabBox
  5. Take a screenshot
  6. Hit Cmd-A (select all) and Cmd-C (copy) in Console, and paste it into a text file that you send to me

In addition, what is the file name of screenshots on your desktop? I see from your GitHub profiles that you're from Moscow and Paris, respectively, so I wonder if something with my localization code that's supposed to detect the localized screenshot filename is failing, either after my update of GrabBox, or in more recent versions of macOS.

jorgenpt avatar Aug 09 '17 21:08 jorgenpt

@jorgenpt The filename of screenshots was something like "Capture d’écran 2017-08-09 à 23.17.30.png". I just tried by changing the screencapture settings to:

defaults write com.apple.screencapture "include-date" 0
defaults write com.apple.screencapture name "screenshot"
defaults write com.apple.screencapture location ~/Desktop/

And GrabBox is still not working :-(

Attached the console-log-file. GrabBox-console-log-rabye.txt

Thank you for your help!

rabye avatar Aug 09 '17 22:08 rabye

Hello @jorgenpt, did you find something useful?

rabye avatar Aug 19 '17 12:08 rabye

@rabye @VladimirGrenaderov My apologies for the slow response. Can you do the following:

  1. Update to 2.0.4 (just uploaded -- you can find it at http://grabbox.bitspatter.com/updates/GrabBox-2.0.4.zip if GrabBox doesn't offer to update when you restart it)
  2. Open Terminal
  3. Run
defaults write com.bitspatter.mac.grabbox2 DebugLog -bool YES
  1. Follow the steps in my previous comment?

With the new version, running that command will enable debug logging, which will hopefully shed some light on why things are not working properly. Thank you!

jorgenpt avatar Aug 20 '17 21:08 jorgenpt

@jorgenpt file-based upload first: "-[GrabBoxAppDelegate eventForPaths:flags:ids:]: Found file 'Снимок экрана 2017-08-21 в 0.27.50.png', but does not match 'Screen Shot * at .'"

So there is simple localization problem. May be you will change the mask to something like "... full date formatted with current locale ... full time ..."? Or add ability to edit it?

Next, the clipboard. Empty console after making screenshot :( No automatic upload after app restart. But manual upload trough menu is working well.

koshic avatar Aug 20 '17 21:08 koshic

@jorgenpt
Attached the console-log-file. 20170821-GrabBox-console-log-rabye.txt

I tried renaming the file to match 'screenshot * at .' and it triggers the upload.

Thank you for your help!

rabye avatar Aug 20 '17 22:08 rabye

@rabye Can you try running this from the Terminal?

defaults delete com.apple.screencapture name

Then doing it again (and giving me the log file)

jorgenpt avatar Aug 20 '17 23:08 jorgenpt

@VladimirGrenaderov Can you give me some more of your log? There should be some lines that start with -[InformationGatherer updateLocalizedScreenshotPattern] when you take your first screenshot after starting GrabBox, and those would be helpful. It's supposed to be looking up the localized version of the screenshot name based on your local language.

jorgenpt avatar Aug 21 '17 04:08 jorgenpt

@jorgenpt The console-log-file after 'defaults delete com.apple.screencapture name': 201708210642-GrabBox-console-log-rabye.txt

The console-log-file after switching my macOS to english (and it works!): 201708210649-GrabBox-console-log-rabye.txt

The console-log-file after switching back my macOS to french (and it doesn't work): 201708210652-GrabBox-console-log-rabye.txt

Thank you for your help!

rabye avatar Aug 21 '17 04:08 rabye

Hello @jorgenpt Did you find a fix?

Thank you!

rabye avatar Oct 19 '17 20:10 rabye

I'm having the same issue on 2.0.4. GrabBox doesn't detect the screenshot correctly when the language is Turkish, but works correctly when I switch system language to English. Uploading from clipboard works in both cases.

akaralar avatar Dec 24 '17 15:12 akaralar