Author Topic: mac only: BrowseWithPMService upgrade  (Read 5062 times)

Offline ron_hiner

  • Full Member
  • ***
  • Posts: 218
    • View Profile
mac only: BrowseWithPMService upgrade
« on: May 25, 2015, 04:16:14 PM »
The finder context menu for PM quit working a while back for me. 

I see that my file  MacHD/Library/Services/BrowseWithPmService.service is dated 12/17/12. 

There is a newer file (Feb 6, 2105) - but I cant replace the old with the new because the old is always "in use" even after a fresh reboot with no apps other than Finder running.  Still doesn't work after a force quit of Finder.  (Finder has magical properties, it seems.  It can be relaunched, but it must always be running.)

So how do I replace the BrowseWithPM service with the newer version?  Somehow I have to release Finder's tenacious grasp. 

thx in advance!

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: mac only: BrowseWithPMService upgrade
« Reply #1 on: May 25, 2015, 10:37:01 PM »
Ron,

The finder context menu for PM quit working a while back for me. 

I see that my file  MacHD/Library/Services/BrowseWithPmService.service is dated 12/17/12. 

There is a newer file (Feb 6, 2105) - but I cant replace the old with the new because the old is always "in use" even after a fresh reboot with no apps other than Finder running.  Still doesn't work after a force quit of Finder.  (Finder has magical properties, it seems.  It can be relaunched, but it must always be running.)

So how do I replace the BrowseWithPM service with the newer version?  Somehow I have to release Finder's tenacious grasp. 

thx in advance!

Try moving it to a different location and then relaunch the Finder (Command-Option-Esc).  Then you should be able to delete it.  And now that it isn't there anymore, you can put the new one where it used to be.

-Kirk

Offline ron_hiner

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Re: mac only: BrowseWithPMService upgrade
« Reply #2 on: May 29, 2015, 11:15:22 AM »
That didn't work.  When I drag and drop to a new location, the file is just copied.  The original stays in place.

I found a solution, however.  Go to Activity Monitor.  Find BrowseWithPMService in the list of running processes.   Kill the process, then the file can be deleted.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: mac only: BrowseWithPMService upgrade
« Reply #3 on: May 29, 2015, 11:44:21 AM »
Ron,

That didn't work.  When I drag and drop to a new location, the file is just copied.  The original stays in place.

You would have to choose a location that is on the same drive volume, otherwise the file is copied instead of moved.

I found a solution, however.  Go to Activity Monitor.  Find BrowseWithPMService in the list of running processes.   Kill the process, then the file can be deleted.

Good.  I was trying to avoid the possibility of making your system unstable so I didn't recommend that solution. ;)

I'm glad you found a way to replace the service.

-Kirk

Offline ron_hiner

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Re: mac only: BrowseWithPMService upgrade
« Reply #4 on: June 01, 2015, 07:29:14 PM »
While I replaced the service, the new version doesn't work either.   After it churns for a while, it times out with an error message.

The error message is identical whether PM is running or not.   See attached screen shot.

Ideas on how to fix this?  I really like this feature and would love to get it working again.

Thx

[attachment deleted by admin]

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: mac only: BrowseWithPMService upgrade
« Reply #5 on: June 01, 2015, 08:46:32 PM »
Ron,

I have never seen that before.

You could try deleting its two preferences files:

com.camerabits.LaunchPM.plist
com.camerabits.BrowseWithPMService.plist

They should be in your local Library/Preferences folder.  To go there, go to the Finder and hold down the option key while you click on the Go menu.  You'll see a choice called "Library".  Choose it.  Then open up the Preferences folder.  Rename or delete those two files.

Beyond that, I'd like to see your console.log to see if it has any clues in it.

-Kirk

Offline ron_hiner

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Re: mac only: BrowseWithPMService upgrade
« Reply #6 on: June 01, 2015, 08:57:07 PM »
I deleted those two files, then relaunched finder.   Still no luck. 
At 9:53:00 pm (plus or minus a few seconds), I tried again opening contact sheet from Finder (PM was open in the background).  Here is console log.

[attachment deleted by admin]

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: mac only: BrowseWithPMService upgrade
« Reply #7 on: June 01, 2015, 09:40:37 PM »
Odd.

From a Terminal window enter:

defaults write com.camerabits.BrowseWithPMService LogDebug -boolean TRUE

(and hit return)


Kill off the service and try using it again.  Send the log output in your reply.  (you can simply copy and paste the text rather than uploading a screen shot if you like.)

-Kirk

Offline ron_hiner

  • Full Member
  • ***
  • Posts: 218
    • View Profile
Re: mac only: BrowseWithPMService upgrade
« Reply #8 on: June 01, 2015, 09:51:55 PM »
I killed the process, then relaunced finder at about 10:45:00.  Log below.


6/1/15 10:44:59.813 PM bird[291]: Assertion failed: ![_xpcClients containsObject:client]
6/1/15 10:44:59.813 PM bird[291]: Assertion failed: ![_xpcClients containsObject:client]
6/1/15 10:44:59.818 PM bird[291]: Assertion failed: ![_xpcClients containsObject:client]
6/1/15 10:45:00.390 PM garcon[30159]: Initialized badges.
6/1/15 10:45:00.391 PM garcon[30159]: Connecting to Dropbox on 'com.getdropbox.dropbox.garcon.cafe_501'
6/1/15 10:45:00.392 PM garcon[30159]: Connected to Dropbox on 'com.getdropbox.dropbox.garcon.cafe_501'.
6/1/15 10:45:00.393 PM garcon[30159]: Invalidating watch set.
6/1/15 10:45:00.404 PM garcon[30159]: Watch set is now: {(
    file:///Users/ron/Desktop/Dropbox/
)}.
6/1/15 10:45:01.618 PM Finder[30155]: Attempt to use XPC with a MachService that has HideUntilCheckIn set. This will result in unpredictable behavior: com.apple.backupd.status.xpc
6/1/15 10:45:05.050 PM com.apple.xpc.launchd[1]: (com.apple.photostream-agent[30163]) LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
6/1/15 10:45:05.050 PM com.apple.xpc.launchd[1]: (com.apple.photostream-agent) Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
6/1/15 10:45:15.057 PM com.apple.xpc.launchd[1]: (com.apple.photostream-agent[30164]) LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
6/1/15 10:45:15.057 PM com.apple.xpc.launchd[1]: (com.apple.photostream-agent) Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
6/1/15 10:45:25.069 PM com.apple.xpc.launchd[1]: (com.apple.photostream-agent[30165]) LaunchServices returned a bundle URL that does not match with the LoginItem's known association.
6/1/15 10:45:25.069 PM com.apple.xpc.launchd[1]: (com.apple.photostream-agent) Service only ran for 0 seconds. Pushing respawn out by 10 seconds.
6/1/15 10:45:26.038 PM com.apple.xpc.launchd[1]: (com.apple.imfoundation.IMRemoteURLConnectionAgent) The _DirtyJetsamMemoryLimit key is not available on this platform.
6/1/15 10:45:27.621 PM BrowseWithPMService[30168]: BrowseWithPMService launched
6/1/15 10:45:27.622 PM BrowseWithPMService[30168]: Input to BrowseWithPMService.service is: <NSPasteboard: 0x6200000a0000>
6/1/15 10:45:27.623 PM BrowseWithPMService[30168]: Types passed in: (
    "public.file-url",
    "CorePasteboardFlavorType 0x6675726C",
    "dyn.ah62d4rv4gu8y6y4grf0gn5xbrzw1gydcr7u1e3cytf2gn",
    NSFilenamesPboardType,
    "dyn.ah62d4rv4gu8yc6durvwwaznwmuuha2pxsvw0e55bsmwca7d3sbwu",
    "Apple URL pasteboard type"
)
6/1/15 10:45:27.623 PM BrowseWithPMService[30168]: Files: (
    "/Volumes/OWC1/master_photo_library/photos/2013 Jeep pictures/CT 017.jpg"
)
6/1/15 10:45:27.623 PM BrowseWithPMService[30168]: LaunchServicesLaunchDocuments() called with (
    "/Volumes/OWC1/master_photo_library/photos/2013 Jeep pictures/CT 017.jpg"
)
6/1/15 10:45:27.623 PM BrowseWithPMService[30168]: Checking for saved path in preferences
6/1/15 10:45:27.623 PM BrowseWithPMService[30168]: Path doesn't exist or path is invalid
6/1/15 10:45:27.668 PM bird[291]: Assertion failed: ![_xpcClients containsObject:client]
6/1/15 10:45:27.669 PM bird[291]: Assertion failed: ![_xpcClients containsObject:client]
6/1/15 10:45:27.748 PM bird[291]: Assertion failed: ![_xpcClients containsObject:client]
6/1/15 10:45:27.996 PM pkd[285]: enabling pid=30168 for plug-in com.getdropbox.dropbox.garcon(1.10) C9522B90-1842-48A4-ADDD-6F571B20129C /Applications/Dropbox.app/Contents/PlugIns/garcon.appex
6/1/15 10:45:28.011 PM taskgated[84]: no application identifier provided, can't use provisioning profiles [pid=30170]
6/1/15 10:45:28.036 PM BrowseWithPMService[30168]: assertion failed: 14C1510: libxpc.dylib + 97940 [876216DC-D5D3-381E-8AF9-49AE464E5107]: 0x89
6/1/15 10:45:28.077 PM garcon[30170]: Failed to connect (colorGridView) outlet from (NSApplication) to (NSColorPickerGridView): missing setter or instance variable
6/1/15 10:45:28.078 PM garcon[30170]: Failed to connect (view) outlet from (NSApplication) to (NSColorPickerGridView): missing setter or instance variable
6/1/15 10:45:28.000 PM kernel[0]: Sandbox: appleeventsd(26) deny file-read-metadata /Library
6/1/15 10:45:28.000 PM kernel[0]: Sandbox: appleeventsd(26) deny file-read-metadata /Library

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24731
    • View Profile
    • Camera Bits, Inc.
Re: mac only: BrowseWithPMService upgrade
« Reply #9 on: June 01, 2015, 10:35:26 PM »
I killed the process, then relaunced finder at about 10:45:00.  Log below.


6/1/15 10:45:27.621 PM BrowseWithPMService[30168]: BrowseWithPMService launched
6/1/15 10:45:27.622 PM BrowseWithPMService[30168]: Input to BrowseWithPMService.service is: <NSPasteboard: 0x6200000a0000>
6/1/15 10:45:27.623 PM BrowseWithPMService[30168]: Types passed in: (
    "public.file-url",
    "CorePasteboardFlavorType 0x6675726C",
    "dyn.ah62d4rv4gu8y6y4grf0gn5xbrzw1gydcr7u1e3cytf2gn",
    NSFilenamesPboardType,
    "dyn.ah62d4rv4gu8yc6durvwwaznwmuuha2pxsvw0e55bsmwca7d3sbwu",
    "Apple URL pasteboard type"
)
6/1/15 10:45:27.623 PM BrowseWithPMService[30168]: Files: (
    "/Volumes/OWC1/master_photo_library/photos/2013 Jeep pictures/CT 017.jpg"
)
6/1/15 10:45:27.623 PM BrowseWithPMService[30168]: LaunchServicesLaunchDocuments() called with (
    "/Volumes/OWC1/master_photo_library/photos/2013 Jeep pictures/CT 017.jpg"
)
6/1/15 10:45:27.623 PM BrowseWithPMService[30168]: Checking for saved path in preferences
6/1/15 10:45:27.623 PM BrowseWithPMService[30168]: Path doesn't exist or path is invalid
6/1/15 10:45:28.036 PM BrowseWithPMService[30168]: assertion failed: 14C1510: libxpc.dylib + 97940 [876216DC-D5D3-381E-8AF9-49AE464E5107]: 0x89

Did you ever see a file chooser dialog?  At this point I would have expected a file picker dialog to appear, asking you to tell it where your Photo Mechanic application is installed.  If not, I have no idea what libxpc is or why it would be asserting some odd code.

I have attached a plist file from my system that has the path to PM5 set in it.  You can try and replace yours with the one from my system.  My PM5 is at the following path:

/Applications/Photo Mechanic 5.app

If yours is in a different location (the above is the default) then you can edit the file in a text editor.

Note: none of this should be necessary, but I think there is something odd going on in your system.

Put the sample file in that same Library/Preferences folder as I told you earlier.

HTH,

-Kirk


[attachment deleted by admin]