Open tuancoltech opened 11 months ago
I had been debugging this issue in this branch (placed some logs there), just in case somebody needs a reference to where I was: https://github.com/ARK-Builders/arklib/pull/59/files
@tuancoltech Do you know in what circumstance it crash? I was able to save image with High Quality directly without error
@tuancoltech Do you know in what circumstance it crash? I was able to save image with High Quality directly without error
@gwendalF Have you setup the environment as described in this issue? https://github.com/ARK-Builders/ARK-Navigator/issues/412
Then, after the setup, go to Navigatge data
tab in Navigator app, it will crash.
@tuancoltech I don't have the Java environement ready. The stacktrace you describe say it crash on unwrap. There is 4 unwrap here:
PDFIUM
.get()
.unwrap()
.load_pdf_from_reader(data, None)
.unwrap()
.pages()
.get(0)
.unwrap()
.render_with_config(&render_cfg)
.unwrap()
.as_image()
Can you describe the parameters you pass to the function?
@tuancoltech I don't have the Java environement ready. The stacktrace you describe say it crash on unwrap. There is 4 unwrap here:
PDFIUM .get() .unwrap() .load_pdf_from_reader(data, None) .unwrap() .pages() .get(0) .unwrap() .render_with_config(&render_cfg) .unwrap() .as_image()
Can you describe the parameters you pass to the function?
@gwendalF Sorry I just missed this comment.
The only param that I think you'll need is the previewQuality
, which is MEDIUM
in case of crash.
However, as per my earlier investigation, it seems to happen with other qualities too.
Let me know if you need further info (I can reproduce the crash 100% of the times).
Complete this first:
This happens when clicking on
Navigate data
inNavigator
app with some PDF files. Related: https://github.com/ARK-Builders/ARK-Navigator/issues/412