G’day.
I’ve got a very large, 6 script class project, that is over 480 KB (with extensive commenting), building under Yosemite.
I’ve had lots of crashes, mainly caused by the lack of ‘my’ statements when altering old code (some of it 10 year old applescript code). This project has grown like Topsy!
However, after meticulously re-coding, I still get frequent crashes, on thread 0, and don’t understand the log.
Is there some way of overcoming these crashes, please? The Xcode guru Shane Stanley informs me that my project might be too large, but I’ve run it with many ‘nice to have, but not essential’ script handlers commented out, and it still crashes!
Any thoughts appreciated!
Regards
Brian Christmas
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x00007fff8cb1044f objc_release + 15
1 libobjc.A.dylib 0x00007fff8cb0ee8f (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 575
2 com.apple.applescript 0x000000010ad92fc9 autoreleasepool::~autoreleasepool() + 221
3 com.apple.applescript 0x000000010ad70958 GCCollect(unsigned long) + 1047
4 com.apple.applescript 0x000000010ad7024d GCArea_AllocateBottom(unsigned long) + 30
5 com.apple.applescript 0x000000010ad70e3a GCMakeVector_(unsigned long) + 23
6 com.apple.applescript 0x000000010adb4a93 UASPushValue(TUASClassIndex, long) + 30
7 com.apple.applescript 0x000000010ad8ec7c UASExecute1() + 373
8 com.apple.applescript 0x000000010ad5ff2a ASExecuteEvent(AEDesc const*, unsigned int, int, unsigned int*) + 680
9 com.apple.applescript 0x000000010ad57aad AppleScriptComponent + 737
10 com.apple.openscripting 0x00007fff92995365 OSAExecuteEvent + 63
11 com.apple.AppleScriptObjC 0x00007fff86073f66 +[BAObjectProto invokeScriptHandler:forObject:inComponentInstance:args:error:] + 234
12 com.apple.AppleScriptObjC 0x00007fff86074222 -[BAObjectProto invokeScriptHandler:args:error:] + 111
13 com.apple.AppleScriptObjC 0x00007fff86075026 -[BAObjectProto forwardInvocation:] + 389
14 com.apple.CoreFoundation 0x00007fff88dc98a6 forwarding + 518
15 com.apple.CoreFoundation 0x00007fff88dc9618 CF_forwarding_prep_0 + 120
16 com.apple.CoreFoundation 0x00007fff88d583cc invoking + 140
17 com.apple.CoreFoundation 0x00007fff88d58222 -[NSInvocation invoke] + 290
18 com.apple.AppleScriptObjC 0x00007fff8607a701 Invoke + 2234
19 com.apple.AppleScriptObjC 0x00007fff8607afd1 BAHandleEventInternal + 1279
20 com.apple.AppleScriptObjC 0x00007fff8607b686 BASendProc + 46
21 com.apple.applescript 0x000000010ad77b9b ComponentSend(AEDesc const*, AEDesc*, int, int) + 441
22 com.apple.applescript 0x000000010ad8a39c TUASApplication::Send(TStackFrame_UASRemoteSend*, AEDesc*, AEDesc*, unsigned char, unsigned char, unsigned char) + 1768
23 com.apple.applescript 0x000000010adac655 UASRemoteSend(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char*) + 582
24 com.apple.applescript 0x000000010ad8ec7c UASExecute1() + 373
25 com.apple.applescript 0x000000010ad5ff2a ASExecuteEvent(AEDesc const*, unsigned int, int, unsigned int*) + 680
26 com.apple.applescript 0x000000010ad57aad AppleScriptComponent + 737
27 com.apple.openscripting 0x00007fff92995365 OSAExecuteEvent + 63
28 com.apple.AppleScriptObjC 0x00007fff86073f66 +[BAObjectProto invokeScriptHandler:forObject:inComponentInstance:args:error:] + 234
29 com.apple.AppleScriptObjC 0x00007fff86074222 -[BAObjectProto invokeScriptHandler:args:error:] + 111
30 com.apple.AppleScriptObjC 0x00007fff86075026 -[BAObjectProto forwardInvocation:] + 389
31 com.apple.CoreFoundation 0x00007fff88dc98a6 forwarding + 518
32 com.apple.CoreFoundation 0x00007fff88dc9618 CF_forwarding_prep_0 + 120
33 com.apple.CoreFoundation 0x00007fff88d583cc invoking + 140
34 com.apple.CoreFoundation 0x00007fff88d58222 -[NSInvocation invoke] + 290
35 com.apple.AppleScriptObjC 0x00007fff8607a701 Invoke + 2234
36 com.apple.AppleScriptObjC 0x00007fff8607afd1 BAHandleEventInternal + 1279
37 com.apple.AppleScriptObjC 0x00007fff8607b686 BASendProc + 46
38 com.apple.applescript 0x000000010ad77b9b ComponentSend(AEDesc const*, AEDesc*, int, int) + 441
39 com.apple.applescript 0x000000010ad8a39c TUASApplication::Send(TStackFrame_UASRemoteSend*, AEDesc*, AEDesc*, unsigned char, unsigned char, unsigned char) + 1768
40 com.apple.applescript 0x000000010adac655 UASRemoteSend(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char*) + 582
41 com.apple.applescript 0x000000010ad8ec7c UASExecute1() + 373
42 com.apple.applescript 0x000000010ad5ff2a ASExecuteEvent(AEDesc const*, unsigned int, int, unsigned int*) + 680
43 com.apple.applescript 0x000000010ad57aad AppleScriptComponent + 737
44 com.apple.openscripting 0x00007fff92995365 OSAExecuteEvent + 63
45 com.apple.AppleScriptObjC 0x00007fff86073f66 +[BAObjectProto invokeScriptHandler:forObject:inComponentInstance:args:error:] + 234
46 com.apple.AppleScriptObjC 0x00007fff86074222 -[BAObjectProto invokeScriptHandler:args:error:] + 111
47 com.apple.AppleScriptObjC 0x00007fff86075026 -[BAObjectProto forwardInvocation:] + 389
48 com.apple.CoreFoundation 0x00007fff88dc98a6 forwarding + 518
49 com.apple.CoreFoundation 0x00007fff88dc9618 CF_forwarding_prep_0 + 120
50 com.apple.CoreFoundation 0x00007fff88d583cc invoking + 140
51 com.apple.CoreFoundation 0x00007fff88d58222 -[NSInvocation invoke] + 290
52 com.apple.AppleScriptObjC 0x00007fff8607a701 Invoke + 2234
53 com.apple.AppleScriptObjC 0x00007fff8607afd1 BAHandleEventInternal + 1279
54 com.apple.AppleScriptObjC 0x00007fff8607b686 BASendProc + 46
55 com.apple.applescript 0x000000010ad77b9b ComponentSend(AEDesc const*, AEDesc*, int, int) + 441
56 com.apple.applescript 0x000000010ad8a39c TUASApplication::Send(TStackFrame_UASRemoteSend*, AEDesc*, AEDesc*, unsigned char, unsigned char, unsigned char) + 1768
57 com.apple.applescript 0x000000010adac655 UASRemoteSend(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char*) + 582
58 com.apple.applescript 0x000000010ad8ec7c UASExecute1() + 373
59 com.apple.applescript 0x000000010ad5ff2a ASExecuteEvent(AEDesc const*, unsigned int, int, unsigned int*) + 680
60 com.apple.applescript 0x000000010ad57aad AppleScriptComponent + 737
61 com.apple.openscripting 0x00007fff92995365 OSAExecuteEvent + 63
62 com.apple.AppleScriptObjC 0x00007fff86073f66 +[BAObjectProto invokeScriptHandler:forObject:inComponentInstance:args:error:] + 234
63 com.apple.AppleScriptObjC 0x00007fff86074222 -[BAObjectProto invokeScriptHandler:args:error:] + 111
64 com.apple.AppleScriptObjC 0x00007fff86075026 -[BAObjectProto forwardInvocation:] + 389
65 com.apple.CoreFoundation 0x00007fff88dc98a6 forwarding + 518
66 com.apple.CoreFoundation 0x00007fff88dc9618 _CF_forwarding_prep_0 + 120
67 com.apple.CoreFoundation 0x00007fff88e3bcdc CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12
68 com.apple.CoreFoundation 0x00007fff88d2d244 _CFXNotificationPost + 3140
69 com.apple.Foundation 0x00007fff8a9b9c31 -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
70 com.apple.AppKit 0x00007fff881e98f7 -[NSApplication finishLaunching] + 440
71 com.apple.AppKit 0x00007fff881e93c1 -[NSApplication run] + 128
72 com.apple.AppKit 0x00007fff881d4a14 NSApplicationMain + 1832
73 MeSelf-Software.Mail-Manager 0x0000000108baaf12 main + 98 (main.m:14)
74 libdyld.dylib 0x00007fff8f82f5c9 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff8b86d232 kevent64 + 10
1 libdispatch.dylib 0x00007fff86b3aa6a _dispatch_mgr_thread + 52
Thread 2:
0 libsystem_kernel.dylib 0x00007fff8b86c94a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff913a240d start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff8b86c94a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff913a240d start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x00007fff8b86c94a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff913a240d start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0xbadd71ef8e1bbead rbx: 0x00007fda2a88c010 rcx: 0x00007fda2a88cda0 rdx: 0x00000000000062cb
rdi: 0x0000618000489ec0 rsi: 0x0000000000000008 rbp: 0x00007fff570530a0 rsp: 0x00007fff57052c58
r8: 0x0000000000000200 r9: 0xbaddc0dedeadbead r10: 0x00007fda2a9037e0 r11: 0x0000000000000005
r12: 0xa3a3a3a3a3a3a3a3 r13: 0x00007fff7591b070 r14: 0x00007fda2a88c818 r15: 0x00007fda2a88c000
rip: 0x00007fff8cb1044f rfl: 0x0000000000010246 cr2: 0x000060800045fd40
Logical CPU: 6
Error Code: 0x00000000
Trap Number: 13
Model: Late 2014 retina i7, Yosemite
AppleScript: 2.4
Browser: Safari 600.2.5
Operating System: Other