Zotero Android crash on opening / scrolling PDF
Report ID: 1473485726
Seeing frequent crashes in the Android app after adding many annotations and then opening / scrolling the pdf.
Sadly no steps to 100 % reliably reproduce. But when encountering the crash it happened *after* doing some annotations.
Crash has happened again - Report ID: 276272814
The PDF annotations behave unexpected. I used various Text Annotations. When opening the PDF and long-tapping the text annotation instead of opening edit mode, it vanishes. It does re-appear after closing and re-opening the PDF. But apparently it can not be deleted due to the option never showing.
Android 15, LineageOS 22-20241201-Unofficial-nabu
Zotero-Android: 1.0.0-124
Seeing frequent crashes in the Android app after adding many annotations and then opening / scrolling the pdf.
Sadly no steps to 100 % reliably reproduce. But when encountering the crash it happened *after* doing some annotations.
Crash has happened again - Report ID: 276272814
The PDF annotations behave unexpected. I used various Text Annotations. When opening the PDF and long-tapping the text annotation instead of opening edit mode, it vanishes. It does re-appear after closing and re-opening the PDF. But apparently it can not be deleted due to the option never showing.
Android 15, LineageOS 22-20241201-Unofficial-nabu
Zotero-Android: 1.0.0-124
Similar bug here. Scrolling in landscape mode through (an annotated) PDF first was difficult, then not possible. Leaving the app was not possible. I locked the screen and came back to the crash report.
@augustaugust, let us know if you're still seeing yours.
In a test 1.0.0-125 still crashes for me. During testing, the app closed and I had to re-open it. Twice I did not receive a Report ID. The third time Report ID 463578896 showed up. Hope it is helpful in getting to the bottom of the issue. Let me know if you need additional debug data.
Looking at the debug output I am not seeing any obvious errors: Debug ID D1992785333
Editing the annotations is behaving in unexpected ways. Single tapping an annotation hides that annotation from view. Deleting or editing it is not possible.
The PDF seemingly is in some corrupted state. I am fine to just delete it, but maybe it is useful to debug the crash + annotation issues.
Can you provide the 8-character string from the zotero.org URL when you click on the attachment in question in your web library?
On page 4 there are three text annotations with large text in red. When tapping (short or long) one of those annotations instead of opening the annotation details, the annotation vanishes.
Screencast sent via email.
GitHub issues: https://github.com/zotero/zotero-android/issues/206 explains what is going on.
Commit: https://github.com/zotero/zotero-android/commit/86f86b47099f8191c128ea48c42d8020d9979c5c
"This commit should fix the issue by both preventing a creation of SQUARE annotations with zero width or height as well as remove all SQUARE annotation with such dimensions from user’s database, which should allow users to open affected PDFs without a crash."
We'll continue to investigate.
Requested string from WebUI still is: 45M7YTM3
one more report ID: 1321644524
That file may be corrupt. There are more issues than the crash. The file has various text annotations in different size and color.
It also has several scribble or ink (?) annotations. But they behave problematic: when tapped they just vanished. They do return after closing the pdf and re-opening, but cannot be edited. It seems as if they are in some unintended limbo state.
Happy to let this go and just deleted the PDF in question, if the issue is too exotic to investigate. Will then have to see if this happens again with another PDF when working with it.