Bug 42307

Summary: FORMATTING: Crash when pasting GUI Octave formatted text
Product: LibreOffice Reporter: patheticcockroach
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: patheticcockroach, sasha.libreoffice
Priority: medium    
Version: 3.4.4 release   
Hardware: Other   
OS: All   
Whiteboard: BSA
Crash report or crash signature: Regression By:
Attachments: just a file with which the bug occurs
an example line that can provoke the crash

Description patheticcockroach 2011-10-27 05:03:26 UTC
Created attachment 52822 [details]
just a file with which the bug occurs

Problem description: When editing the attached file, if you add a line break at the end of a line then paste some syntax copied from GUI Octave, LibO will crash.
NB: doesn't seem to occur when creating a new file, but I have several files in which I can reproduce the behavior. Those files haven't been corrupted in any way as far as I know, but do share a common ancestor.

Steps to reproduce:
1. Type some syntax in GUI Octave and copy part or all of the line
2. Open attached file
3. Place your cursor _at the end_ of a line, hit return, then paste

Current behavior: crash

Expected behavior: no crash, obviously ^^

Platform (if different from the browser): Win 7 x64
              
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0a1) Gecko/20111023 Firefox/10.0a1
Comment 1 patheticcockroach 2011-11-09 07:47:16 UTC
Update: still occurring in version 3.4.4

GUI Octave is that thing, btw: http://guioctave.com/?page_id=2
Comment 2 tester8 2011-12-02 12:52:10 UTC
Can you paste this text to txt with notepad or similar application and upload resulted file so we can test this bug without using GUI Octave.

BTW interesting application, unfortunately Win-only.
Comment 3 patheticcockroach 2011-12-02 13:04:55 UTC
Created attachment 54083 [details]
an example line that can provoke the crash

Here's a wordpad file that seems to be able to reproduce the crash (copy "a=5" and paste as previously explained). If you happen to open it with Word 2010, make sure you *don't* copy the line break as well, or it won't crash.
Comment 4 patheticcockroach 2011-12-02 13:13:09 UTC
(In reply to comment #3)
> Created attachment 54083 [details]
> an example line that can provoke the crash
> 
> Here's a wordpad file that seems to be able to reproduce the crash (copy "a=5"
> and paste as previously explained). If you happen to open it with Word 2010,
> make sure you *don't* copy the line break as well, or it won't crash.
NB: if you open the file (breaker.rtf) with LibO and copy/paste into my first attachment, it won't crash but oddly enough it seems to insert a page break...
Comment 5 patheticcockroach 2012-02-16 04:50:44 UTC
Can't reproduce it in LibO 3.5, hurray! :)
Comment 6 sasha.libreoffice 2012-04-18 09:17:16 UTC
Thanks for bugreport

Thanks for additional testing
Due to last comment, changing status to WorksForMe

If problem will appear again, please, change status to Reopened