Re: Crash in document settings
> Maybe I was not precise enough, try this one: > 1. go to the document setting -> modules > 2. click and hold *on arrow* of 'Accesibility' item (so it gets unrolled) > 3. while holding move mouse strictly vertically down to the line of Braille > item (but stay horizontally ahead of the item) > 4. kaboom > > > Any better? Yes. Fixed now? Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Include Python3 in the Windows installer
I am probably a bit late on this, but Python2 like does not exist anymore, so I am thinking on including python 3 in the installer. I have looked at the download page for python and found Windows embeddable package (64-bit), which is 8-10 MB small (depending on the version), I have looked into that zip archive and seen that it does not look like a full python version like what you would get when downloading the installer. So I want to check if I can use this small package and if it will be "enough" for lyx' needs. Can somebody tell me if there is a way I can test/assess it? I can produce 2 separate installers, one with the old python I still have and one with python 3, I would also be able to install them separately on a local VM for comparison, but I don't know what are the actual test scenarios, any ideas? -- Eugene -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Crash in document settings
On Tue, Mar 07, 2023 at 08:54:30PM +0100, Pavel Sanda wrote: > On Tue, Mar 07, 2023 at 05:13:41PM +0100, Kornel Benko wrote: > > Am Tue, 7 Mar 2023 16:04:55 +0100 (CET) > > schrieb "Jürgen Spitzmüller" : > > > > > Pavel Sanda schrieb am 07.03.2023 12:59 (GMT +01:00): > > > > 1. go to the document setting -> modules > > > > 2. click in avail modules 'Maths' > > > > 3. click *and hold* 'Accesibility' > > > > 4. while holding move mouse to the Braille item below Accesibility > > > > 5. kaboom > > > > > > > > anyone can reproduce? > > > > > > I can't, neither Qt5 nor Qt6. FWIW drag and drop is not enabled in that > > > widget. > > > > > > Jürgen > > > > Neither can I reproduce. > > Maybe I was not precise enough, try this one: > 1. go to the document setting -> modules > 2. click and hold *on arrow* of 'Accesibility' item (so it gets unrolled) > 3. while holding move mouse strictly vertically down to the line of Braille > item (but stay horizontally ahead of the item) > 4. kaboom > > > Any better? > I can reproduce on two machines with Qt 5.15.2 & 5.12.8. Yes I can reproduce with this new recipe on current master. Qt 5.15.3 here. Scott signature.asc Description: PGP signature -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: [LyX/master] When a displayed inset is aligned left, align it left
On Mon, Mar 06, 2023 at 01:43:10PM +0100, Jean-Marc Lasgouttes wrote: > Seeing this gcc bug report, I think we just have to wait and see what > happens. > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107532 One possible fix just got into upstream gcc. So we'll see what will Jose report after next release of gcc. If that still persits we should perhaps report it and see whether they consider it grievous enough... Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Crash in document settings
On Tue, Mar 07, 2023 at 05:13:41PM +0100, Kornel Benko wrote: > Am Tue, 7 Mar 2023 16:04:55 +0100 (CET) > schrieb "Jürgen Spitzmüller" : > > > Pavel Sanda schrieb am 07.03.2023 12:59 (GMT +01:00): > > > 1. go to the document setting -> modules > > > 2. click in avail modules 'Maths' > > > 3. click *and hold* 'Accesibility' > > > 4. while holding move mouse to the Braille item below Accesibility > > > 5. kaboom > > > > > > anyone can reproduce? > > > > I can't, neither Qt5 nor Qt6. FWIW drag and drop is not enabled in that > > widget. > > > > Jürgen > > Neither can I reproduce. Maybe I was not precise enough, try this one: 1. go to the document setting -> modules 2. click and hold *on arrow* of 'Accesibility' item (so it gets unrolled) 3. while holding move mouse strictly vertically down to the line of Braille item (but stay horizontally ahead of the item) 4. kaboom Any better? I can reproduce on two machines with Qt 5.15.2 & 5.12.8. Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Wiki PW
Am Dienstag, dem 07.03.2023 um 15:29 +0100 schrieb Jürgen Spitzmüller: > Could somebody (PM) please remind me of the password that is needed > to approve external links on the wiki? Found it meanwhile. -- Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Crash in document settings
Am Tue, 7 Mar 2023 16:04:55 +0100 (CET) schrieb "Jürgen Spitzmüller" : > Pavel Sanda schrieb am 07.03.2023 12:59 (GMT +01:00): > > 1. go to the document setting -> modules > > 2. click in avail modules 'Maths' > > 3. click *and hold* 'Accesibility' > > 4. while holding move mouse to the Braille item below Accesibility > > 5. kaboom > > > > anyone can reproduce? > > I can't, neither Qt5 nor Qt6. FWIW drag and drop is not enabled in that > widget. > > Jürgen Neither can I reproduce. Kornel pgpmpmvJwmRDH.pgp Description: Digitale Signatur von OpenPGP -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Crash in document settings
Pavel Sanda schrieb am 07.03.2023 12:59 (GMT +01:00): > 1. go to the document setting -> modules > 2. click in avail modules 'Maths' > 3. click *and hold* 'Accesibility' > 4. while holding move mouse to the Braille item below Accesibility > 5. kaboom > > anyone can reproduce? I can't, neither Qt5 nor Qt6. FWIW drag and drop is not enabled in that widget. Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Wiki PW
Could somebody (PM) please remind me of the password that is needed to approve external links on the wiki? Thanks, Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Font translations
Jürgen Spitzmüller schrieb am 07.03.2023 15:20 (GMT +01:00): >> (Little to translate unless you push >> for partial translations of substrings like light/medium/bold/etc). > > Because of these. Also, localizations with non-Latin scripts will want to transliterate those strings into their own scripts. Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Font translations
> Should we burden our translators with this database which can't > be translated in general? Yes > (Little to translate unless you push > for partial translations of substrings like light/medium/bold/etc). Because of these. If the translators want to leave them untranslated, it's up to them. I want to have the possibility to translate font families. Jürgen -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Font translations
Le 07/03/2023 à 14:44, Pavel Sanda a écrit : Hi, I am noticing that we have 100+ translation strings for font names. Should we burden our translators with this database which can't be translated in general? (Little to translate unless you push for partial translations of substrings like light/medium/bold/etc). Remove them. JMarc -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Font translations
Hi, I am noticing that we have 100+ translation strings for font names. Should we burden our translators with this database which can't be translated in general? (Little to translate unless you push for partial translations of substrings like light/medium/bold/etc). Pavel -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: csv2lyx.py not working with python3??
On Mon, Mar 6, 2023 at 3:04 PM Neal Becker wrote: > python3 -tt /usr/share/lyx/scripts/csv2lyx.py > all_results-2023-03-06T13:58:32-0.csv all_results-2023-03-06T13:58:32-0.lyx > Traceback (most recent call last): > File "/usr/share/lyx/scripts/csv2lyx.py", line 170, in > input_file = "".join(open(infile,'rU').readlines()) > ^ > ValueError: invalid mode: 'rU' > > python2 -tt /usr/share/lyx/scripts/csv2lyx.py > all_results-2023-03-06T13:58:32-0.csv all_results-2023-03-06T13:58:32-0.lyx > [silence...] > > It appears that changing the file mode from 'rU' to 'r' is all that is needed. -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel
Re: Crash in document settings
On Tue, Mar 07, 2023 at 12:49:24PM +0100, Pavel Sanda wrote: > Hi, > > I am struggling to get exact recipy, but I am repeatedly getting > crashes with document settings dialog, modules panel. I think I have the recipy: 1. go to the document setting -> modules 2. click in avail modules 'Maths' 3. click *and hold* 'Accesibility' 4. while holding move mouse to the Braille item below Accesibility 5. kaboom anyone can reproduce? > Thread 1 "lyx" received signal SIGSEGV, Segmentation fault. > 0x776b5460 in QStandardItem::rowCount() const () from > /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 > (gdb) bt > #0 0x776b5460 in QStandardItem::rowCount() const () from > /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 > #1 0x776b5609 in QStandardItem::hasChildren() const () from > /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 > #2 0x55e3cbd8 in lyx::frontend::ModuleSelectionManager::updateAddPB > (this=0x5baf7c40) > at GuiDocument.cpp:328 > #3 0x55f5d89d in lyx::frontend::GuiSelectionManager::update > (this=0x5baf7c40) > at GuiSelectionManager.cpp:104 > #4 0x55e6235a in lyx::frontend::GuiDocument::updateModuleInfo > (this=0x577557b0) at GuiDocument.cpp:3323 > #5 0x55e6bd95 in lyx::frontend::GuiDocument::qt_static_metacall > (_o=, _c=, > _id=, _a=) at moc_GuiDocument.cpp:373 > #6 0x76f3d5e0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 > #7 0x55f5d40a in lyx::frontend::GuiSelectionManager::updateHook > (this=this@entry=0x5baf7c40) > at moc_GuiSelectionManager.cpp:214 > #8 0x55f5d8f7 in > lyx::frontend::GuiSelectionManager::availableChanged > (this=this@entry=0x5baf7c40, > idx=...) at GuiSelectionManager.cpp:222 > #9 0x55f5e171 in > lyx::frontend::GuiSelectionManager::availableChanged (this=0x5baf7c40, > qis=...) > at GuiSelectionManager.cpp:212 > #10 0x55f5e2fd in > lyx::frontend::GuiSelectionManager::qt_static_metacall (_o=, > _c=, _id=, _a=0x7fffd280) at > moc_GuiSelectionManager.cpp:129 > #11 0x76f3d5e0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 > #12 0x76eb1f00 in > QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection > const&) () >from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 > #13 0x76ebaace in QItemSelectionModel::select(QItemSelection const&, > QFlags) () from > /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 > #14 0x77c94694 in QTreeViewPrivate::select(QModelIndex const&, > QModelIndex const&, QFlags) () from > /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 > #15 0x77c94d9e in QTreeView::setSelection(QRect const&, > QFlags) () >from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 > #16 0x77c2cbc4 in QAbstractItemView::mouseMoveEvent(QMouseEvent*) () >from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 > #17 0x77a0afae in QWidget::event(QEvent*) () from > /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 > #18 0x77ab342e in QFrame::event(QEvent*) () from > /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 > #19 0x76f06d33 in > QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () >from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 > #20 0x779cb14e in QApplicationPrivate::notify_helper(QObject*, > QEvent*) () >from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 > #21 0x779d204b in QApplication::notify(QObject*, QEvent*) () from > /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 > #22 0x55d4fd97 in lyx::frontend::GuiApplication::notify > (this=0x5631ae00, receiver=, > event=) at GuiApplication.cpp:2980 > #23 0x76f06fca in QCoreApplication::notifyInternal2(QObject*, > QEvent*) () >from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 > #24 0x779d1076 in QApplicationPrivate::sendMouseEvent(QWidget*, > QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool) > () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 > #25 0x77a23011 in ?? () from > /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 > #26 0x77a2633e in ?? () from > /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 > #27 0x779cb15f in QApplicationPrivate::notify_helper(QObject*, > QEvent*) () >from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 > #28 0x55d4fd97 in lyx::frontend::GuiApplication::notify > (this=0x5631ae00, receiver=, > event=) at GuiApplication.cpp:2980 > #29 0x76f06fca in QCoreApplication::notifyInternal2(QObject*, > QEvent*) () >from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 > #30 0x772e1583 in > QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) > () >from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 > #31 0x772b764c in > QWindowSystemInterface::sendWindowSystemEvents(QFlags) > () >from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 > #32 0x732157da in ?? () from >
Crash in document settings
Hi, I am struggling to get exact recipy, but I am repeatedly getting crashes with document settings dialog, modules panel. Generally I have opened few categories of modules, then click & hold the mouse button and start moving around in the combobox. Sometimes I get the crash most often not. Two modules are already slected (AMS,AMS extended), dunno if related. Thread 1 "lyx" received signal SIGSEGV, Segmentation fault. 0x776b5460 in QStandardItem::rowCount() const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 (gdb) bt #0 0x776b5460 in QStandardItem::rowCount() const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #1 0x776b5609 in QStandardItem::hasChildren() const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #2 0x55e3cbd8 in lyx::frontend::ModuleSelectionManager::updateAddPB (this=0x5baf7c40) at GuiDocument.cpp:328 #3 0x55f5d89d in lyx::frontend::GuiSelectionManager::update (this=0x5baf7c40) at GuiSelectionManager.cpp:104 #4 0x55e6235a in lyx::frontend::GuiDocument::updateModuleInfo (this=0x577557b0) at GuiDocument.cpp:3323 #5 0x55e6bd95 in lyx::frontend::GuiDocument::qt_static_metacall (_o=, _c=, _id=, _a=) at moc_GuiDocument.cpp:373 #6 0x76f3d5e0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #7 0x55f5d40a in lyx::frontend::GuiSelectionManager::updateHook (this=this@entry=0x5baf7c40) at moc_GuiSelectionManager.cpp:214 #8 0x55f5d8f7 in lyx::frontend::GuiSelectionManager::availableChanged (this=this@entry=0x5baf7c40, idx=...) at GuiSelectionManager.cpp:222 #9 0x55f5e171 in lyx::frontend::GuiSelectionManager::availableChanged (this=0x5baf7c40, qis=...) at GuiSelectionManager.cpp:212 #10 0x55f5e2fd in lyx::frontend::GuiSelectionManager::qt_static_metacall (_o=, _c=, _id=, _a=0x7fffd280) at moc_GuiSelectionManager.cpp:129 #11 0x76f3d5e0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #12 0x76eb1f00 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #13 0x76ebaace in QItemSelectionModel::select(QItemSelection const&, QFlags) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #14 0x77c94694 in QTreeViewPrivate::select(QModelIndex const&, QModelIndex const&, QFlags) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #15 0x77c94d9e in QTreeView::setSelection(QRect const&, QFlags) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #16 0x77c2cbc4 in QAbstractItemView::mouseMoveEvent(QMouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #17 0x77a0afae in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #18 0x77ab342e in QFrame::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #19 0x76f06d33 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #20 0x779cb14e in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #21 0x779d204b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #22 0x55d4fd97 in lyx::frontend::GuiApplication::notify (this=0x5631ae00, receiver=, event=) at GuiApplication.cpp:2980 #23 0x76f06fca in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #24 0x779d1076 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool, bool) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #25 0x77a23011 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #26 0x77a2633e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #27 0x779cb15f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5 #28 0x55d4fd97 in lyx::frontend::GuiApplication::notify (this=0x5631ae00, receiver=, event=) at GuiApplication.cpp:2980 #29 0x76f06fca in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 #30 0x772e1583 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #31 0x772b764c in QWindowSystemInterface::sendWindowSystemEvents(QFlags) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5 #32 0x732157da in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5 #33 0x76673e6b in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #34 0x76674118 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 #35 0x766741cf in
Re: csv2lyx.py not working with python3??
On Mon, 2023-03-06 at 15:04 -0500, Neal Becker wrote: > python3 -tt /usr/share/lyx/scripts/csv2lyx.py all_results-2023-03- > 06T13:58:32-0.csv all_results-2023-03-06T13:58:32-0.lyx > Traceback (most recent call last): > File "/usr/share/lyx/scripts/csv2lyx.py", line 170, in > input_file = "".join(open(infile,'rU').readlines()) > ^ > ValueError: invalid mode: 'rU' > > python2 -tt /usr/share/lyx/scripts/csv2lyx.py all_results-2023-03- > 06T13:58:32-0.csv all_results-2023-03-06T13:58:32-0.lyx > [silence...] > > -- > Those who don't understand recursion are doomed to repeat it Simplest solution, remove all the 'rU' arguments for open in the script. Rationale: 'r' is the read mode, default, 'U' is for the universal newlines mode (for backwards compatibility; should not be used in new code) [https://docs.python.org/2/library/io.html#io.open]. The attached path does precisely that, removes all the 'rU' arguments in `open`. I tested it with some random csv file (the Stocks file from matplotlib) and the outcome is the same for python 2 and 3. Due to the change required for me that is more than good enough validation. :-) Best regards, -- José Abílio diff --git a/lib/scripts/csv2lyx.py b/lib/scripts/csv2lyx.py index 27063235c9..4547c7d1c4 100644 --- a/lib/scripts/csv2lyx.py +++ b/lib/scripts/csv2lyx.py @@ -164,21 +164,21 @@ if options.column_sep == 't': # when no special column separator is given, try to detect it: if options.column_sep and dialect : -reader = csv.reader(open(infile, "rU"), dialect = dialect, delimiter = options.column_sep) +reader = csv.reader(open(infile), dialect = dialect, delimiter = options.column_sep) else: guesser = csv.Sniffer() -input_file = "".join(open(infile,'rU').readlines()) +input_file = "".join(open(infile).readlines()) try: dialect = guesser.sniff(input_file) -reader = csv.reader(open(infile, "rU"), dialect = dialect) +reader = csv.reader(open(infile), dialect = dialect) except: # older versions (python < 2.5) of csv have problems (bugs) # that is why we try harder to get a result, this should work on most cases # as it assumes that the separator is a comma (the c in csv :-) ) try: -reader = csv.reader(open(infile, "rU"), dialect = dialect, delimiter = ',') +reader = csv.reader(open(infile), dialect = dialect, delimiter = ',') except: -reader = csv.reader(open(infile, "rU"), delimiter = ',') +reader = csv.reader(open(infile), delimiter = ',') # read input num_cols = 1 # max columns -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel