A video would be helpful indeed.
PDF Viewer not working unless refreshed
Would it be possible @SkullEnemyX, @Boot, or @HatshibaInu, to share debug information when this occurs? I'm having trouble reproducing it on my end. What I'm looking for is console logs, which can be retrieved like so:
- In the
Develop
menu, enableShow Console Errors Indicator
. - Trigger the bug by opening up a PDF page
- You will likely see a red circle with a "!" character next to the Refresh "↻" icon. Tap that button to open the console.
- Share a screenshot of the errors that are shown.
Thanks very much!
-nano
- Edited
I'm experiencing the same issue, so I thought I'd share my console error screenshot:
URL: https://arxiv.org/pdf/2302.12173.pdf
The PDF loads fine if I then press the reload button after that, although the errors are still present. There are also console warnings, but I've hidden them for the screenshot below.
Version 0.99.124.4.1-beta (WebKit 616.1.14.11.1)
MacBook Pro (macOS Ventura 13.4 build 22F66)
Hope this helps with the troubleshooting. I'd also want to take the chance to express my thanks for the shift to PDF.js, it's more feature-filled than the older PDF viewer, and has been very useful to me.
Steps to reproduce:
Click on https://www.africau.edu/images/default/sample.pdf.
Expected behavior:
The PDF should show in the browser like in Safari (
However, in Orion, it looks like this:
Orion, OS version; hardware type:
Version 0.99.124.4.1-beta (WebKit 616.1.14.11.1)
MacBook Pro 13", 2020, Intel (macOS Ventura 13.4 build 22F66)
I think this is a duplicate of https://orionfeedback.org/d/5156-pdf-viewer-not-working-unless-refreshed . I can reproduce it by clicking the provided sample PDF, and refreshing causes the PDF to display correctly.
adamaveray
Yes indeed! It seems to be the same issue as I am able to see the PDF after refreshing. Thank you for sharing this temporary solution!
Just jumping in to say I'm having the exact same issue as others described here. Otherwise enjoying using Orion but this is frustrating. Particularly, as other commenters note, when downloading large PDFs, or from a slow server, or via a series of redirects. I've also noticed this issue when PDFs have been previously loaded on an inactive tab, and when I switch back to it, the page is blank. This is especially frustrating if you are, like I am right now, in and out of internet access.
I'm used to downloading PDFs and not viewing them in browser. If this is not yet resolved I would appreciate the option to treat PDF links as a download and not default to opening them in browser. (though I suppose I can just revert to 'download as' pdf links, but that isn't possible with indirect links)
leonrw You can enable WebKit's PDF viewer until we fix this. There is an option in Develop -> Experimental features for this https://help.kagi.com/orion/misc/technical.html#i-prefer-the-original-webkit-pdf-viewer
still this issue persists,
i have "Enable PDF.js viewer" enabled by default. i tried disabling that and opening the pdf webpages then the browser completely frozen and crashed.
I then enabled the "Enable PDF.js viewer", but the same issue like empty blank screen when opening a pdf webpage, page is opening only after refreshing it.
orion version: Version 0.99.128.2.1-beta (WebKit 619.1.11.111.2)
machine: Macboook Pro M3 Pro, 18GB RAM.
BhargavKadupukutla
I am unable to reproduce this using the link in your video:
https://www.usenix.org/system/files/conference/atc13/atc13-bronson.pdf
Does this happen on a fresh Orion profile as well? File
-> Profiles
-> New Profile
Wasn't there a similar issue on which I had commented with the same problem? maybe a merge is in order.
Reposting my findings here:
if you open the console after opening the link (when its still blank) the console shows errors
after the reload, these errors remain:
Comparing with the errors for people who didn't need to reload the viewer, after the reloads the errors match up, but before the reload there are those unhandled promise rejections which aren't experienced by people who don't have this bug.
still fails to load PDF with latest Orion RC