Closed ComstockGordon closed 4 years ago
I retried after disabling all other addons. The problem still persists.
That's weird. I tested on Anki 2.1.24 on Ubuntu and on my Windows machine (2.1.28) and it works on both. It would help me immensely if you could post the javascript error that occurs. If you want to do that, you'd have to install the "Webinspector" add-on, then try to open a PDF, right click somewhere in the dialog, click Inspect, then click on the Console tab.
I am clicking the inspect button as shown in the screenshot but nothing is happening. I don't know if I am doing something wrong.
Sorry, I should have mentioned, the inspector pops up on the main window.
Please excuse my stupidity. Here it is:
Does it show you the line where the error occurs if you click on it? (Sometimes you have to click, then switch the tab or close the inspector and then do it again for it to show the correct line)
I am not sure how to check for line numbers. I just realised there are lot of toggles under the "t.UnknownErrorException" line. Should I paste all that information here.
Also, please tell me if I can perform any other check to make sure its a bug and not an issue on my end. Thanks.
I don't really know if it's an issue on your end, but I don't think so. You can click on the data:text/... message or on the VM60:38, I don't really remember. Ideally, it should highlight the location of the error in the html. But it would also be interesting to see what's in the expanded section.
This is what it shows me when I click on "data:text/". I'll paste the other details here too.
Yea that incorrect marking of the location happens to me too on the first time, you can try clicking on the other tab on the left side (data:text/html...) or close the html tab and repeat.
Edit: You probably did, but did you try with different pdfs? None work?
If I switch tabs and come back to it again, this is what it shows me.
And yes I have tried opening other old PDFs. I also tried creating a new note with a new PDF. None of them are opening.
Hm, and what does appear if you uncollapse the error? I am wondering if the error is related to the update in the pdf.js version this add-on uses.
It has a lot of toggles. I am not sure how to copy it and how deep should I go. Do you need all of it?
No, just some levels. You could do a screenshot
Please let me know if you need more information. Its getting very late here, ill post it tomorrow. Again, thanks for all your efforts.
That confirms it's the pdf.js update. I reverted to a slightly older version. If that doesn't fix the issue, please tell me!
Yes it seems to be fixed. I am able to open all PDFs. Thanks a lot!
I am getting this error "Could not load PDF - seems to be invalid" every time I open a PDF. I tried editing the note and reselecting the PDF but it did not help.
I am on Anki Version 2.1.26 and macOS Catalina 10.15.4.