• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: My ASObjC app keeps crashing.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: My ASObjC app keeps crashing.


  • Subject: Re: My ASObjC app keeps crashing.
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 30 Jan 2015 17:20:28 +1100

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...

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: My ASObjC app keeps crashing.
      • From: Brian Christmas <email@hidden>
References: 
 >My ASObjC app keeps crashing. (From: Brian Christmas <email@hidden>)

  • Prev by Date: My ASObjC app keeps crashing.
  • Next by Date: Re: Scriptable application can not return record data
  • Previous by thread: My ASObjC app keeps crashing.
  • Next by thread: Re: My ASObjC app keeps crashing.
  • Index(es):
    • Date
    • Thread