Created attachment 123587 [details]
ZIP file contains screenshots of problems stated in BUG Description
After a successful build on Windows 10 Home Edition (x64), LibreOffice crashes when trying to add custom animation to a simple text in presentation to only one slide. The source wasn't cloned but was downloaded as tarball. I tried executing soffice.exe in multiple ways:
1.By Cygwin terminal
2.By Cygwin terminal as Administrator.
3.Directly navigating to directory containing soffice.exe and executing right from there.
4.Directly navigating to directory containing soffice.exe and executing right from there as Administrator.
But in all the cases, LibreOffice first freezes for sometime. I checked Task Manager at that time. The Ram usage peaked to about 750 MB. Then after the usage becomes somewhat low, "bad allocation" error pops up. And after clicking "OK" on it. The whole LibreOffice crashes.
(Screenshots of the problem are included)
I also tried 'make clean', then 'make' but the problem still wasn't solved.
I also build LibreOffice on Linux Ubuntu 15.10 (x64). Build was successful and there is no such problem in LibreOffice Impress on Ubuntu.
I can confirm the crash in Master Version: 220.127.116.11.alpha0+
However it happens to me when I try to play or select another effect not after pressing the + button
Sometimes it shows Fatal Error windows with: "SEH Exception: Access Violation"
Build ID: 129d199d27f6961ea0c850686f76c83e2fc1953d
CPU Threads: 1; OS Version: Windows 6.1; UI Render: default;
TinderBox: Win-x86@42, Branch:master, Time: 2016-03-11_06:16:01
Locale: en-US (en_US)
Can you try with first deactivating the 'Automatic Preview' at the bottom of the Custom Animation panel, please?
Yes, I tried that already. However, the animation works if just the typing cursor is on the text (i.e. text is not selected). But when '+' button is pressed after selecting the test. The stated problem occurs.
Hi Mayank, thanks for checking.
I found a problem in CustomAnimationPane.cxx which seems to have come in by ommit e4aa4472f84dc9fcf0acaab80ede005603a4b93c (tdf#87813: Moving effects list into the animation tab). When adapting, all looks good.
Doing some more experiments, though...
Oky, change is comitted to gerrit
Armin Le Grand committed a patch related to this issue.
It has been pushed to "master":
tdf#98678 removed double for-loop
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:
Affected users are encouraged to test the fix and report feedback.
Armin Le Grand,
I don't think the problem is due to loop.
My system is on Dual boot and on Lunix (Ubuntu (x64)), it works perfectly and I checked CustomAnimationPane.cxx on Linux source, the for loop was there and LO Impress is running perfectly fine. I think the patch was successful because Jenkins checks for build errors, not logical one.
That double loop was by error, and the iterator might have been changed different in that combination on different compilers. I already thought about that when handling it - in principle, the two loops should do the same as the single one, but it definitely leaded to triggering an exception on windows
Armin Le Grand,
I applied your patch and did a partial build. 'bad allocation' error is gone. But what Usama mentioned in comment. The problem of FATAL ERROR "SEH Exception:Access Violation" still remains. It now crashes with the stated error when I try to play a different effect.
@Mayank Gupta: May be, but that is then another error which may be worth another error report (if there is none yet?). Still, I'll have a look...
Yes,that's why I'm setting this bug as resolved and filing another one (if it doesn't exist). Thanks for you effort. :)
@Mayank Gupta: Added and changed effects on a simple text, using selecting text and selection custom animation in sidebar, with and without automatic preview, could not get another error here. I am on win7, using 32bit office version
Build ID: 4331b137fdbe6992ca63ceb70a6f48ed6f9a86ea
CPU Threads: 8; OS Version: Windows 6.1; UI Render: GL;
Locale: de-DE (de_DE)
If you can still reproduce on this or newer version, please give exact step-by-step intorductions how to do so (and maybe open a new task, set me on CC)
Armin Le Grand,
Here's what I did:
2)Type simple Text in body.
3)Add Custom Animation
4)Change the effect on simple text multiple times(3-4 approx).
5)Type text in title portion of the slide
6)Add custom animation and try to change it 3-4 times.
Tried with and without 'Automatic preview' (no info in text), randomly choosing effects (no info), all works well here on win7 32bit version. I do not get FATAL ERROR "SEH Exception:Access Violation"