Created attachment 115605 [details] test document and backtrace I am not familiar with rtl setup so I do not know if this is how it is actually used. 1. New Text Document. 2. Tools → Options → Language Settings → Languages → Default Languages for Documents → check “Complex text layout” and select “Persian” from drop-down and check “For the current document only” and OK. 3. Ctrl + Shift + D or Ctrl + Right Shift to change to Right to Left entry. 4. Format Page → Footnote tab, toggle Footnote Area to “Maximum footnote height” and 2 cm and OK. 5. Tools → Footnotes/Endnotes → Footnotes tab → Continuation Notice, type “...” in start and end and OK. 6. Enter enough paragraphs so that cursor is near the end of the page but with enough room for a footnote. 7. Type “test”. 8. Insert → Footnote/Endnote and OK default. 9. With cursor in footnote, Ctrl + Shift + D or Ctrl + Right Shift to change to Right to Left entry. 10. Type enough text so that the footnote continues onto the next page. And give it an extra Enter for good measure. Note: The continuation number is shown twice on the second page which is another bug. 11. Place cursor on first page in a paragraph before “test” and Enter until “test” moves onto the next page. Result: Crash. After opening LO, you may need to uncheck Tools → Options → Language Settings → Languages → Default Languages for Documents → Complex text layout. Windows Vista 64 Version: 4.4.3.2 Build ID: 88805f81e9fe61362df02b9941de8e38a9b5fd16
The footnote does not need to be spread over two pages for the crash to happen. As long as there are at least two lines in the footnote and the Continuation Notice has something in it--the page does not even need to be set for "Maximum footnote height"--then LO will crash when moving the text with footnote onto the next page.
Reproduced with example document. Debug message appearing with 5.0 crash: warn:legacy.osl:3119:1:sw/source/core/text/txtftn.cxx:1100: Quo Vadis, rest of QuoVadisPortion I daresay, that is a smashing warning message. Ubuntu 15.04 64-bit Version: 5.0.0.0.alpha1+ Build ID: 51d16cc69d8ad9065f61d108ea25d6a025a2e228 TinderBox: Linux-rpm_deb-x86_64@46-TDF-dbg, Branch:master, Time: 2015-05-17_03:58:58 Locale: en-US (en_US.UTF-8) OpenOffice.org 3.3.0 OOO330m20 (Build:9567)
Created attachment 121963 [details] Common Arabic document with footnotes I was able to reproduce this on LO 5.1.0.1 and 4.4.6.3 Ubuntu 15.04 It's very simple to reproduce. Just keep adding text to the footnote in the sample file and it will crash. I got a user report few hours ago about this bug with the attached file. This bug seems to effect every RTL languages (Arabic, Persian, Urdu, and Hebrew) with their default language settings. It already comes with CTL enabled for them.
I confirm this bug on latest master dev build 5.2 on fedora 21
Now I work on this bug ,but I need right behavior of libroffice to remove this crash.
(In reply to Beluga from comment #2) > Reproduced with example document. > Debug message appearing with 5.0 crash: > > warn:legacy.osl:3119:1:sw/source/core/text/txtftn.cxx:1100: Quo Vadis, rest > of QuoVadisPortion if you look at the file :libreoffice/sw/source/core/text/porlin.cxx:250 if you comment this two line below,no crash. 250 //Height( pLast->Height() ); 251 //SetAscent( pLast->GetAscent() ) ; so, The problem on the "pLast->Height()" and "pLast->GetAscent()" > > I daresay, that is a smashing warning message. > > Ubuntu 15.04 64-bit > Version: 5.0.0.0.alpha1+ > Build ID: 51d16cc69d8ad9065f61d108ea25d6a025a2e228 > TinderBox: Linux-rpm_deb-x86_64@46-TDF-dbg, Branch:master, Time: > 2015-05-17_03:58:58 > Locale: en-US (en_US.UTF-8) > > OpenOffice.org 3.3.0 > OOO330m20 (Build:9567)
please, give me right behavior of libreoffice when enter the footnote.
(In reply to Ali Yousuf from comment #7) > please, give me right behavior of libreoffice when enter the footnote. What do you mean?
Caolán McNamara committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=367f13fd584d5b67cbc3a7787892f12655a65d6c crashtesting: Related tdf#91291 assert on indexing into empty string It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Seems my above crashtesting fix solves this. at least it crashes for me in 5.1 when I add text to Usama's example in 5-1 and if I add my fix it stops crashing. Backport to 5-1 as https://gerrit.libreoffice.org/25897
Caolán McNamara committed a patch related to this issue. It has been pushed to "libreoffice-5-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=a7d4185bad915b51c23e8e5e40fbaa528852face&h=libreoffice-5-1 crashtesting: Resolves: tdf#91291 crash on inserting text into footnote It will be available in 5.1.5. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.