question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Shortcuts / apps on macOS throws exception 'NSInvalidArgumentException' instantly

See original GitHub issue

Description

When creating an ‘app’ on macOS 10.15.1 it immediately throws the following error:

2019-12-04 17:30:20.202 app_mode_loader[32295:1717699] -[NSAccessibilityRemoteUIElement accessibilityTitle]: unrecognized selector sent to instance 0x7fe76de4e7d0
2019-12-04 17:30:20.204 app_mode_loader[32295:1717699] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSAccessibilityRemoteUIElement accessibilityTitle]: unrecognized selector sent to instance 0x7fe76de4e7d0'

Steps to Reproduce

  1. Go to fastmail.com (or another site like community.brave.com)
  2. Select More Tools > Create Shortcut and create the shortcut with ‘Open as window’ selected
  3. Launch the shortcut

Actual result:

Briefly shows website in separate window, crashes right after. Shows the error above. Full error when launching app_mode_loader separately:

objc[32404]: Class BaseView is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083a98) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c472cf8). One of the two will be used. Which one is undefined.
objc[32404]: Class CommandDispatcher is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083ae8) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c472d48). One of the two will be used. Which one is undefined.
objc[32404]: Class ConstrainedWindowAnimationBase is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083b38) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c472d98). One of the two will be used. Which one is undefined.
objc[32404]: Class ConstrainedWindowAnimationShow is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083bb0) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c472e10). One of the two will be used. Which one is undefined.
objc[32404]: Class ConstrainedWindowAnimationHide is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083c00) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c472e60). One of the two will be used. Which one is undefined.
objc[32404]: Class ConstrainedWindowAnimationPulse is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083c50) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c472eb0). One of the two will be used. Which one is undefined.
objc[32404]: Class ButtonUtils is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083ca0) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c472f00). One of the two will be used. Which one is undefined.
objc[32404]: Class TextFieldUtils is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083cf0) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c472f50). One of the two will be used. Which one is undefined.
objc[32404]: Class FindPasteboard is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083d18) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c472f78). One of the two will be used. Which one is undefined.
objc[32404]: Class FlippedView is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083d90) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c472ff0). One of the two will be used. Which one is undefined.
objc[32404]: Class FocusTracker is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083db8) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c473018). One of the two will be used. Which one is undefined.
objc[32404]: Class MenuControllerCocoa is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083e08) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c473068). One of the two will be used. Which one is undefined.
objc[32404]: Class ResponsiveNSMenuItem is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083e30) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c473090). One of the two will be used. Which one is undefined.
objc[32404]: Class ToolTipBaseView is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083ea8) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c473108). One of the two will be used. Which one is undefined.
objc[32404]: Class CrTrackingAreaOwnerProxy is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083ef8) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c473158). One of the two will be used. Which one is undefined.
objc[32404]: Class CrTrackingArea is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083f48) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c4731a8). One of the two will be used. Which one is undefined.
objc[32404]: Class UnderlayOpenGLHostingWindow is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c083f98) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c4731f8). One of the two will be used. Which one is undefined.
objc[32404]: Class WeakPtrNSObject is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c084010) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c473270). One of the two will be used. Which one is undefined.
objc[32404]: Class CrPasteboardItemWrapper is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c084038) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c473298). One of the two will be used. Which one is undefined.
objc[32404]: Class NowPlayingInfoCenterDelegateCocoa is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c084088) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c4732e8). One of the two will be used. Which one is undefined.
objc[32404]: Class RemoteCommandCenterDelegateNS is implemented in both /Users/mdbraber/Applications/Brave Browser Apps.localized/Fastmail.app/Fastmail.app/Contents/MacOS/./app_mode_loader (0x10c0840d8) and /Applications/Brave Browser.app/Contents/Frameworks/Brave Browser Framework.framework/Versions/78.1.0.1/Brave Browser Framework (0x11c473338). One of the two will be used. Which one is undefined.
2019-12-04 17:37:53.041 app_mode_loader[32404:1724145] -[NSAccessibilityRemoteUIElement accessibilityTitle]: unrecognized selector sent to instance 0x7fedc9825aa0
2019-12-04 17:37:53.043 app_mode_loader[32404:1724145] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSAccessibilityRemoteUIElement accessibilityTitle]: unrecognized selector sent to instance 0x7fedc9825aa0'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff2fdd2f53 __exceptionPreprocess + 250
	1   libobjc.A.dylib                     0x00007fff65e98835 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff2fe5d106 -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x00007fff2fd796cb ___forwarding___ + 1427
	4   CoreFoundation                      0x00007fff2fd790a8 _CF_forwarding_prep_0 + 120
	5   Brave Browser Framework             0x000000011842c9b1 ChromeMain + 78342513
	6   AppKit                              0x00007fff2cff58e2 -[NSAccessibilityAttributeAccessorInfo getAttributeValue:forObject:] + 58
	7   AppKit                              0x00007fff2d57ef02 ___NSAccessibilityEntryPointValueForAttribute_block_invoke.805.llvm.7288867694539378565 + 1674
	8   AppKit                              0x00007fff2d57ac29 NSAccessibilityPerformEntryPointObject.llvm.7288867694539378565 + 16
	9   AppKit                              0x00007fff2d57ad6a _NSAccessibilityEntryPointValueForAttribute.llvm.7288867694539378565 + 168
	10  AppKit                              0x00007fff2d36c59a -[NSObject(NSAccessibilityInternal) _accessibilityValueForAttribute:clientError:] + 351
	11  AppKit                              0x00007fff2d371736 CopyAppKitUIElementAttributeValueNoCatch + 98
	12  AppKit                              0x00007fff2d36e619 CopyAttributeValue + 142
	13  HIServices                          0x00007fff2dfb0b9d _AXXMIGCopyAttributeValue + 389
	14  HIServices                          0x00007fff2dfd252b _XCopyAttributeValue + 443
	15  HIServices                          0x00007fff2df90553 mshMIGPerform + 205
	16  CoreFoundation                      0x00007fff2fd39d9f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
	17  CoreFoundation                      0x00007fff2fd39cef __CFRunLoopDoSource1 + 541
	18  CoreFoundation                      0x00007fff2fd21c9c __CFRunLoopRun + 2612
	19  CoreFoundation                      0x00007fff2fd20fe3 CFRunLoopRunSpecific + 499
	20  HIToolbox                           0x00007fff2e8a867d RunCurrentEventLoopInMode + 292
	21  HIToolbox                           0x00007fff2e8a83bd ReceiveNextEventCommon + 600
	22  HIToolbox                           0x00007fff2e8a8147 _BlockUntilNextEventMatchingListInModeWithFilter + 64
	23  AppKit                              0x00007fff2cf2d864 _DPSNextEvent + 990
	24  AppKit                              0x00007fff2cf2c5d4 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
	25  AppKit                              0x00007fff2cf26d76 -[NSApplication run] + 658
	26  Brave Browser Framework             0x000000011687e5bc ChromeMain + 49317244
	27  Brave Browser Framework             0x000000011687d0e8 ChromeMain + 49311912
	28  Brave Browser Framework             0x00000001168cf408 ChromeMain + 49648584
	29  Brave Browser Framework             0x00000001168a3137 ChromeMain + 49467639
	30  Brave Browser Framework             0x0000000113975cae ChromeAppModeStart_v6 + 2094
	31  app_mode_loader                     0x000000010bb9d8d1 main + 2449
	32  app_mode_loader                     0x000000010bb9cf5b main + 27
	33  libdyld.dylib                       0x00007fff671fb2e5 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
[1204/173753.182120:WARNING:system_snapshot_mac.cc(42)] sysctlbyname kern.nx: No such file or directory (2)

Expected result:

Display a separate window with the specific website and not crash 😉

Reproduces how often:

Always reproducible

Brave version (brave://version info)

Brave 1.0.1 Chromium: 78.0.3904.108 (Official Build) (64-bit)
Revision 4b26898a39ee037623a72fcfb77279fce0e7d648-refs/branch-heads/3904@{#889}
OS macOS Version 10.15.1 (Build 19B88)
JavaScript V8 7.8.279.23
Flash (Disabled)
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
Command Line /Applications/Brave Browser.app/Contents/MacOS/Brave Browser --enable-dom-distiller --disable-domain-reliability --no-pings --extension-content-verification=enforce_strict --extensions-install-verification=enforce --enable-oop-rasterization=Enabled --sync-url=https://no-thanks.invalid --enable-features=NewExtensionUpdaterService,PasswordImport,WebUIDarkMode,SimplifyHttpsIndicator --disable-features=SmsReceiver,AudioServiceOutOfProcess,NotificationTriggers,AutofillServerCommunication,LookalikeUrlNavigationSuggestionsUI,UnifiedConsent,SyncUSSBookmarks --flag-switches-begin --flag-switches-end
Executable Path /Applications/Brave Browser.app/Contents/MacOS/Brave Browser
Profile Path /Users/mdbraber/Library/Application Support/BraveSoftware/Brave-Browser/Default

Version/Channel Information:

  • Can you reproduce this issue with the current release? Yes

  • Can you reproduce this issue with the beta channel? Yes

  • Can you reproduce this issue with the dev channel? Did not try

  • Can you reproduce this issue with the nightly channel? Did not try

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? No

  • Does the issue resolve itself when disabling Brave Rewards? No

  • Is the issue reproducible on the latest version of Chrome? No - tried latest version of Chromium (Version 77.0.3865.90 (Official Build) (64-bit)) and this works fine

Similar reports

This issue has already been reported in the community forums thrice by others:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:10
  • Comments:53 (8 by maintainers)

github_iconTop GitHub Comments

34reactions
iefremovcommented, Feb 6, 2021

@rebron @bsclifton I’m working on this

20reactions
petemillcommented, Sep 21, 2020

I’m looking in to this, it’s been affecting me this whole time

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dock throwing NSInvalidArgumentException trying to start
I got the same problem and fixed it by removing desktoppicture.db : rm ~/Library/Application\ Support/Dock/desktoppicture.db.
Read more >
App Shortcut "Couldn't find AppShortcutsProvider"
I am trying to create a shortcut following "Implement App Shortcuts With App ... Error Domain=LNActionForAutoShortcutPhraseFetchError Code=1 "Couldn't find ...
Read more >
Brave Browser Apps fail to open
2. 3. Install a browser app like Brave Community … ... Shortcuts / apps on macOS throws exception 'NSInvalidArgumentException' instantly.
Read more >
How to Automate Your Life With Apple's Shortcuts App | PCMag
Apple's Shortcuts app can quickly and easily run a host of tasks on your iPhone, iPad, Mac, or Apple Watch.
Read more >
In Mac OS, what is the keyboard shortcut to switch between ...
3 myself with norwegian keyboard layout. I'm not able to add new shortcuts under Keyboard. I can under App shortcuts, however that does...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found