Re: Crash on master because of cursor position in session

2022-01-23 Thread Scott Kostyshak
On Sun, Jan 23, 2022 at 08:03:32PM +0100, Jean-Marc Lasgouttes wrote: > Le 22/01/2022 à 23:04, Pavel Sanda a écrit : > > On Sat, Jan 22, 2022 at 09:43:15PM +0100, Pavel Sanda wrote: > > > lyx::TextMetrics::redoParagraph:522 pm.rows() = breakParagraph(bigrow); > > > -> step into > > > lyx::TextMetr

Re: Crash on master because of cursor position in session

2022-01-23 Thread Jean-Marc Lasgouttes
Le 22/01/2022 à 23:04, Pavel Sanda a écrit : On Sat, Jan 22, 2022 at 09:43:15PM +0100, Pavel Sanda wrote: lyx::TextMetrics::redoParagraph:522 pm.rows() = breakParagraph(bigrow); -> step into lyx::TextMetrics::breakParagraph:1136 tail = rb.shortenIfNeeded(width, next_width); -> step into lyx::R

Re: Crash on master because of cursor position in session

2022-01-22 Thread Jean-Marc Lasgouttes
Le 22/01/2022 à 21:43, Pavel Sanda a écrit : Error: Software exception Detected LyX has caught an exception, it will now attempt to save all unsaved documents and exit. Exception: basic_string::substr: __pos (which is 32) > this->size() (which is 31)

Re: Crash on master because of cursor position in session

2022-01-22 Thread Pavel Sanda
On Sat, Jan 22, 2022 at 09:43:15PM +0100, Pavel Sanda wrote: > lyx::TextMetrics::redoParagraph:522 pm.rows() = breakParagraph(bigrow); -> > step into > lyx::TextMetrics::breakParagraph:1136 tail = rb.shortenIfNeeded(width, > next_width); -> step into > lyx::Row::shortenIfNeeded:640 if (cit->split

Re: Crash on master because of cursor position in session

2022-01-22 Thread Pavel Sanda
On Sun, Jan 16, 2022 at 12:02:50PM +0100, Kornel Benko wrote: > Moreover, from then on the crash will always happen. > Resetting the line in lyx2.4.conf from > zoom_ratio=1.9333 > to > zoom_ratio=1.0 > cured it. > > Running under gdb, the software exception happens deep inside

Re: Crash on master because of cursor position in session

2022-01-16 Thread Scott Kostyshak
On Sun, Jan 16, 2022 at 12:51:25PM +0100, Jürgen Spitzmüller wrote: > Am Sonntag, dem 16.01.2022 um 12:02 +0100 schrieb Kornel Benko: > > Moreover, from then on the crash will always happen. > > Resetting the line in lyx2.4.conf from > > zoom_ratio=1.9333 > > to > > zoom_ratio=1.0 >

Re: Crash on master because of cursor position in session

2022-01-16 Thread Scott Kostyshak
On Sun, Jan 16, 2022 at 12:02:50PM +0100, Kornel Benko wrote: > Am Sun, 16 Jan 2022 11:43:24 +0100 > schrieb Kornel Benko : > > > > 1. Open the attached file. > > > 2. Move cursor to just in front of the second comment inset. > > > 2.5 Zoom in a ways. > > > 3. Exit LyX. > > > 4. Open the file agai

Re: Crash on master because of cursor position in session

2022-01-16 Thread Jürgen Spitzmüller
Am Sonntag, dem 16.01.2022 um 12:02 +0100 schrieb Kornel Benko: > Moreover, from then on the crash will always happen. > Resetting the line in lyx2.4.conf from > zoom_ratio=1.9333 > to > zoom_ratio=1.0 > cured it. > > Running under gdb, the software exception happens deep insid

Re: Crash on master because of cursor position in session

2022-01-16 Thread Kornel Benko
Am Sun, 16 Jan 2022 11:43:24 +0100 schrieb Kornel Benko : > > 1. Open the attached file. > > 2. Move cursor to just in front of the second comment inset. > > 2.5 Zoom in a ways. > > 3. Exit LyX. > > 4. Open the file again. > > > > Can you try to reproduce with this modified recipe? How much to zo

Re: Crash on master because of cursor position in session

2022-01-16 Thread Kornel Benko
Am Sat, 15 Jan 2022 23:11:49 -0500 schrieb Scott Kostyshak : > On Sat, Jan 15, 2022 at 05:48:55PM +0100, Kornel Benko wrote: > > Am Sat, 15 Jan 2022 10:02:05 -0500 > > schrieb Scott Kostyshak : > > > > > On Sat, Jan 15, 2022 at 10:13:10AM +0100, Kornel Benko wrote: > > > > Am Fri, 14 Jan 2022

Re: Crash on master because of cursor position in session

2022-01-15 Thread Scott Kostyshak
On Sat, Jan 15, 2022 at 05:48:55PM +0100, Kornel Benko wrote: > Am Sat, 15 Jan 2022 10:02:05 -0500 > schrieb Scott Kostyshak : > > > On Sat, Jan 15, 2022 at 10:13:10AM +0100, Kornel Benko wrote: > > > Am Fri, 14 Jan 2022 07:50:27 -0500 > > > schrieb Scott Kostyshak : > > > > > > > On Wed, Jan 1

Re: Crash on master because of cursor position in session

2022-01-15 Thread Kornel Benko
Am Sat, 15 Jan 2022 10:02:05 -0500 schrieb Scott Kostyshak : > On Sat, Jan 15, 2022 at 10:13:10AM +0100, Kornel Benko wrote: > > Am Fri, 14 Jan 2022 07:50:27 -0500 > > schrieb Scott Kostyshak : > > > > > On Wed, Jan 12, 2022 at 09:24:08AM +0100, Kornel Benko wrote: > > > > Am Tue, 11 Jan 2022

Re: Crash on master because of cursor position in session

2022-01-15 Thread Scott Kostyshak
On Sat, Jan 15, 2022 at 10:13:10AM +0100, Kornel Benko wrote: > Am Fri, 14 Jan 2022 07:50:27 -0500 > schrieb Scott Kostyshak : > > > On Wed, Jan 12, 2022 at 09:24:08AM +0100, Kornel Benko wrote: > > > Am Tue, 11 Jan 2022 14:43:01 -0500 > > > schrieb Scott Kostyshak : > > > > > > > To reproduce

Re: Crash on master because of cursor position in session

2022-01-15 Thread Kornel Benko
Am Fri, 14 Jan 2022 07:50:27 -0500 schrieb Scott Kostyshak : > On Wed, Jan 12, 2022 at 09:24:08AM +0100, Kornel Benko wrote: > > Am Tue, 11 Jan 2022 14:43:01 -0500 > > schrieb Scott Kostyshak : > > > > > To reproduce on current master: > > > > > > 1. Open the attached file. > > > 2. Move curso

Re: Crash on master because of cursor position in session

2022-01-14 Thread Scott Kostyshak
On Wed, Jan 12, 2022 at 09:24:08AM +0100, Kornel Benko wrote: > Am Tue, 11 Jan 2022 14:43:01 -0500 > schrieb Scott Kostyshak : > > > To reproduce on current master: > > > > 1. Open the attached file. > > 2. Move cursor to just in front of the second comment inset. > > 3. Exit LyX. > > 4. Open the

Re: Crash on master because of cursor position in session

2022-01-12 Thread Kornel Benko
Am Tue, 11 Jan 2022 14:43:01 -0500 schrieb Scott Kostyshak : > To reproduce on current master: > > 1. Open the attached file. > 2. Move cursor to just in front of the second comment inset. > 3. Exit LyX. > 4. Open the file again. > > LyX has caught an exception, it will now attempt to save all u

Crash on master because of cursor position in session

2022-01-11 Thread Scott Kostyshak
To reproduce on current master: 1. Open the attached file. 2. Move cursor to just in front of the second comment inset. 3. Exit LyX. 4. Open the file again. LyX has caught an exception, it will now attempt to save all unsaved documents and exit. Exception: basic_string::substr: __pos (which is