Scrolling unresponsive in LyX 2.4.0
Hung-Tzu Chang
htchang at berkeley.edu
Sat Jul 13 07:10:14 UTC 2024
Dear Scott and Jean-Marc,
I just tested the official build of LyX 2.4.1 on macOS 12.7(intel). The
scrolling problem still exists. Another thing I found is that when opening
the citation window by clicking on an existing \cite command in the
document, the program would also freeze for a few seconds. The freeze also
occurred when scrolling the list of cite keys and clicking "Cancel" of that
window. However, this freeze seems to mostly occur on \cite commands which
were not clicked before. I have got callgrind output with gperftools for
the two occasions (attached) but wasn't able to analyze them as I have no
experience with this before. (I have only run gprof for command-line
programs before but gprof builds don't seem to work on mac...)
Thanks!
Best,
Hung-Tzu
P.S. The only stderr output I got from terminal when running the program
is: qt.qpa.fonts: Populating font family aliases took 422 ms. Replace uses
of missing font family "Serif" with one that exists to avoid this cost.
P.P.S. Unfortunately the document in question is a paper I am writing and
thus am not able to share it for testing. I tried to procure a minimal
example but it seems the document has to have some level of complexity for
the problems to be noticeable and I haven't been able to get there yet.
On Fri, Jul 12, 2024 at 11:31 PM Scott Kostyshak <skostysh at lyx.org> wrote:
> On Sat, Jun 08, 2024 at 11:21:44AM GMT, Jean-Marc Lasgouttes wrote:
> > Le 07/06/2024 à 22:01, Richard Kimberly Heck a écrit :
> > > On 6/7/24 15:13, Hung-Tzu Chang via lyx-users wrote:
> > > > I recently installed LyX 2.4.0 on macOS 12.7.5(intel) and found that
> > > > scrolling plain-text (revtex4-2, with several sections with math,
> > > > comments and LyX note plus an appendix but no figures) documents
> > > > created by LyX 2.3.7 tends to lag. This can be reproduced by quickly
> > > > scrolling the document up and down by 3-5 times. Sometimes the
> > > > program would stop responding and recover after a few seconds.
> > > > Converting the document to LyX 2.4 format with lyx2lyx does not
> > > > help. Also this behaviour occurs with both Qt5 and Qt6 libraries (Qt
> > > > 5.15.12 and Qt 6.6.2 from Homebrew). This did not happen to LyX
> > > > 2.3.7.
> > >
> > > I believe this is a known issue, which will be fixed (we think!) for
> 2.4.1.
> >
> > Unfortunately I am not so sure about that :( It is not normal to have a
> > regression in 2.4.0.
> >
> > Hung-Tsu, do you have a document that you could share with me for
> testing?
> >
> > Even better, do you know how to use a profiler like Instruments to see
> where
> > the time is spent? I did all the testing on Linux, and there is a
> > possibility that caching of glyphs behave differently on macOS.
> >
> > Do you have math previews enabled? Does it make a difference if you
> change
> > the setting?
>
> Dear Hung-Tzu Chang,
>
> Are things better with 2.4.1?
>
> Scott
>
--
Dr. Hung-Tzu Chang
Alternative email address: hungtzu.chang at mpinat.mpg.de
<hungtzu.chang at mpibpc.mpg.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20240713/7d7d6cc5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lyx241-scroll-main-screen.callgrind
Type: application/octet-stream
Size: 87088 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20240713/7d7d6cc5/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lyx241-scroll-cite-window.callgrind
Type: application/octet-stream
Size: 189708 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20240713/7d7d6cc5/attachment-0003.obj>
More information about the lyx-users
mailing list