Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-03-01 Thread Tommy


It would be interesting to know if Dezsi personal build with the fix  
about slow loading replacement table

has still the issue I'm describing here...

maybe, if we are lucky, that fix could somehow have influence even on  
the freeze I'm describing.




we were lucky!!! Deszi's patch fixed both issues!!!

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-03-01 Thread julien2412
Tommy, I still got a small freeze (1 or 2 seconds) on master (see my comment
https://bugs.freedesktop.org/show_bug.cgi?id=46765#c7) but the improvement
is huge !

(forgot to tell on the bugtracker comment I had removed my LO profile for
the test).

Julien.

--
View this message in context: 
http://nabble.documentfoundation.org/Trying-to-understand-why-LO-seems-freezed-for-some-seconds-when-a-module-is-started-tp3735600p3792030.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-29 Thread Alexander Thurgood
Le 28/02/12 11:56, Michael Meeks a écrit :

Hi all,


   It'd be great to get a bug opened to collect the detailed information
 on this. Clearly we don't want such delays when you start typing.
 


Just to add my 2c worth, I can also confirm that this happens on Mac
too, and always on first data entry, i.e. when the keys to type
something in are first pressed, be it a document, a filename entry,
renaming in a dialog, etc. On Mac, you get a nice spinning beachball for
a couple of seconds, then LO suddenly springs to life and enters the
characters that have been typed in (or at least those that made it into
the buffer).


Alex

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-29 Thread julien2412
You're absolutely right ! :-)
I opened a bug (see
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=46765).
I attached the lsof diff and some detailed info about my config and the
options I use in autogen.lastrun

Julien.

--
View this message in context: 
http://nabble.documentfoundation.org/Trying-to-understand-why-LO-seems-freezed-for-some-seconds-when-a-module-is-started-tp3735600p3787120.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-29 Thread Tommy

On Wed, 29 Feb 2012 13:38:37 +0100, julien2412 serval2...@yahoo.fr wrote:


You're absolutely right ! :-)
I opened a bug (see
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=46765).
I attached the lsof diff and some detailed info about my config and the
options I use in autogen.lastrun

Julien.


hi julien.
did u read my 14:50 post?

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-29 Thread julien2412
Hi Tommy,

I read your post but I can answer only rarely from my day work + there were
no questions (or perhaps I missed it :-) )
I'm compiling right now master sources because I reproduced this freeze on
master too.
I also must recompile from scratch 3.5 because I don't know if lightproof is
used or not. I had lightproof on my autogen.lastrun, then I removed it but
didn't recompile from scratch, so perhaps it wasn't sufficient like I said
in a previous post.
So as soon as it'll be finished, I'll add comment on the bugtracker.

Julien.

--
View this message in context: 
http://nabble.documentfoundation.org/Trying-to-understand-why-LO-seems-freezed-for-some-seconds-when-a-module-is-started-tp3735600p3788239.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-29 Thread Tommy

On Wed, 29 Feb 2012 14:50:32 +0100, Tommy ba...@quipo.it wrote:




again, using a virgin portable LibreOffice 3.5 (
http://www.winpenpack.com/main/download.php?view.1338 )
has no start-typing-freeze in my user experience.


let me partially retract this statement...
after more accurate test I found that even a virgin 3.5.0  has a slight
freeze
when start typing... just 2-3 seconds..
try typing test and hitting space... you will see that the cursor
freezes after tes
then writes the last letter and the space...
with any word you use, there's always this 2-3 seconds freeze after the
3rd letter...



this short freeze is not present in LibO 3.4.5 and earlier version

so I think it's an issue of the 3.5.0 release




it seems that huge autocorrect databases create a second freeze

try this: enter the autocorr subfolder in your user profile (in Windows  
is

under: User\LibreOffice 3\user\autocorr)
and put the attached acor_.dat file (backup yours first) which has 64000
entries inside it.

start LibO and open a blank writer file.
digit test and hit space...

you will see a first 2-3 second freeze after tes the the cursor moves  
to

test
and another longer freeze (6 seconds maybe) happens before you see the
space

so there are 2 freeze moments, the first one is shorter and unrelated to
autocorrection,
while the second is longer and depends on autocorrection

these tests were done on LibO 3.5.0
Windows Vista 64bit SP1
IntelCore2 Duo CPI P8400@2.26 GhZ, 4GB RAM



the 2nd longer freeze related to autocorrect is present in LibO 3.4.5 and  
earlier versions


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-29 Thread Tommy

On Wed, 29 Feb 2012 21:22:47 +0100, Tommy ba...@quipo.it wrote:





the 2nd longer freeze related to autocorrect is present in LibO 3.4.5  
and earlier versions




and 3.5.0 as well

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-29 Thread Michael Meeks

On Wed, 2012-02-29 at 21:22 +0100, Tommy wrote:
 the 2nd longer freeze related to autocorrect is present in LibO 3.4.5 and  
 earlier versions

So - please file a bug, add your auto-correct file and the explanation
of how to repeat it, and perhaps mention it in Julien's similar issue:
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=46765

Perhaps then Dezsi will be interested to have a look at it, IMHO we are
still -way- too slow if we're taking ~two seconds to load and install
only 60k strings into an auto-correct dictionary, there must be some
other silliness going on.

HTH,

Michael.

-- 
michael.me...@suse.com  , Pseudo Engineer, itinerant idiot

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-29 Thread Tommy
On Thu, 01 Mar 2012 06:34:02 +0100, Michael Meeks michael.me...@suse.com  
wrote:




On Wed, 2012-02-29 at 21:22 +0100, Tommy wrote:
the 2nd longer freeze related to autocorrect is present in LibO 3.4.5  
and

earlier versions


So - please file a bug, add your auto-correct file and the explanation
of how to repeat it, and perhaps mention it in Julien's similar issue:
https://www.libreoffice.org/bugzilla/show_bug.cgi?id=46765

Perhaps then Dezsi will be interested to have a look at it, IMHO we are
still -way- too slow if we're taking ~two seconds to load and install
only 60k strings into an auto-correct dictionary, there must be some
other silliness going on.

HTH,

Michael.



did it:  https://bugs.freedesktop.org/show_bug.cgi?id=46805

It would be interesting to know if Dezsi personal build with the fix about  
slow loading replacement table

has still the issue I'm describing here...

maybe, if we are lucky, that fix could somehow have influence even on the  
freeze I'm describing.


I indeed suspect that the freeze is caused by first access to the  
autocorrect database...
if it was so slow to load the GUI replacemente table, maybe there is  
something that makes slow even

the internal access to it.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-28 Thread Stephan Bergmann

On 02/28/2012 07:25 AM, Tommy wrote:

however I still confirm that the freeze has something to do with
autocorrection...

if you download this portable versione of LibO 3.5.0
http://www.winpenpack.com/main/download.php?view.1338

which comes out with a virgin user preset, you won't notice
any delay or freeze when starting modules... please, have your try!!!

on the other hand if I use the same package with my user preset which
is stuffed with a lot of autocorrect entries (I have 65000 in the
acor_.dat and other
62000 in the acor_it-IT.dat files) the freeze happens at each start
after digiting the first word.


But that's exactly the thing discussed in the recent [PATCH] Reduced 
loadtime of autocorrect tables mail thread then, right?


Stephan
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-28 Thread Tommy
On Tue, 28 Feb 2012 09:14:06 +0100, Stephan Bergmann sberg...@redhat.com  
wrote:



On 02/28/2012 07:25 AM, Tommy wrote:

however I still confirm that the freeze has something to do with
autocorrection...

if you download this portable versione of LibO 3.5.0
http://www.winpenpack.com/main/download.php?view.1338

which comes out with a virgin user preset, you won't notice
any delay or freeze when starting modules... please, have your try!!!

on the other hand if I use the same package with my user preset which
is stuffed with a lot of autocorrect entries (I have 65000 in the
acor_.dat and other
62000 in the acor_it-IT.dat files) the freeze happens at each start
after digiting the first word.


But that's exactly the thing discussed in the recent [PATCH] Reduced  
loadtime of autocorrect tables mail thread then, right?


Stephan


no, that thread was about loading time of the replacement table of  
autocorrect (Ctrl+H)

shich has been fixed

this is about a freeze that happens at the start of each module
I suspect it can be a side effect of large autocorrect databases.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-28 Thread Stephan Bergmann

On 02/28/2012 10:43 AM, Tommy wrote:

On Tue, 28 Feb 2012 09:14:06 +0100, Stephan Bergmann
sberg...@redhat.com wrote:

But that's exactly the thing discussed in the recent [PATCH] Reduced
loadtime of autocorrect tables mail thread then, right?

Stephan


no, that thread was about loading time of the replacement table of
autocorrect (Ctrl+H)
shich has been fixed

this is about a freeze that happens at the start of each module
I suspect it can be a side effect of large autocorrect databases.


In which case Julien's lsof_diff.txt indicates that Python is loaded 
into the LO process at this point in time.


Stephan
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-28 Thread Michael Meeks

On Mon, 2012-02-27 at 14:37 -0800, julien2412 wrote:
 On 3.5 updated some days ago, here's the difference between the moment I open
 Calc (so before freeze) and after the moment the freeze stops (once I typed
 something) :

Great - so, loading / bootstrapping the python stuff is also something
of a problem it seems: urgh ! or perhaps ( as Tommy suggests )
autocorrect is implicated too.

The best way to 'profile' this (if it takes several seconds), is
usually to run and attach gdb from a separate remote machine; do the
thing that takes lots of time, and do a ctrl-c - then look at the
backtrace. I'd personally do that twice - once with some continues, so
press ctrl-c five time once per second for the 5 seconds [ basically
dumb sampling profiling ], and log the stack traces (with symbols).

Then I'd do it again, and type 'finish' in each method until it takes
several seconds to finish ;-) then you found the method that takes the
time.

It'd be great to get a bug opened to collect the detailed information
on this. Clearly we don't want such delays when you start typing.

Thanks !

Michael.

-- 
michael.me...@suse.com  , Pseudo Engineer, itinerant idiot

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-27 Thread Michael Meeks

On Sat, 2012-02-25 at 17:21 +0100, Tommy wrote:
 do u have many autocorrect entries as well?
...
 as I said before in my experience OOo/LibO performances gets worse when  
 you have a lot of autocorrect items.

Dezsi has a patch to fix the horrible slow-down when selecting large
autocorrect lists, from minutes to seconds ;-) but he didn't post it
last week.

Are there other instances / operations where big auto-correct lists
cause horrible slow-downs that you know of ? and/or is there a tracker /
bug about this ?

Thanks !

Michael.

-- 
michael.me...@suse.com  , Pseudo Engineer, itinerant idiot

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-27 Thread Tommy
On Mon, 27 Feb 2012 10:49:09 +0100, Michael Meeks michael.me...@suse.com  
wrote:




On Sat, 2012-02-25 at 17:21 +0100, Tommy wrote:

do u have many autocorrect entries as well?

...

as I said before in my experience OOo/LibO performances gets worse when
you have a lot of autocorrect items.


Dezsi has a patch to fix the horrible slow-down when selecting large
autocorrect lists, from minutes to seconds ;-) but he didn't post it
last week.

Are there other instances / operations where big auto-correct lists
cause horrible slow-downs that you know of ? and/or is there a tracker /
bug about this ?

Thanks !

Michael.



I've seen dezsi patch right now and I asked to cherry pick to 3.5.1 or .2

As I told before, the big list of autocorrect has effects on the loading  
time of the replacement table (that dezsi just fixed)

and also on the starting of each module when you first write something...

i write a word then hit space... the cursor seems frozen for 5 to 9  
seconds (depending how fast is the machine i'm working with)

and then moves to the space and let you write other words.

if I use a virgin setup of OOo/LibO without my user profile I do not see  
that freeze


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-27 Thread Michael Meeks

On Mon, 2012-02-27 at 12:45 +0100, Tommy wrote:
 i write a word then hit space... the cursor seems frozen for 5 to 9  
 seconds (depending how fast is the machine i'm working with)
 and then moves to the space and let you write other words.

That -really- still sounds like the Java slowdown to me. That is when
I'd expect languagetool to get it's clogs on.

 if I use a virgin setup of OOo/LibO without my user profile I do not see  
 that freeze

Sure - but then the LangaugeTool extension would be registered in your
user profile too ;-) Can you check in the extension manager that it is
removed from the system rather than just disabled or whatever.

You can of course double check by looking at the:

lsof -p `pidof soffice.bin`

to see if Java is loaded before and/or after you type that word.

ATB,

Michael.

-- 
michael.me...@suse.com  , Pseudo Engineer, itinerant idiot

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-27 Thread Tommy
On Mon, 27 Feb 2012 14:39:10 +0100, Michael Meeks michael.me...@suse.com  
wrote:




On Mon, 2012-02-27 at 12:45 +0100, Tommy wrote:

i write a word then hit space... the cursor seems frozen for 5 to 9
seconds (depending how fast is the machine i'm working with)
and then moves to the space and let you write other words.


That -really- still sounds like the Java slowdown to me. That is when
I'd expect languagetool to get it's clogs on.


if I use a virgin setup of OOo/LibO without my user profile I do not see
that freeze


Sure - but then the LangaugeTool extension would be registered in your
user profile too ;-) Can you check in the extension manager that it is
removed from the system rather than just disabled or whatever.


I have no LT extension installed and never I had that
there's no trace of it in the extension manager



You can of course double check by looking at the:

lsof -p `pidof soffice.bin`

to see if Java is loaded before and/or after you type that word.

ATB,

Michael.



sorry but it looks arabic to me

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-27 Thread julien2412
On 3.5 updated some days ago, here's the difference between the moment I open
Calc (so before freeze) and after the moment the freeze stops (once I typed
something) :
http://nabble.documentfoundation.org/file/n3782371/lsof_diff.txt
lsof_diff.txt 

Julien.

--
View this message in context: 
http://nabble.documentfoundation.org/Trying-to-understand-why-LO-seems-freezed-for-some-seconds-when-a-module-is-started-tp3735600p3782371.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-27 Thread Tommy

On Mon, 27 Feb 2012 23:37:39 +0100, julien2412 serval2...@yahoo.fr wrote:

On 3.5 updated some days ago, here's the difference between the moment I  
open
Calc (so before freeze) and after the moment the freeze stops (once I  
typed

something) :
http://nabble.documentfoundation.org/file/n3782371/lsof_diff.txt
lsof_diff.txt

Julien.

--


ok, that's the debug thing Micheal Meeks asked before.

however I still confirm that the freeze has something to do with  
autocorrection...


if you download this portable versione of LibO 3.5.0
http://www.winpenpack.com/main/download.php?view.1338

which comes out with a virgin user preset, you won't notice
any delay or freeze when starting modules... please, have your try!!!

on the other hand if I use the same package with my user preset which
is stuffed with a lot of autocorrect entries (I have 65000 in the  
acor_.dat and other
62000 in the acor_it-IT.dat files) the freeze happens at each start after  
digiting the first word.


again, no Language Tool extension in installed.

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-26 Thread Tommy

On Sat, 25 Feb 2012 18:33:13 +0100, julien2412 serval2...@yahoo.fr wrote:

Tommy, I compile LO sources from master. As I said, I removed LO  
profiles so

I don't think I've got a lot of autocorrect items.
(I've got also a directory for LO sources from 3.5 and have the same  
thing).





OK. please test and try the portable LibO 3.5.0 from here:
http://www.winpenpack.com/main/download.php?view.1338
and tell me if you experience the same freeze at each module start.

bye, Tommy

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-25 Thread Michael Meeks

On Fri, 2012-02-24 at 16:22 -0800, julien2412 wrote:
 I runned gdb during the freeze and found that about 230 were used during
 this moment.

It looks strongly to me like the Java problem :-) is it possible that
you have LanguageTool installed ? (or some other Java grammar checker) ?
if so - that would be a known issue, and lightproof 'fixes' it :-)

Java ...
#15 0x7fd2f4ffc29e in privateSnippetExecutor ()
from 
/home/julien/compile-libreoffice/libo/solver/unxlngx6/installation/opt/ure/lib/libgcc3_uno.so
/source/lngsvcmgr.cxx:839
#17 0x7fd2e#16 0x7fd2e0b7980c in
LngSvcMgr::GetAvailableGrammarSvcs_Impl (this=0x3240ed0)
at /home/julien/compile-libreoffice/libo/linguistic0b7c412 in
LngSvcMgr::getAvailableServices (this=0x3240ed0,
rServiceName=com.sun.star.linguistic2.Proofreader, rLocale=...)

etc. of course, perhaps we still have some vestige of Java in that path
in the default install, if so we need to find / fix it :-) but I suspect
you just have LanguageTool installed.

HTH,

Michael.

-- 
michael.me...@suse.com  , Pseudo Engineer, itinerant idiot

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-25 Thread Tommy
On Sat, 25 Feb 2012 11:54:03 +0100, Michael Meeks michael.me...@suse.com  
wrote:



  cut



etc. of course, perhaps we still have some vestige of Java in that path
in the default install, if so we need to find / fix it :-) but I suspect
you just have LanguageTool installed.

HTH,

Michael.




I'm experienxing the same freeze julien described on module start since  
OOo/LibO 3.3/3.4

and see the same on LibO 3.5

I have no language tool extension installed but I have a lot of  
autocorrect entries (65000 in acor_.dat and other 65000 in acor_it-IT.dat)


so I suspect the freeze is related to first access to huge database of  
autocorrect entries.


in the past I tried with a virgin OOo/LibO installation which have only  
few preinstalled autocorrect  and I did not experience any freeze


___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-25 Thread julien2412
Yes I had language-tool enabled in autogen.lastrun.
So I removed it then did :
- ./autogen.sh
- make dev-install
- removed LO profile

But I saw no difference :-(
Either what I did is not sufficient to take this change into account
(perhaps I should run make clean  make)
or the cause is something else as Tommy (see in this same thread) suggests.

Julien.

--
View this message in context: 
http://nabble.documentfoundation.org/Trying-to-understand-why-LO-seems-freezed-for-some-seconds-when-a-module-is-started-tp3735600p3775001.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-25 Thread Tommy

On Sat, 25 Feb 2012 15:22:44 +0100, julien2412 serval2...@yahoo.fr wrote:


Yes I had language-tool enabled in autogen.lastrun.
So I removed it then did :
- ./autogen.sh
- make dev-install
- removed LO profile

But I saw no difference :-(
Either what I did is not sufficient to take this change into account
(perhaps I should run make clean  make)
or the cause is something else as Tommy (see in this same thread)  
suggests.


Julien.

--


do u have many autocorrect entries as well?

as I said before in my experience OOo/LibO performances gets worse when  
you have a lot of autocorrect items.


try with a fresh installation of LibO or download the portable versione  
from here:

http://www.winpenpack.com/main/download.php?view.1323

do you still see that freeze at first start?

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-25 Thread julien2412
Tommy, I compile LO sources from master. As I said, I removed LO profiles so
I don't think I've got a lot of autocorrect items.
(I've got also a directory for LO sources from 3.5 and have the same thing).

--
View this message in context: 
http://nabble.documentfoundation.org/Trying-to-understand-why-LO-seems-freezed-for-some-seconds-when-a-module-is-started-tp3735600p3775368.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-24 Thread julien2412
Hi,

I runned gdb during the freeze and found that about 230 were used during
this moment.
I retrieved 9 bt during this moment (I tried to retrieve it on the whole
period).
http://nabble.documentfoundation.org/file/n3774132/bt.zip bt.zip 

Debian testing pc x86-64 (Linux kernel 3.1.0-1-amd64)
autogen.lastrun :
--with-system-boost  I use boost 1.48
--enable-symbols
--enable-ext-barcode
--enable-ext-diagram
--enable-ext-google-docs
--enable-ext-hunart
--enable-ext-languagetool
--enable-ext-nlpsolver
--enable-ext-ct2n
--enable-ext-numbertext
--enable-ext-oooblogger
--enable-ext-pdfimport
--enable-postgresql-sdbc
--enable-ext-presenter-console
--enable-ext-presenter-minimizer
--enable-ext-report-builder
--enable-ext-scripting-beanshell
--enable-ext-scripting-javascript
--enable-ext-typo
--enable-ext-validator
--enable-ext-watch-window
--enable-ext-wiki-publisher
--enable-dbus
--enable-graphite
--enable-evolution2
--enable-werror
--enable-debug
--enable-dbgutil
--enable-crashdump
--enable-kde4
--enable-dependency-tracking
--enable-online-update

gcc (Debian 4.6.2-12) 

java version 1.6.0_24
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b24~pre2-1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

Hope it helps.

Julien

--
View this message in context: 
http://nabble.documentfoundation.org/Trying-to-understand-why-LO-seems-freezed-for-some-seconds-when-a-module-is-started-tp3735600p3774132.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-13 Thread Stephan Bergmann

On 02/11/2012 07:24 PM, julien2412 wrote:

On master branch (not on 3.5 branch), each time I start a module Calc,
Writer or Impress (I didn't test on others), when I begin to type something,
it seems to freeze for some seconds (about 10 secs) then everything seems
ok.
So I runned valgrind by using this :
valgrind --tool=memcheck --num-callers=50 --trace-children=yes ./soffice.bin
21 | tee /tmp/valgrind.log


If you suspect the cause for the delay to be unnecessary large amounts 
of code being executed, you should run valgrind with --tool=callgrind.



With this, I can't start LO at all because there are too much errors. By
taking a look, 98% of them are like this :
==4110== Invalid write of size 4
==4110==at 0x2E7BE641: ???
==4110==by 0x2E7AF437: ???
==4110==by 0x2DA518CE: JavaCalls::call_helper(JavaValue*, methodHandle*,
JavaCallArguments*, Thread*) (in
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so)

[...]

JVMs are notorious for producing false positives from valgrind.  I once 
improved that somewhat, by forcing the JVM into interpreted mode when 
run under valgrind (see forceInterpreted in 
jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx), but even the 
non-JITed code still produces noise (which I was able to silence at 
least on a Fedora 16 with trunk valgrind via a



{
 java-1
 Memcheck:Addr4
 ...
 
obj:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server/libjvm.so
}
{
 java-2
 Memcheck:Addr8
 fun:_wordcopy_fwd_dest_aligned
  # (in /lib64/libc-2.14.so)
 fun:__GI_memmove
  # (in /lib64/libc-2.14.so)
 fun:realpath@@GLIBC_2.3
  # (in /lib64/libc-2.14.so)
 obj:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libjava.so
 fun:Java_java_io_UnixFileSystem_canonicalize0
  # (in /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/libjava.so)
}
{
 java-3
 Memcheck:Cond
 
obj:/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/lib/amd64/server/libjvm.so
}


valgrind suppressions file).


I noticed these lines too :
700 #ifdef MACOSX
 701 vm_args.version= JNI_VERSION_1_4; // issue 88987
 702 #else
 703 vm_args.version= JNI_VERSION_1_2;
 704 #endif
If we support jdk 1.4 min, we could use JNI version 1.4 according to this
http://docs.oracle.com/javase/1.4.2/docs/guide/jni/jni-14.html, no ? (or
perhaps it would need lots of changes to use it except for MacOS where it's
already used)


Yes, we could probably simplify the code by always using 
JNI_VERSION_1_4.  But it should probably not make a difference (note 
that the example at 
http://docs.oracle.com/javase/7/docs/technotes/guides/jni/spec/invocation.html#wp16334 
still uses 1_2, and only states that it must be at least 1_2, but not 
that setting it to a higher value has any special effect), and who knows 
what would break with all those varied JVM implementations out there.


Stephan
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-13 Thread Michael Meeks

On Sat, 2012-02-11 at 10:24 -0800, julien2412 wrote:
 On master branch (not on 3.5 branch), each time I start a module Calc,
 Writer or Impress (I didn't test on others), when I begin to type something,
 it seems to freeze for some seconds (about 10 secs) then everything seems
 ok.

That sounds -very- much like the java grammar checker - LanguageTool.
This behaviour is entirely expected - we defer the horrible first-start
performance penalty of the JVM until the very last minute, but as you
start to type ...

Bang ! ;-) and yes, I've seen this on at least three users' laptops
they brought to me saying OO.o performance sucks and simply removing
the Java grammar checker removed the eight to ten second hang that
occurs in each module when you start interacting ;-) Not having that is
one of the big wins of the new LightProof checker  ...

Of course; quite why we're activating any Java stuff when you start
typing in master, I don't know - you're sure it's not sharing some Java
extension installed in ~ ?

I guess running under gdb, hitting ctrl-c in the hang, winding the
stack-trace back to see what is activating that stuff would help get us
closer to the pain.

All the best,

Michael.

-- 
michael.me...@suse.com  , Pseudo Engineer, itinerant idiot

___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice


Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-11 Thread julien2412
Hello,

On master branch (not on 3.5 branch), each time I start a module Calc,
Writer or Impress (I didn't test on others), when I begin to type something,
it seems to freeze for some seconds (about 10 secs) then everything seems
ok.
So I runned valgrind by using this :
valgrind --tool=memcheck --num-callers=50 --trace-children=yes ./soffice.bin
21 | tee /tmp/valgrind.log

With this, I can't start LO at all because there are too much errors. By
taking a look, 98% of them are like this :
==4110== Invalid write of size 4
==4110==at 0x2E7BE641: ???
==4110==by 0x2E7AF437: ???
==4110==by 0x2DA518CE: JavaCalls::call_helper(JavaValue*, methodHandle*,
JavaCallArguments*, Thread*) (in
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==4110==by 0x2DA50D04: JavaCalls::call(JavaValue*, methodHandle,
JavaCallArguments*, Thread*) (in
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==4110==by 0x2DA1EBC9:
instanceKlass::call_class_initializer_impl(instanceKlassHandle, Thread*) (in
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==4110==by 0x2DA1EC04: instanceKlass::call_class_initializer(Thread*)
(in /usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==4110==by 0x2DA1ED96:
instanceKlass::initialize_impl(instanceKlassHandle, Thread*) (in
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==4110==by 0x2DA1F218: instanceKlass::initialize(Thread*) (in
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==4110==by 0x2DA1F062:
instanceKlass::initialize_impl(instanceKlassHandle, Thread*) (in
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==4110==by 0x2DA1F218: instanceKlass::initialize(Thread*) (in
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==4110==by 0x2DCEB655: Threads::create_vm(JavaVMInitArgs*, bool*) (in
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==4110==by 0x2DA6F920: JNI_CreateJavaVM (in
/usr/lib/jvm/java-6-openjdk-amd64/jre/lib/amd64/server/libjvm.so)
==4110==by 0x2D376369: jfw_plugin_startJavaVirtualMachine
(sunjavaplugin.cxx:725)
==4110==by 0xC934F16: jfw_startVM (framework.cxx:404)
==4110==by 0x2D139F7E:
stoc_javavm::JavaVirtualMachine::getJavaVM(com::sun::star::uno::Sequencesigned
char const) (javavm.cxx:786)
==4110==by 0x2CF19F24:
stoc_javaloader::JavaComponentLoader::getJavaLoader() (javaloader.cxx:179)
==4110==by 0x2CF1B6C8:
stoc_javaloader::JavaComponentLoader::activate(rtl::OUString const,
rtl::OUString const, rtl::OUString const,
com::sun::star::uno::Referencecom::sun::star::registry::XRegistryKey
const) (javaloader.cxx:378)
==4110==by 0x6AC06B2:
cppu::ORegistryFactoryHelper::createModuleFactory() (factory.cxx:886)
==4110==by 0x6ABFA0F:
cppu::ORegistryFactoryHelper::createInstanceEveryTime(com::sun::star::uno::Referencecom::sun::star::uno::XComponentContext
const) (factory.cxx:736)
==4110==by 0x6ABE5B0:
cppu::OSingleFactoryHelper::createInstanceWithContext(com::sun::star::uno::Referencecom::sun::star::uno::XComponentContext
const) (factory.cxx:213)
==4110==by 0x6ABEF3C:
cppu::OFactoryComponentHelper::createInstanceWithContext(com::sun::star::uno::Referencecom::sun::star::uno::XComponentContext
const) (factory.cxx:489)
==4110==by 0x1150FF70:
stoc_smgr::OServiceManager::createInstanceWithContext(rtl::OUString const,
com::sun::star::uno::Referencecom::sun::star::uno::XComponentContext
const) (servicemanager.cxx:1191)
==4110==by 0x115106E2:
stoc_smgr::OServiceManager::createInstance(rtl::OUString const)
(servicemanager.cxx:1301)
==4110==by 0x20EF8E72:
framework::DispatchProvider::implts_searchProtocolHandler(com::sun::star::util::URL
const) (dispatchprovider.cxx:546)
==4110==by 0x20EF856F:
framework::DispatchProvider::implts_queryFrameDispatch(com::sun::star::uno::Referencecom::sun::star::frame::XFrame,
com::sun::star::util::URL const, rtl::OUString const, int)
(dispatchprovider.cxx:449)
==4110==by 0x20EF6B7B:
framework::DispatchProvider::queryDispatch(com::sun::star::util::URL const,
rtl::OUString const, int) (dispatchprovider.cxx:149)
==4110==by 0x2578FCF9:
SwXDispatchProviderInterceptor::queryDispatch(com::sun::star::util::URL
const, rtl::OUString const, int) (unodispatch.cxx:98)
==4110==by 0x20EFA975:
framework::InterceptionHelper::queryDispatch(com::sun::star::util::URL
const, rtl::OUString const, int) (interceptionhelper.cxx:129)
==4110==by 0x20FC546A:
framework::Frame::queryDispatch(com::sun::star::util::URL const,
rtl::OUString const, int) (frame.cxx:2068)
==4110==by 0x85A2038: svt::ToolboxController::bindListener()
(toolboxcontroller.cxx:567)
==4110==by 0x85A0797: svt::ToolboxController::update()
(toolboxcontroller.cxx:270)
==4110==by 0x2103AC80:
framework::AddonsToolBarManager::FillToolbar(com::sun::star::uno::Sequencecom::sun::star::uno::Sequencelt;com::sun::star::beans::PropertyValue
 const) 

Re: Trying to understand why LO seems freezed for some seconds when a module is started

2012-02-11 Thread julien2412
If it may help, here are the console messages :
julien@julienPC:~/compile-libreoffice/libo/install/program$ ./soffice.bin
--writer
warn:configmgr:9670:1:/home/julien/compile-libreoffice/libo/configmgr/source/xcuparser.cxx:209:
bad set node prop member in
file:///home/julien/compile-libreoffice/libo/solver/unxlngx6/installation/opt/program/../share/extensions/oooblogger/Addons.xcu
warn:configmgr:9670:1:/home/julien/compile-libreoffice/libo/configmgr/source/xcuparser.cxx:767:
unknown property SpellAndGrammarDialogImage_HC in
file:///home/julien/.config/libreoffice/3/user/extensions/bundled/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu8zjols.tmp/Linguistic.xcu
warn:configmgr:9670:1:/home/julien/compile-libreoffice/libo/configmgr/source/xcuparser.cxx:209:
bad set node prop member in
file:///home/julien/.config/libreoffice/3/user/extensions/bundled/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu8zjolb.tmp/Addons.xcu
warn:configmgr:9670:1:/home/julien/compile-libreoffice/libo/configmgr/source/xcuparser.cxx:209:
bad set node prop member in
file:///home/julien/.config/libreoffice/3/user/extensions/bundled/registry/com.sun.star.comp.deployment.configuration.PackageRegistryBackend/lu8zjolb.tmp/Addons.xcu
create vcl plugin instance with gtk version 2 24 8
Screen
Resolution/Size 96*96 1600*900 19,1
BlackWhite 0 16777215
RGB 0xff 0xff00 0xff
warn:legacy.osl:9670:1:/home/julien/compile-libreoffice/libo/tools/source/fsys/urlobj.cxx:3471:
INetURLObject::checkHierarchical vnd.sun.star.expand
warn:legacy.osl:9670:1:/home/julien/compile-libreoffice/libo/tools/source/fsys/urlobj.cxx:3471:
INetURLObject::checkHierarchical vnd.sun.star.expand
warn:legacy.osl:9670:1:/home/julien/compile-libreoffice/libo/tools/source/fsys/urlobj.cxx:3471:
INetURLObject::checkHierarchical vnd.sun.star.expand
warn:legacy.osl:9670:1:/home/julien/compile-libreoffice/libo/tools/source/fsys/urlobj.cxx:3471:
INetURLObject::checkHierarchical vnd.sun.star.expand
warn:legacy.osl:9670:1:/home/julien/compile-libreoffice/libo/tools/source/fsys/urlobj.cxx:3471:
INetURLObject::checkHierarchical vnd.sun.star.expand
warn:legacy.osl:9670:1:/home/julien/compile-libreoffice/libo/tools/source/fsys/urlobj.cxx:3471:
INetURLObject::checkHierarchical vnd.sun.star.expand
warn:legacy.osl:9670:1:/home/julien/compile-libreoffice/libo/tools/source/fsys/urlobj.cxx:3471:
INetURLObject::checkHierarchical vnd.sun.star.expand

I'm on pc Debian x86-64, gcc (Debian 4.6.2-12) 4.6.2
Master branch updated today.
java version 1.6.0_24
OpenJDK Runtime Environment (IcedTea6 1.11pre) (6b24~pre2-1)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

autogen.lastrun :
--enable-symbols
--enable-ext-barcode
--enable-ext-diagram
--enable-ext-google-docs
--enable-ext-hunart
--enable-ext-languagetool
--enable-ext-nlpsolver
--enable-ext-ct2n
--enable-ext-numbertext
--enable-ext-oooblogger
--enable-ext-pdfimport
--enable-ext-postgresql-sdbc
--enable-ext-lightproof
--enable-ext-presenter-console
--enable-ext-presenter-minimizer
--enable-ext-report-builder
--enable-ext-scripting-beanshell
--enable-ext-scripting-javascript
--enable-ext-typo
--enable-ext-validator
--enable-ext-watch-window
--enable-ext-wiki-publisher
--enable-dbus
--enable-graphite
--enable-evolution2
--enable-werror
--enable-debug
--enable-dbgutil
--enable-crashdump
--enable-kde4
--enable-dependency-tracking
--enable-online-update

Julien

--
View this message in context: 
http://nabble.documentfoundation.org/Trying-to-understand-why-LO-seems-freezed-for-some-seconds-when-a-module-is-started-tp3735600p3735606.html
Sent from the Dev mailing list archive at Nabble.com.
___
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice