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.

bubblewrap 1.3 hangs on iconResponse.buffer()

See original GitHub issue

I updated to bubblewrap/core 1.3.0, and now I’m seeing a hang that happens 90% of the time.

I added some console logs to help narrow down the issue. Here’s what I see:

twa-generator C:\Users\judah\AppData\Local\Temp\pwabuilder-cloudapk-16772EXlDRT8RQ1lc\app\src\main\AndroidManifest.xml Log.js:116 generating icons------------------------ TwaGenerator.js:365 fetching icon https://sadchonks.com/kitteh-512.png TwaGenerator.js:287 successfully fetched icon https://sadchonks.com/kitteh-512.png with status code 200 TwaGenerator.js:294 about to grab buffer for icon https://sadchonks.com/kitteh-512.png

It hangs after “about to grab the buffer”. In particular, that’s this line in TwaGenerator.

In short, it means fetching the image succeeds with a 200 result, but then accessing .buffer() hangs and never resolves. As a test, I did a .buffer().then(…).catch(…) to see it ever succeeded or failed. It did not, neither the then nor the catch is ever hit.

Any idea why .buffer() might be hanging here?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
andrebancommented, Jun 2, 2020

The reason is that chosenIconUrl must be a complete URL, including the origin. In this case, https://sadchonks.com/favicon.png.

0reactions
JudahGabrielcommented, Jun 2, 2020

Since the hang is probably an environment issue, I’ll close this for now.

Thanks for the tip about absolute URL for shortcuts. Since we’re not calling fromWebManifestJson, we don’t hit that code, so we must construct the ShortcutInfo objects ourselves. No problem, we’ll pass in the full URL.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

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