My main app is divided into 6 scripts, with the main script calling another mail handling script at request intervals. The main script uses performSelector_withObject_afterDelay_("runningLoop", missing value, 2) as speed of processing is essential (we might process 50 emails an hour). If mail exists in a mail folder, the runningLoop calls a mainProcessingLoops script. Both of these scripts call the other 4 scripts as required.
However, in the last two days the builds have constantly crashed after processing between 2 and 5 emails consecutively.
I cannot run theApp in Run or testing mode, it builds, but nothing happens. Perhaps it’s too complex? It relies heavily on GUI access.
The error log start is below; could anyone tell me where to start looking for a problem by reading it please? I have absolutely no idea where to start!
Time Awake Since Boot: 420 seconds
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 0x00007fff8581444f objc_release + 15
1 libobjc.A.dylib 0x00007fff85812e8f (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 575
2 com.apple.applescript 0x00000001067e3fc9 autoreleasepool::~autoreleasepool() + 221
3 com.apple.applescript 0x00000001067c1958 GCCollect(unsigned long) + 1047
4 com.apple.applescript 0x00000001067c124d GCArea_AllocateBottom(unsigned long) + 30
5 com.apple.applescript 0x00000001067c1e3a GCMakeVector_(unsigned long) + 23
6 com.apple.applescript 0x0000000106805a93 UASPushValue(TUASClassIndex, long) + 30
7 com.apple.applescript 0x00000001067e7d75 DecodeAEDescInternal(AEDesc const*, TUASDecodeState) + 5993
8 com.apple.applescript 0x00000001067fd390 UASDecodeReply(TStackFrame_UASRemoteSend*, short, AEDesc*, unsigned char*) + 1355
9 com.apple.applescript 0x00000001067fd6a4 UASRemoteSend(unsigned char, unsigned char, unsigned char, unsigned char, unsigned char, unsigned char*) + 661
10 com.apple.applescript 0x00000001067dfc7c UASExecute1() + 373
11 com.apple.applescript 0x00000001067b0f2a ASExecuteEvent(AEDesc const*, unsigned int, int, unsigned int*) + 680
12 com.apple.applescript 0x00000001067a8aad AppleScriptComponent + 737
13 com.apple.openscripting 0x00007fff9055f365 OSAExecuteEvent + 63
14 com.apple.AppleScriptObjC 0x00007fff833f5f66 +[BAObjectProto invokeScriptHandler:forObject:inComponentInstance:args:error:] + 234
15 com.apple.AppleScriptObjC 0x00007fff833f6222 -[BAObjectProto invokeScriptHandler:args:error:] + 111