Bug 76053 - xComponentLoader.loadComponentFromURL'd different number of iteration in different versions
Summary: xComponentLoader.loadComponentFromURL'd different number of iteration in diff...
Status: CLOSED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.2.0.4 release
Hardware: x86 (IA32) macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 76051 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-12 04:32 UTC by Sugam
Modified: 2014-10-20 06:58 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sugam 2014-03-12 04:32:00 UTC
I am using Libo APIs to try to export a CALC and i need to convert the available bytes to OOInputSteam. The code is 
 
                       byte[] byteArr = bos.toByteArray(); // These are the bytes to available data
			oois 		   = new OOInputStream(byteArr);
			
			loadProps[loadProps.length-1]		 = new PropertyValue();
			loadProps[loadProps.length-1].Name 	 = "InputStream";									
			loadProps[loadProps.length-1].Value  = oois; 
			
			long starttime = System.nanoTime();
			
		xSpreadsheetComponent =          
                   xComponentLoader.loadComponentFromURL("private:stream", "_blank", 0, loadProps);
			
loadComponentFromURL part runs through the OOINputstream's readbyte method. I have tried and used the differnet versions of LibreOffice. LibreOffice4.1.0.4 get 55 iteration and some 40000 bytes. LibreOffice4.1.5 get 6264 iteration and 74000 bytes for the same calc documents. These version takes the different time to finish the load which is quiet less in version 4.1.0.4. Are these the issues with the other version? Which is the right version to use for?
Comment 1 Jean-Baptiste Faure 2014-03-12 05:39:11 UTC
*** Bug 76051 has been marked as a duplicate of this bug. ***
Comment 2 Alex Thurgood 2014-10-07 12:48:22 UTC
The time API was changed between 4104 and 415
Comment 3 Alex Thurgood 2014-10-18 14:16:54 UTC
@Sugam : please include sample Calc document and macro code enabling us to reproduce the behaviour otherwise we won't be able to look at this.
Comment 4 Sugam 2014-10-20 05:13:31 UTC
@Alex Thurgood: I found the differences at OpenOffice and LibreOffice manifest.xml. I need to add the path of macro Library and Module names in manifest explicitly and everything worked fine. I am not sure if this is an issue or this is how it's supposed to work!! Thanks.
Comment 5 Sugam 2014-10-20 05:13:48 UTC
(In reply to Alex Thurgood from comment #3)
> @Sugam : please include sample Calc document and macro code enabling us to
> reproduce the behaviour otherwise we won't be able to look at this.
Comment 6 Alex Thurgood 2014-10-20 06:57:36 UTC
Thanks for getting back, closing as wfm