Script works in Script Editor but crashed when run stand alone
Script works in Script Editor but crashed when run stand alone
- Subject: Script works in Script Editor but crashed when run stand alone
- From: david <email@hidden>
- Date: Sun, 11 Jan 2009 09:47:33 +0100
I have created a script that I saved as a Stay Open application.
When running this script from Script Editor it can run for hours without
problem but if I try to launch it from Finder it immediately crashes (crash
log at the end). Any ideas what the problem might be? Why does it say it is
a PPC app? I have only run it on a MacBook Pro with 10.5
It uses the XNetwork.osax but is otherwise quite standard.
Any ideas?
Process: Stay online.app [72860]
Path: /Users/david/Library/Scripts/Stay online.app
Identifier: Stay online.app
Version: ??? (???)
Code Type: PPC (Translated)
Parent Process: launchd [127]
Date/Time: 2009-01-10 23:04:00.697 +0100
OS Version: Mac OS X 10.5.6 (9G55)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread: 0
Thread 0 Crashed:
0 translate 0xb80bcd58 0xb8000000 + 773464
1 translate 0xb80b7007 0xb8000000 + 749575
2 translate 0xb80d49c0 0xb8000000 + 870848
3 translate 0xb813ce79 spin_lock_wrapper + 1981
Thread 1:
0 ??? 0x800bc1c6 0 + 2148254150
1 ??? 0x800c39bc 0 + 2148284860
2 translate 0xb818b6ea CallPPCFunctionAtAddressInt +
202886
3 ??? 0x800ed095 0 + 2148454549
4 ??? 0x800ecf52 0 + 2148454226
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0xb80bcd30 ecx: 0x00000000 edx: 0x00000003
edi: 0x00000000 esi: 0x80303490 ebp: 0xb7fffa08 esp: 0xb7fff9d0
ss: 0x0000001f efl: 0x00010206 eip: 0xb80bcd58 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x00000000
Binary Images:
0xb8000000 - 0xb81d7fe7 translate ??? (???) /usr/libexec/oah/translate
Translated Code Information:
Rosetta Version: 21.03
Args: /Users/david/Library/Scripts/Stay online.app -psn_0_835788
Exception: EXC_BAD_ACCESS (0x0001)
Thread 0: Crashed (0xb7fff9d0, 0xb80bcd58)
0x11248b20:
/Users/david/Library/ScriptingAdditions/XNetwork.osax/Contents/MacOS/XNetwork
: listManagedNetworksHandler(AEDesc const*, AEDesc*) + 116
0x112494c0:
/Users/david/Library/ScriptingAdditions/XNetwork.osax/Contents/MacOS/XNetwork
: OsaxEventHandler(AEDesc const*, AEDesc*, long) + 192
0x112484e8:
/Users/david/Library/ScriptingAdditions/XNetwork.osax/Contents/MacOS/XNetwork
: MyLocalSampleHandler(AEDesc const*, AEDesc*, long) + 44
0x94b73ce4:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
: aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned
char*) + 168
0x94b7d8a8:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
: _AESendMessage + 996
0x94b807f0:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
: _aeSend + 200
0x96656d44:
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
: _AESend + 104
0x003bdf74:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: SendProc2(AEDesc const*, AEDesc*, long, short, long, unsigned char
(*)(EventRecord*, long*, OpaqueRgnHandle**), unsigned char
(*)(EventRecord*, long, long, AEDesc const*), long) + 36
0x003e3714:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: ComponentSend(AEDesc const*, AEDesc*, long, long) + 116
0x003f2798:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: TUASApplication::Send(TStackFrame_UASRemoteSend*, AEDesc*, AEDesc*,
unsigned char, unsigned char, unsigned char) + 2180
0x0040cd00:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: UASRemoteSend(unsigned char, unsigned char, unsigned char, unsigned char,
unsigned char, unsigned char*) + 364
0x003ed054:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: UASActor_Send(unsigned char, unsigned char, unsigned char) + 344
0x003f64a0:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: UASExecute1() + 2612
0x003c90a8:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: ASExecuteEvent(AEDesc const*, unsigned long, long, unsigned long*) + 588
0x003c1030:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: _AppleScriptComponent + 1904
0x92b379c4:
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
: _OSAExecuteEvent + 52
0x003be334:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: Applet::RunScript(AEDesc const*, AEDesc*) + 668
0x003bb3f0:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: Applet::DoScriptEvent(AEDesc const*, AEDesc*) + 548
0x003bb68c:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: ScriptEventHandler(AEDesc const*, AEDesc*, long) + 80
0x94b73ce4:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
: aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned long, unsigned
char*) + 168
0x94b73bec:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
: dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 44
0x94b739f0:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
: _aeProcessAppleEvent + 216
0x9656c4b0:
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
: _AEProcessAppleEvent + 56
0x003bb4b4:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: Applet::HandleAppleEvent(EventRecord*) + 60
0x003bd8c4:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: Applet::ProcessEvent(unsigned long) + 88
0x003bb998:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: Applet::Main() + 416
0x003bbb80:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: _OSAAppletExecute + 60
0x003bbcc8:
/System/Library/PrivateFrameworks/AppleScript.framework/Versions/A/AppleScript
: _AppletComponent + 264
0x00002d38: /Users/david/Library/Scripts/Stay online.app :
__mh_execute_header + 7480
0x00002d78: /Users/david/Library/Scripts/Stay online.app :
__mh_execute_header + 7544
0x00002a38: /Users/david/Library/Scripts/Stay online.app :
__mh_execute_header + 6712
0x000028a8: /Users/david/Library/Scripts/Stay online.app :
__mh_execute_header + 6312
0x00000000: /Users/david/Library/Scripts/Stay online.app : + 0
PPC Thread State
srr0: 0x00000000 srr1: 0x00000000 vrsave: 0x00000000
cr: 0xXXXXXXXX xer: 0x00000000 lr: 0x9165eb8c ctr: 0x9165eb84
r00: 0x00000085 r01: 0xbfffd180 r02: 0x00000001 r03: 0x00000000
r04: 0x00000000 r05: 0x00000001 r06: 0x00000003 r07: 0x001fcb71
r08: 0x4d88902b r09: 0x00804800 r10: 0x00000007 r11: 0x00000044
r12: 0x9165eb84 r13: 0x00000000 r14: 0x00000000 r15: 0x00000000
r16: 0xbfffd36c r17: 0xbfffeb70 r18: 0xbfffd374 r19: 0xbfffd364
r20: 0xbfffea68 r21: 0xbfffd358 r22: 0xbfffeb70 r23: 0xbfffeb68
r24: 0x00000000 r25: 0x41697270 r26: 0x001525f0 r27: 0xbfffeb70
r28: 0xbfffd1c0 r29: 0x00000000 r30: 0xbfffd2d8 r31: 0x9165eb8c
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden