-
Notifications
You must be signed in to change notification settings - Fork 5
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
Segmentation faults galore with poppler 0.82 #4
Comments
Have you been using the latest version of the plugin? In the last month, I've completely overhauled its code with almost nothing being left from the original version (it also broke API and ABI compatibility, sorry for that). Document isn't being loaded all at once. Poppler parses the PDF structure and we fill the model ( Pages are rendered on demand when QML code requests the needed page, an in the requested resolution. That's how we keep memory usage nice and low. Take a look at the supplied PDFView.qml QML component installed with plugin or simply use it directly. |
@cyberbobs Hi, I am having the following problem constantly with poppler, if I use PDFView example on Raspberry Pi: Could you share your ideas with me what could be done to overcome this problem?
My sincere thanks. |
The problem may be your application and/or plugin and/or poppler-qt5 that are built or run with incompatible versions of Qt. Quick web search seems to show this message being some bug in Poppler itself. Try newer version maybe? |
I'm experiencing this same issue, using Debian Buster:
|
@pauldotknopf This could be an entirely different issue. Are you getting the Not trying to waive the issue, but this specific place in the source seems trivial enough to not screw it up, except the obvious lack of page number check before requesting its render. |
Yes, I did get This happens when we navigate the plugin quickly (go through pages fast), and then dispose of the page. There is likely some async stuff not being cancelled. |
Hi,
I am using this plugin in one of my projects. I'd have to say it works quite well. However, it crashes a lot. I've tried it on both x86_64 Linux PC and Raspberry Pi 4 (64-bit) OS, Custom Poky/Yocto distro.
Reproducing the crashes:
It seems to me like "loaded" flag does not function correctly. It is almost always true. Shouldn't there be a flag for "document completely loaded"? If the document is not visible and waiting for the load because you zoomed and you select a new file, you get a Segmentation fault. (possibly related to poppler)
Also, after you select .pdf file it also gives Segmentation fault randomly. This does not happen on PC if you wait 5 second between .pdf file selections. If you do it quickly, it even crashes on PC.
"Error (0): Call to Object where the object was type 13, not the expected type 7"
I am using poppler 0.82 with Qt 5.13.0.
Do you have any suggestions or validated versions to avoid such problems? Thank you.
The text was updated successfully, but these errors were encountered: