On 02/10/2009 04:14, BH wrote:
On Thu, Oct 1, 2009 at 3:46 AM, Abdelrazak Younes<you...@lyx.org>  wrote:
Jean-Marc Lasgouttes wrote:
Abdelrazak Younes<you...@lyx.org>  writes:

  But it takes a very long time to save preferences --
several seconds minimum, eating up processor time. Generally speaking,
trunk seems to have slowed down considerably (especially noticeable
with typing speed) in the last month.

Are you sure you compiled in release mode, that is _without_
stdlib-debug?

Several seconds for saving preferences is wrong even with stdlib-debug.
It's not only about saving preferences, it's also about, basically,
restarting the GUI. I know, it's a bit of a hammer to reset the GUI for any
tiny change and we should probably change that...

Can you do some profiling, Bennett?

Yep, that would be nice... but without stdlib-debug of course ;-)

Here you go, with r31489. I did 3 profiles: launching LyX, opening
preferences, and saving preferences. Launching LyX should not have
involved reconfiguring, but it nonetheless takes forever each time.
(Shark stopped profiling after 30 seconds, but LyX wasn't done
starting up yet; it takes more like 40 seconds every time.)

Saving preferences now is crashing again. I've pasted the backtrace below.

BH


lyx(19763,0xa0898720) malloc: *** mmap(size=1308676096) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
terminate called after throwing an instance of 'std::bad_alloc'
   what():  St9bad_alloc

Program received signal SIGABRT, Aborted.
0x970b8e42 in __kill ()
(gdb) bt
#0  0x970b8e42 in __kill ()
#1  0x970b8e34 in kill$UNIX2003 ()
#2  0x9712b23a in raise ()
#3  0x97137679 in abort ()
#4  0x92cc7005 in __gnu_cxx::__verbose_terminate_handler ()
#5  0x92cc510c in __gxx_personality_v0 ()
#6  0x92cc514b in std::terminate ()
#7  0x92cc5261 in __cxa_throw ()
#8  0x92cc55d8 in operator new ()
#9  0x00637d39 in std::vector<char, std::allocator<char>  >::_M_fill_insert ()

It seems that you run out of memory or something...

#10 0x006386ef in lyx::(anonymous namespace)::iconv_convert<char, wchar_t>  ()
#11 0x0063627d in lyx::ucs4_to_utf8 ()
#12 0x005fa7d5 in lyx::to_utf8 ()
#13 0x0015c94d in lyx::LyXFunc::dispatch ()
#14 0x0013170e in lyx::dispatch ()
#15 0x004f37f3 in lyx::frontend::GuiPreferences::dispatchParams ()

I can't see something wrong causing the crash...

Abdel.

Reply via email to