Bug 43663

Summary: Graphic import failed with message "GraphicCrop"
Product: LibreOffice Reporter: Timo Lindfors <timo.lindfors>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME    
Severity: major CC: alexpikptz, sasha.libreoffice, serval2412
Priority: medium    
Version: 3.4.4 release   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: testcase to reproduce the bug
Logs on console

Description Timo Lindfors 2011-12-09 05:52:33 UTC
Created attachment 54267 [details]
testcase to reproduce the bug

Steps to reproduce:
1) Run the command "libreoffice Tema_1.docx" or choose File->Open and then Tema_1.docx. The testcase is attached.

Expected results:
1) libreoffice opens the document

Actual results:
1) libreoffice crashes:

/home/lo/stable/clone/filters/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
KCrash: Application 'soffice.bin' crashing...
Warning: connect() failed: : No such file or directory
KCrash cannot reach kdeinit, launching directly.

More info:
1) I've tested both 3.4.3 binaries from libreoffice.org and 1:3.4.4-2 from debian unstable:

/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
Comment 1 Timo Lindfors 2011-12-09 06:00:36 UTC
In case you wonder if this is a duplicate of

https://bugs.freedesktop.org/show_bug.cgi?id=38317

I tested the attachment there and see somewhat different behavior. Libreoffice prints

/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.4.4/libreoffice-build/build/libreoffice-3.4.4.2/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop

and then its logo stays on the screen and it uses all available cpu time. It is difficult to say if these are caused by the same bug or not.
Comment 2 sasha.libreoffice 2012-01-11 00:31:02 UTC
not reproduced crash on LibO 3.5.0 beta 1 and LibO 3.3.4 both on Fedora 64 bit
LibO 3.5.0 writes on console:
/home/lo/master/writerfilter/source/dmapper/GraphicImport.cxx:1505 failed. Message :GraphicCrop
but all works correctly
Comment 3 Julien Nabet 2012-01-19 13:58:35 UTC
Created attachment 55813 [details]
Logs on console

I didn't reproduce the crash on 3.5 branch updated yesterday but there are some error logs on console.

(PC Debian x86-64)
Comment 4 bfoman (inactive) 2012-06-04 22:58:40 UTC
Checked with:
LO 3.5.4.2 
Build ID: own W7 debug build
Windows 7 Professional SP1 64 bit

Could not reproduce.
Comment 5 Julien Nabet 2012-06-04 23:25:51 UTC
Timo: do you reproduce this problem with a newer LO version (3.5.4) ?
Comment 6 Timo Lindfors 2012-06-04 23:45:00 UTC
Debian libreoffice 1:3.5.3-5
============================

/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.5.3/writerfilter/source/dmapper/GraphicImport.cxx:1486 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.5.3/writerfilter/source/dmapper/GraphicImport.cxx:1486 failed. Message :GraphicCrop
/home/rene/Debian/Pakete/LibreOffice/libreoffice-3.5.3/writerfilter/source/dmapper/GraphicImport.cxx:1486 failed. Message :GraphicCrop


but not crash.

libreoffice.org LibO_3.5.4_Linux_x86-64_install-deb_en-US.tar.gz
================================================================

/home/lo/master/writerfilter/source/dmapper/GraphicImport.cxx:1486 failed. Message :GraphicCrop
/home/lo/master/writerfilter/source/dmapper/GraphicImport.cxx:1486 failed. Message :GraphicCrop
/home/lo/master/writerfilter/source/dmapper/GraphicImport.cxx:1486 failed. Message :GraphicCrop

but no crash.


I guess the bug was fixed?
Comment 7 Julien Nabet 2012-06-10 05:34:25 UTC
I update the title and the status of this tracker.
Don't hesitate to complete or change if I'm wrong.
Comment 8 Alexandr 2014-02-02 11:19:05 UTC
When I open the file in LibreOffice 3.5.4 from Debian Wheezy, it is opening without crash but with error messages in terminal as described in comment 6.
The file is opened without any messages in terminal in LO 4.1.4 from Debian wheezy-backports and LO 4.2.0 on Debian Jessie.
Unfortunately, it is not clear, which patch solved the problem. That's why I set the bug status to resolved worksforme. Please, reopen it if you can reproduce the problem with LibreOffice 4.1.4 or newer.