https://bugs.freedesktop.org/show_bug.cgi?id=59022
Michael Stahl <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] Component|Writer |framework --- Comment #7 from Michael Stahl <[email protected]> --- i've fixed something related in 0c2206081de38a41597aadfb2255540d6308be63 but that one struck on WNT only... trying it with a local file i get first open from type detection filling the XInputStream in the Media Descriptor: #0 open64 () at ../sysdeps/unix/syscall-template.S:82 #1 0x00007f1a5cb64740 in osl_openFilePath (cpFilePath=0x7fff7845bb50 "/Documents/RGBA PNG.odt", pHandle=0x305e8e0, uFlags=3) at /master/sal/osl/unx/file.cxx:914 ... #10 0x00007f1a5919dd38 in ucbhelper::Content::openWriteableStream (this=0x7fff7845d0a0) at /master/ucbhelper/source/client/content.cxx:765 #11 0x00007f1a5c44fe10 in comphelper::MediaDescriptor::impl_openStreamWithURL (this=0x7fff7845d7d0, sURL="file:///Documents/RGBA%20PNG.odt", bLockFile=1 '\001') at /master/comphelper/source/misc/mediadescriptor.cxx:610 #12 0x00007f1a5c44efdb in comphelper::MediaDescriptor::impl_addInputStream (this=0x7fff7845d7d0, bLockFile=1 '\001') at /master/comphelper/source/misc/mediadescriptor.cxx:469 #13 0x00007f1a5c44ec66 in comphelper::MediaDescriptor::addInputStreamOwnLock (this=0x7fff7845d7d0) at /master/comphelper/source/misc/mediadescriptor.cxx:435 #14 0x00007f1a3f586b3b in filter::config::TypeDetection::impl_openStream (this=0x299e710, rDescriptor=...) at /master/filter/source/config/cache/typedetection.cxx:1184 #15 0x00007f1a3f5861eb in filter::config::TypeDetection::impl_askDetectService (this=0x299e710, sDetectService="com.sun.star.text.FormatDetector", rDescriptor=...) at /master/filter/source/config/cache/typedetection.cxx:1029 Traceback (most recent call last): File "/lib64/../share/gcc-4.7.2/python/libstdcxx/v6/printers.py", line 103, in children nodetype = find_type(self.val.type, '_Node') File "/lib64/../share/gcc-4.7.2/python/libstdcxx/v6/printers.py", line 43, in find_type field = typ.fields()[0] IndexError: list index out of range #16 0x00007f1a3f584cc2 in filter::config::TypeDetection::impl_detectTypeFlatAndDeep (this=0x299e710, rDescriptor=..., lFlatTypes=std::__debug::list, bAllowDeep=1 '\001', rUsedDetectors=..., rLastChance="") at /master/filter/source/config/cache/typedetection.cxx:836 #17 0x00007f1a3f5822f4 in filter::config::TypeDetection::queryTypeByDescriptor (this=0x299e710, lDescriptor=uno::Sequence of length 7 = {...}, bAllowDeep=1 '\001') at /master/filter/source/config/cache/typedetection.cxx:296 #18 0x00007f1a47fb4fee in framework::LoadEnv::impl_detectTypeAndFilter (this=0x2d22c88) at /master/framework/source/loadenv/loadenv.cxx:796 #19 0x00007f1a47fb3782 in framework::LoadEnv::startLoading (this=0x2d22c88) at /master/framework/source/loadenv/loadenv.cxx:382 #20 0x00007f1a47f38754 in framework::LoadDispatcher::impl_dispatch (this=0x2d22bf0, rURL=..., lArguments=uno::Sequence of length 3 = {...}, xListener=empty uno::Reference) at /master/framework/source/dispatch/loaddispatcher.cxx:119 second open is then to copy the file to a temp-file in SfxMedium: #0 open64 () at ../sysdeps/unix/syscall-template.S:82 #1 0x00007f1a5cb64740 in osl_openFilePath (cpFilePath=0x7fff78459810 "/Documents/RGBA PNG.odt", pHandle=0x7fff78458698, uFlags=41) at /master/sal/osl/unx/file.cxx:914 ... #14 0x00007f1a5919f38e in ucbhelper::Content::transferContent (this=0x7fff7845cb30, rSourceContent=..., eOperation=ucbhelper::InsertOperation_COPY, rTitle="lu10khfm.tmp", nNameClashAction=1, rMimeType="application/vnd.oasis.opendocument.text", bMajorVersion=false, rVersionComment="", pResultURL=0x0) at /master/ucbhelper/source/client/content.cxx:1030 #15 0x00007f1a5b066d85 in SfxMedium::CreateTempFile (this=0x2d87e30, bReplace=0 '\000') at /master/sfx2/source/doc/docfile.cxx:3343 #16 0x00007f1a5b05c224 in SfxMedium::GetStorage (this=0x2d87e30, bCreateTempIfNo=1 '\001') at /master/sfx2/source/doc/docfile.cxx:1254 #17 0x00007f1a5b0d02f0 in SfxObjectShell::DoLoad (this=0x2873360, pMed=0x2d87e30) at /master/sfx2/source/doc/objstor.cxx:637 #18 0x00007f1a5b115f1a in SfxBaseModel::load (this=0x3052940, seqArguments=uno::Sequence of length 14 = {...}) at /master/sfx2/source/doc/sfxbasemodel.cxx:1878 #19 0x00007f1a5b17b7fb in SfxFrameLoader_Impl::load (this=0x2f11520, rArgs=uno::Sequence of length 13 = {...}, _rTargetFrame=uno::Reference to { <com::sun::star::lang::XComponent> = { <com::sun::star::uno::XInterface> = { _vptr.XInterface = 0x7f1a48507430 }, <No data fields>}, <No data fields>}) at /master/sfx2/source/view/frmload.cxx:598 #20 0x00007f1a47fb71eb in framework::LoadEnv::impl_loadContent (this=0x2d22c88) at /master/framework/source/loadenv/loadenv.cxx:1151 #21 0x00007f1a47fb37c7 in framework::LoadEnv::startLoading (this=0x2d22c88) at /master/framework/source/loadenv/loadenv.cxx:399 #22 0x00007f1a47f38754 in framework::LoadDispatcher::impl_dispatch (this=0x2d22bf0, rURL=..., lArguments=uno::Sequence of length 3 = {...}, xListener=empty uno::Reference) at /master/framework/source/dispatch/loaddispatcher.cxx:119 ... no idea what to do about it, other than perhaps to somehow use the Media Descriptor stream to create the temp file? i wonder why that used to work in older versions then? -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs
