Re: paste & crash

2006-05-22 Thread Juergen Spitzmueller
Paolo Pumilia wrote:
> Notice that pasting in the above line ('subsection' environment) does not
> crash lyx; rather the new string replaces the original one - you cannot
> undo that operation.
> The two behaviours  should be related.

FYI both issues will be fixed in the next release (1.4.2).

Jürgen


Re: paste & crash

2006-05-18 Thread Juergen Spitzmueller
Paolo Pumilia wrote:
> Yes, it crashes.
> Here included a simple test.
> As you paste at the end of the string 'yutuyt', in the table, lyx crashes.
>
> I have tried dbg, as you suggested: it returns a segmentation fault, but
> i do not kknow hosw to save te report.

I can reproduce it. The backtrace is below.
I suspect that the foreign language is involved.

I'll create a bugzilla report.

Thanks,
Jürgen

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1221888336 (LWP 20749)]
0x080b4b26 in ParagraphParameters::depth (this=0x34) at 
ParagraphParameters.C:75
75  ParagraphParameters::depth_type ParagraphParameters::depth() const
(gdb) bt
#0  0x080b4b26 in ParagraphParameters::depth (this=0x34) at 
ParagraphParameters.C:75
#1  0x081abe45 in Paragraph::getDepth (this=0x8872450) at paragraph.C:580
#2  0x081b601c in outerFont (par_offset=1, [EMAIL PROTECTED]) at 
paragraph_funcs.C:341
#3  0x08102adc in LCursor::getFont (this=0x87d0b70) at cursor.C:1233
#4  0x0806565b in BufferView::Pimpl::fitCursor (this=0x87d0a90) at 
BufferView_pimpl.C:649
#5  0x08067847 in BufferView::Pimpl::update (this=0x87d0a90, flags=3) at 
BufferView_pimpl.C:698
#6  0x0806f7be in BufferView::Pimpl::workAreaDispatch (this=0x87d0a90, 
[EMAIL PROTECTED])
at BufferView_pimpl.C:1000
#7  0x080732e9 in 
boost::detail::function::void_function_obj_invoker1, 
boost::_bi::list2, boost::arg<1> > >, 
void, FuncRequest>::invoke (function_obj_ptr=
  {obj_ptr = 0x87d2768, const_obj_ptr = 0x87d2768, func_ptr = 0x87d2768, 
data = "h"},
[EMAIL PROTECTED]) at ../boost/boost/bind/mem_fn_template.hpp:149
#8  0x084586cc in boost::function1 
>::operator() (
this=0x87d2754, [EMAIL PROTECTED]) 
at ../../../boost/boost/function/function_template.hpp:581
#9  0x08458c46 in 
boost::operator++::caller > >, 
boost::signals::detail::named_slot_map_iterator>, 
boost::signals::detail::unusable, boost::single_pass_traversal_tag, 
boost::signals::detail::unusable const&, int> ([EMAIL PROTECTED])
at ../../../boost/boost/signals/signal_template.hpp:119
#10 0x08459791 in boost::signal1, 
int, std::less, boost::function > >::operator() (this=0x87d5a38,
[EMAIL PROTECTED]) at ../../../boost/boost/last_value.hpp:43
#11 0x08462de9 in QContentPane::mousePressEvent (this=0x87d4850, e=0xbffcd024)
at QContentPane.C:183
---Type  to continue, or q  to quit---
#12 0xb7aff88e in QWidget::event () from /usr/lib/qt3/lib/libqt-mt.so.3
#13 0xb7a67c47 in QApplication::internalNotify () 
from /usr/lib/qt3/lib/libqt-mt.so.3
#14 0xb7a68b6b in QApplication::notify () from /usr/lib/qt3/lib/libqt-mt.so.3
#15 0xb7a07c42 in QETWidget::translateMouseEvent () 
from /usr/lib/qt3/lib/libqt-mt.so.3
#16 0xb7a06e16 in QApplication::x11ProcessEvent () 
from /usr/lib/qt3/lib/libqt-mt.so.3
#17 0xb7a1745a in QEventLoop::processEvents () 
from /usr/lib/qt3/lib/libqt-mt.so.3
#18 0xb7a7ea78 in QEventLoop::enterLoop () from /usr/lib/qt3/lib/libqt-mt.so.3
#19 0xb7a7e90e in QEventLoop::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#20 0xb7a677ff in QApplication::exec () from /usr/lib/qt3/lib/libqt-mt.so.3
#21 0x0837b38e in lyx_gui::start ([EMAIL PROTECTED], [EMAIL PROTECTED]) at 
lyx_gui.C:248
#22 0x0814385f in LyX::priv_exec (this=0x86cc898, [EMAIL PROTECTED], 
argv=0xbffcd6e4)
at lyx_main.C:280
#23 0x08143e10 in LyX::exec ([EMAIL PROTECTED], argv=0xbffcd6e4) at 
lyx_main.C:143
#24 0x08062728 in main (argc=1, argv=0x88775e8) at main.C:47


Re: paste & crash

2006-05-18 Thread Juergen Spitzmueller
Paolo Pumilia wrote:
> I have tried to follow instructions at
> http://www.lyx.org/~jug/lyx/lyxdoc/BUGS/node1.html
> to create a backtrace, but it seems that a lyx crash is needed,
> before a backtrace to be produced.
> How to do, in the current case?

I thought LyX crashes anyway.

> Anyway, i have noticed that the subsection environment has to be
> followed by a NEWLINE, for the weird behaviour to be displayed.

Are we still talking about the same bug?

Jürgen


Re: paste & crash

2006-05-17 Thread Juergen Spitzmueller
pol wrote:
> It is 1.4.1
> Here are the build info:

Could you also provide a backtrace?

Jürgen


Re: paste & crash

2006-05-15 Thread pol
Georg Baum wrote:

> Pol, is that really 1.4.1 or some prereleae? Can you give a detailed
> recipe to reproduce the crash?
> Georg


It is 1.4.1
Here are the build info:

% /usr/local/bin/lyx -version~
LyX 1.4.1 of Tue, Apr 11, 2006
Built on Apr 16 2006, 11:40:28
Configuration
  Host type:  i686-pc-linux-gnu
  Special build flags:compression pch  use-aspell use-ispell
  C   Compiler:   gcc
  C   Compiler LyX flags:
  C   Compiler flags:   -I/usr/X11R6/include -O2
  C++ Compiler:   g++ (4.0.3)
  C++ Compiler LyX flags:  -fno-exceptions
  C++ Compiler flags:   -I/usr/X11R6/include -O2
  Linker flags:
  Linker user flags:
  Qt Frontend:
  Qt version:   3.3.6
  Packaging:  posix
  LyX binary dir: /usr/local/bin
  LyX files dir:  /usr/local/share/lyx


What happens: copy a string from konsole, by marking it with your mouse
mid button. Paste it into a table. Lyx crashes.
If i remember correctly, as you open the emergency file, content of the
cell you were pasting in is shown to be replaced by the string you had
copied and pasted.

--pol




Re: paste & crash

2006-05-12 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:

Georg> Juergen Spitzmueller wrote:
>> Jean-Marc Lasgouttes wrote:
>>> Could you check and update status.14x?
>>  Done. I cannot reproduce the crash.

Georg> Can you please revert the status.14x change? The bug was
Georg> already fixed in 1.4.1, and also documented in status.14x.

I did not find it in the 1.4.1 announcement...

JMarc


Re: paste & crash

2006-05-12 Thread Georg Baum
Juergen Spitzmueller wrote:

> I'll do so. But I wonder why the OP still gets the crash with 1.4.1

I don't know.

Pol, is that really 1.4.1 or some prereleae? Can you give a detailed recipe
to reproduce the crash?


Georg



Re: paste & crash

2006-05-12 Thread Juergen Spitzmueller
Georg Baum wrote:
> > Done. I cannot reproduce the crash.
>
> Can you please revert the status.14x change? The bug was already fixed in
> 1.4.1, and also documented in status.14x.

I'll do so. But I wonder why the OP still gets the crash with 1.4.1

Jürgen


Re: paste & crash

2006-05-12 Thread Georg Baum
Juergen Spitzmueller wrote:

> Jean-Marc Lasgouttes wrote:
>> Could you check and update status.14x?
> 
> Done. I cannot reproduce the crash.

Can you please revert the status.14x change? The bug was already fixed in
1.4.1, and also documented in status.14x.


Georg



Re: paste & crash

2006-05-12 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:

Juergen> Jean-Marc Lasgouttes wrote:
>> Could you check and update status.14x?

Juergen> Done. I cannot reproduce the crash.

Thanks for checking.

JMarc


Re: paste & crash

2006-05-12 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote:
> Could you check and update status.14x?

Done. I cannot reproduce the crash.

Jürgen


Re: paste & crash

2006-05-12 Thread Jean-Marc Lasgouttes
> "Juergen" == Juergen Spitzmueller <[EMAIL PROTECTED]> writes:

Juergen> Jean-Marc Lasgouttes wrote:
>> This is a known bug, and I think it is fixed in 1.4.2svn, although
>> status.14x does not say so. Juergen?

Juergen> Yes, it should be (that's bug 2380, fixed collobaratively by
Juergen> Georg and, well, you).

Could you check and update status.14x?

JMarc


Re: paste & crash

2006-05-12 Thread Juergen Spitzmueller
Jean-Marc Lasgouttes wrote:
> This is a known bug, and I think it is fixed in 1.4.2svn, although
> status.14x does not say so. Juergen?

Yes, it should be (that's bug 2380, fixed collobaratively by Georg and, well, 
you).

Jürgen


Re: paste & crash

2006-05-12 Thread Jean-Marc Lasgouttes
> "Pol" == Pol  <[EMAIL PROTECTED]> writes:

Pol> Pasting text from a character terminal into lyx TABLES crashes
Pol> the editor (using lyx 1.4.1 - that is the same as in my previous
Pol> message on popups)

Pol> Anybody can confirm?

This is a known bug, and I think it is fixed in 1.4.2svn, although
status.14x does not say so. Juergen?

JMarc


paste & crash

2006-05-12 Thread Pol
Pasting text from a character terminal into lyx TABLES crashes the editor

(using lyx 1.4.1 - that  is the same as in my previous message on popups)

Anybody can confirm?

thank you

--pol



RE: Cut and paste crash with version 1.1.5pre1.rpm

2000-05-09 Thread Juergen Vigna


On 08-May-2000 Shawn Koons wrote:
> Having spent the weekend working with lyx, I have come to the conclusion
> that cut and paste will not work when the text being cut and pasted
> includes hard spaces that have been imported from an ascii file. Every
> time I try to  paste text I had just cut or copied that included a hard
> space (either in the same line or between paragraphs) the program
> crashes. 
> 
[snip]
> 
> I am running Suse 6.4 with Lyx version 1.1.5pre1.rpm which I installed
> via YaST. I am also using the document layout 'article'.

Well 1.1.5pre1 has a general cut&paste problem which is already solved!
Please try this with the upcoming pre2 release (I told Lars to put the
fix also in pre1 but it was already released ;)

  Jürgen

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

Dr. Jürgen Vigna  E-Mail: [EMAIL PROTECTED]
Italienallee 13/N Tel:+39-0471-450260
I-39100 Bozen Fax:+39-0471-450296
ITALY Web:http://www.sad.it/~jug

Your reasoning is excellent -- it's only your basic assumptions that are wrong.

-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._



Cut and paste crash with version 1.1.5pre1.rpm

2000-05-08 Thread Shawn Koons

Having spent the weekend working with lyx, I have come to the conclusion
that cut and paste will not work when the text being cut and pasted
includes hard spaces that have been imported from an ascii file. Every
time I try to  paste text I had just cut or copied that included a hard
space (either in the same line or between paragraphs) the program
crashes. 

I worked around this problem by highlighting the text and
middle-clicking where I wished to place the text. It worked, but is a
definate pain when having to navigate a 50+ page document.

Unfortunately, I have not been able to learn to use gdb yet (I will work
on learning it soon, but have had a hard year of lots of law school
stuff:-| -- then again, I whine.)
I would be willing to post some of the problem text as a file, if that
would help.

I am running Suse 6.4 with Lyx version 1.1.5pre1.rpm which I installed
via YaST. I am also using the document layout 'article'.


Shawn Koons


-- 
Mitakuye Oyasin