Re: 2.4 Crash (was: Updated LaTeXConfig.lyx (bxjsclasses added))

2023-01-25 Thread Pavel Sanda
On Thu, Jan 26, 2023 at 01:23:55AM +0100, Pavel Sanda wrote:
> I can reproduce it only when not running under gdb.

It also seem impossible to reproduce when compiling with debug symbols.
Without them reproducibility seems to depends on the exact trajectory I do 
with the mouse over the editing window (perhaps triggering some repaint
event when going over Inset?)

P
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: 2.4 Crash (was: Updated LaTeXConfig.lyx (bxjsclasses added))

2023-01-25 Thread Pavel Sanda
On Thu, Jan 26, 2023 at 01:23:55AM +0100, Pavel Sanda wrote:
> But fun times ahead! I get SIGSEGV when loading your file (when view is 
> scrolled on your changes).
> 
> I can reproduce it only when not running under gdb.

It seems that the crash happens just after preview background run is generated.
It seems that yo reliably reproduce the crash you need to change focus to lyx 
window right
before the preview is ploted.
When I run crashing session with lyx -dbg graphics, the last console msgs are:
...
graphics/GraphicsCache.cpp (81): LyX recognises the following image formats:
graphics/GraphicsCache.cpp (83): bmp,
graphics/GraphicsCache.cpp (83): gif,
graphics/GraphicsCache.cpp (83): jpg,
graphics/GraphicsCache.cpp (83): pbm,
graphics/GraphicsCache.cpp (83): pgm,
graphics/GraphicsCache.cpp (83): png,
graphics/GraphicsCache.cpp (83): ppm,
graphics/GraphicsCache.cpp (83): xbm,
graphics/GraphicsCache.cpp (83): xpm,
graphics/PreviewLoader.cpp (525): adding snippet:
$\mathds{N}$
graphics/PreviewLoader.cpp (525): adding snippet:
$\mathds{Z}$
graphics/PreviewLoader.cpp (525): adding snippet:
$\mathds{Q}$
graphics/PreviewLoader.cpp (525): adding snippet:
$\mathds{R}$
graphics/PreviewLoader.cpp (525): adding snippet:
$\mathds{C}$
graphics/PreviewLoader.cpp (525): adding snippet:
$\mathds{1}$
graphics/PreviewLoader.cpp (525): adding snippet:
$\mathds{h}$
graphics/PreviewLoader.cpp (525): adding snippet:
$\mathds{k}$
graphics/PreviewLoader.cpp (582): PreviewLoader::startLoading()


Pavel
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


2.4 Crash (was: Updated LaTeXConfig.lyx (bxjsclasses added))

2023-01-25 Thread Pavel Sanda
On Wed, Jan 25, 2023 at 09:41:48PM +0900, Yokota K. wrote:
> Dear list,
> 
> Here is updated LaTeXConfig.lyx in which bxjsclasses (extended Japanese new
> standard class) added. The class supports XeLaTeX and LuaLaTeX so that
> users can use it without relying on Japanese local pLaTeX to write Japanese
> texts.
> 
> If it looks appropriate, please include it in English version.

The changes look OK to me and I commited it.

But fun times ahead! I get SIGSEGV when loading your file (when view is 
scrolled on your changes).

I can reproduce it only when not running under gdb.

The backtrace from our error window:
(  1) /home//lyx/devel/src/lyx: 
lyx::frontend::Alert::doError(std::__cxx11::basic_string, std::allocator > const&, 
std::__cxx11::basic_string, 
std::allocator > const&, bool)
(  2) /home//lyx/devel/src/lyx: 
lyx::frontend::Alert::error(std::__cxx11::basic_string, std::allocator > const&, 
std::__cxx11::basic_string, 
std::allocator > const&, bool)
(  3) /home//lyx/devel/src/lyx: /home//lyx/devel/src/lyx(+0x48dd27) 
[0x55947f718d27]
(  4) /lib/x86_64-linux-gnu/libc.so.6: 
/lib/x86_64-linux-gnu/libc.so.6(+0x38d60) [0x7fd98a4f7d60]
(  5) /home//lyx/devel/src/lyx: lyx::Paragraph::id() const
(  6) /home//lyx/devel/src/lyx: 
lyx::TextMetrics::drawParagraph(lyx::PainterInfo&, long, int, int) const
(  7) /home//lyx/devel/src/lyx: lyx::TextMetrics::draw(lyx::PainterInfo&, int, 
int) const
(  8) /home//lyx/devel/src/lyx: lyx::InsetText::draw(lyx::PainterInfo&, int, 
int) const
(  9) /home//lyx/devel/src/lyx: lyx::InsetCollapsible::draw(lyx::PainterInfo&, 
int, int) const
( 10) /home//lyx/devel/src/lyx: lyx::InsetInfo::draw(lyx::PainterInfo&, int, 
int) const
( 11) /home//lyx/devel/src/lyx: lyx::RowPainter::paintInset(lyx::Row::Element 
const&) const
( 12) /home//lyx/devel/src/lyx: lyx::RowPainter::paintText()
( 13) /home//lyx/devel/src/lyx: 
lyx::TextMetrics::drawParagraph(lyx::PainterInfo&, long, int, int) const
( 14) /home//lyx/devel/src/lyx: lyx::TextMetrics::draw(lyx::PainterInfo&, int, 
int) const
( 15) /home//lyx/devel/src/lyx: lyx::BufferView::draw(lyx::frontend::Painter&, 
bool)
( 16) /home//lyx/devel/src/lyx: 
lyx::frontend::GuiWorkArea::paintEvent(QPaintEvent*)
( 17) /lib/x86_64-linux-gnu/libQt5Widgets.so.5: QWidget::event(QEvent*)
( 18) /lib/x86_64-linux-gnu/libQt5Widgets.so.5: QFrame::event(QEvent*)
( 19) /lib/x86_64-linux-gnu/libQt5Core.so.5: 
QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*)
( 20) /lib/x86_64-linux-gnu/libQt5Widgets.so.5: 
QApplicationPrivate::notify_helper(QObject*, QEvent*)
( 21) /home//lyx/devel/src/lyx: lyx::frontend::GuiApplication::notify(QObject*, 
QEvent*)
( 22) /lib/x86_64-linux-gnu/libQt5Core.so.5: 
QCoreApplication::notifyInternal2(QObject*, QEvent*)
( 23) /lib/x86_64-linux-gnu/libQt5Widgets.so.5: 
QWidgetPrivate::sendPaintEvent(QRegion const&)
( 24) /lib/x86_64-linux-gnu/libQt5Widgets.so.5: 
QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, 
QFlags, QPainter*, QWidgetRepaintManager*)
( 25) /lib/x86_64-linux-gnu/libQt5Widgets.so.5: 
/lib/x86_64-linux-gnu/libQt5Widgets.so.5(+0x1737f0) [0x7fd98b7417f0]
( 26) /lib/x86_64-linux-gnu/libQt5Widgets.so.5: QWidget::event(QEvent*)
( 27) /lib/x86_64-linux-gnu/libQt5Widgets.so.5: 
QApplicationPrivate::notify_helper(QObject*, QEvent*)
( 28) /home//lyx/devel/src/lyx: lyx::frontend::GuiApplication::notify(QObject*, 
QEvent*)
( 29) /lib/x86_64-linux-gnu/libQt5Core.so.5: 
QCoreApplication::notifyInternal2(QObject*, QEvent*)
( 30) /lib/x86_64-linux-gnu/libQt5Core.so.5: 
QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*)
( 31) /lib/x86_64-linux-gnu/libQt5Core.so.5: 
/lib/x86_64-linux-gnu/libQt5Core.so.5(+0x305e93) [0x7fd98acc4e93]
( 32) /lib/x86_64-linux-gnu/libglib-2.0.so.0: 
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_dispatch+0x25b) 
[0x7fd98a3d9e6b]
( 33) /lib/x86_64-linux-gnu/libglib-2.0.so.0: 
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x52118) [0x7fd98a3da118]
( 34) /lib/x86_64-linux-gnu/libglib-2.0.so.0: 
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_iteration+0x2f) 
[0x7fd98a3da1cf]
( 35) /lib/x86_64-linux-gnu/libQt5Core.so.5: 
QEventDispatcherGlib::processEvents(QFlags)
( 36) /lib/x86_64-linux-gnu/libQt5Core.so.5: 
QEventLoop::exec(QFlags)
( 37) /lib/x86_64-linux-gnu/libQt5Core.so.5: QCoreApplication::exec()
( 38) /home//lyx/devel/src/lyx: lyx::LyX::exec(int&, char**)
( 39) /home//lyx/devel/src/lyx: /home//lyx/devel/src/lyx(main+0x47) 
[0x55947f5bb337]
( 40) /lib/x86_64-linux-gnu/libc.so.6: 
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7fd98a4e2d0a]
( 41) /home//lyx/devel/src/lyx: /home//lyx/devel/src/lyx(_start+0x2a) 
[0x55947f5c9baa]

Terminal:
QPaintDevice: Cannot destroy paint device that is being painted


Pavel


At the same time I can't rep
> 
> Koji


> -- 
> lyx-docs mailing list
> lyx-d...@lists.lyx.org
> http://lists.lyx.org/mailman/listinfo/lyx-docs

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.o

Re: LyX 2.4.0-beta2; zoom slider

2023-01-25 Thread Daniel

On 2023-01-25 18:00, Jürgen Spitzmüller wrote:

Am Mittwoch, dem 25.01.2023 um 17:02 +0100 schrieb Daniel:

I cannot reproduce with preview beta2. When clicking on +/-, I get
steps of 15%. Given that the (system) default is 150%,


Well, 15% is 10% of 150%.


I cannot get to 200% that way.


You need to set default zoom to either 100% or 200% to achieve that.


Also, once one has used the slider, one cannot get "round numbers"
anymore. I suggest to change it to how Word does it: the +
and - buttons always get you to "round numbers" with steps of 10%.
Then, for example, you can get fast to a certain point by using the
slider and then adjust to a round number with +/-.


This does not make sense to me, as you'd get a smaller range with 200%
default zoom that way. The larger the default, the larger the steps.
20% jumps make perfect sense to me on my setting with 200% default
zoom.

Word does not have the concept of an adjustable default zoom AFAIK.
They always have 100% as mean value. Same for Libre.


It might not make sense to you but now you know that it does to some 
people who are using not 100% or 200% zoom default and rather, say, 150% 
like the system default (at least on macOS).


Anyway, for system default, there is a solutions that seem compatible 
with your position:


Set the system default to 100% (and even better make the system default 
so that it matches the actual size of the font). There was a discussion 
about this on the list if I remember correctly.


That leaves people who are not happy with system default in the rain. 
You would lose round numbers that way, but I guess that is acceptable to 
you if you are consistent.


Alternatively, just name whatever is set as the default 100%?

Daniel


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.4.0-beta2; zoom slider

2023-01-25 Thread Jürgen Spitzmüller
Am Mittwoch, dem 25.01.2023 um 17:02 +0100 schrieb Daniel:
> I cannot reproduce with preview beta2. When clicking on +/-, I get
> steps of 15%. Given that the (system) default is 150%, 

Well, 15% is 10% of 150%.

> I cannot get to 200% that way. 

You need to set default zoom to either 100% or 200% to achieve that.

> Also, once one has used the slider, one cannot get "round numbers"
> anymore. I suggest to change it to how Word does it: the +
> and - buttons always get you to "round numbers" with steps of 10%.
> Then, for example, you can get fast to a certain point by using the
> slider and then adjust to a round number with +/-.

This does not make sense to me, as you'd get a smaller range with 200%
default zoom that way. The larger the default, the larger the steps.
20% jumps make perfect sense to me on my setting with 200% default
zoom.

Word does not have the concept of an adjustable default zoom AFAIK.
They always have 100% as mean value. Same for Libre.

-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel


Re: LyX 2.4.0-beta2; zoom slider

2023-01-25 Thread Daniel

On 2023-01-25 07:53, Jürgen Spitzmüller wrote:

Am Mittwoch, dem 25.01.2023 um 09:43 +1300 schrieb Andrew Parsloe:

The urge to get a round number like 150 or 200 is strong, almost
compulsive, but fiddly with the slider requiring multiple attempts.


The zoom slider values are relative to the zoom you have set in
Preferences > Look & Feel > Screen Fonts. If you set that to 200% (or
100%), you'll get round numbers. Otherwise you get steps of 10% from
the default.


I cannot reproduce with preview beta2. When clicking on +/-, I get steps 
of 15%. Given that the (system) default is 150%, I cannot get to 200% 
that way. Also, once one has used the slider, one cannot get "round 
numbers" anymore. I suggest to change it to how Word does it: the + and 
- buttons always get you to "round numbers" with steps of 10%. Then, for 
example, you can get fast to a certain point by using the slider and 
then adjust to a round number with +/-.


Daniel


--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel