Re: major bug

2011-02-24 Thread Jürgen Spitzmüller
Enrico Forestieri wrote: Doh! So, a paragraph can have zero size. I thought that it was not possible, and thus that end was always greater than zero. Here, the latex log was pointing to the EndFrame, which apparently is a zero-size paragraph. In this case the solution is to simply highlight a

Re: major bug

2011-02-24 Thread Enrico Forestieri
On Thu, Feb 24, 2011 at 01:06:01PM +0100, Jürgen Spitzmüller wrote: The error highligthing could be improved here, though (highlighting is off by a few lines). This is hard to fix, I think. Our highlighting is based on the line reported in the latex log. Now, the reported line may be off

Re: major bug

2011-02-24 Thread Jürgen Spitzmüller
Enrico Forestieri wrote: > Doh! So, a paragraph can have zero size. I thought that it was not > possible, and thus that "end" was always greater than zero. > Here, the latex log was pointing to the EndFrame, which apparently > is a zero-size paragraph. In this case the solution is to simply >

Re: major bug

2011-02-24 Thread Enrico Forestieri
On Thu, Feb 24, 2011 at 01:06:01PM +0100, Jürgen Spitzmüller wrote: > > The error highligthing could be improved here, though (highlighting is off > by a few lines). This is hard to fix, I think. Our highlighting is based on the line reported in the latex log. Now, the reported line may be off

Re: major bug

2011-02-23 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: Currently, trunk freezes on me whenever I view/update and have a LaTeX error. I have to kill LyX and restart. I think it has to do with the viewer application zombie process reported on lyx-users. Actually, LyX enters a loop. On the console, I get a flood of

Re: major bug

2011-02-23 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: Actually, LyX enters a loop. On the console, I get a flood of lassert.cpp(21): ASSERTION pos = 0 pos = size() VIOLATED IN Paragraph.cpp:775 This is the Paragraph::eraseChar function. LyX does not shut down because I have configured in release mode. I'm now

Re: major bug

2011-02-23 Thread Pavel Sanda
Jürgen Spitzmüller wrote: #4 0x08320142 in lyx::Paragraph::isLineSeparator (this=0xb2d7240, pos=-1) at Paragraph.cpp:2834 looks like your inside ert with selected word? still cant reproduce... but this routine didn't changed lately. maybe-related paragraphs changes in my memory are texrow

Re: major bug

2011-02-23 Thread Jürgen Spitzmüller
Pavel Sanda wrote: looks like your inside ert with selected word? still cant reproduce... but this routine didn't changed lately. maybe-related paragraphs changes in my memory are texrow changes (some thread-releated fixme was left iirc) and spellcheck touches... I suspect it has to do with

Re: major bug

2011-02-23 Thread Pavel Sanda
Jürgen Spitzmüller wrote: Not currently, but here's a testcase. * View * Close error dialog * click into ERT = crash. i got it now.p

Re: major bug

2011-02-23 Thread Peter Kümmel
On 23.02.2011 20:57, Jürgen Spitzmüller wrote: Pavel Sanda wrote: looks like your inside ert with selected word? still cant reproduce... but this routine didn't changed lately. maybe-related paragraphs changes in my memory are texrow changes (some thread-releated fixme was left iirc) and

Re: major bug

2011-02-23 Thread Peter Kümmel
On 23.02.2011 21:19, Peter Kümmel wrote: On 23.02.2011 20:57, Jürgen Spitzmüller wrote: Pavel Sanda wrote: looks like your inside ert with selected word? still cant reproduce... but this routine didn't changed lately. maybe-related paragraphs changes in my memory are texrow changes (some

Re: major bug

2011-02-23 Thread Pavel Sanda
Pavel Sanda wrote: Jürgen Spitzmüller wrote: Not currently, but here's a testcase. * View * Close error dialog * click into ERT = crash. i got it now.p bisect leads to r37749 pavel

Re: major bug

2011-02-23 Thread Peter Kümmel
On 23.02.2011 21:37, Pavel Sanda wrote: Pavel Sanda wrote: Jürgen Spitzmüller wrote: Not currently, but here's a testcase. * View * Close error dialog * click into ERT = crash. i got it now.p bisect leads to r37749 http://www.lyx.org/trac/changeset/37749/lyx-devel/trunk and -dgb

Re: major bug

2011-02-23 Thread Peter Kümmel
On 23.02.2011 21:52, Peter Kümmel wrote: On 23.02.2011 21:37, Pavel Sanda wrote: Pavel Sanda wrote: Jürgen Spitzmüller wrote: Not currently, but here's a testcase. * View * Close error dialog * click into ERT = crash. i got it now.p bisect leads to r37749

Re: major bug

2011-02-23 Thread Stephan Witt
Am 23.02.2011 um 22:10 schrieb Peter Kümmel: On 23.02.2011 21:52, Peter Kümmel wrote: On 23.02.2011 21:37, Pavel Sanda wrote: Pavel Sanda wrote: Jürgen Spitzmüller wrote: Not currently, but here's a testcase. * View * Close error dialog * click into ERT = crash. i got it now.p

Re: major bug

2011-02-23 Thread Enrico Forestieri
On Wed, Feb 23, 2011 at 09:37:15PM +0100, Pavel Sanda wrote: Pavel Sanda wrote: Jürgen Spitzmüller wrote: Not currently, but here's a testcase. * View * Close error dialog * click into ERT = crash. i got it now.p bisect leads to r37749 Doh! So, a paragraph can have

Re: major bug

2011-02-23 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > Currently, trunk freezes on me whenever I view/update and have a LaTeX > error. I have to kill LyX and restart. I think it has to do with the > viewer application zombie process reported on lyx-users. Actually, LyX enters a loop. On the console, I get a flood of

Re: major bug

2011-02-23 Thread Jürgen Spitzmüller
Jürgen Spitzmüller wrote: > Actually, LyX enters a loop. On the console, I get a flood of > > lassert.cpp(21): ASSERTION pos >= 0 && pos <= size() VIOLATED IN > Paragraph.cpp:775 > > This is the Paragraph::eraseChar function. LyX does not shut down because > I have configured in release mode.

Re: major bug

2011-02-23 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > #4 0x08320142 in lyx::Paragraph::isLineSeparator (this=0xb2d7240, pos=-1) > at Paragraph.cpp:2834 looks like your inside ert with selected word? still cant reproduce... but this routine didn't changed lately. maybe-related paragraphs changes in my memory are

Re: major bug

2011-02-23 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > looks like your inside ert with selected word? still cant reproduce... > but this routine didn't changed lately. maybe-related paragraphs changes > in my memory are texrow changes (some thread-releated fixme was left iirc) > and spellcheck touches... I suspect it has to do

Re: major bug

2011-02-23 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > Not currently, but here's a testcase. > > * View > * Close error dialog > * click into ERT > => crash. i got it now.p

Re: major bug

2011-02-23 Thread Peter Kümmel
On 23.02.2011 20:57, Jürgen Spitzmüller wrote: Pavel Sanda wrote: looks like your inside ert with selected word? still cant reproduce... but this routine didn't changed lately. maybe-related paragraphs changes in my memory are texrow changes (some thread-releated fixme was left iirc) and

Re: major bug

2011-02-23 Thread Peter Kümmel
On 23.02.2011 21:19, Peter Kümmel wrote: On 23.02.2011 20:57, Jürgen Spitzmüller wrote: Pavel Sanda wrote: looks like your inside ert with selected word? still cant reproduce... but this routine didn't changed lately. maybe-related paragraphs changes in my memory are texrow changes (some

Re: major bug

2011-02-23 Thread Pavel Sanda
Pavel Sanda wrote: > Jürgen Spitzmüller wrote: > > Not currently, but here's a testcase. > > > > * View > > * Close error dialog > > * click into ERT > > => crash. > > i got it now.p bisect leads to r37749 pavel

Re: major bug

2011-02-23 Thread Peter Kümmel
On 23.02.2011 21:37, Pavel Sanda wrote: Pavel Sanda wrote: Jürgen Spitzmüller wrote: Not currently, but here's a testcase. * View * Close error dialog * click into ERT => crash. i got it now.p bisect leads to r37749 http://www.lyx.org/trac/changeset/37749/lyx-devel/trunk and -dgb

Re: major bug

2011-02-23 Thread Peter Kümmel
On 23.02.2011 21:52, Peter Kümmel wrote: On 23.02.2011 21:37, Pavel Sanda wrote: Pavel Sanda wrote: Jürgen Spitzmüller wrote: Not currently, but here's a testcase. * View * Close error dialog * click into ERT => crash. i got it now.p bisect leads to r37749

Re: major bug

2011-02-23 Thread Stephan Witt
Am 23.02.2011 um 22:10 schrieb Peter Kümmel: > On 23.02.2011 21:52, Peter Kümmel wrote: >> On 23.02.2011 21:37, Pavel Sanda wrote: >>> Pavel Sanda wrote: Jürgen Spitzmüller wrote: > Not currently, but here's a testcase. > > * View > * Close error dialog > * click into

Re: major bug

2011-02-23 Thread Enrico Forestieri
On Wed, Feb 23, 2011 at 09:37:15PM +0100, Pavel Sanda wrote: > Pavel Sanda wrote: > > Jürgen Spitzmüller wrote: > > > Not currently, but here's a testcase. > > > > > > * View > > > * Close error dialog > > > * click into ERT > > > => crash. > > > > i got it now.p > > bisect leads to r37749

major bug

2011-02-22 Thread Jürgen Spitzmüller
Currently, trunk freezes on me whenever I view/update and have a LaTeX error. I have to kill LyX and restart. I think it has to do with the viewer application zombie process reported on lyx-users. I have no real recipe. It does not happen with all documents, but 100% with some. No time to dig

Re: major bug

2011-02-22 Thread Pavel Sanda
Jürgen Spitzmüller wrote: Currently, trunk freezes on me whenever I view/update and have a LaTeX error. I have to kill LyX and restart. I think it has to do with the viewer application zombie process reported on lyx-users. I have no real recipe. It does not happen with all documents, but

Re: major bug

2011-02-22 Thread Jürgen Spitzmüller
Pavel Sanda wrote: I have no real recipe. It does not happen with all documents, but 100% with some. No time to dig further ATM, semester has started here. cant reproduce. what viewer do you use? also evince? No, okular. Jürgen

major bug

2011-02-22 Thread Jürgen Spitzmüller
Currently, trunk freezes on me whenever I view/update and have a LaTeX error. I have to kill LyX and restart. I think it has to do with the viewer application zombie process reported on lyx-users. I have no real recipe. It does not happen with all documents, but 100% with some. No time to dig

Re: major bug

2011-02-22 Thread Pavel Sanda
Jürgen Spitzmüller wrote: > Currently, trunk freezes on me whenever I view/update and have a LaTeX error. > I have to kill LyX and restart. I think it has to do with the viewer > application zombie process reported on lyx-users. > > I have no real recipe. It does not happen with all documents,

Re: major bug

2011-02-22 Thread Jürgen Spitzmüller
Pavel Sanda wrote: > > I have no real recipe. It does not happen with all documents, but 100% > > with some. No time to dig further ATM, semester has started here. > > cant reproduce. what viewer do you use? also evince? No, okular. Jürgen

Major bug Qt4.5 : Two new files - infinite loop

2009-03-09 Thread Vincent van Ravesteijn
Another major bug with QT 4.5. 1.Start LyX 2. Ctrl-N 3. Ctrl-N Infinite Loop. Vincent

Qt getting nuts (was: Major bug Qt4.5 : Two new files - infinite loop)

2009-03-09 Thread Vincent van Ravesteijn
Vincent van Ravesteijn schreef: Another major bug with QT 4.5. 1.Start LyX 2. Ctrl-N 3. Ctrl-N Infinite Loop. Vincent According to the documentation: bool QFileInfo::operator!= ( const QFileInfo /fileinfo/ ) Returns true if this QFileInfo qfileinfo.html object refers

Major bug Qt4.5 : Two new files -> infinite loop

2009-03-09 Thread Vincent van Ravesteijn
Another major bug with QT 4.5. 1.Start LyX 2. Ctrl-N 3. Ctrl-N Infinite Loop. Vincent

Qt getting nuts (was: Major bug Qt4.5 : Two new files -> infinite loop)

2009-03-09 Thread Vincent van Ravesteijn
Vincent van Ravesteijn schreef: Another major bug with QT 4.5. 1.Start LyX 2. Ctrl-N 3. Ctrl-N Infinite Loop. Vincent According to the documentation: bool QFileInfo::operator!= ( const QFileInfo & /fileinfo/ ) Returns true if this QFileInfo object refers to a _*different

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-03 Thread Abdelrazak Younes
Joost Verburg wrote: Abdelrazak Younes wrote: Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File - Open dialog needs many seconds before it opens). There are more bugs related to the Qt file dialog. Sometimes

Windows XP shortcuts in native filedialog side bar? (was Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-03 Thread Abdelrazak Younes
Bennett Helm wrote: On Jul 2, 2007, at 7:32 AM, Abdelrazak Younes wrote: Abdelrazak Younes wrote: Hello, Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File - Open dialog needs many seconds before it opens).

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-03 Thread Abdelrazak Younes
Joost Verburg wrote: Abdelrazak Younes wrote: Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File -> Open dialog needs many seconds before it opens). There are more bugs related to the Qt file dialog. Sometimes

Windows XP shortcuts in native filedialog side bar? (was Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-03 Thread Abdelrazak Younes
Bennett Helm wrote: On Jul 2, 2007, at 7:32 AM, Abdelrazak Younes wrote: Abdelrazak Younes wrote: Hello, Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File -> Open dialog needs many seconds before it opens).

[PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Abdelrazak Younes
Hello, Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File - Open dialog needs many seconds before it opens). OK? Abdel. Index: FileDialog.cpp ===

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Hello, Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File - Open dialog needs many seconds before it opens). Sorry, here is a correct patch. Abdel. Index: FileDialog.cpp

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Bennett Helm
On Jul 2, 2007, at 7:32 AM, Abdelrazak Younes wrote: Abdelrazak Younes wrote: Hello, Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File - Open dialog needs many seconds before it opens). Sorry, here is a

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Jean-Marc Lasgouttes
Abdelrazak == Abdelrazak Younes [EMAIL PROTECTED] writes: Abdelrazak Abdelrazak Younes wrote: Hello, Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File - Open dialog needs many seconds before it opens).

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak == Abdelrazak Younes [EMAIL PROTECTED] writes: Abdelrazak Abdelrazak Younes wrote: Hello, Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File - Open dialog needs many

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Enrico Forestieri
On Mon, Jul 02, 2007 at 05:02:03PM +0200, Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: Abdelrazak == Abdelrazak Younes [EMAIL PROTECTED] writes: Abdelrazak Abdelrazak Younes wrote: Hello, Even though I like our file dialog, I think we have no choice but using native file

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Mon, Jul 02, 2007 at 05:02:03PM +0200, Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: Abdelrazak == Abdelrazak Younes [EMAIL PROTECTED] writes: Abdelrazak Abdelrazak Younes wrote: Hello, Even though I like our file dialog, I think we have no choice but

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Joost Verburg
Abdelrazak Younes wrote: Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File - Open dialog needs many seconds before it opens). There are more bugs related to the Qt file dialog. Sometimes it doesn't even show

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Uwe Stöhr
Nope, I use Qt4.2.1 so Qt4.2 _is_ impacted. I do not know about Qt4.3. Uwe, Edwin, Joost, Peter, do you use Qt4.3? Due to various Qt bugs I still use Qt 4.2.2. But your patch is THE solution for one of the most annoying problems with LyX 1.5 on Windows, according how often this was reported

[PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Abdelrazak Younes
Hello, Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File -> Open dialog needs many seconds before it opens). OK? Abdel. Index: FileDialog.cpp

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Hello, Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File -> Open dialog needs many seconds before it opens). Sorry, here is a correct patch. Abdel. Index: FileDialog.cpp

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Bennett Helm
On Jul 2, 2007, at 7:32 AM, Abdelrazak Younes wrote: Abdelrazak Younes wrote: Hello, Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File -> Open dialog needs many seconds before it opens). Sorry, here is a

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Abdelrazak Younes wrote: >> Hello, >> >> Even though I like our file dialog, I think we have no choice but >> using native file dialog on Windows in order to fix bug 3907 (File -> Open dialog needs many seconds

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Abdelrazak Younes wrote: Hello, Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File -> Open dialog needs

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Enrico Forestieri
On Mon, Jul 02, 2007 at 05:02:03PM +0200, Abdelrazak Younes wrote: > Jean-Marc Lasgouttes wrote: > >> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: > > > > Abdelrazak> Abdelrazak Younes wrote: > >>> Hello, > >>> > >>> Even though I like our file dialog, I think we have no

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Mon, Jul 02, 2007 at 05:02:03PM +0200, Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> Abdelrazak Younes wrote: Hello, Even though I like our file dialog, I think we have no choice

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Joost Verburg
Abdelrazak Younes wrote: Even though I like our file dialog, I think we have no choice but using native file dialog on Windows in order to fix bug 3907 (File -> Open dialog needs many seconds before it opens). There are more bugs related to the Qt file dialog. Sometimes it doesn't even show

Re: [PATCH] use native file dialog on windows (fix major bug 3907)

2007-07-02 Thread Uwe Stöhr
> Nope, I use Qt4.2.1 so Qt4.2 _is_ impacted. I do not know about Qt4.3. Uwe, Edwin, Joost, Peter, > do you use Qt4.3? Due to various Qt bugs I still use Qt 4.2.2. But your patch is THE solution for one of the most annoying problems with LyX 1.5 on Windows, according how often this was

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-23 Thread John Levon
On 22 Feb 2001, Lars Gullik Bjønnes wrote: Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | I re-tried purify, but it seems it does not work here anymore. I | though I'd find a way to get a list of allocated blocks... | | Assuming this comes from LyXText, what are the places where such

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-23 Thread John Levon
On 22 Feb 2001, Lars Gullik Bjønnes wrote: > Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > | I re-tried purify, but it seems it does not work here anymore. I > | though I'd find a way to get a list of allocated blocks... > | > | Assuming this comes from LyXText, what are the places

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-22 Thread Jean-Marc Lasgouttes
"Lars" == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | but if you Lars see memory growth just by moving the cursor in and out of a | Lars tabular then something is wrong. And this hans nothing to do Lars with the | size of structures. And

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-22 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | "Lars" == Lars Gullik Bjnnes [EMAIL PROTECTED] writes: | | Lars [EMAIL PROTECTED] (Lars Gullik Bjnnes) writes: | but if you | Lars see memory growth just by moving the cursor in and out of a | | Lars tabular then something is wrong. And this

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-22 Thread Jean-Marc Lasgouttes
"Lars" == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars I see it by moving the cursor through the tabular. Lars And I have no memory checker so I can't see where that mem goes. Lars and for all I know we deallocate the mem properly so a mem Lars checker might not see it anyway. I

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-22 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | I re-tried purify, but it seems it does not work here anymore. I | though I'd find a way to get a list of allocated blocks... | | Assuming this comes from LyXText, what are the places where such | structures can be kept, besides TextCache? Note

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-22 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | but if you Lars> see memory growth just by moving the cursor in and out of a | Lars> tabular then something is wrong. And this hans nothing to do Lars> with the | size of

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-22 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | | Lars> [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | but if you | Lars> see memory growth just by moving the cursor in and out of a | | Lars> tabular then something is

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-22 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> I see it by moving the cursor through the tabular. Lars> And I have no memory checker so I can't see where that mem goes. Lars> and for all I know we deallocate the mem properly so a mem Lars> checker might not see it anyway.

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-22 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | I re-tried purify, but it seems it does not work here anymore. I | though I'd find a way to get a list of allocated blocks... | | Assuming this comes from LyXText, what are the places where such | structures can be kept, besides TextCache?

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Juergen Vigna
On 09-Feb-2001 Jean-Marc Lasgouttes wrote: Step 1.2.0cvs 1.2.0cvspatched1.0.3 1 1M 1M 7856K 2 26M 25M 8096K 3 41M 39M n/a 4 52M 50M 8552K Step 2 tells us that

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Jean-Marc Lasgouttes
"Juergen" == Juergen Vigna [EMAIL PROTECTED] writes: Juergen On 09-Feb-2001 Jean-Marc Lasgouttes wrote: Step 1.2.0cvs 1.2.0cvspatched 1.0.3 1 1M 1M 7856K 2 26M 25M 8096K 3 41M 39M n/a 4 52M 50M 8552K Step 2 tells us that we have a cost per cell of about 10k for a tabular. This seems a

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Juergen Vigna
On 12-Feb-2001 Jean-Marc Lasgouttes wrote: Juergen No IMO the problem is that a LyXText object is allocated at Juergen that time! That's what I meant, in fact. Presumably, if the code needs to allocate a new LyXText for the table, there also an old one in the cache that should go away.

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Jean-Marc Lasgouttes
"Juergen" == Juergen Vigna [EMAIL PROTECTED] writes: Juergen There is a cache but not in the tabular-inset, it's the Juergen InsetText which needs the LyXText and that is one per Juergen BufferView (which currently is fixed to 1 ;). So there is 1 Juergen LyXText for each BufferView for each

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | "Lars" == Lars Gullik Bjnnes [EMAIL PROTECTED] writes: | | Lars Or lessen the mem consumption for a LyXText. | | What makes the bunch of the size of a LyXText? An empty LyXText is some ~300 bytes. Most of this is in different LyXCursors |

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Jean-Marc Lasgouttes
"Lars" == Lars Gullik Bjønnes [EMAIL PROTECTED] writes: Lars Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | Lars "Lars" == Lars Gullik Bjønnes [EMAIL PROTECTED] Lars writes: | | Lars Or lessen the mem consumption for a LyXText. | Lars | What makes the bunch of the size of a LyXText? Lars An

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | "Lars" == Lars Gullik Bjnnes [EMAIL PROTECTED] writes: | | Lars Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | | Lars "Lars" == Lars Gullik Bjnnes [EMAIL PROTECTED] | Lars writes: | | Lars Or lessen the mem consumption for a LyXText. | | Lars

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjnnes) writes: | but if you see memory growth just by moving the cursor in and out of a | tabular then something is wrong. And this hans nothing to do with the | size of structures. And purify will not handle a memory leak that is | handled... There is

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread John Levon
On Mon, 12 Feb 2001, Juergen Vigna wrote: Yes, the 1.2.0cvspatched is just that. One gains 2M (to compare with memory consumption of around 50M!). This means that undo is really not much, compared to lyxtext. Ok this means we have to find a way to only use 1 LyXText instance, but how

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Juergen Vigna
On 09-Feb-2001 Jean-Marc Lasgouttes wrote: > > Step 1.2.0cvs 1.2.0cvspatched1.0.3 > 1 1M 1M 7856K > 2 26M 25M 8096K > 3 41M 39M n/a > 4 52M 50M 8552K > > Step 2 tells

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes: Juergen> On 09-Feb-2001 Jean-Marc Lasgouttes wrote: >> Step 1.2.0cvs 1.2.0cvspatched 1.0.3 1 1M 1M 7856K 2 26M 25M 8096K >> 3 41M 39M n/a 4 52M 50M 8552K >> >> Step 2 tells us that we have a cost per cell of about 10k for a >>

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Juergen Vigna
On 12-Feb-2001 Jean-Marc Lasgouttes wrote: > > Juergen> No IMO the problem is that a LyXText object is allocated at > Juergen> that time! > > That's what I meant, in fact. Presumably, if the code needs to > allocate a new LyXText for the table, there also an old one in the > cache that should

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Vigna <[EMAIL PROTECTED]> writes: Juergen> There is a cache but not in the tabular-inset, it's the Juergen> InsetText which needs the LyXText and that is one per Juergen> BufferView (which currently is fixed to 1 ;). So there is 1 Juergen> LyXText for each BufferView

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | | Lars> Or lessen the mem consumption for a LyXText. | | What makes the bunch of the size of a LyXText? An empty LyXText is some ~300 bytes. Most of this is in different

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Lars> > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> Lars> writes: | | Lars> Or lessen the mem consumption for a LyXText. | Lars> | What makes the bunch of the size

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: | | Lars> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | | Lars> > "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> | Lars> writes: | | Lars> Or lessen the mem consumption

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | but if you see memory growth just by moving the cursor in and out of a | tabular then something is wrong. And this hans nothing to do with the | size of structures. And purify will not handle a memory leak that is | handled... There is

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-12 Thread John Levon
On Mon, 12 Feb 2001, Juergen Vigna wrote: > > Yes, the 1.2.0cvspatched is just that. One gains 2M (to compare with > > memory consumption of around 50M!). This means that undo is really not > > much, compared to lyxtext. > > Ok this means we have to find a way to only use 1 LyXText instance,

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-11 Thread Juergen Vigna
On 09-Feb-2001 Lars Gullik Bjnnes wrote: | Thus the reserved text buffer accounts for less than 2/3 of the memory | use. Not to say that we shouldn't reduce it, but perhaps we can find some | ways to save more space. E.g. not allocate anything until the user | actually puts something in the

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-11 Thread Juergen Vigna
On 09-Feb-2001 Lars Gullik Bjønnes wrote: > >| Thus the reserved text buffer accounts for less than 2/3 of the memory >| use. Not to say that we shouldn't reduce it, but perhaps we can find some >| ways to save more space. E.g. not allocate anything until the user >| actually puts something

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-09 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes [EMAIL PROTECTED] writes: | "Dekel" == Dekel Tsur [EMAIL PROTECTED] writes: | | Dekel The memory consumption can be (slightly) reduced by deleting | Dekel the line text.reserve(500) in LyXParagraph::LyXParagraph. | | In the example we had, a 50x50 array consumes 1.2M

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-09 Thread Lars Gullik Bjønnes
Lior Silberman [EMAIL PROTECTED] writes: | What about using different values in different contexts - table cells | usually have less text than run-of-the-mill paragraphs. Add an extra | constr. to LyXParagraph getting an 'enum ExpectedSize' value (Tiny, Small, | ...) and reserve memory

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-09 Thread Jean-Marc Lasgouttes
"Lior" == Lior Silberman [EMAIL PROTECTED] writes: Lior Thus the reserved text buffer accounts for less than 2/3 of the Lior memory use. Not to say that we shouldn't reduce it, but perhaps Lior we can find some ways to save more space. E.g. not allocate Lior anything until the user actually

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-09 Thread Dekel Tsur
On Fri, Feb 09, 2001 at 09:42:10AM +0100, Lars Gullik Bjønnes wrote: | I'll do experiments tomorrow if nobody beats me to it. What was the | initial reason for the reserve(500)? speed? Actually both speed and memory consumption. Primarily speed. I still claim that it doesn't give any speed

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-09 Thread Lars Gullik Bjønnes
Dekel Tsur [EMAIL PROTECTED] writes: | On Fri, Feb 09, 2001 at 09:42:10AM +0100, Lars Gullik Bjnnes wrote: | | I'll do experiments tomorrow if nobody beats me to it. What was the | | initial reason for the reserve(500)? speed? | | Actually both speed and memory consumption. Primarily speed.

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-09 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | > "Dekel" == Dekel Tsur <[EMAIL PROTECTED]> writes: | | Dekel> The memory consumption can be (slightly) reduced by deleting | Dekel> the line text.reserve(500) in LyXParagraph::LyXParagraph. | | In the example we had, a 50x50 array

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-09 Thread Lars Gullik Bjønnes
Lior Silberman <[EMAIL PROTECTED]> writes: | What about using different values in different contexts - table cells | usually have less text than run-of-the-mill paragraphs. Add an extra | constr. to LyXParagraph getting an 'enum ExpectedSize' value (Tiny, Small, | ...) and reserve memory

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-09 Thread Jean-Marc Lasgouttes
> "Lior" == Lior Silberman <[EMAIL PROTECTED]> writes: Lior> Thus the reserved text buffer accounts for less than 2/3 of the Lior> memory use. Not to say that we shouldn't reduce it, but perhaps Lior> we can find some ways to save more space. E.g. not allocate Lior> anything until the user

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-09 Thread Dekel Tsur
On Fri, Feb 09, 2001 at 09:42:10AM +0100, Lars Gullik Bjønnes wrote: > | I'll do experiments tomorrow if nobody beats me to it. What was the > | initial reason for the reserve(500)? speed? > > Actually both speed and memory consumption. Primarily speed. I still claim that it doesn't give any

Re: A major bug with tabular (lyx-1.1.6fix1)

2001-02-09 Thread Lars Gullik Bjønnes
Dekel Tsur <[EMAIL PROTECTED]> writes: | On Fri, Feb 09, 2001 at 09:42:10AM +0100, Lars Gullik Bjønnes wrote: | > | I'll do experiments tomorrow if nobody beats me to it. What was the | > | initial reason for the reserve(500)? speed? | > | > Actually both speed and memory consumption. Primarily

  1   2   >