Error if a data chunk breaks an entity
LMX is supposed to be able to take data in chunks, from the end of the file. It turns out that this doesn't work if a chunk breaks up an entity, though.
I have access to a log which reproduces the behavior, at least on my own machine (your mileage would vary depending on the return value of getpagesize()) when read by Adium's -[DCMessageContextDisplayPlugin contextForChat:], since that method reads in 4*getpagesize() byte chunks and that number of bytes from the end is the middle of an entity.
The result is an assertion failure: *** Assertion failure in -[LMXParser parseEntityReference:], /Volumes/Huffman/Projects/lmx-sholt/LMXParser.m:605 "entity name was empty! currentIndex is 5193 (&) out of 21579 bytes"
This issue was also relayed to the Adium development mailing list on 4/26/10. Adium ticket #13628 (http://trac.adium.im/ticket/13628) is the relevant Adium ticket; it has been closed via a workaround, obsoleted by this ticket which relates to the actual problem.