Reproducible crash with OSAScript.framework
| Originator: | cmsj | ||
| Number: | rdar://33183235 | Date Originated: | 2017-07-07 |
| Status: | Open | Resolved: | |
| Product: | macOS + SDK | Product Version: | 10.12.5 |
| Classification: | Crash | Reproducible: | Always |
Area: Something not on this list Summary: I have an app which lets people execute AppleScript/JavaScript scripts, and we do that using the OSAScript framework. They get to set how often the scripts are executed, and I've had a bug report from a user who is running the scripts *very* frequently, that he sees crashes. I've managed to whittle the code down to a consistent reproducer that will crash within 2 seconds on my 4GHz Late-2015 iMac (running 10.12.5) I realise this is probably not at all how OSAScript is intended to be used, but nonetheless, it doesn't appear to offer me any API for cleaning up its resources after I've used it each iteration, so it crashes because (afaict) it's hitting some kind of resource limit. Steps to Reproduce: Build&Run the included Xcode project, it should crash pretty quickly. You can speed up the crash dramatically by removing the NSLog() for each iteration. Expected Results: No crash Observed Results: Crash Version: 10.12.5 Notes: Configuration: Comments
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!