Apple ID Automation Builder script -Interactive crashes immediately on launch

danatli's picture

danatli

Joined: Sep 25, 2013
No votes yet

Hello,
I've gone through the UI scripting process and exported my built script. I ran it with a populated csv file (populated with only 3 users initially to do as a initial test/first run). It crashes immediately with the sound of the trash being emptied. Here are the console logs. Any help or work arounds would be awesome. Thanks.

8/20/13 10:14:56.512 PM Locum[251]: Connection with distnoted server was invalidated
8/20/13 10:14:56.546 PM Locum[252]: Connection with distnoted server was invalidated
8/20/13 10:14:56.676 PM droplet[248]: An uncaught exception was raised
8/20/13 10:14:56.676 PM droplet[248]: -[NSProgress acknowledge]: the bundle identifier could not be computed.
8/20/13 10:14:56.677 PM droplet[248]: (
0 CoreFoundation 0x00007fff8cad0b06 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8c8073f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8cad08dc +[NSException raise:format:] + 204
3 Foundation 0x00007fff90ee5220 -[NSProgressProxy acknowledgeWithSuccess:] + 112
4 DesktopServicesPriv 0x00007fff8dab7706 __AddSubscriberFor_block_invoke_0 + 202
5 Foundation 0x00007fff90ee4b95 __44-[NSProgressProxy _invokePublishingHandler:]_block_invoke_0 + 24
6 CoreFoundation 0x00007fff8ca8dcd2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 18
7 CoreFoundation 0x00007fff8ca4e47f __CFRunLoopDoBlocks + 255
8 CoreFoundation 0x00007fff8ca727e4 __CFRunLoopRun + 772
9 CoreFoundation 0x00007fff8ca720e2 CFRunLoopRunSpecific + 290
10 HIToolbox 0x00007fff8e1f9eb4 RunCurrentEventLoopInMode + 209
11 HIToolbox 0x00007fff8e30f774 GetNextEventMatchingMask + 86
12 HIToolbox 0x00007fff8e30f677 WNEInternal + 180
13 HIToolbox 0x00007fff8e30f5b7 WaitNextEvent + 52
14 AppleScript 0x000000010de1bbbf _Z10ActiveProcPv + 36
15 AppleScript 0x000000010de394a0 _Z23InternalComponentActivej + 85
16 AppleScript 0x000000010de63ef6 _Z13UASRemoteSendhhhhhPh + 452
17 AppleScript 0x000000010de6fbb9 _Z13UASValue_Sendhh14TUASClassIndexh + 178
18 AppleScript 0x000000010de4c4ba _Z11UASExecute1v + 369
19 AppleScript 0x000000010de25495 _Z14ASExecuteEventPK6AEDescjiPj + 848
20 AppleScript 0x000000010de1e33a AppleScriptComponent + 1778
21 OpenScripting 0x00007fff9356d0d0 OSAExecuteEvent + 66
22 AppleScript 0x000000010de1bf4a _ZN6Applet9RunScriptEPK6AEDescPS0_ + 666
23 AppleScript 0x000000010de1939d _ZN6Applet13DoScriptEventEPK6AEDescPS0_ + 465
24 AppleScript 0x000000010de191c0 _Z18ScriptEventHandlerPK6AEDescPS_Pv + 66
25 AE 0x00007fff92a5c078 _Z20aeDispatchAppleEventPK6AEDescPS_jPh + 307
26 AE 0x00007fff92a5bed9 _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 37
27 AE 0x00007fff92a5bd99 aeProcessAppleEvent + 318
28 HIToolbox 0x00007fff8e204709 AEProcessAppleEvent + 100
29 AppleScript 0x000000010de1942c _ZN6Applet16HandleAppleEventEP11EventRecord + 54
30 AppleScript 0x000000010de1b663 _ZN6Applet12ProcessEventEm + 97
31 AppleScript 0x000000010de197b8 _ZN6Applet4MainEv + 420
32 AppleScript 0x000000010de19a52 OSAAppletExecute + 58
33 AppleScript 0x000000010de19b47 AppletComponent + 185
34 droplet 0x000000010dc33ec2 droplet + 3778
35 droplet 0x000000010dc33ee8 droplet + 3816
36 droplet 0x000000010dc33e90 droplet + 3728
37 ??? 0x0000000000000002 0x0 + 2
)
8/20/13 10:14:56.679 PM droplet[248]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[NSProgress acknowledge]: the bundle identifier could not be computed.'

      • First throw call stack:

(
0 CoreFoundation 0x00007fff8cad0b06 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00007fff8c8073f0 objc_exception_throw + 43
2 CoreFoundation 0x00007fff8cad08dc +[NSException raise:format:] + 204
3 Foundation 0x00007fff90ee5220 -[NSProgressProxy acknowledgeWithSuccess:] + 112
4 DesktopServicesPriv 0x00007fff8dab7706 __AddSubscriberFor_block_invoke_0 + 202
5 Foundation 0x00007fff90ee4b95 __44-[NSProgressProxy _invokePublishingHandler:]_block_invoke_0 + 24
6 CoreFoundation 0x00007fff8ca8dcd2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 18
7 CoreFoundation 0x00007fff8ca4e47f __CFRunLoopDoBlocks + 255
8 CoreFoundation 0x00007fff8ca727e4 __CFRunLoopRun + 772
9 CoreFoundation 0x00007fff8ca720e2 CFRunLoopRunSpecific + 290
10 HIToolbox 0x00007fff8e1f9eb4 RunCurrentEventLoopInMode + 209
11 HIToolbox 0x00007fff8e30f774 GetNextEventMatchingMask + 86
12 HIToolbox 0x00007fff8e30f677 WNEInternal + 180
13 HIToolbox 0x00007fff8e30f5b7 WaitNextEvent + 52
14 AppleScript 0x000000010de1bbbf _Z10ActiveProcPv + 36
15 AppleScript 0x000000010de394a0 _Z23InternalComponentActivej + 85
16 AppleScript 0x000000010de63ef6 _Z13UASRemoteSendhhhhhPh + 452
17 AppleScript 0x000000010de6fbb9 _Z13UASValue_Sendhh14TUASClassIndexh + 178
18 AppleScript 0x000000010de4c4ba _Z11UASExecute1v + 369
19 AppleScript 0x000000010de25495 _Z14ASExecuteEventPK6AEDescjiPj + 848
20 AppleScript 0x000000010de1e33a AppleScriptComponent + 1778
21 OpenScripting 0x00007fff9356d0d0 OSAExecuteEvent + 66
22 AppleScript 0x000000010de1bf4a _ZN6Applet9RunScriptEPK6AEDescPS0_ + 666
23 AppleScript 0x000000010de1939d _ZN6Applet13DoScriptEventEPK6AEDescPS0_ + 465
24 AppleScript 0x000000010de191c0 _Z18ScriptEventHandlerPK6AEDescPS_Pv + 66
25 AE 0x00007fff92a5c078 _Z20aeDispatchAppleEventPK6AEDescPS_jPh + 307
26 AE 0x00007fff92a5bed9 _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 37
27 AE 0x00007fff92a5bd99 aeProcessAppleEvent + 318
28 HIToolbox 0x00007fff8e204709 AEProcessAppleEvent + 100
29 AppleScript 0x000000010de1942c _ZN6Applet16HandleAppleEventEP11EventRecord + 54
30 AppleScript 0x000000010de1b663 _ZN6Applet12ProcessEventEm + 97
31 AppleScript 0x000000010de197b8 _ZN6Applet4MainEv + 420
32 AppleScript 0x000000010de19a52 OSAAppletExecute + 58
33 AppleScript 0x000000010de19b47 AppletComponent + 185
34 droplet 0x000000010dc33ec2 droplet + 3778
35 droplet 0x000000010dc33ee8 droplet + 3816
36 droplet 0x000000010dc33e90 droplet + 3728
37 ??? 0x0000000000000002 0x0 + 2
)
8/20/13 10:14:56.720 PM coreaudiod[119]: Disabled automatic stack shots because audio IO is active
8/20/13 10:14:57.144 PM com.apple.launchd.peruser.501[135]: ([0x0-0x27027].Apple ID Bulk creator script -Interactive[248]) Job appears to have crashed: Abort trap: 6
8/20/13 10:14:57.316 PM ReportCrash[253]: Saved crash report for droplet[248] version ??? to /Users/xxxxx/Library/Logs/DiagnosticReports/droplet_2013-08-20-221457_MacBook-Pro.crash
8/20/13 10:14:57.347 PM coreaudiod[119]: Enabled automatic stack shots because audio IO is inactive
8/20/13 10:14:57.394 PM UserNotificationCenter[255]: *** WARNING: Method userSpaceScaleFactor in class NSWindow is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.
8/20/13 10:15:02.228 PM Problem Reporter[256]: *** WARNING: Method userSpaceScaleFactor in class NSWindow is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.

Top
Eight_Quarter_Bit's picture

Eight_Quarter_Bit

Joined: Jan 27, 2012

Debugging the crash

Your rating: None

Is it the "trash emptied" sound or the "item moved to trash" sound? When a constructed process updates one of the output CSVs it doesn't do an in-place edit, but moves the previous copy of the CSV to the trash and creates a fresh file. This is some left-over debugging behavior that could probably stand to be improved, but may give us a clue as to what's going on. Do the CSVs change in any way? How many are created?

Does iTunes ever launch? I notice it's complaining about a bundle identifier in the crash log, and that's one of the things that could be triggering that behavior. If it doesn't launch, is iTunes in its normal location under Applications? Has it been launched in the past?

Top
Clark Kent 1974's picture

Clark Kent 1974

Joined: Jul 18, 2011

Unfortunately, I had this

Your rating: None

Unfortunately, I had this error but I changed different variables at the same time and I don't know what the fix was. Did you try to launch the demo script from the Desktop just to compare ?

Top
danatli's picture

danatli

Joined: Aug 21, 2013

I was able to work around

Your rating: None

I was able to work around this by running it on 10.7. It worked fine on 10.7 but I never did get it working on 10.8.

Top
curbsenthusiasm's picture

curbsenthusiasm

Joined: Sep 25, 2013

Same issue here

Your rating: None

Resolved it by simply renaming the CSV file to a simple file name with 3 characters.

Top
Clark Kent 1974's picture

Clark Kent 1974

Joined: Jul 18, 2011

Ok. That's true that during

Your rating: None

Ok. That's true that during the testing, I've also played with the names of the script and the CSV files Wink True that the folders created have long names so the name of the CSV files have to be short !

Top
ascender's picture

ascender

Joined: Nov 20, 2013

Hi. I'm getting this exact

Your rating: None

Hi. I'm getting this exact same error message and its driving me mad!!! The script ran through once successfully but is now doing the exact same thing as in post 1.

  • The subdirectory for the output files is created but it goes no further.
  • Also, the following empty folder is moved to trash: "Account Creation Data For 123.csv run on Wednesday, 20 November 2013 11.56.36"
  • I have re-created my csv file from the headers required.
  • I've made sure its a short filename.
  • iTunes is present and correct and I've tried the app with iTunes already running, with it not running, but its the same result.
  • I've tried re-creating from scratch, both using the supplied kickstart process and one from scratch.

Any ideas about what else I could check please?

Thanks,

Mike.

Top
Clark Kent 1974's picture

Clark Kent 1974

Joined: Jul 18, 2011

Hi. Did you try your script

Your rating: None

Hi. Did you try your script with OS X 10.7.4 ? The same script which does not function with OS X 10.8.? works really fine with OS X 10.7.4.

Top
ascender's picture

ascender

Joined: Nov 20, 2013

No, unfortunately the only

Your rating: None

No, unfortunately the only laptops my client has are all on 10.8.something. That sort of incompatibility might explain the randomness to this failing as I've managed to get further with a fresh csv but then next time it fails to run at all.

Thanks, will try to track down another computer or roll this back with a dev account.

Top
Clark Kent 1974's picture

Clark Kent 1974

Joined: Jul 18, 2011

Ok. Know that I saw the

Your rating: None

Ok. Know that I saw the "thing" functions a little on OS X 10.8.3 but suddenly it started to not function at all, tried another machine with OS X 10.8.5 but only the revert to OS X 10.7.4 has solved the issue.

Top
ascender's picture

ascender

Joined: Nov 20, 2013

Thanks, that's a lot of help,

Your rating: None

Thanks, that's a lot of help, will go and have a wander round looking for 10.7.4 machines!

Top
msjustu110's picture

msjustu110

Joined: Apr 25, 2014

It was a nice article that

Your rating: None

It was a nice article that you have provided here about how to debug the Apple ID Automation Builder script whose interactive crashes immediately on the launch. I hope that the error free version of the code will be released soon.
buckyball

Top

Who is online?

There are currently 0 admins, 0 users and 28 guests online. Connected users: .

Recent Activity