From: Adam M. <ama...@ws...> - 2003-11-13 22:17:41
|
Mike, In case you haven't looked at it already, that file from Wolfgang Polifke (bibdb.bib) that you sent will now crash Bibdesk when I try to open it (he filed a bug about random crashes). It looks to me like it happens in the call to bt_split_name() in BibAuthor.m:108. Funny thing is if you change [name UTF8String] to name, it loads the file but doesn't complain about too many commas. Something weird with encoding there? Here's the bibitem it doesn't like (should be "and" in the author field): @inproceedings{Smeul+Bouma+99, Author = {Smeulers, J.P.M., Bouman, W.J., Essen, H.A. v.}, Booktitle = {Internat. Conf. on Compressors and their Systems}, Keywords = {Control, Low Order Model}, Organization = {IMechE, London}, Title = {Model predictive control of compressor installations}, Year = {1999}} I'm copying in the backtrace. lexical buffer overflowed (reallocating to 4000 bytes) , warning: too many commas in name (removing extras) Program received signal: "EXC_BAD_ACCESS". (gdb) bt #0 0x025cd164 in find_lc_tokens (tokens=0x5784d0, first_lc=0xbfffd498, last_lc=0xbfffd49c) at /usr/include/ctype.h:189 #1 0x025cd564 in bt_split_name (name=0x5e92b80 "Smeulers", filename=0x2 <Address 0x2 out of bounds>, line=5735632, name_num=0) at src/names.c:850 #2 0x02688278 in -[BibAuthor setName:] (self=0x5e92ad0, _cmd=0x90894738, newName=0x5e92a90) at /Volumes/Stokes/Users/amaxwell/build/bibdesk/BibAuthor.m:108 #3 0x02687ba4 in -[BibAuthor initWithName:andPub:] (self=0x5e92ad0, _cmd=0x4d5114, aName=0x5e92a90, aPub=0x0) at /Volumes/Stokes/Users/amaxwell/build/bibdesk/BibAuthor.m:27 #4 0x02687b20 in +[BibAuthor authorWithName:andPub:] (self=0x268a0e8, _cmd=0x2612c10, newName=0x5e92a90, aPub=0x0) at /Volumes/Stokes/Users/amaxwell/build/bibdesk/BibAuthor.m:23 #5 0x0260f8d4 in -[BibItem addAuthorWithName:] (self=0x5e90f40, _cmd=0x2612750, newAuthorName=0x5e92a90) at /Volumes/Stokes/Users/amaxwell/build/bibdesk/BibItem.m:250 #6 0x0260fb4c in -[BibItem setAuthorsFromString:] (self=0x5e90f40, _cmd=0x2612728, aString=0x5e91570) at /Volumes/Stokes/Users/amaxwell/build/bibdesk/BibItem.m:282 #7 0x026103d8 in -[BibItem setFields:] (self=0x5e90f40, _cmd=0x738e38, newFields=0x5dba20) at /Volumes/Stokes/Users/amaxwell/build/bibdesk/BibItem.m:381 #8 0x02591408 in +[BibTeXParser itemsFromString:error:frontMatter:filePath:] (self=0x25931a8, _cmd=0x4d5498, itemString=0x17cf000, hadProblems=0xbfffdfe4 "", frontMatter=0x5c2d90, filePath=0x5c2170) at /Volumes/Stokes/Users/amaxwell/build/bibdesk/BibTeXParser.m:196 #9 0x004cd790 in -[BibDocument loadBibTeXDataRepresentation:] (self=0x5d5bb0, _cmd=0x4d4af4, data=0x5d7d10) at /Volumes/Stokes/Users/amaxwell/build/bibdesk/BibDocument.m:455 #10 0x004cd584 in -[BibDocument loadDataRepresentation:ofType:] (self=0x5d5bb0, _cmd=0x90881f00, data=0x5d7d10, aType=0x515ac0) at /Volumes/Stokes/Users/amaxwell/build/bibdesk/BibDocument.m:429 #11 0x930519b0 in -[NSDocument loadFileWrapperRepresentation:ofType:] () #12 0x93051cd4 in -[NSDocument readFromFile:ofType:] () #13 0x92f69b20 in -[NSDocument initWithContentsOfFile:ofType:] () #14 0x92f69994 in -[NSDocumentController makeDocumentWithContentsOfFile:ofType:] () #15 0x92f697d4 in -[NSDocumentController _openDocumentFileAt:display:] () #16 0x31415d90 in -[NSDocumentController(OAExtensions) OAOpenDocumentWithContentsOfFile:display:] (self=0x56c880, _cmd=0xbfffd498, fileName=0x5c2170, flag=11 '\v') at OpenStepExtensions.subproj/NSDocumentController-OAExtensions.m:137 #17 0x92fb3388 in -[NSDocumentController _openFile:] () #18 0x92fa5154 in -[NSApplication _doOpenFile:ok:tryTemp:] () #19 0x92febd28 in -[NSApplication openFile:ok:] () #20 0x93053840 in -[NSDocumentController _openRecentDocument:] () #21 0x92e779d0 in -[NSApplication sendAction:to:from:] () #22 0x92ead1bc in -[NSMenu performActionForItemAtIndex:] () #23 0x92ef1ac4 in -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] () #24 0x92e2eda8 in _NSHandleCarbonMenuEvent () #25 0x92dd2dd0 in _DPSNextEvent () #26 0x92de93fc in -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] () #27 0x92dfd730 in -[NSApplication run] () #28 0x3140650c in -[OAApplication run] (self=0x534e30, _cmd=0xbfffd498) at OAApplication.m:87 #29 0x92eb9a1c in NSApplicationMain () #30 0x0000df74 in main (argc=1, argv=0xbffffc78) at /Volumes/Stokes/Users/amaxwell/build/bibdesk/main.m:20 (gdb) |