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.

Hangs when unbreakable component larger than page

See original GitHub issue

Describe the bug When a component e.g. View is set to unbreakable via wrap={false}, and it is also taller than a single page, then rendering seems to go into an infinite loop.

To Reproduce Steps to reproduce the behavior including code snippet (if applies):

  1. Go to https://react-pdf.org/repl?example=disable-wrapping
  2. Change the unbreakable style height from 400 to 900
  3. Notice the blank preview

Expected behavior I think in the case where a component can’t fit on a single page and has wrap={false}, it should wrap as that is better than just failing.

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Chromium, Firefox
  • React-pdf version: latest (REPL) - v1.5.6

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:8
  • Comments:25 (11 by maintainers)

github_iconTop GitHub Comments

6reactions
arahansencommented, Jun 18, 2019

No worries @diegomura. The work you’re doing on this project is awesome! I’ve been able to work around this in the mean time!

6reactions
diegomuracommented, May 14, 2019

Yep. Agreed! This is currently a limitation of the breaking algorithm. I’ll try to fix it soon. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bashmaster
Bashmaster, also referred to as Bashmaster, the Unbreakable, is the fifth and penultimate boss in Donkey Kong Country: Tropical Freeze and ...
Read more >
Film / Unbreakable
Unbreakable is a 2000 Psychological Thriller Drama that is also a ... for villains heads to be larger than average. especially to evoke...
Read more >
Unbreakable, Part III: Visual style - Montages
Watching Unbreakable feels like participating in a ritual where these ... Shyamalan's “rejection movements” are part of a larger system.
Read more >
If water is contained in an unbreakable container with no ...
If water is contained in an unbreakable container with no room to expand, would it freeze at freezing temperatures? Can one prevent water...
Read more >
Unbreakable Enterprise Kernel Release Notes for ...
3.1 KVM guests with less than 4 GB of memory might fail to auto reserve crash kernel memory · 3.2 btrfs, ext4 and...
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