Re: [Bibdesk-users] Crash with applescript on 1.7.5

2020-04-02 Thread Christiaan Hofman


> On 2 Apr 2020, at 19:26, Luc Bourhis via Bibdesk-users 
>  wrote:
> 
> Hi,
> 
> the attached Applescript, which has worked fine for over a year, now 
> systematically crashes. I also attached the stack trace. That Applescript 
> relies on some Ruby script I haven’t attached. Please tell me if you want 
> that too. 
> 
> Best wishes,
> 
> Luc J Bourhis
> 
> ___
> 

Sorry about that. This bug has already been fixed for tomorrow’s nightly build. 
Perhaps you could test that out?

Christiaan

___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


[Bibdesk-users] Crash with applescript on 1.7.5

2020-04-02 Thread Luc Bourhis via Bibdesk-users
Hi,

the attached Applescript, which has worked fine for over a year, now 
systematically crashes. I also attached the stack trace. That Applescript 
relies on some Ruby script I haven’t attached. Please tell me if you want that 
too. 

Best wishes,

Luc J Bourhis



script.scpt
Description: Binary data
Process:   BibDesk [11744]
Path:  /Applications/BibDesk.app/Contents/MacOS/BibDesk
Identifier:edu.ucsd.cs.mmccrack.bibdesk
Version:   1.7.5 (5198)
Code Type: X86-64 (Native)
Parent Process:??? [1]
Responsible:   BibDesk [11744]
User ID:   501

Date/Time: 2020-04-02 19:19:04.374 +0200
OS Version:Mac OS X 10.14.6 (18G4032)
Report Version:12
Anonymous UUID:03D89882-45EE-95B2-AFDD-4FCFD84F633B


Time Awake Since Boot: 10 seconds

System Integrity Protection: enabled

Crashed Thread:0  Dispatch queue: com.apple.main-thread

Exception Type:EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:   KERN_INVALID_ADDRESS at 0x000c
Exception Note:EXC_CORPSE_NOTIFY

Termination Signal:Segmentation fault: 11
Termination Reason:Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [11744]

VM Regions Near 0xc:
-->
__TEXT 00010e202000-00010e477000 [ 2516K] r-x/r-x 
SM=COW  /Applications/BibDesk.app/Contents/MacOS/BibDesk

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.AE0x7fff52a70b68 
cloneForCompatability(AEDesc const*, AEDesc*) + 209
1   com.apple.AE0x7fff52a7f0c2 AEPutParamDesc + 102
2   edu.ucsd.cs.mmccrack.bibdesk0x00010e36d607 
+[NSAppleEventDescriptor(BDSKExtensions) 
appleEventWithEventClass:eventID:labelsAndParameters:] + 322
3   edu.ucsd.cs.mmccrack.bibdesk0x00010e2b5c39 -[BDSKScriptHookManager 
runScriptHookWithName:forPublications:document:field:oldValues:newValues:completionHandler:]
 + 196
4   edu.ucsd.cs.mmccrack.bibdesk0x00010e2b5b23 -[BDSKScriptHookManager 
runScriptHookWithName:forPublications:document:] + 29
5   edu.ucsd.cs.mmccrack.bibdesk0x00010e225f09 -[BibDocument 
importPublications:publicationsToAutoFile:temporaryCiteKey:options:] + 3009
6   edu.ucsd.cs.mmccrack.bibdesk0x00010e27eae4 
__52-[BibDocument(Scripting) handleImportScriptCommand:]_block_invoke.509 + 819
7   edu.ucsd.cs.mmccrack.bibdesk0x00010e27e1c2 -[BibDocument(Scripting) 
handleImportScriptCommand:] + 892
8   com.apple.CoreFoundation0x7fff51839acc __invoking___ + 140
9   com.apple.CoreFoundation0x7fff5183999b -[NSInvocation invoke] + 
311
10  com.apple.CoreFoundation0x7fff51899311 -[NSInvocation 
invokeWithTarget:] + 56
11  com.apple.Foundation0x7fff53c87722 -[NSScriptCommand 
_sendToRemainingReceivers] + 647
12  com.apple.Foundation0x7fff53c87a63 -[NSScriptCommand 
executeCommand] + 507
13  com.apple.Foundation0x7fff53c9e755 
-[NSScriptingAppleEventHandler handleCommandEvent:withReplyEvent:] + 195
14  com.apple.Foundation0x7fff53aeb6d0 -[NSAppleEventManager 
dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 286
15  com.apple.Foundation0x7fff53aeb54d 
_NSAppleEventManagerGenericHandler + 102
16  com.apple.AE0x7fff52a6d397 
aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 
1815
17  com.apple.AE0x7fff52a6cc29 
dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 41
18  com.apple.AE0x7fff52a6cb01 aeProcessAppleEvent + 414
19  com.apple.HIToolbox 0x7fff50a838b7 AEProcessAppleEvent + 54
20  com.apple.AppKit0x7fff4ee11a9d _DPSNextEvent + 1935
21  com.apple.AppKit0x7fff4ee1046b -[NSApplication(NSEvent) 
_nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361
22  com.apple.AppKit0x7fff4ee0a588 -[NSApplication run] + 
699
23  com.apple.AppKit0x7fff4edf9ac8 NSApplicationMain + 777
24  edu.ucsd.cs.mmccrack.bibdesk0x00010e204048 start + 52

Thread 1:
0   libsystem_pthread.dylib 0x7fff7da403f0 start_wqthread + 0

Thread 2:
0   libsystem_pthread.dylib 0x7fff7da403f0 start_wqthread + 0

Thread 3:: JavaScriptCore bmalloc scavenger
0   libsystem_kernel.dylib  0x7fff7d985866 __psynch_cvwait + 10
1   libsystem_pthread.dylib 0x7fff7da4456e _pthread_cond_wait + 722
2   libc++.1.dylib  0x7fff7aa87a0a 
std::__1::condition_variable::wait(std::__1::unique_lock&) + 18
3   com.apple.JavaScriptCore0x7fff54d2ec42 void 
std::__1::condition_variable_any::wait 
>(std::__1::unique_lock&) + 82
4   com.apple.JavaScriptCore0x7fff54d32d4b 
bmalloc::Scavenger::threadRunLoop() + 139
5   com.apple.JavaScriptCore0x7fff54d32579