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.

Opening PWAs results in a console error and crash

See original GitHub issue

Notes from @bsclifton

To try and reproduce

  1. Go to music.youtube.com
  2. Add the page as a PWA using the download arrow in the omnibox image
  3. After you add the PWA, it will open. Go ahead and close it
  4. Visit music.youtube.com again
  5. There will be an open button in omnibox (intended to open the PWA) image
  6. Clicking that is causing the crash reported

Description

When I open any PWA on a page (using the PWA button next to the address bar), the current page crashes and disappears.

Example button: image

Steps to Reproduce

  1. Go to music.youtube.com or the Brave apps view
  2. Click any app
  3. The page is removed

Actual result:

If I run from the console, I get the following error:

[80088:37635:0127/120708.753715:ERROR:web_app_shortcut_mac.mm(1058)] Couldn't find an Applications directory to copy app to.

Expected result:

It launches the PWA.

Reproduces how often:

Easily reproduced

Brave version (brave://version info)

Brave 1.34.81 Chromium: 97.0.4692.99 (Official Build) (arm64) Revision d740da257583289dbebd2eb37e8668928fac5ead-refs/branch-heads/4692@{#1461} OS macOS Version 11.1 (Build 20C69)

Version/Channel Information:

  • Can you reproduce this issue with the current release? Yes
  • Can you reproduce this issue with the beta channel? Not tested
  • Can you reproduce this issue with the nightly channel? Not tested

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? Yes
  • Does the issue resolve itself when disabling Brave Rewards? Yes
  • Is the issue reproducible on the latest version of Chrome? Untested

Miscellaneous Information:

This is not recent (it has never worked). I’ve tried reinstalling brave, disabling extensions, and disabling Mac accessibility apps (which was mentioned as a potential cause).

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bscliftoncommented, Mar 1, 2022

Thanks for the report folks - we have a fix which we’ve verified 😄 We should have this released in the next few days

Closing as a duplicate of https://github.com/brave/brave-browser/issues/21302

0reactions
lanthiascommented, Mar 7, 2022

Hey @bsclifton, thanks for the note - still the same, and it’s the same across all PWAs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Console.log(err) is crashing my website - node.js
It is logging the console message with an error just like you asked then continuing on waiting for new requests (logging an error...
Read more >
View crashes and application not responding (ANR) errors
Open Play Console. · Select an app. · On the left menu, select Quality > Android vitals > Crashes and ANRs. · Near...
Read more >
Diagnosing issues using crash reports and device logs
Use crash reports and device logs to debug app issues. ... Device console logs contain detailed information on operations that occur in both...
Read more >
Detect and diagnose crashes - Android Developers
There are many situations that can cause a crash in your app. Some reasons are obvious, like checking for a null value or...
Read more >
Let It Crash: Best Practices for Handling Node.js Errors on ...
Before coming to Heroku, I did some consulting work as a Node.js solutions architect. My job was to visit various companies and make...
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