-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering bug due to unfulfilled promise #100
Comments
@bluefirepatrick Thanks for reporting, I'm able to reproduce this and have started looking into it |
@bluefirepatrick Due to the importance of the bug and the relatively obvious fix, I went ahead and committed the fix and pushed a new version of the NPM package for @readium/navigator - 1.3.4. The culprit is this line eb61441#diff-a38ace15e75f4767793e027579d1055b9e9303b376e893673126a9b03f7bd755R71 Please confirm the fix |
@chocolatkey thanks. I am now seeing a different issues where the book pages are initially blank. Steps to reproduce:
So I think that you solved the issue I first reported but there seems to be an initialization issue that is new. |
@bluefirepatrick I am not having this issue: If you could make a screen recording, or provide more details, that would be useful |
The problem seems to be with the very first time you run the app with I am running go-toolkit For ts-toolkit, I just do a fresh clone of readiumCSS-v2, build the projects and run the vanilla reader with pnpm run dev. Here is a screen cap of the behavior. |
UPDATE: Unlike the original issue this new issue seems to be confined to Safari on MacOS. It does not happen on Firefox or Chrome for MacOS. But on Safari it is always reproducible and happens quite often. |
UPDATE2: resizing the window in Safari fixes the issue. Hopefully that may help to shed some light on things. I will log this as a new issue as it may not be related to the promise resolution issue that was addressed. Steps to repeat:
|
@bluefirepatrick Can I close this issue now that you've opened the other one? |
There is a bug in ts-toolkit where the book content will not render after navigation. It is reproducible both in testapp/vanilla and the playground app on both Safari and Chrome on MacOS Sequoia.
Steps to reproduce:
develop
branch into the test app.The book text will disappear. This is caused by line 143 in FramePoolManager never resolving:
await progressPromise; // Wait on the job to finish...
This causes the chain of promises kicked off by EpubNavigator.go to all fail resulting in a blank page. It also causes the frame for chapter 4 to be in a 'waiting' state so that it can never be loaded in the future.
The text was updated successfully, but these errors were encountered: