Skip to content
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

Prevent intermittent "Node was not found" errors when removing the zoomLayer in PDFPageView_draw #7299

Merged
merged 1 commit into from
May 9, 2016
Merged

Prevent intermittent "Node was not found" errors when removing the zoomLayer in PDFPageView_draw #7299

merged 1 commit into from
May 9, 2016

Conversation

Snuffleupagus
Copy link
Collaborator

@Snuffleupagus Snuffleupagus commented May 7, 2016

I've seen the above error occasionally when the scale is updated many times in quick succession, but I've not been able to pinpoint exactly why it happens.
Since the error isn't caught, this means that the pageViewDrawCallback function doesn't run to completion.

Unfortunately, given the very intermittent nature of the issue, I haven't got any good STR for reliably reproducing this issue. However, I hope that this patch can be accepted anyway, since it's simple and should help prevent unnecessary errors.

Update:
For me, the following STR seems to hit this error quite often.

  1. Open http://ftp.acc.umu.se/mirror/CTAN/info/lshort/english/lshort.pdf#zoom=page-fit
  2. Enter/exit the browser fullscreen mode, using F11, a number of times.

Update 2:
I've pushed a new version of the patch to fix a couple of stupid typos in the commit message.

…oomLayer` in `PDFPageView_draw`

I've seen the above error occasionally when the scale is updated many times in quick succession, but I've not been able to pinpoint exactly why it happens.
Since the error isn't caught, this means that the `pageViewDrawCallback` function doesn't run to completion.

Unfortunately, given the very intermittent nature of the issue, I haven't got any good STR for reliably reproducing this issue. However, I hope that this patch can be accepted anyway, since it's simple and should help prevent unnecessary errors.
@Snuffleupagus Snuffleupagus changed the title Prevent intermittent "Node was not found" errors when removing the zoomLayer in PFPageView_draw Prevent intermittent "Node was not found" errors when removing the zoomLayer in PDFPageView_draw May 8, 2016
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented May 9, 2016

From: Bot.io (Linux)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/8f2fbfaa2e20099/output.txt

@timvandermeij timvandermeij merged commit 1191427 into mozilla:master May 9, 2016
@timvandermeij
Copy link
Contributor

Thank you for the fix and the steps to reproduce!

@Snuffleupagus Snuffleupagus deleted the PDFPageView_draw-zoomLayer-prevent-error branch May 9, 2016 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants