XYMer's Home away from Home

When http://bbs.xlr8yourmac.com is down (i.e. always)
It is currently Mon Mar 27, 2017 12:41 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Fri Jan 13, 2017 7:20 am 
Offline

Joined: Sat Apr 11, 2009 2:15 pm
Posts: 5766
Location: NYC
Created a service in Automator to toggle hidden on/off. The service works perfectly, nothing crashes, at least visibly. But each time I run it, on or off, it generates a crash report. Have completely googled the shit out of this and can't find anything. Crashed thread varies, but all these reports look more or less the same.

Googled especially for the following (almost all hits are iOS related. Could be another 10.11 can't make up its mind if it's OS X or iOS. Another bug???? Is it looking for an iOS API, doesn't find it and generates a false crash report?)

"Exception Note: EXC_CORPSE_NOTIFY"

"XPC API Misuse: Given object not of required type."

"Application Specific Signatures:
API Misuse"

"Dispatch queue: com.apple.root.default-qos
"

Code:
Process:               WorkflowServiceRunner [455]
Path:                  /System/Library/Frameworks/AppKit.framework/Versions/C/XPCServices/WorkflowServiceRunner.xpc/Contents/MacOS/WorkflowServiceRunner
Identifier:            com.apple.automator.xpc.workflowServiceRunner
Version:               6.9 (1120)
Build Info:            AppKit-1404047000000000~1
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
User ID:               502

Date/Time:             2017-01-13 10:04:34.321 -0500
OS Version:            Mac OS X 10.11.6 (15G1212)
Report Version:        11
Anonymous UUID:        B7D85D4A-FEE7-4290-F6E3-9C34461FD69B


Time Awake Since Boot: 440 seconds

System Integrity Protection: enabled

Crashed Thread:        7  Dispatch queue: com.apple.root.default-qos

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
XPC API Misuse: Given object not of required type.

Application Specific Signatures:
API Misuse

Thread 7 Crashed:: Dispatch queue: com.apple.root.default-qos
0   libxpc.dylib                     0x00007fff9395ba1f _xpc_api_misuse + 75
1   libxpc.dylib                     0x00007fff9394aacd xpc_connection_set_context + 55
2   com.apple.AutomatorFramework     0x00007fff91fab283 __send_reply_with_error_description_block_invoke + 25
3   libdispatch.dylib                0x00007fff97b3d93d _dispatch_call_block_and_release + 12
4   libdispatch.dylib                0x00007fff97b3240b _dispatch_client_callout + 8
5   libdispatch.dylib                0x00007fff97b3a51b _dispatch_mach_barrier_invoke + 86
6   libdispatch.dylib                0x00007fff97b3240b _dispatch_client_callout + 8
7   libdispatch.dylib                0x00007fff97b3703b _dispatch_queue_drain + 754
8   libdispatch.dylib                0x00007fff97b3935f _dispatch_mach_invoke + 735
9   libdispatch.dylib                0x00007fff97b3240b _dispatch_client_callout + 8
10  libdispatch.dylib                0x00007fff97b3629b _dispatch_root_queue_drain + 1890
11  libdispatch.dylib                0x00007fff97b35b00 _dispatch_worker_thread3 + 91
12  libsystem_pthread.dylib          0x00007fff8b54c4de _pthread_wqthread + 1129
13  libsystem_pthread.dylib          0x00007fff8b54a341 start_wqthread + 13

Thread 7 crashed with X86 Thread State (64-bit):
  rax: 0x00007fff939634da  rbx: 0x0000700000322bf0  rcx: 0xf90008043d57aac0  rdx: 0x00007fff939634c7
  rdi: 0x0000000000000000  rsi: 0x00007fff93960903  rbp: 0x0000700000322ca0  rsp: 0x0000700000322bf0
   r8: 0x0000000000000002   r9: 0x00007fff939634d9  r10: 0x000000000000000c  r11: 0x0000700000322c00
  r12: 0x0000000000000002  r13: 0x00007fcaf851a760  r14: 0x00007fff7a8b8b10  r15: 0x00007fff97b3d931
  rip: 0x00007fff9395ba1f  rfl: 0x0000000000010206  cr2: 0x000070000029eff8
 
Logical CPU:     0
Error Code:      0x0100001f
Trap Number:     133


Shell Script I used looks OK to me.
Code:
STATUS=`defaults read com.apple.finder AppleShowAllFiles`
if [ $STATUS == 1 ]
   then
      defaults write com.apple.finder AppleShowAllFiles -boolean false
   else
      defaults write com.apple.finder AppleShowAllFiles -boolean true
fi

killall Finder


Last edited by WZZZ on Fri Jan 13, 2017 10:27 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Fri Jan 13, 2017 7:51 am 
Offline
Benevolent Dictator
User avatar

Joined: Mon Apr 21, 2008 2:03 am
Posts: 14259
Quote:
An API misuse is an API usage that violates the API’s contract, as opposed to one that does not comply with the client code’s logic. For example, not closing a stream is a misuse, while querying the wrong database column is not.

http://sven-amann.de/publications/mubench-msr16.pdf

We've obvious;y got some bad data somewhere.

Do you get those errors if you you just run the commands in Terminal?


Top
 Profile  
 
PostPosted: Fri Jan 13, 2017 8:51 am 
Offline

Joined: Sat Apr 11, 2009 2:15 pm
Posts: 5766
Location: NYC
As expected, no crash reports generated when just using the commands outside of Automator. This is Automator specific. No idea how to begin to track down the source of this, or if it's even possible to do that without having specialized Apple developer debugging tools/knolwledge. As I said, all the searches I've done for any of this come up mainly with iOS related stuff. Maybe some bug that Apple never got around to fixing in their rush to get out the next OS, although not finding anyone reporting this exact problem in 10.11.6.


Top
 Profile  
 
PostPosted: Fri Jan 13, 2017 10:30 am 
Offline
Benevolent Dictator
User avatar

Joined: Mon Apr 21, 2008 2:03 am
Posts: 14259
I highly suspect it's an Apple induced bug., have you found anybody that has even done that in 10.11.6 & Automator?

I wonder if it's something in this file?

/System/Library/Caches/com.apple.automator.actionCache-system-readonly.plist


Top
 Profile  
 
PostPosted: Fri Jan 13, 2017 10:46 am 
Offline

Joined: Sat Apr 11, 2009 2:15 pm
Posts: 5766
Location: NYC
BDAqua wrote:
I highly suspect it's an Apple induced bug., have you found anybody that has even done that in 10.11.6 & Automator?

I wonder if it's something in this file?

/System/Library/Caches/com.apple.automator.actionCache-system-readonly.plist

Could be, but almost 27,000 lines. No idea what I'm looking for. Overwhelmed with hits from a TextWrangler search for "services" or "finder."

These "crashes" have zero effect on the toggling hidden service, so maybe best just to keep trashing these reports and forget about it.


Top
 Profile  
 
PostPosted: Fri Jan 13, 2017 11:22 am 
Offline
Benevolent Dictator
User avatar

Joined: Mon Apr 21, 2008 2:03 am
Posts: 14259
I think I'd ignore it then... which I rarely do. :)

How about if you just use an executable script without Automator?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group