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

2020-04-22 Thread Roberto
Thanks for trying your best guess.

On Wed, Apr 22, 2020 at 4:51 PM Christiaan Hofman 
wrote:

>
>
> On 22 Apr 2020, at 16:46, Roberto  wrote:
>
> What I am telling you is that for some reason the same script that does
> work calling python from bash does not work calling it from Automator.
> Please not this works with 1.7.4 so it is not the automator flow.
>
> On Wed, Apr 22, 2020 at 3:36 PM Christiaan Hofman 
> wrote:
>
>> So that's basically the same thing. That is fixed.
>>
>> Christiaan
>>
>
> I have no idea, the AppleScript support in BibDesk works.
>
> Christiaan
>
> ___
> Bibdesk-users mailing list
> Bibdesk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


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

2020-04-22 Thread Christiaan Hofman


> On 22 Apr 2020, at 16:46, Roberto  wrote:
> 
> What I am telling you is that for some reason the same script that does work 
> calling python from bash does not work calling it from Automator. Please not 
> this works with 1.7.4 so it is not the automator flow.
> 
> On Wed, Apr 22, 2020 at 3:36 PM Christiaan Hofman  > wrote:
> So that's basically the same thing. That is fixed. 
> 
> Christiaan

I have no idea, the AppleScript support in BibDesk works.

Christiaan

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


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

2020-04-22 Thread Roberto
What I am telling you is that for some reason the same script that does
work calling python from bash does not work calling it from Automator.
Please not this works with 1.7.4 so it is not the automator flow.

On Wed, Apr 22, 2020 at 3:36 PM Christiaan Hofman 
wrote:

> So that's basically the same thing. That is fixed.
>
> Christiaan
> ___
> Bibdesk-users mailing list
> Bibdesk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


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

2020-04-22 Thread Christiaan Hofman
So that's basically the same thing. That is fixed.

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


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

2020-04-22 Thread Roberto
The script does this
tell first document of application "BibDesk" to import from
"@article{Einstein1917, ... bibtex omitted for brevity ...}"

same as my message on this same mailing list few days ago
https://sourceforge.net/p/bibdesk/mailman/message/36975361/

Thanks for reading
Roberto


On Wed, Apr 22, 2020 at 10:36 AM Christiaan Hofman 
wrote:

> I hate it that Apple uses the term Services for a huge number of different
> things.
>
> But if you have problems with the execution of a script, it depends on
> what that script does. I don't know, because you didn't tell me.
> ___
> Bibdesk-users mailing list
> Bibdesk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


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

2020-04-22 Thread Christiaan Hofman
I hate it that Apple uses the term Services for a huge number of different
things.

But if you have problems with the execution of a script, it depends on what
that script does. I don't know, because you didn't tell me.
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


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

2020-04-22 Thread Roberto
Contextual Menu Services, which you can write with Automator.

In my case it selects the text (e.g. arXiv number) of the paper I want to
add to BibDesk and passes it to a "Run Bash script" Automator block, which
in turn passes to my Python script. The python scripts calls BibDesk
through apple script language in way that was working up to 1.7.4. Then it
was broken in 1.7.5 and later fixed in the nightlies. The fix in the
nightlies does not fix the problem when I feed the arXiv number through the
Contextual Menu Services. These, instead, worked fine with all the previous
versions up to 1.7.4. Let me know if I have not explained it well enough.


On Tue, Apr 21, 2020 at 5:14 PM Christiaan Hofman 
wrote:

>
>
> On 21 Apr 2020, at 16:57, Roberto  wrote:
>
> Is it possible that this bug affected also the use of BibDesk from
> Contextual Menu Services that call the same scripts that were broken in
> 1.7.5? In that case I do see the script working from command line if I use
> 20200404 or the latest nightly, but the Contextual Menu Service is not
> working. It does work instead if I roll back to 1.7.4.
>
>
> On Sun, Apr 5, 2020 at 7:04 PM Luc Bourhis via Bibdesk-users <
> bibdesk-users@lists.sourceforge.net> wrote:
>
>> Hi,
>>
>> I installed 20200404: the bug is gone. My script runs fine.
>>
>> Thanks a bunch,
>>
>> best wishes,
>>
>> Luc J bourhis
>>
>> > On 3 Apr 2020, at 13:28, Christiaan Hofman  wrote:
>> >
>> > Although there wasn't a nightly build todayfor some reason. So that has
>> to wait.
>> >
>> > Christiaan
>> >
>
>
> I don’t understand the question. Services don’t call scripts. So what
> service(s) are you talking about?
>
> Christiaan
>
> ___
> Bibdesk-users mailing list
> Bibdesk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


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

2020-04-21 Thread Christiaan Hofman


> On 21 Apr 2020, at 16:57, Roberto  wrote:
> 
> Is it possible that this bug affected also the use of BibDesk from Contextual 
> Menu Services that call the same scripts that were broken in 1.7.5? In that 
> case I do see the script working from command line if I use 20200404 or the 
> latest nightly, but the Contextual Menu Service is not working. It does work 
> instead if I roll back to 1.7.4.
> 
> 
> On Sun, Apr 5, 2020 at 7:04 PM Luc Bourhis via Bibdesk-users 
>  > wrote:
> Hi,
> 
> I installed 20200404: the bug is gone. My script runs fine. 
> 
> Thanks a bunch,
> 
> best wishes,
> 
> Luc J bourhis
> 
> > On 3 Apr 2020, at 13:28, Christiaan Hofman  > > wrote:
> > 
> > Although there wasn't a nightly build todayfor some reason. So that has to 
> > wait. 
> > 
> > Christiaan
> > 

I don’t understand the question. Services don’t call scripts. So what 
service(s) are you talking about?

Christiaan

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


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

2020-04-21 Thread Roberto
Is it possible that this bug affected also the use of BibDesk from
Contextual Menu Services that call the same scripts that were broken in
1.7.5? In that case I do see the script working from command line if I use
20200404 or the latest nightly, but the Contextual Menu Service is not
working. It does work instead if I roll back to 1.7.4.


On Sun, Apr 5, 2020 at 7:04 PM Luc Bourhis via Bibdesk-users <
bibdesk-users@lists.sourceforge.net> wrote:

> Hi,
>
> I installed 20200404: the bug is gone. My script runs fine.
>
> Thanks a bunch,
>
> best wishes,
>
> Luc J bourhis
>
> > On 3 Apr 2020, at 13:28, Christiaan Hofman  wrote:
> >
> > Although there wasn't a nightly build todayfor some reason. So that has
> to wait.
> >
> > Christiaan
> > ___
> > Bibdesk-users mailing list
> > Bibdesk-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>
>
>
> ___
> Bibdesk-users mailing list
> Bibdesk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>
___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


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

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

I installed 20200404: the bug is gone. My script runs fine. 

Thanks a bunch,

best wishes,

Luc J bourhis

> On 3 Apr 2020, at 13:28, Christiaan Hofman  wrote:
> 
> Although there wasn't a nightly build todayfor some reason. So that has to 
> wait. 
> 
> Christiaan
> ___
> Bibdesk-users mailing list
> Bibdesk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users



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


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

2020-04-03 Thread Christiaan Hofman
Although there wasn't a nightly build todayfor some reason. So that has to
wait.

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


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

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

no worries and yes, please!

Best wishes,

Luc


> On 2 Apr 2020, at 22:59, Christiaan Hofman  wrote:
> 
> 
> 
>> 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 mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


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