Bug 17026

Summary: lyx падает при запуске
Product: Branch 4.1 Reporter: Valery Pipin <pip>
Component: lyxAssignee: Vitaly Lipatov <lav>
Status: CLOSED FIXED QA Contact: qa-4.1 <qa-4.1>
Severity: blocker    
Priority: P2 CC: lex, stanv, zerg
Version: unspecified   
Hardware: x86   
OS: Linux   
Attachments:
Description Flags
valkyrie log
none
.lyx/session none

Description Valery Pipin 2008-09-05 12:46:23 MSD
lyx-1.5.4-alt
падает при запуске.
....
QPaintEngine::setSystemClip: Should not be changed while engine is active
QPaintEngine::setSystemClip: Should not be changed while engine is active
QWidgetPrivate::beginSharedPainter: Painter is already active

lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting instructions in Help->Introduction and send us a bug report, if necessary. Thanks !
Bye.
Аварийный останов

версия 1.5.5 из сизифа рабатает. Просьба обновить в бранче 4.1
Comment 1 Andriy Stepanov (stanv) 2008-09-17 14:18:57 MSD
Проблема была в библиотеке libQtGui.so.4

lyx-1.5.4-alt1 работает нормально с libqt4-gui-4.4.1-alt0.M41.1

*** This bug has been marked as a duplicate of bug 16387 ***
Comment 2 Valery Pipin 2008-09-17 15:48:33 MSD
У меня не выходит :-(

[vv@trinity-225 ~]$ rpm -q libqt4-gui
libqt4-gui-4.4.1-alt0.M41.1
[vv@trinity-225 ~]$ lyx
LyX: Unknown tag `\nomencl_command' [around line 129 of file ~/.lyx/lyxrc.defaults]
Unknown encoding koi8-r
QPaintEngine::setSystemClip: Should not be changed while engine is active
QPaintEngine::setSystemClip: Should not be changed while engine is active
QWidgetPrivate::beginSharedPainter: Painter is already active

lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting instructions in Help->Introduction and send us a bug report, if necessary. Thanks !
Bye.
Аварийный останов
[vv@trinity-225 ~]$ rpm -q lyx
lyx-1.5.4-alt1
(In reply to comment #1)
> Проблема была в библиотеке libQtGui.so.4
> 
> lyx-1.5.4-alt1 работает нормально с libqt4-gui-4.4.1-alt0.M41.1
> 
> *** Ошибка отмечена как повтор ошибки 16387 ***
> 

Comment 3 Alexey Petrakov 2008-09-17 16:00:25 MSD
(In reply to comment #2)
> У меня не выходит :-(

Ликс надо тоже обновить до 1.5.5 Тогда, всё работает. Думаю, погорячились ошибку закрывать.
Comment 4 Andriy Stepanov (stanv) 2008-09-18 12:45:56 MSD
Падает lyx-1.5.4-alt1 в бранче 4.1

Причем интересно заметить, если зайти на машину с бранчем 4.1 по ssh с включенным X-Forwarding тогда не падает :(

На локальной машине падает как-то через раз.

Если удалить ~/.lyx результат тот-же.

munmap(0xb6e34000, 249856)              = 0
munmap(0xb6e71000, 495616)              = 0
stat64("/usr/share/fonts/ttf/liberation/LiberationSans-Bold.ttf", {st_mode=S_IFREG|0644, st_size=160592, ...}) = 0
open("/usr/share/fonts/ttf/liberation/LiberationSans-Bold.ttf", O_RDONLY) = 12
fcntl64(12, F_SETFD, FD_CLOEXEC)        = 0
fstat64(12, {st_mode=S_IFREG|0644, st_size=160592, ...}) = 0
mmap2(NULL, 160592, PROT_READ, MAP_PRIVATE, 12, 0) = 0xb6ec2000
close(12)                               = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
close(11)                               = 0
unlink("/tmp/lyx_tmpdir67476PxFL7/lyxsocket") = 0
write(2, "\nlyx: SIGSEGV signal caught\nSorry"..., 183
lyx: SIGSEGV signal caught
Sorry, you have found a bug in LyX. Please read the bug-reporting instructions in Help->Introduction and send us a bug report, if necessary. Thanks !
Bye.
) = 183
rt_sigaction(SIGHUP, {SIG_DFL}, {0x8169490, [HUP], SA_RESTART}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x8169490, [INT], SA_RESTART}, 8) = 0
rt_sigaction(SIGFPE, {SIG_DFL}, {0x8169490, [FPE], SA_RESTART}, 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL}, {0x8169490, [SEGV], SA_RESTART}, 8) = 0
rt_sigaction(SIGTERM, {SIG_DFL}, {0x8169490, [TERM], SA_RESTART}, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
tgkill(6747, 6747, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT (core dumped) +++
Process 6747 detached
Comment 5 Andriy Stepanov (stanv) 2008-09-18 13:03:29 MSD
Наверно оно падает все в тойже /usr/lib/libQtGui.so.4

(gdb) bt
#0  0xb7b008ff in QPainter::worldMatrixEnabled ()
   from /usr/lib/libQtGui.so.4
#1  0xb7a8a271 in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#2  0xb7a8a17e in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#3  0xb7a8a17e in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#4  0xb7a8a17e in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#5  0xb7a8a17e in QWidgetPrivate::paintSiblingsRecursive ()
   from /usr/lib/libQtGui.so.4
#6  0xb7a89f87 in QWidgetPrivate::drawWidget () from /usr/lib/libQtGui.so.4
#7  0xb7b78500 in QAbstractItemView::verticalScrollbarAction ()
   from /usr/lib/libQtGui.so.4
#8  0x0885a9a8 in ?? ()
...
#22 0xbf923538 in ?? ()
#23 0xb7b319f3 in QRegion::intersect () from /usr/lib/libQtGui.so.4
#24 0xb7b79ac4 in QAbstractItemView::verticalScrollbarAction ()
   from /usr/lib/libQtGui.so.4
#25 0x088b9020 in ?? ()
...
#31 0x00000000 in ?? ()

(gdb) frame 0
#0  0xb7b008ff in QPainter::worldMatrixEnabled ()
   from /usr/lib/libQtGui.so.4
Comment 6 Andriy Stepanov (stanv) 2008-09-18 13:18:30 MSD
Created attachment 2923 [details]
valkyrie log

Можно посмотреть открыв в valkyrie
lyx под valkyrie работает, но там столько ошибок и утечек...
Comment 7 Andriy Stepanov (stanv) 2008-09-18 13:31:56 MSD
Created attachment 2924 [details]
.lyx/session

Если скопировать этот файл как ~/.lyx/session то у меня lyx перестает падать.
Comment 8 Andriy Stepanov (stanv) 2008-09-18 13:35:46 MSD
https://bugs.launchpad.net/ubuntu/+source/lyx/+bug/228067
Comment 9 Valery Pipin 2008-09-18 14:42:46 MSD
(In reply to comment #7)
> Created an attachment (id=2924) [details]
> .lyx/session
> 
> Если скопировать этот файл как ~/.lyx/session то у меня lyx перестает падать.
>
Действительно. В этом случае стартует. Но после падает если попытаться что-нибудь открыть. 1.5.5 - работает, почему бы не перенести? 
Comment 10 Valery Pipin 2008-09-18 14:52:33 MSD
(In reply to comment #8)
> https://bugs.launchpad.net/ubuntu/+source/lyx/+bug/228067
> 

Там как раз советуют обновить до 1.5.5. Текущая стабильная версия lyx-1.5.6.
Мне кажется, что есть много оснований собрать именно 1.5.6
Список изменений:

What's new in version 1.5.6?
----------------------------

** Updates:
***********

* DOCUMENTATION AND LOCALIZATION

- New (and complete!) Ukrainian localization of the user interface.

- Updated localization of the user interface for Czech, French, Galician,
  German, Italian, Polish, Portuguese and Japanese.


* DOCUMENT INPUT/OUTPUT

- New layout and template files for the Journal of Statistical Software
  (JSS).

- The importer for comma separated value (*.csv) files has been rewritten.
  Now the column separator character is automatically detected.
  Furthermore, the feature has been renamed to "Import->Table (CSV)".

- Paragraph line spacing settings are now imported when importing LaTeX
  files (bug 20).

- The paper orientation is now imported when importing LaTeX files.

- The paper layout and the number of text columns are now imported when
  importing LaTeX files (bug 4867).

- Add support for the xindy index processor (bug 4732).

- Add support for Graphviz Dot files (bug 4882).

- The A&A document class and template has been updated to conform to
  version 6.0 of the A&A specification (bug 4928).

- The 'Case' environment in the AMS classes has been rewritten to produce
  better output.


* USER INTERFACE

- Reenable quote display code, which was not working since 1.5.0.

- Implement properly word-movement code for both windows and mac
  conventions (bugs 2815 and 3580). This uses the new lyxrc variable
  \mac_like_word_movement, which is set to true by default on Mac OS X.
  It could be useful to emacs nostalgics too.


** Bug fixes:
*************

* DOCUMENT INPUT/OUTPUT

- Fix a LaTeX error with nested insets in CJK documents (bug 4913).

- Make sure that a GREEK SMALL LETTER SIGMA is not automatically turned 
  into a GREEK SMALL LETTER FINAL SIGMA (and vice versa) on LaTeX output
  (bug 4966).

- Fix LaTeX export of combining characters in utf-8* encodings (bug 4946).

- Output paper size information to dvi or pdf documents when using
  landscape orientation, such that viewers can properly display them
  (bug 2721).

- Fix encoding errors when typewriter font is used (bug 4727).

- Correct the kerning between two subsequent '<' or '>' characters.


* USER INTERFACE

- Fix crash related to the outline pane with some documents (bug 4857).

- Fix crash when clicking with middle button on a collapsable inset
  (bug 4662).

- Fix crash when an outlining function was used for a section inside an
  inset (bug 5004). These functions are now disabled for section that
  are not in the main text area.

- Fix input of numeric values in non-english locales (bug 4951).

- Fix display of filters such as "LaTeX (plain)" in the file dialog.

- Fix error navigation with the keyboard (bug 4895).

- When inserting an inset over a selection, do not copy the selection
  to clipboard if we do not intend to paste it later (bug 4977).

- When inserting an inset over a selection, do not remove space at
  start of paragraph (bug 2018).

- Allow the use of eqrefs in mathed (bug 4623).

- Fix shape of braces, '$', '%', '&', and '#', which where incorrectly
  shown in italics in mathed (bug 4320).

- Fix display of unknown math macros, which were incorrectly shown in
  italics (bug 2594).

- Use appropriate font in notes and ERT insets in section headings
  (bug 2477).

- Fix wheel mouse scrolling when it is set to "One screen at a time
  (bug 4972).

- Fix obscure 7 years-old bug with functions whose state can be toggled.


Comment 11 Andriy Stepanov (stanv) 2008-09-19 10:35:52 MSD
В бранч 4.1 поступил lyx-1.5.5-alt0.M41.1
1.5.6 выложить сложно, так как его еще нету в сизифе