| Summary: | mdimporter is no good for Mountain Lion | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | Jim White <james.paul.white> |
| Component: | LibreOffice | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | normal | CC: | bugs, dent.ace, iplaw67, serval2412, sirpete, thb |
| Priority: | medium | ||
| Version: | 4.0.0.3 release | ||
| Hardware: | x86-64 (AMD64) | ||
| OS: | macOS (All) | ||
| See Also: |
https://bugs.freedesktop.org/show_bug.cgi?id=47689 https://bugs.documentfoundation.org/show_bug.cgi?id=122172 |
||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
|
Description
Jim White
2013-02-17 17:18:56 UTC
Roman/Alex: could one of you give it a try? I have similar system.log entries as Jim. Here is what mdworker is reporting for me: --------------------------------------------------- Feb 25 23:30:28 Petri-iMac.local mdworker32[5569]: Cannot find function pointer MetadataImporterPluginFactory for factory A3FCC88D-B9A6-4364-8B93-92123C8A2D18 in CFBundle/CFPlugIn 0x78e4d770 </Applications/LibreOffice 4.0.0.app/Contents/Library/Spotlight/OOoSpotlightImporter.mdimporter> (bundle, loaded) Feb 25 23:30:28 Petri-iMac.local mdworker32[5569]: (Error) Import: Could not create instance for plugIn 'file://localhost/Applications/LibreOffice%204.0.0.app/Contents/Library/Spotlight/OOoSpotlightImporter.mdimporter/' Feb 25 23:30:28 Petri-iMac.local mdworker32[5569]: (Error) Import: BAD IMPORTER ~~~~~~~~~~~~~~~~~~ file://localhost/Applications/LibreOffice%204.0.0.app/Contents/Library/Spotlight/OOoSpotlightImporter.mdimporter/ --------------------------------------------------- thank you Petri for your feedback. Since you're the second one to have this, put it at NEW. Thorsten: macos specific, one for you? Perhaps a start to investigate: https://developer.apple.com/library/mac/#documentation/Carbon/Conceptual/MDImporters/MDImporters.html I think Tor looked into that recently? Yep, this should be fixed in 4.0.1. There were two separate problems: 1) The importer (which is a dynamic library even if its name doesn't end in .dylib) didn't export the symbol MetadataImporterPluginFactory, as seen in the message in comment #2. 2) The code in the importer (which, perhaps sadly, handles only ODF documents) didn't parse the outer ZIP archive structure of ODF documents properly; this was evident only after problem 1 was fixed. "should" as in "hopefully is" Then let's state it as such - 4.0.1 rc2 due end of the week for verification, thx Tor for addressing it! Spotlight still not working... Regression? MacBook Pro 13-inch, Mid 2012 intel. OS X 10.8.5 (12F45) 'Mountain Lion'. LibreOffice Version: 4.2.0.4 Clean install. Build ID: 05dceb5d363845f2cf968344d7adab8dcfb2ba71 Files are not indexed / searchable with Spotlight. Running mdimport manually seems to fail silently. Checking logs reveals: 18/03/2014 20:57:17.756 mdworker[72766]: Error 4, Description: (null), Line: 1, Column: 1 18/03/2014 20:57:17.758 mdworker[72766]: An error occurred parsing the document. (Error 4, Description: (null), Line: 1, Column: 1) 18/03/2014 20:57:17.760 mdworker[72766]: Error 4, Description: (null), Line: 1, Column: 1 18/03/2014 20:57:17.762 mdworker[72766]: An error occurred parsing the document. (Error 4, Description: (null), Line: 1, Column: 1) 18/03/2014 20:57:17.765 mdworker[72766]: Error 4, Description: (null), Line: 1, Column: 1 18/03/2014 20:57:17.766 mdworker[72766]: An error occurred parsing the document. (Error 4, Description: (null), Line: 1, Column: 1) 18/03/2014 20:57:23.948 mdworker[72766]: An error occurred parsing the document. (Error 201, Description: (null), Line: 1, Column: 211) 18/03/2014 20:57:23.948 mdworker[72766]: An error occurred parsing the document. (Error 201, Description: (null), Line: 1, Column: 211) 18/03/2014 20:57:23.948 mdworker[72766]: An error occurred parsing the document. (Error 201, Description: (null), Line: 1, Column: 238) 18/03/2014 20:57:23.948 mdworker[72766]: An error occurred parsing the document. (Error 201, Description: (null), Line: 1, Column: 238) 18/03/2014 20:57:23.948 mdworker[72766]: An error occurred parsing the document. (Error 201, Description: (null), Line: 1, Column: 252) 18/03/2014 20:57:23.948 mdworker[72766]: An error occurred parsing the document. (Error 201, Description: (null), Line: 1, Column: 281) 18/03/2014 20:57:23.948 mdworker[72766]: An error occurred parsing the document. (Error 201, Description: (null), Line: 1, Column: 281) 18/03/2014 20:57:23.948 mdworker[72766]: An error occurred parsing the document. (Error 201, Description: (null), Line: 1, Column: 295) ... and so on... After one year and a half, any update with last stable LO version 5.0.3? Indeed, there's now only 64bits LO for MacOs. Of course, for the test please rename your LO directory profile (see https://wiki.documentfoundation.org/UserProfile#Mac_OS_X) Test on OSX 10.11.2
mdimport -d 4 /Users/alex/Downloads/test\(1\).odb
(Import.Debug:1319) file:/Users/alex/Downloads/test(1).odb plugin:file:///Volumes/BUILDHD/Shared/LO/core/instdir/LibreOfficeDev.app/Contents/Library/Spotlight/OOoSpotlightImporter.mdimporter/ /Volumes/BUILDHD/Shared/LO/core/instdir/LibreOfficeDev.app/Contents/Library/Spotlight/OOoSpotlightImporter.mdimporter
(Import.Info:845) org.oasis-open.opendocument.database
(Import.Debug:1598) Attributes for file /Users/alex/Downloads/test(1).odb: {
":MD:DeviceId" = 16777220;
":MD:kMDExtendedImportDictionary" = {
};
":MD:kMDItemPath" = "/Users/alex/Downloads/test(1).odb";
"_kMDItemContentChangeDate" = "2015-12-10 11:45:11 +0000";
"_kMDItemCreationDate" = "2015-12-10 10:23:10 +0000";
"_kMDItemCreatorCode" = 0;
"_kMDItemFileName" = "test(1).odb";
"_kMDItemFinderFlags" = 0;
"_kMDItemFinderLabel" = 0;
"_kMDItemIsExtensionHidden" = 0;
"_kMDItemOwnerGroupID" = 20;
"_kMDItemOwnerUserID" = 501;
"_kMDItemPrescanCandidate" = 1;
"_kMDItemTypeCode" = 0;
"com_apple_metadata_modtime" = 471440711;
kMDItemContentCreationDate = "2015-12-10 10:23:10 +0000";
kMDItemContentModificationDate = "2015-12-10 11:45:11 +0000";
kMDItemContentType = "org.oasis-open.opendocument.database";
kMDItemContentTypeTree = (
"org.oasis-open.opendocument.database",
"public.data",
"public.item",
"public.content"
);
kMDItemDateAdded = "2015-12-10 10:23:13 +0000";
kMDItemDisplayName = {
"" = "test(1).odb";
};
kMDItemKind = {
"" = "OpenDocument Database";
};
kMDItemLogicalSize = 12204;
kMDItemPhysicalSize = 12288;
}
2015-12-14 17:18:46.919 mdimport[96089:690637] Imported '/Users/alex/Downloads/test(1).odb' of type 'org.oasis-open.opendocument.database' with plugIn /Volumes/BUILDHD/Shared/LO/core/instdir/LibreOfficeDev.app/Contents/Library/Spotlight/OOoSpotlightImporter.mdimporter.
2015-12-14 17:18:46.920 mdimport[96089:690637] Attributes: {
":MD:DeviceId" = 16777220;
":MD:kMDExtendedImportDictionary" = {
};
":MD:kMDItemPath" = "/Users/alex/Downloads/test(1).odb";
"_kMDItemContentChangeDate" = "2015-12-10 11:45:11 +0000";
"_kMDItemCreationDate" = "2015-12-10 10:23:10 +0000";
"_kMDItemCreatorCode" = 0;
"_kMDItemFileName" = "test(1).odb";
"_kMDItemFinderFlags" = 0;
"_kMDItemFinderLabel" = 0;
"_kMDItemIsExtensionHidden" = 0;
"_kMDItemOwnerGroupID" = 20;
"_kMDItemOwnerUserID" = 501;
"_kMDItemPrescanCandidate" = 1;
"_kMDItemTypeCode" = 0;
"com_apple_metadata_modtime" = 471440711;
kMDItemAlternateNames = (
"/Users/alex/Downloads/test(1).odb"
);
kMDItemContentCreationDate = "2015-12-10 10:23:10 +0000";
kMDItemContentModificationDate = "2015-12-10 11:45:11 +0000";
kMDItemContentType = "org.oasis-open.opendocument.database";
kMDItemContentTypeTree = (
"org.oasis-open.opendocument.database",
"public.data",
"public.item",
"public.content"
);
kMDItemDateAdded = "2015-12-10 10:23:13 +0000";
kMDItemDisplayName = {
"" = "test(1).odb";
};
kMDItemKind = {
"" = "OpenDocument Database";
};
kMDItemLogicalSize = 12204;
kMDItemPhysicalSize = 12288;
}
So, seems to work here, or have I misunderstood something ?
Alex:pb is in Lion Mountain/10.8. Since min prerequisite for LO is 10.8, it may be still relevant. |