Menu

#1643 BibDesk does not open when sorting by file or URL fields

unverified
closed-fixed
nobody
None
5
2023-01-04
2022-11-09
Tine Wilde
No

BibDesk does not open a bibliography (it does nothing) which has doi/urls inserted. All worked fine until updating to Mac Ventura 13 and BibDesk 1.8.14. Old bibliographies without any urls open so no problem there. I already contacted mactex-mailinglist where they advised me to contact you. Sorry, I am not a developer, but I do not know any other way to get this work again.

1 Attachments

Related

Bugs: #1643

Discussion

  • Christiaan Hofman

    Is there any Console log about BibDesk when you open such a document? Without any information I cannot do anything about this, as I have no idea what could go wrong.

     
    • Tine Wilde

      Tine Wilde - 2022-11-09

      Dear Christiaan,

      I understand that I have given you very little input. I tried to find a console log about Bibdesk but cannot find anything in the console.app. But, then, I am not sure exactly where to look. In any case, I don’t see any crash reports. I am sorry not to be of much help.

      Best, Tine

       

      Last edit: Christiaan Hofman 2022-11-09
      • Christiaan Hofman

        You could try typing "bibdesk" or "edu.ucsd.cs.mmccrack.bibdesk" in the Search field of Console.app, and select various categories in the side bar.

        Also, does the problem specifically occur with linked remote URLs, or with linked local files, or either? As of now I have absolutely no idea what could possibly go wrong for you, and I have absolutely no way to find out (as I don't/can't have Ventura).

         
        • Tine Wilde

          Tine Wilde - 2022-11-09

          Would the edu.ucsd.cs.mmccrack.bibdesk.plist , located at ~Library/Preferences be of any help?

           

          Last edit: Christiaan Hofman 2022-11-09
          • Christiaan Hofman

            No, that's just a cache of your preferences.

             
            • Tine Wilde

              Tine Wilde - 2022-11-09

              I suggest that we wait for others with the same problem so that it can become clear what exactly is going on. In any case, I think it has to do with the doi/URLs inserted in the .bib file.

              Thank you so much for your time! Tine

               

              Last edit: Christiaan Hofman 2022-11-17
  • Christiaan Hofman

    • status: open --> open-works-for-me
     
  • Tony Garnock-Jones

    I think we're seeing the same thing.

    BibDesk nightly dated 29 Oct 2022.
    Version 1.8.14 (6038)
    (and also version 1.8.14 (6036))

    macOS 12.5.1 (Monterey) - works fine (on an M1 Mac Mini)
    macOS 12.6 - does not work (on M2 MacBook Air)
    macOS 13.0.1 (Ventura) - does not work (on M2 MacBook Air)

    This is the latest M2 MacBook Air, purchased only a few weeks ago.

    Save the following two lines to very-small-db.bib:

    @article{a1,url={1}}
    @article{a2,url={1}}
    

    Double-click on the bib file. The BibDesk app will open, but the file window will not open.

    Running the following in Terminal:

    % /Applications/BibDesk.app/Contents/MacOS/BibDesk ./very-small-db.bib
    

    yields two very suggestive error messages:

    2022-11-19 16:36:41.466 BibDesk[2376:38580] -[NSURL isFile]: unrecognized selector sent to instance 0x6000024e2490
    2022-11-19 16:36:41.552 BibDesk[2376:38580] -[NSURL isFile]: unrecognized selector sent to instance 0x6000024e2490
    

    Compare and contrast with the following two lines, for very-small-db-opens-ok.bib:

    @article{a1,title={1}}
    @article{a2,title={1}}
    

    (no url, has title instead)

    Double-clicking opens the file just fine in the app, and running the following in Terminal
    yields no output whatsoever (so not triggering the isFile path):

    % /Applications/BibDesk.app/Contents/MacOS/BibDesk ./very-small-db-opens-ok.bib
    

    Here are the Console.app messages produced while opening the problem very-small-db.bib
    file, filtered by bibdesk, and then cut down (by me) to particularly interesting-seeming
    lines. Note well the error lines for NSURL isFile matching the Terminal output -- and
    there's a backtrace for each, here! Also a Row index 0 out of row range error, which could
    well be knock-on damage after the isFile failures messed up the expected context...

    default 16:33:36.388328+0100    runningboardd   Launch request for app<application.edu.ucsd.cs.mmccrack.bibdesk.3887222.3887809(501)> is using uid 501 (divined from auid 501 euid 501)
    [...]
    default 16:33:36.455775+0100    BibDesk Received configuration update from daemon (initial)
    default 16:33:36.463145+0100    BibDesk CHECKIN: pid=2343
    [...]
    default 16:33:36.473125+0100    BibDesk CHECKEDIN: pid=2343 asn=0x0-0x98098 foreground=1
    [...]
    default 16:33:36.475861+0100    BibDesk FRONTLOGGING: version 1
    default 16:33:36.475982+0100    BibDesk Registered, pid=2343 ASN=0x0,0x98098
    default 16:33:36.477950+0100    BibDesk BringForward: pid=2343 asn=0x0-0x98098 bringForward=1 foreground=1 uiElement=0 launchedByLS=1 modifiersCount=1 allDisabled=0
    default 16:33:36.478092+0100    BibDesk BringFrontModifier: pid=2343 asn=0x0-0x98098 Modifier 0 hideAfter=0 hideOthers=0 dontMakeFrontmost=0 mouseDown=0/0 seed=0/0
    default 16:33:36.478167+0100    BibDesk BringForward: pid=2343 asn=0x0-0x98098
    default 16:33:36.478208+0100    BibDesk SetFrontProcess: asn=0x0-0x98098 options=0
    [...]
    default 16:33:36.482800+0100    BibDesk Current system appearance, (HLTB: 1), (SLS: 0)
    [...]
    default 16:33:36.485095+0100    BibDesk No persisted cache on this platform.
    [...]
    default 16:33:36.486287+0100    BibDesk Current system appearance, (HLTB: 1), (SLS: 0)
    [...]
    default 16:33:36.486653+0100    BibDesk Post-registration system appearance: (HLTB: 1)
    [...]
    default 16:33:36.518431+0100    BibDesk NSApp cache appearance:
    -NSRequiresAquaSystemAppearance: 0
    -appearance: (null)
    -effectiveAppearance: <NSCompositeAppearance: 0x6000002b1200
     (
        "<NSAquaAppearance: 0x6000002b1180>",
        "<NSSystemAppearance: 0x6000002b5300>"
    )>
    default 16:33:36.546497+0100    BibDesk Registering for test daemon availability notify post.
    default 16:33:36.546618+0100    BibDesk notify_get_state check indicated test daemon not ready.
    default 16:33:36.546722+0100    BibDesk notify_get_state check indicated test daemon not ready.
    default 16:33:36.546817+0100    BibDesk notify_get_state check indicated test daemon not ready.
    [...]
    default 16:33:36.588530+0100    BibDesk SignalReady: pid=2343 asn=0x0-0x98098
    default 16:33:36.589509+0100    BibDesk SIGNAL: pid=2343 asn=0x0x-0x98098
    [...]
    default 16:33:36.594702+0100    BibDesk Initializing connection
    default 16:33:36.594723+0100    BibDesk Removing all cached process handles
    default 16:33:36.594743+0100    BibDesk Sending handshake request attempt #1 to server
    default 16:33:36.594755+0100    BibDesk Creating connection to com.apple.runningboard
    [...]
    default 16:33:36.595236+0100    BibDesk Handshake succeeded
    default 16:33:36.595254+0100    BibDesk Identity resolved as app<application.edu.ucsd.cs.mmccrack.bibdesk.3887222.3887809(501)>
    [...]
    default 16:33:36.613128+0100    BibDesk Read options: 0 -- URL: <private> -- purposeID: 10661EA9-CB13-4B0F-AF67-3AE973660188 -- claimID: 473949B5-97B1-439F-8F85-6FBABE2D094B
    [...]
    default 16:33:36.616168+0100    BibDesk Claim 473949B5-97B1-439F-8F85-6FBABE2D094B granted in client
    default 16:33:36.616276+0100    BibDesk Claim 473949B5-97B1-439F-8F85-6FBABE2D094B invoked in client
    error   16:33:36.644501+0100    BibDesk open flag(s) 0x01000000 are reserved for VFS use and do not affect behaviour when passed to sqlite3_open_v2
    error   16:33:36.644599+0100    BibDesk cannot open file at line 46922 of [6bf7a27121]
    error   16:33:36.645122+0100    BibDesk os_unix.c:46922: (2) open(/private/var/db/DetachedSignatures) - No such file or directory
    default 16:33:36.647253+0100    BibDesk TrustSettingsUseXPC is enabled (via feature flags)
    default 16:33:36.652501+0100    BibDesk Resolve item 54F1D6D1-127B-4509-B698-E2DFBBBECBEE, options: 768, list: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.652539+0100    BibDesk Resolve item 6236E345-1B06-4204-8035-EBA73E7B7A52, options: 768, list: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.652420+0100    BibDesk Resolve item 553671B6-8FA8-46C2-BD25-67078448D535, options: 768, list: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.652379+0100    BibDesk Resolve item 8751A838-FFCD-4AD1-80FC-38EBFADC4554, options: 768, list: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.652339+0100    BibDesk Resolve item 169A3C6B-DB4D-46DC-ADD6-7B12EA7AC1B7, options: 768, list: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.652302+0100    BibDesk Resolve item C1771FCA-4CCB-448A-9B88-600B8A307F03, options: 768, list: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.652221+0100    BibDesk Resolve item C22A0C14-44B2-46DF-8585-3AC622946041, options: 768, list: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.653023+0100    BibDesk Resolve item D12C9D0A-2A24-41DA-BDE6-BF46E149054E, options: 768, list: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.653435+0100    BibDesk received: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.654135+0100    BibDesk received: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.654804+0100    BibDesk received: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.655419+0100    BibDesk received: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.656085+0100    BibDesk received: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.657603+0100    BibDesk received: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.659499+0100    BibDesk received: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.661185+0100    BibDesk received: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.661943+0100    BibDesk Resolve item F7451DB1-8377-4818-B859-E3DF742FF788, options: 768, list: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.663227+0100    BibDesk received: com.apple.LSSharedFileList.ApplicationRecentDocuments
    [...]
    default 16:33:36.725748+0100    BibDesk AggregateDictionary is not supported on this platform
    default 16:33:36.743139+0100    BibDesk Adding presenter D81EE80E-374B-46B1-B72E-BA3AC74FE6AF for URL: <private>
    default 16:33:36.743501+0100    BibDesk Adding presenter D81EE80E-374B-46B1-B72E-BA3AC74FE6AF for URL: <private>
    [...]
    default 16:33:36.743954+0100    BibDesk -[SFLGenericList _setPropertyValuesForKeysWithDictionary:error:]_block_invoke properties: <private> list: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.744354+0100    BibDesk received: com.apple.LSSharedFileList.ApplicationRecentDocuments
    [...]
    default 16:33:36.747874+0100    BibDesk -[SFLGenericList _insertItem:atIndex:error:]_block_invoke item: EBDE06CE-C332-4C2E-8594-FF466B51235B at index: 0 list: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.748162+0100    BibDesk received: com.apple.LSSharedFileList.ApplicationRecentDocuments
    default 16:33:36.749304+0100    BibDesk -[SFLGenericList _insertItem:atIndex:error:]_block_invoke item: ED97B0B1-6AAD-4BE9-8232-24F74A6DDA44 at index: 0 list: com.apple.LSSharedFileList.RecentDocuments
    default 16:33:36.749650+0100    BibDesk received: com.apple.LSSharedFileList.RecentDocuments
    default 16:33:36.822685+0100    BibDesk -[NSURL isFile]: unrecognized selector sent to instance 0x600000fb15e0
    error   16:33:36.822822+0100    BibDesk -[NSURL isFile]: unrecognized selector sent to instance 0x600000fb15e0
    error   16:33:36.824218+0100    BibDesk (
        0   CoreFoundation                      0x000000019a538418 __exceptionPreprocess + 176
        1   libobjc.A.dylib                     0x000000019a082ea8 objc_exception_throw + 60
        2   CoreFoundation                      0x000000019a5dac3c -[NSObject(NSObject) __retain_OA] + 0
        3   CoreFoundation                      0x000000019a49e6b0 ___forwarding___ + 1600
        4   CoreFoundation                      0x000000019a49dfb0 _CF_forwarding_prep_0 + 96
        5   BibDesk                             0x00000001028e6064 -[BDSKFieldCollection valueForUndefinedKey:] + 240
        6   Foundation                          0x000000019b396f3c -[NSObject(NSKeyValueCoding) valueForKey:] + 320
        7   Foundation                          0x000000019b396da4 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 220
        8   BibDesk                             0x0000000102819d18 -[NSMutableArray(BDSKExtensions) mergeSortUsingDescriptors:] + 456
        9   BibDesk                             0x00000001027602d8 -[BibDocument sortPubsByKey:] + 1248
        10  BibDesk                             0x000000010280c5c8 -[BibDocument(Search) updateSearch:] + 616
        11  BibDesk                             0x000000010280574c -[BibDocument(Groups) displaySelectedGroups] + 748
        12  BibDesk                             0x000000010280437c -[BibDocument(Groups) reloadParentGroup:] + 564
        13  BibDesk                             0x0000000102804f70 -[BibDocument(Groups) updateFilteringGroups] + 540
        14  BibDesk                             0x0000000102756568 -[BibDocument windowControllerDidLoadNib:] + 4848
        15  AppKit                              0x000000019d8824f4 -[NSWindowController _windowDidLoad] + 676
        16  AppKit                              0x000000019d87e8a8 -[NSWindowController window] + 84
        17  AppKit                              0x000000019d8e3874 -[NSWindowController showWindow:] + 44
        18  AppKit                              0x000000019d891eec -[NSDocument showWindows] + 68
        19  BibDesk                             0x0000000102754eb4 -[BibDocument showWindows] + 148
        20  AppKit                              0x000000019dbaaee4 __80-[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:]_block_invoke.406 + 112
        21  AppKit                              0x000000019dbb3664 ___NSMainRunLoopPerformBlockInModes_block_invoke + 44
        22  CoreFoundation                      0x000000019a4bd5cc __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 28
        23  CoreFoundation                      0x000000019a4bd4e0 __CFRunLoopDoBlocks + 368
        24  CoreFoundation                      0x000000019a4bc350 __CFRunLoopRun + 856
        25  CoreFoundation                      0x000000019a4bb8a4 CFRunLoopRunSpecific + 612
        26  HIToolbox                           0x00000001a3b2f3bc RunCurrentEventLoopInMode + 292
        27  HIToolbox                           0x00000001a3b2f04c ReceiveNextEventCommon + 236
        28  HIToolbox                           0x00000001a3b2ef48 _BlockUntilNextEventMatchingListInModeWithFilter + 72
        29  AppKit                              0x000000019d714630 _DPSNextEvent + 632
        30  AppKit                              0x000000019d7137c0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
        31  AppKit                              0x000000019d707bf0 -[NSApplication run] + 464
        32  AppKit                              0x000000019d6df058 NSApplicationMain + 880
        33  dyld                                0x000000019a0b3e50 start + 2544
    )
    default 16:33:36.837696+0100    BibDesk -[NSURL isFile]: unrecognized selector sent to instance 0x600000fb15e0
    error   16:33:36.837821+0100    BibDesk -[NSURL isFile]: unrecognized selector sent to instance 0x600000fb15e0
    error   16:33:36.838764+0100    BibDesk (
        0   CoreFoundation                      0x000000019a538418 __exceptionPreprocess + 176
        1   libobjc.A.dylib                     0x000000019a082ea8 objc_exception_throw + 60
        2   CoreFoundation                      0x000000019a5dac3c -[NSObject(NSObject) __retain_OA] + 0
        3   CoreFoundation                      0x000000019a49e6b0 ___forwarding___ + 1600
        4   CoreFoundation                      0x000000019a49dfb0 _CF_forwarding_prep_0 + 96
        5   BibDesk                             0x00000001028e6064 -[BDSKFieldCollection valueForUndefinedKey:] + 240
        6   Foundation                          0x000000019b396f3c -[NSObject(NSKeyValueCoding) valueForKey:] + 320
        7   Foundation                          0x000000019b396da4 -[NSObject(NSKeyValueCoding) valueForKeyPath:] + 220
        8   BibDesk                             0x0000000102819d18 -[NSMutableArray(BDSKExtensions) mergeSortUsingDescriptors:] + 456
        9   BibDesk                             0x00000001027602d8 -[BibDocument sortPubsByKey:] + 1248
        10  BibDesk                             0x000000010280c5c8 -[BibDocument(Search) updateSearch:] + 616
        11  BibDesk                             0x000000010280574c -[BibDocument(Groups) displaySelectedGroups] + 748
        12  BibDesk                             0x00000001028036e0 -[BibDocument(Groups) handleGroupTableSelectionChangedNotification:] + 844
        13  CoreFoundation                      0x000000019a4b258c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
        14  CoreFoundation                      0x000000019a550074 ___CFXRegistrationPost_block_invoke + 88
        15  CoreFoundation                      0x000000019a54ffbc _CFXRegistrationPost + 440
        16  CoreFoundation                      0x000000019a483bac _CFXNotificationPost + 708
        17  Foundation                          0x000000019b3e022c postQueueNotifications + 316
        18  CoreFoundation                      0x000000019a4bcde4 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
        19  CoreFoundation                      0x000000019a4bccd0 __CFRunLoopDoObservers + 532
        20  CoreFoundation                      0x000000019a4bc410 __CFRunLoopRun + 1048
        21  CoreFoundation                      0x000000019a4bb8a4 CFRunLoopRunSpecific + 612
        22  HIToolbox                           0x00000001a3b2f3bc RunCurrentEventLoopInMode + 292
        23  HIToolbox                           0x00000001a3b2f200 ReceiveNextEventCommon + 672
        24  HIToolbox                           0x00000001a3b2ef48 _BlockUntilNextEventMatchingListInModeWithFilter + 72
        25  AppKit                              0x000000019d714630 _DPSNextEvent + 632
        26  AppKit                              0x000000019d7137c0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
        27  AppKit                              0x000000019d707bf0 -[NSApplication run] + 464
        28  AppKit                              0x000000019d6df058 NSApplicationMain + 880
        29  dyld                                0x000000019a0b3e50 start + 2544
    )
    error   16:33:36.844455+0100    BibDesk Row index 0 out of row range (numberOfRows: 0) for <BDSKMainTableView: 0x1511b9a00>
    error   16:33:36.845307+0100    BibDesk (
        0   CoreFoundation                      0x000000019a538418 __exceptionPreprocess + 176
        1   libobjc.A.dylib                     0x000000019a082ea8 objc_exception_throw + 60
        2   AppKit                              0x000000019d8000a0 -[NSTableRowData _availableRowViewWhileUpdatingAtRow:] + 0
        3   BibDesk                             0x00000001028ceb28 -[BibDocument(UI) handlePrivateBibItemChanged] + 564
        4   Foundation                          0x000000019b3e1090 __NSFireDelayedPerform + 372
        5   CoreFoundation                      0x000000019a4d7578 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 32
        6   CoreFoundation                      0x000000019a4d7220 __CFRunLoopDoTimer + 940
        7   CoreFoundation                      0x000000019a4d6d78 __CFRunLoopDoTimers + 356
        8   CoreFoundation                      0x000000019a4bc760 __CFRunLoopRun + 1896
        9   CoreFoundation                      0x000000019a4bb8a4 CFRunLoopRunSpecific + 612
        10  HIToolbox                           0x00000001a3b2f3bc RunCurrentEventLoopInMode + 292
        11  HIToolbox                           0x00000001a3b2f200 ReceiveNextEventCommon + 672
        12  HIToolbox                           0x00000001a3b2ef48 _BlockUntilNextEventMatchingListInModeWithFilter + 72
        13  AppKit                              0x000000019d714630 _DPSNextEvent + 632
        14  AppKit                              0x000000019d7137c0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 728
        15  AppKit                              0x000000019d707bf0 -[NSApplication run] + 464
        16  AppKit                              0x000000019d6df058 NSApplicationMain + 880
        17  dyld                                0x000000019a0b3e50 start + 2544
    )
    default 16:33:37.805892+0100    BibDesk Making presenter D81EE80E-374B-46B1-B72E-BA3AC74FE6AF observe change
    [... shortly thereafter I closed the app with cmd-Q]
    
     
    • Christiaan Hofman

      That's a bit more helpful. I see something wrong with the sorting of file and URL field columns. You may try to change the column you use for sorting (although that can be hard if you can't open the file to begin with).

      I fixed the problem I see in the trace. Could you try tomorrow's nightly build to see if this fixes your problem? You can find the nightly builds from the web page.

       
      • Tony Garnock-Jones

        Success! It opens the problem databases without complaint now. Many thanks, that was a great turnaround time :-)

        I'm not OP, of course -- it will be interesting to see if this fixes their problem too.

         
        • Tine Wilde

          Tine Wilde - 2022-11-20

          Thank you Tony and Christiaan - it would be great if this could solve the problem!

           

          Last edit: Christiaan Hofman 2022-11-20
          • Christiaan Hofman

            You can see yourself by downloading the latest nightly build.

            Great to hear this fixes it.

             
  • Christiaan Hofman

    • status: open-works-for-me --> open-fixed
     
  • Christiaan Hofman

    • summary: BibDesk does not open on Mac Ventura --> BibDesk does not open when sorting by file or URL fields
     
  • Tony Garnock-Jones

    Hmm, I'm not sure it's just when explicitly sorting by file or URL fields, since on our system, we had the database sorted by something else. The fault was in the sorting code, so maybe the sorting code was being invoked even when the file/url wasn't the primary sort key? I'm fairly sure the problem manifests even when the view is sorted by, say, author or cite key.

     
    • Christiaan Hofman

      This particular bug is caused by sorting by a file or URL file. But we also keep the previous choice for subsorting (when items are equivalent for the primary sort key), so you may not notice that directly from the UI.

       
  • Christiaan Hofman

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB