Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 15 by
98310b...@gmail.com: Import DOI freezes on bibtex parsing
http://code.google.com/p/gpapers/issues/detail?id=15
What steps will reproduce the problem?
1. Select File -> Import DOI... and enter 10.1086/648726
2. Press OK and wait.
What is the expected output? What do you see instead?
This should download a paper from the journal "Clinical Infectious
Diseases". Instead, the job appears to go through (the busy spinner stops)
and the GUI refuses to respond until forcibly closed and restarted. Upon
restarting, a blank entry is visible with the correct DOI and an incorrect
PDF.
What version of the product are you using? On what operating system?
I am using the latest version from git (1dbb66ebecfb) on Ubuntu 12.04. I
have pyparsing version 1.5.2-2ubuntu1 installed through my package manager.
Please provide any additional information below.
I haven't figured out what causes this bug, but when I run gpapers in a
debugger, I can see that it gets stuck calling into the pyparsing library
at line 146 of the importer.bibtex module (method parse_string(str)). I'm
guessing there is either a bug in your grammar or a bug in the pyparsing
module, but I am not certain, since I've never used that library.
I attached a literal copy of the string being parsed. Maybe the newline
characters in the title are the problem?
Attachments:
problematic_bibtex.txt 777 bytes