https://bugs.freedesktop.org/show_bug.cgi?id=67538
Priority: medium
Bug ID: 67538
Assignee: [email protected]
Summary: XTypeDetection::queryTypeByDescriptor poor performance
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: UNCONFIRMED
Version: 4.0.3.3 release
Component: framework
Product: LibreOffice
Created attachment 83303
--> https://bugs.freedesktop.org/attachment.cgi?id=83303&action=edit
C++ source reproducing the problem
I am using Debian and upgraded to libreoffice from wheezy-backports (version
1:4.0.3-2~bpo70+1 in Debian notation).
I can succefully connect to Libreoffice using API but when I try to get the
type of any document from InputStream using
XTypeDetection::queryTypeByDescriptor it looks like hang. For very short
strings (about 1000 bytes) the function returns the type (generic_Text or
encoded in my tests) correctly and quite fast but if I load even 50000 bytes
file the wait time to get the type is more than a minute. I can see one thread
from my app consuming 50% of cpu and one thread from Libreoffice process
consuming 50% of cpu for all this time.
I tried to attach gdb to the process but the only thing I understand that the
execution is inside cppu_threadpool::JobQueue::enter and doesn't go out until
the end.
I used openoffice from Debian squeeze before and my code worked fine so I
suppose that this situation is a bug.
I attach simple test application to reproduce the problem
--
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