Bug 44284

Summary: EDITING: Impress, Draw and Writer crash after undo and moving graphics
Product: LibreOffice Reporter: Milos Sramek <msramek22>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: major CC: ilmari.lauhakangas, serval2412
Priority: medium    
Version: 3.5.0 Beta2   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Error logs on 3.5 branch

Description Milos Sramek 2011-12-29 11:47:52 UTC
When undoing many (i.e. more than the number of undo levels) moves of a graphics object (rectangle, image), Impress, Draw and Writer crash. Verified on Ubuntu 64bit and Windows 64 bit.

To repeat:
1. open a new Impress, Draw and Writer document
2. draw a rectangle
3. move it many (100) times by left and right arrows
4. press CTRL-Z many lines (or just hold it) until the moves are undone. Since we moved the object more times than the number of undo levels, the object remains on the screen
5. Move the object again (with mouse)  - LO crashes

LO writes a message: 

milos@trigan:~$ /opt/lodev3.5/program/soffice
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Comment 1 Julien Nabet 2012-01-22 08:41:14 UTC
Created attachment 55973 [details]
Error logs on 3.5 branch

Reproduced on Impress with 3.5 branch on pc Debian X86-64.
I couldn't even quite after the crash, i had to use Ctrl-C in console to stop it.
The 2 last lines appear lots of times.
Comment 2 famo 2012-01-22 10:06:01 UTC
I can reproduce this with LO 3.5 beta on Windows XP.

Changing Platform to all.
Comment 3 famo 2012-01-25 06:54:49 UTC
I checked this also in LO 3.4.5 -> same issue.

With OpenOffice.org 3.2.1 no crash occurs after all undos and moving graphic object.


Also notice that Calc doesn't crash on this test in LO 3.4.5.
Comment 4 Milos Sramek 2012-01-26 12:08:55 UTC
Writer 3.5.0 RC1 just crashed to me in a similar situation: many undos then typing a letter, followed by crash.

In fact I have observed crashes related to undos for a longer time. It is hard to reproduce (the Draw case was easy). So I am afraid there is a (severe) problem somewhere in undo management. Please, have a look at it, this may cause problems.

Valgring can catch that, but no additional information:

==17180== For counts of detected and suppressed errors, rerun with: -v
==17180== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 4 from 4)
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Comment 5 Julien Nabet 2013-12-30 15:11:04 UTC
Milos: still on pc Debian x86-64 with 4.1.3.2 Debian package, I don't reproduce this.
Could you give it a new try with a newer LO version? (you'll find some versions here: https://launchpad.net/~libreoffice/+archive/ppa)
Comment 6 QA Administrators 2014-07-08 17:29:30 UTC
Dear Bug Submitter,

This bug has been in NEEDINFO status with no change for at least 6 months. Please provide the requested information as soon as possible and mark the bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is still in NEEDINFO status with no change in 30 days the QA team will close the bug as INVALID due to lack of needed information.

For more information about our NEEDINFO policy please read the wiki located here: 
https://wiki.documentfoundation.org/QA/FDO/NEEDINFO

If you have already provided the requested information, please mark the bug as UNCONFIRMED so that the QA team knows that the bug is ready to be confirmed.


Thank you for helping us make LibreOffice even better for everyone!


Warm Regards,
QA Team
Comment 7 Milos Sramek 2014-07-09 10:36:39 UTC
Hi,

I have probably overlooked Julien's question, I apologize. 
I have not seen the problem for a long time now, even in LO40 (the oldest version I have installed). And in the most recent 43, too. I think this bug can be closed. 
--
Milos

(In reply to comment #6)
> Dear Bug Submitter,
> 
> This bug has been in NEEDINFO status with no change for at least 6 months.
> Please provide the requested information as soon as possible and mark the
> bug as UNCONFIRMED. Due to regular bug tracker maintenance, if the bug is
> still in NEEDINFO status with no change in 30 days the QA team will close
> the bug as INVALID due to lack of needed information.
> 
> For more information about our NEEDINFO policy please read the wiki located
> here: 
> https://wiki.documentfoundation.org/QA/FDO/NEEDINFO
> 
> If you have already provided the requested information, please mark the bug
> as UNCONFIRMED so that the QA team knows that the bug is ready to be
> confirmed.
> 
> 
> Thank you for helping us make LibreOffice even better for everyone!
> 
> 
> Warm Regards,
> QA Team
Comment 8 Buovjaga 2014-11-25 09:07:06 UTC
Closing as WFM per comment 7.