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.

[Desktop] Crash while executing PWA

See original GitHub issue

OS : macOS 10.15.4 Version : 1.5.15 & 1.5.23

Unfortunately, Brave crashes when running PWA applications. I was able to log in from app_mode_loader.

Note that this problem exists in all PWAs Tested PWAs: YouTube music & twitter & clickup

NOTE: Unfortunately, the problem report is not received in brave: // crashes.

Please fix this bug

2020-04-03 13:05:16.096 app_mode_loader[4792:52753] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSAccessibilityRemoteUIElement accessibilityTitle]: unrecognized selector sent to instance 0x7fa03de2f230'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007fff34322d07 __exceptionPreprocess + 250
	1   libobjc.A.dylib                     0x00007fff6d0475bf objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff343a1c97 -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x00007fff3428757b ___forwarding___ + 1427
	4   CoreFoundation                      0x00007fff34286f58 _CF_forwarding_prep_0 + 120
	5   Brave Browser Framework             0x0000000117639da1 ChromeMain + 80787809
	6   AppKit                              0x00007fff315d1eba -[NSAccessibilityAttributeAccessorInfo getAttributeValue:forObject:] + 58
	7   AppKit                              0x00007fff31b8f7c9 ___NSAccessibilityEntryPointValueForAttribute_block_invoke.805 + 1674
	8   AppKit                              0x00007fff31b8b614 NSAccessibilityPerformEntryPointObject + 16
	9   AppKit                              0x00007fff3184f7d1 _NSAccessibilityEntryPointValueForAttribute + 168
	10  AppKit                              0x00007fff31990c53 -[NSObject(NSAccessibilityInternal) _accessibilityValueForAttribute:clientError:] + 351
	11  AppKit                              0x00007fff31995d6e CopyAppKitUIElementAttributeValueNoCatch + 98
	12  AppKit                              0x00007fff31992c52 CopyAttributeValue + 142
	13  HIServices                          0x00007fff325853f6 _AXXMIGCopyAttributeValue + 389
	14  HIServices                          0x00007fff325a64bb _XCopyAttributeValue + 443
	15  HIServices                          0x00007fff32565f64 mshMIGPerform + 174
	16  CoreFoundation                      0x00007fff342a74c4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
	17  CoreFoundation                      0x00007fff342a7410 __CFRunLoopDoSource1 + 541
	18  CoreFoundation                      0x00007fff342a5f39 __CFRunLoopRun + 2270
	19  CoreFoundation                      0x00007fff342a4ffe CFRunLoopRunSpecific + 462
	20  HIToolbox                           0x00007fff32ed8abd RunCurrentEventLoopInMode + 292
	21  HIToolbox                           0x00007fff32ed87d5 ReceiveNextEventCommon + 584
	22  HIToolbox                           0x00007fff32ed8579 _BlockUntilNextEventMatchingListInModeWithFilter + 64
	23  AppKit                              0x00007fff31523c99 _DPSNextEvent + 883
	24  AppKit                              0x00007fff315224e0 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
	25  AppKit                              0x00007fff315141ee -[NSApplication run] + 658
	26  Brave Browser Framework             0x000000011598598c ChromeMain + 50689356
	27  Brave Browser Framework             0x00000001159843f2 ChromeMain + 50683826
	28  Brave Browser Framework             0x0000000115930637 ChromeMain + 50340343
	29  Brave Browser Framework             0x0000000115907427 ChromeMain + 50171879
	30  Brave Browser Framework             0x000000011292e086 ChromeAppModeStart_v6 + 2182
	31  app_mode_loader                     0x000000010ff1b84b main + 2443
	32  app_mode_loader                     0x000000010ff1aedb main + 27
	33  libdyld.dylib                       0x00007fff6e1eecc9 start + 1
	34  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
[0403/130516.114433:WARNING:process_memory_mac.cc(93)] mach_vm_read(0x7ffedfce6000, 0x2000): (os/kern) invalid address (1)
[0403/130516.270392:WARNING:system_snapshot_mac.cc(42)] sysctlbyname kern.nx: No such file or directory (2)
[1]    4792 abort    

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:15
  • Comments:23 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
TrevorSayrecommented, Aug 25, 2020

Please also see the discussion in this bug report for BetterSnapTool: https://community.folivora.ai/t/bettersnaptool-and-bettertouchtool-cause-brave-web-browser-apps-to-crash/12299

unfortunately that’s a bug in Brave Browser where it doesn’t seem to implement a specific functionality of the standard macOS accessibility API (or is forwarding the request to some wrong object) . This can’t be fixed in BetterSnapTool 😦

The specific selector that should be available, but unfortunately isn’t is „accessibilityTitle“

Maybe Brave uses a different kind of custom window for more customisability or something like that. In that case they should either disable Accessibility support completely for that window or implement all the required methods (or at least add stubs so it won’t crash when macOS calls them).

While it may be people in this thread discussing issues with window managers, this hints at a greater accessibility issue which could be affecting users with other assistive technology when trying to use Brave with PWAs. That would make this rather a serious issue.

Chromium seems to be handling this fine: https://github.com/chromium/chromium/search?q=accessibilityTitle&unscoped_q=accessibilityTitle

4reactions
andyjw7commented, Jun 6, 2020

I have been experiencing the same issue and quite by chance I have discovered that it only happens when I have a productivity app called Window Tidy running. This is an app I’ve used for years to organise and resize apps on my desktop. I have never had an issue with it in the past, and I use it all the time - in fact I couldn’t live without it.

I doubt all the other users reporting this issue are using the same app, but maybe there is a common theme of apps that manage desktop layout, or something like that?

Window Tidy is still available in the App Store should anyone want to install for debugging purposes. It has actually been superseded by another app by the same developers so I may try the free trial of that and report back on my findings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Microsoft Project Crashes when I try to open a project via the ...
I have tried several times to open a project from the PWA site, it starts Project Professional Desktop, pops up a message about...
Read more >
PWA Crashing on Windows 11 : r/MicrosoftEdge - Reddit
I have two PWAs (Youtube - so true PWA) and Reddit (just a site installed) that both crash at random on Win11. If...
Read more >
PWA's Crash Immediately - Desktop Support - Brave Community
Install PWA (web app) from a site that supports it Try to run PWA Expected result: PWA runs like a native desktop app...
Read more >
Fix Chrome if it crashes or won't open - Computer
First: Try these common Chrome crash fixes ... Your computer may have run out of memory, and can't load the site while also...
Read more >
Mac crash: why it happens and how to fix it - MacPaw
But if your Mac crashes on its startup, things may get serious, as it can ... Of course, running those manually might be...
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