Skip to content
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

Issue: can't open nor delete problematic PDF #220

Closed
Pask78 opened this issue Jun 16, 2020 · 2 comments
Closed

Issue: can't open nor delete problematic PDF #220

Pask78 opened this issue Jun 16, 2020 · 2 comments
Labels
🐛bug Something isn't working 🤔question Further information is requested or this is a support question
Milestone

Comments

@Pask78
Copy link

Pask78 commented Jun 16, 2020

I am having trouble with a PDF in my library (currently using v80).
Qiqqa won't open the PDF, but when I mouse over the PDF icon in the Qiqqa library screen it displays the content.
If I try to open it in another PDF viewer (Adobe DC) from Qiqqa, it opens and the file seems fine, but when I click on it to open it in Qiqqa I get a blank screen instead of the PDF.
Interestingly, this happened on my desktop, and I then checked if the same thing occurred on my laptop (my library is synced to an intranet library on an external drive) and it didn't. Qiqqa was able to open the same PDF on my laptop.

I also tried to delete the PDF from Qiqqa on my desktop, purged deleted PDFs, quit and restarted Qiqqa, checked the log to identify the file name and checked that the file had indeed been deleted from the Qiqqa folder in AppData. I then downloaded the same paper again under a different name, and Qiqqa still couldn't open it. When I checked the log, it said that the document had been deleted and then reinstated, and the file name was the same as before. I also tried reindexing the document, and forcing the OCR in English, to no avail.

The error message I get is:
'Something unexpected has happened, but it's okay', and the problem summary is: 'Specified argument was out of the range of valid values. Parameter name: index'.

Here is part of the log for this error (hopefully there is enough here to make it clear):

20200616.055507 INFO [Main] Disposing PDFReadingControl
20200616.055507 INFO [Main] Flushing the cached page renderings for EAD34F21EF854CC94413408BD29A6B87F8517721
20200616.055507 INFO [Main] Flushing the cached page renderings for EAD34F21EF854CC94413408BD29A6B87F8517721
20200616.055507 INFO [Daemon.Maintainable:DocumentQueuedStorer.DoMaintenance_FlushDocuments] DocumentQueuedStorer: (0/0)
20200616.055529 INFO [Main] +Creating child page controls
20200616.055529 INFO [Main] -Creating child page controls
20200616.055529 INFO [Main] +Setting initial viewport
20200616.055529 INFO [Main] -Setting initial viewport
20200616.055529 INFO [Main] AnnotationReport:Initialising annotation report (0/1)
20200616.055529 INFO [Main] AnnotationReport: (0/0)
20200616.055530 INFO [28] AnnotationReportBackground: (0/0)
20200616.055613 INFO [Main] Opening new PDF viewer for Vandercammen2014, Relating Specific Emotions to Intrinsic Motivation: On the Moderating Role of Positive and Negative Emotion
20200616.055613 INFO [Main] +Creating child page controls
20200616.055613 INFO [Main] -Creating child page controls
20200616.055613 INFO [Main] +Setting initial viewport
20200616.055613 INFO [Main] -Setting initial viewport
20200616.055613 INFO [Main] +Creating child page controls
20200616.055613 INFO [Main] -Creating child page controls
20200616.055613 INFO [Main] +Setting initial viewport
20200616.055613 INFO [Main] -Setting initial viewport
20200616.055613 INFO [Main] AnnotationReport:Initialising annotation report (0/1)
20200616.055613 INFO [Main] AnnotationReport: (0/0)
20200616.055613 ERROR [Main] System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: index
at System.Windows.Media.VisualCollection.get_Item(Int32 index)
at System.Windows.Controls.UIElementCollection.get_Item(Int32 index)
at Qiqqa.Documents.PDF.PDFControls.PDFRendererControl.ScrollPages_ScrollChanged(Object sender, ScrollChangedEventArgs e)
at System.Windows.Controls.ScrollChangedEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.Controls.ScrollViewer.OnScrollChanged(ScrollChangedEventArgs e)
at System.Windows.Controls.ScrollViewer.OnLayoutUpdated(Object sender, EventArgs e)
at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
20200616.055613 INFO [Main] About to display client stats: Something unexpected has happened, but it's okay.

Thanks again so much for your time!

@GerHobbelt
Copy link
Collaborator

GerHobbelt commented Jun 16, 2020 via email

@GerHobbelt GerHobbelt added 🐛bug Something isn't working 🤔question Further information is requested or this is a support question labels Jun 16, 2020
@GerHobbelt GerHobbelt added this to the v82 milestone Jun 16, 2020
@Pask78
Copy link
Author

Pask78 commented Aug 18, 2020

Quick update: I think I have found a way of fixing this in case it helps anyone else.

The problem seems to be that some of the OCR files were not written properly.
Typically the OCR writes several text files for each pdf, and the first text file states the page count of the document. In my library, I found that in many cases there was a single text file for a pdf. Also, in many other cases there were several text files but the page count was -1 in the first text file, which was inaccurate. When I checked back in Qiqqa, I found that these were the pdfs that I couldn't open, and I got the same error message: 'Specified argument was out of the range of valid values. Parameter name: index'.

I can only assume that there was a problem with the writing of these files.

I did a few tests and found that deleting the problematic OCR files and then running expedition fixed the problem by forcing Qiqqa to re-run the OCR.

I hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working 🤔question Further information is requested or this is a support question
Projects
None yet
Development

No branches or pull requests

2 participants