Brave Browser Beta Apps (`app_mode_launcher`) throws `NSInvalidArgumentException` instantly on latest macOS Catalina beta

Brave Browser Beta Bug report: crash

All Brave-created web apps crash on launch in macOS Catalina beta:

app_mode_loader[42152:5297055] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSAccessibilityRemoteUIElement accessibilityTitle]: unrecognized selector sent to instance 0x7fdd1fd5d2c0'


System

Brave Version 0.69.113 Chromium: 76.0.3809.100 (Official Build) beta (64-bit)
macOS Catalina 10.15 Beta (19A536g) on an iMac Pro desktop

Timeline

Brave Browser Beta Apps (app_mode_launcher) throws NSInvalidArgumentException instantly on latest macOS Catalina beta.

  1. Visit e.g. https://discourse.devontechnologies.com/a support forum
  2. Brave suggests a small plus sign, to “create app” from web site
  3. Click the plus sign, Brave saves the web site as “Sitename.app” in ~/Apps
  4. Launch the App by either doubleclicking or right-click and “open”
  5. Crash

Expected result

I expected Brave Browser to open a new tab, with the corresponding URL to the forums

What happened

Running the launcher manually from the terminal (iTerm):

❯ /Users/storm/Applications/Brave\ Browser\ Beta\ Apps.localized/Devonthink\ Forum.app/Contents/MacOS/app_mode_loader
objc[42152]: Class BaseView is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c048c70) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad2f0). One of the two will be used. Which one is undefined.
objc[42152]: Class CommandDispatcher is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c048cc0) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad340). One of the two will be used. Which one is undefined.
objc[42152]: Class ConstrainedWindowAnimationBase is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c048d10) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad390). One of the two will be used. Which one is undefined.
objc[42152]: Class ConstrainedWindowAnimationShow is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c048d88) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad408). One of the two will be used. Which one is undefined.
objc[42152]: Class ConstrainedWindowAnimationHide is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c048dd8) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad458). One of the two will be used. Which one is undefined.
objc[42152]: Class ConstrainedWindowAnimationPulse is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c048e28) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad4a8). One of the two will be used. Which one is undefined.
objc[42152]: Class ButtonUtils is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c048e78) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad4f8). One of the two will be used. Which one is undefined.
objc[42152]: Class TextFieldUtils is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c048ec8) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad548). One of the two will be used. Which one is undefined.
objc[42152]: Class FindPasteboard is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c048ef0) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad570). One of the two will be used. Which one is undefined.
objc[42152]: Class FlippedView is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c048f68) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad5e8). One of the two will be used. Which one is undefined.
objc[42152]: Class FocusTracker is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c048f90) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad610). One of the two will be used. Which one is undefined.
objc[42152]: Class MenuControllerCocoa is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c048fe0) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad660). One of the two will be used. Which one is undefined.
objc[42152]: Class ResponsiveNSMenuItem is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c049008) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad688). One of the two will be used. Which one is undefined.
objc[42152]: Class ToolTipBaseView is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c049080) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad700). One of the two will be used. Which one is undefined.
objc[42152]: Class CrTrackingAreaOwnerProxy is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c0490d0) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad750). One of the two will be used. Which one is undefined.
objc[42152]: Class CrTrackingArea is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c049120) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad7a0). One of the two will be used. Which one is undefined.
objc[42152]: Class UnderlayOpenGLHostingWindow is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c049170) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad7f0). One of the two will be used. Which one is undefined.
objc[42152]: Class WeakPtrNSObject is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c0491e8) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad868). One of the two will be used. Which one is undefined.
objc[42152]: Class CrPasteboardItemWrapper is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c049210) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad890). One of the two will be used. Which one is undefined.
objc[42152]: Class NowPlayingInfoCenterDelegateCocoa is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c049260) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad8e0). One of the two will be used. Which one is undefined.
objc[42152]: Class RemoteCommandCenterDelegateNS is implemented in both /Users/storm/Applications/Brave Browser Beta Apps.localized/Devonthink Forum.app/Contents/MacOS/app_mode_loader (0x10c0492b0) and /Applications/Brave Browser Beta.app/Contents/Frameworks/Brave Browser Beta Framework.framework/Versions/76.0.69.113/Brave Browser Beta Framework (0x1202ad930). One of the two will be used. Which one is undefined.
2019-08-24 11:31:25.286 app_mode_loader[42152:5297055] -[NSAccessibilityRemoteUIElement accessibilityTitle]: unrecognized selector sent to instance 0x7fdd1fd5d2c0
2019-08-24 11:31:25.288 app_mode_loader[42152:5297055] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSAccessibilityRemoteUIElement accessibilityTitle]: unrecognized selector sent to instance 0x7fdd1fd5d2c0'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff3c843193 __exceptionPreprocess + 250
	1   libobjc.A.dylib                     0x00007fff727f9bd4 objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff3c8ccbe6 -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x00007fff3c7e96f9 ___forwarding___ + 1427
	4   CoreFoundation                      0x00007fff3c7e90d8 _CF_forwarding_prep_0 + 120
	5   Brave Browser Beta Framework        0x000000011c802f31 ChromeMain + 80116497
	6   AppKit                              0x00007fff39aacfe2 -[NSAccessibilityAttributeAccessorInfo getAttributeValue:forObject:] + 58
	7   AppKit                              0x00007fff3a03396a ___NSAccessibilityEntryPointValueForAttribute_block_invoke.805.llvm.10593014888805296191 + 1674
	8   AppKit                              0x00007fff3a02f691 NSAccessibilityPerformEntryPointObject.llvm.10593014888805296191 + 16
	9   AppKit                              0x00007fff3a02f7d2 _NSAccessibilityEntryPointValueForAttribute.llvm.10593014888805296191 + 168
	10  AppKit                              0x00007fff39e26042 -[NSObject(NSAccessibilityInternal) _accessibilityValueForAttribute:clientError:] + 351
	11  AppKit                              0x00007fff39e2b0d2 CopyAppKitUIElementAttributeValueNoCatch + 98
	12  AppKit                              0x00007fff39e280bf CopyAttributeValue + 142
	13  HIServices                          0x00007fff3aa55c5d _AXXMIGCopyAttributeValue + 389
	14  HIServices                          0x00007fff3aa7752b _XCopyAttributeValue + 443
	15  HIServices                          0x00007fff3aa35613 mshMIGPerform + 205
	16  CoreFoundation                      0x00007fff3c7a9e6f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
	17  CoreFoundation                      0x00007fff3c7a9dbf __CFRunLoopDoSource1 + 541
	18  CoreFoundation                      0x00007fff3c7920dc __CFRunLoopRun + 2612
	19  CoreFoundation                      0x00007fff3c791423 CFRunLoopRunSpecific + 499
	20  HIToolbox                           0x00007fff3b333f2d RunCurrentEventLoopInMode + 292
	21  HIToolbox                           0x00007fff3b333c6d ReceiveNextEventCommon + 600
	22  HIToolbox                           0x00007fff3b3339f7 _BlockUntilNextEventMatchingListInModeWithFilter + 64
	23  AppKit                              0x00007fff399e469c _DPSNextEvent + 990
	24  AppKit                              0x00007fff399e340c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
	25  AppKit                              0x00007fff399ddba6 -[NSApplication run] + 658
	26  Brave Browser Beta Framework        0x000000011a8a454c ChromeMain + 47223084
	27  Brave Browser Beta Framework        0x000000011a8a3088 ChromeMain + 47217768
	28  Brave Browser Beta Framework        0x000000011a8f2438 ChromeMain + 47542296
	29  Brave Browser Beta Framework        0x000000011a8c7ad7 ChromeMain + 47367863
	30  Brave Browser Beta Framework        0x0000000117b9b082 ChromeAppModeStart_v6 + 2114
	31  app_mode_loader                     0x000000010bb430db main + 2523
	32  app_mode_loader                     0x000000010bb4271b main + 27
	33  libdyld.dylib                       0x00007fff73b532a5 start + 1
	34  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
[0824/113125.293242:WARNING:process_memory_mac.cc(93)] mach_vm_read(0x7ffee40be000, 0x2000): (os/kern) invalid address (1)
[0824/113125.410009:WARNING:system_snapshot_mac.cc(42)] sysctlbyname kern.nx: No such file or directory (2)
[1]    42152 abort

Additional details

  • Shields were off for the particular site
  • Site settings for the particular site:

  • Contact me for whatever extra details I can provide.
  • The new macOS beta or final will probably come soon; will update this post as soon as that is deployed.
  • Thank you for an awesome project, browser and community. THank you all.

//Storm

1 Like

This still happens. Were you able to find a workaround?

@mdbraber,
Can you tell me what site are you trying to “install” so that I can test on my end and see what the problem may be?

Tried this with fastmail.com and community.brave.com - both crash instantly. Gave some more background in this Github issue: https://github.com/brave/brave-browser/issues/7205

@mdbraber,
On my end, I was able to create a PWA out of community.brave.com without issue – also running macOS Catalina:

Can you tell me if you have any extensions installed in the browser?

@Mattches well that’s good news that it works on your end! I have a completely new installation with no extensions. Could it be something else in my configuration?

@mdbraber,
Do you get the same error by going to Menu --> More tools --> Create Shortcut?

Yes, unfortunately the same error

After some digging I’ve found that BetterSnapTool (https://folivora.ai/bettersnaptool) seems to be causing the problems. I’ll try and see if I can find what exactly is causing this and why it’s actually causing Brave to crash (and not BetterSnapTool). It would still be interesting to understand why Brave is not catching the exception thrown.