-
Notifications
You must be signed in to change notification settings - Fork 220
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
This line : status = pdfWriter.StartPDF(completePathToEmptyPages, ePDFVersion13, logConfiguration)
causes : Segmentation fault (core dumped)
#272
Comments
Not sure whats wrong. The example script seems simple. Maybe try running the tests? |
The tests are all OK :
|
Hmm. Can you tell whars the diff between the emptypages test and your attenpt? |
Taking this https://github.com/galkahana/PDF-Writer/blob/master/PDFWriterTesting/EmptyFileTest.cpp as reference, In
Output : The line that causes the crash is the last one: In
|
i honestly have no idea. this sounds like a very basic setup, and the way you fetch the project is the same thing i do for https://github.com/galkahana/pdf-text-extraction. |
I actually took the Do I need to install it as well? |
No, you dont have to. Its super weird you van run the tests...id expect a similar failure. Do you mind sharing the relevant parts of your project so i can attenpt to recreate? Maybe also some details on what system your are attempting to run this on |
I've made an interesting test I removed the previous references to PDFWriter in the source code, and I moved all the PDFWriter-related code into an .h file and an .cpp file, in order to avoid any possible interference by the rest of code
Without including EmptyFilteTest.h into This is the
Other info :
I've tried to use the same settings (the same CMakeLists.txt apart from the source files) with a toy project, and there are no issues at all The only difference between this toy-code and the "real" project is in the source code files. But these source code files do not import @galkahana What else should I try to spot the root cause and solve the issue? |
Code:
In class:
Output:
What am I doing wrong? How to make it work?
The text was updated successfully, but these errors were encountered: