Created attachment 67420 [details]
Repro .odt file.
Enter 65534 characters (or load the attached .odt). All is fine. Enter the 65535th character and LibreOffice starts to behave erratic and will eventually crash/deadlock.
Steps to reproduce:
Should not crash.
Platform (if different from the browser):
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1
Reproduced this in master (22.214.171.124.alpha+) on OpenSUSE 12.2 32 bit.
It seems that there's a hard limit of 65535 characters per paragraph. It is impossible to add characters at the end of the paragraph once the limit is reached, but characters can be added in the middle of the paragraph. (Initially the last line typed disappears, at some point the whole paragraph became invisible, i.e. the characters are present and selectable but invisible, and sometimes the paragraph changes from being visible to invisible if one types additional characters.)
Further paragraphs can be inserted without issues.
Setting importance to low as I assume this case is rarely reached in normal use.
It's a known problem. It's not very complicated but it's quite tedious to fix because you must change lots of code.
So it's a long run task which has hopefully already started months (more than a year I would say) ago.
Caolán: could you give an update about this here or rather on fdo#30668? The link you gave here https://bugs.freedesktop.org/show_bug.cgi?id=30668#c2 is obsolete:(
*** This bug has been marked as a duplicate of bug 30668 ***
bug 30668 is about not being able to store > 64k characters;
writer should very well be able to not crash in this scenario
despite the limit. this is rather a duplicate of bug 60732.
*** This bug has been marked as a duplicate of bug 60732 ***