On 30 Jan 2015, at 4:46 pm, Brian Christmas <email@hidden> wrote:
Perhaps it’s too complex?
Could be. I'm very surprised you haven't hit a wall earlier. I think you're pushing things to, if not over, the limit.
The error log start is below; could anyone tell me where to start looking for a problem by reading it please?
It really doesn't tell you much; it's in the bowels of AppleScript, when it does some garbage collection.
It's quite similar to one I've been dealing with. OTOH, I can generate mine with a handful of of lines, so the cause is probably different. Basically it looks like AppleScript is overreleasing a Cocoa object, and crashing when it comes to clean-up time.
It *may* be related to some logging you're doing. Enter this in Script Editor:
use framework "Foundation"
set x to {} set anNSString to current application's NSString's stringWithString:"xyz" repeat 10 times set end of x to anNSString end repeat repeat with aVal in x set y to aVal log y end repeat
Run it several times with just the Description showing, and it runs fine. Set it to show Events or Replies and it will crash after three or four runs. And the last few lines from the crash log will look familiar:
0 libobjc.A.dylib 0x00007fff919a844f objc_release + 15 1 libobjc.A.dylib 0x00007fff919a6e8f (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 575 2 com.apple.applescript 0x0000000103c83fc9 autoreleasepool::~autoreleasepool() + 221 3 com.apple.applescript 0x0000000103c61958 GCCollect(unsigned long) + 1047 4 com.apple.applescript 0x0000000103c6124d GCArea_AllocateBottom(unsigned long) + 30 5 com.apple.applescript 0x0000000103c61e3a GCMakeVector_(unsigned long) + 23
None of which really gives you a lot to go on. But it may be better than nothing...
|