Thank you, Lasgouttes, for your help and rapid turn-around. Much appreciated.

I am a novice user of LyX but a long-term/experienced user of Latex (mostly using TeXShop as an editor). I was attracted to LyX (at last) by the new implementation of Lilypond which seems to work much better in LyX than in any other LaTeX environment I’ve used.

As an exercise in familiarising myself with LyX, I am trying to import a somewhat detailed LuaLaTeX (‘Memoir’) document — NOT a Lilypond document — that is entirely a preamble to included latex files. I have not tried to import other LaTeX files.

I’ll experiment some more. If I find other crashes I’ll report. But on the whole, so far, this seems a pretty robust and capable environment.

Best,

Peter

On 24 Jan 2018, at 19:53, LyX Ticket Tracker wrote:

#10994: Lyx 2.3.3 crash report (on tex file import)
-------------------------+--------------------------
 Reporter:  pwgallagher  |       Owner:  lasgouttes
     Type:  defect       |      Status:  new
 Priority:  normal       |   Milestone:
Component:  general      |     Version:  unspecified
 Severity:  blocker      |  Resolution:
 Keywords:  crash        |
-------------------------+--------------------------

Old description:

When attempting to import a .tex file (LaTeX). Mac OS 10.13.2. From the
crash dialog (apologies for the junk):

——— BEGINS ———-

(  1) 1   lyx                                 0x0000000108f3ed93
_ZN3lyx8frontend5Alert7doErrorERKNSt3__112basic_stringIwNS2_11char_traitsIwEENS2_9allocatorIwEEEESA_b
: 1   lyx                                 0x0000000108f3ed93
_ZN3lyx8frontend5Alert7doErrorERKNSt3__112basic_stringIwNS2_11char_traitsIwEENS2_9allocatorIwEEEESA_b
+ 190
(  2) 2   lyx                                 0x0000000108f3f2c9
_ZN3lyx8frontend5Alert5errorERKNSt3__112basic_stringIwNS2_11char_traitsIwEENS2_9allocatorIwEEEESA_b
: 2   lyx                                 0x0000000108f3f2c9
_ZN3lyx8frontend5Alert5errorERKNSt3__112basic_stringIwNS2_11char_traitsIwEENS2_9allocatorIwEEEESA_b
+ 149
(  3) 3   lyx                                 0x0000000108cc8dab
_ZN3lyx13error_handlerEi : 3   lyx
0x0000000108cc8dab _ZN3lyx13error_handlerEi + 506
(  4) 4   libsystem_platform.dylib            0x00007fff5a2d7f5a
_sigtramp : 4 libsystem_platform.dylib 0x00007fff5a2d7f5a
_sigtramp + 26
(  5) 5   lyx                                 0x0000000108f4602e
_ZThn16_NK3lyx8frontend14GuiApplication9getStatusERKNS_11FuncRequestE : 5
lyx                                 0x0000000108f4602e
_ZThn16_NK3lyx8frontend14GuiApplication9getStatusERKNS_11FuncRequestE +
18
(  6) 6   lyx                                 0x0000000108f2454b
_ZN3lyx8frontend6Action18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv
: 6   lyx                                 0x0000000108f2454b
_ZN3lyx8frontend6Action18qt_static_metacallEP7QObjectN11QMetaObject4CallEiPPv
+ 157
(  7) 7   QtCore                              0x000000010a1afb69
_ZN11QMetaObject8activateEP7QObjectiiPPv : 7   QtCore
0x000000010a1afb69 _ZN11QMetaObject8activateEP7QObjectiiPPv + 3113
(  8) 8   QtWidgets                           0x000000010a5eae27
_ZN7QAction8activateENS_11ActionEventE : 8   QtWidgets
0x000000010a5eae27 _ZN7QAction8activateENS_11ActionEventE + 263
(  9) 9   QtCore                              0x000000010a1afb69
_ZN11QMetaObject8activateEP7QObjectiiPPv : 9   QtCore
0x000000010a1afb69 _ZN11QMetaObject8activateEP7QObjectiiPPv + 3113
( 10) 10  QtCore                              0x000000010a1a7b71
_ZN7QObject5eventEP6QEvent : 10  QtCore
0x000000010a1a7b71 _ZN7QObject5eventEP6QEvent + 801
( 11) 11  QtWidgets                           0x000000010a5f47cd
_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent : 11 QtWidgets
0x000000010a5f47cd
_ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 301
( 12) 12  QtWidgets                           0x000000010a5f5b47
_ZN12QApplication6notifyEP7QObjectP6QEvent : 12  QtWidgets
0x000000010a5f5b47 _ZN12QApplication6notifyEP7QObjectP6QEvent + 391
( 13) 13  lyx                                 0x0000000108f4f4fc
_ZN3lyx8frontend14GuiApplication6notifyEP7QObjectP6QEvent : 13  lyx
0x0000000108f4f4fc
_ZN3lyx8frontend14GuiApplication6notifyEP7QObjectP6QEvent + 22
( 14) 14  QtCore                              0x000000010a17dcc4
_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent : 14  QtCore
0x000000010a17dcc4
_ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent + 164
( 15) 15  QtCore                              0x000000010a17ee1b
_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData :
15  QtCore                              0x000000010a17ee1b
_ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjectiP11QThreadData +
891
( 16) 16  libqcocoa.dylib                     0x000000010b2cf70e
_ZN28QCocoaEventDispatcherPrivate19processPostedEventsEv : 16
libqcocoa.dylib                     0x000000010b2cf70e
_ZN28QCocoaEventDispatcherPrivate19processPostedEventsEv + 190
( 17) 17  libqcocoa.dylib                     0x000000010b2cffd1
_ZN28QCocoaEventDispatcherPrivate26postedEventsSourceCallbackEPv : 17
libqcocoa.dylib                     0x000000010b2cffd1
_ZN28QCocoaEventDispatcherPrivate26postedEventsSourceCallbackEPv + 33
( 18) 18  CoreFoundation                      0x00007fff328245a1
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ : 18
CoreFoundation                      0x00007fff328245a1
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
( 19) 19  CoreFoundation                      0x00007fff328de35c
__CFRunLoopDoSource0 : 19  CoreFoundation
0x00007fff328de35c __CFRunLoopDoSource0 + 108
( 20) 20  CoreFoundation                      0x00007fff32807040
__CFRunLoopDoSources0 : 20  CoreFoundation
0x00007fff32807040 __CFRunLoopDoSources0 + 208
( 21) 21  CoreFoundation                      0x00007fff328064bd
__CFRunLoopRun : 21  CoreFoundation
0x00007fff328064bd __CFRunLoopRun + 1293
( 22) 22  CoreFoundation                      0x00007fff32805d23
CFRunLoopRunSpecific : 22  CoreFoundation
0x00007fff32805d23 CFRunLoopRunSpecific + 483
( 23) 23  HIToolbox                           0x00007fff31b1de26
RunCurrentEventLoopInMode : 23  HIToolbox
0x00007fff31b1de26 RunCurrentEventLoopInMode + 286
( 24) 24  HIToolbox                           0x00007fff31b1da9f
ReceiveNextEventCommon : 24  HIToolbox
0x00007fff31b1da9f ReceiveNextEventCommon + 366
( 25) 25  HIToolbox                           0x00007fff31b1d914
_BlockUntilNextEventMatchingListInModeWithFilter : 25  HIToolbox
0x00007fff31b1d914 _BlockUntilNextEventMatchingListInModeWithFilter + 64
( 26) 26  AppKit                              0x00007fff2fde8f5f
_DPSNextEvent : 26  AppKit
0x00007fff2fde8f5f _DPSNextEvent + 2085
( 27) 27  AppKit                              0x00007fff3057eb4c
-[NSApplication: 27  AppKit
0x00007fff3057eb4c -[NSApplication(NSEvent)
_nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
( 28) 28  AppKit                              0x00007fff2fdddd6d
-[NSApplication run] : 28  AppKit
0x00007fff2fdddd6d -[NSApplication run] + 764
( 29) 29  libqcocoa.dylib                     0x000000010b2ced3d
_ZN21QCocoaEventDispatcher13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
: 29  libqcocoa.dylib                     0x000000010b2ced3d
_ZN21QCocoaEventDispatcher13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE
+ 2445
( 30) 30  QtCore                              0x000000010a179851
_ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE : 30  QtCore
0x000000010a179851 _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE
+ 417
( 31) 31  QtCore                              0x000000010a17e368
_ZN16QCoreApplication4execEv : 31  QtCore
0x000000010a17e368 _ZN16QCoreApplication4execEv + 392
( 32) 32  lyx                                 0x0000000108cc466e
_ZN3lyx3LyX4execERiPPc : 32  lyx
0x0000000108cc466e _ZN3lyx3LyX4execERiPPc + 982
( 33) 33 lyx 0x0000000108ba3c33 main :
33  lyx                                 0x0000000108ba3c33 main + 71
( 34) 34 lyx 0x0000000108ba3be4 start :
34  lyx                                 0x0000000108ba3be4 start + 52
( 35) 35 ??? 0x0000000000000001 0x0 : 35
???                                 0x0000000000000001 0x0 + 1

——— ENDS ——---

New description:

When attempting to import a .tex file (LaTeX). Mac OS 10.13.2. From the
 crash dialog (apologies for the junk):
 {{{
 (  1) 1   lyx                                 0x0000000108f3ed93
 lyx::frontend::Alert::doError(std::__1::basic_string<wchar_t,
std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&,
 std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>,
 std::__1::allocator<wchar_t> > const&, bool) : 1   lyx
 0x0000000108f3ed93
 lyx::frontend::Alert::doError(std::__1::basic_string<wchar_t,
std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&,
 std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>,
 std::__1::allocator<wchar_t> > const&, bool) + 190
 (  2) 2   lyx                                 0x0000000108f3f2c9
 lyx::frontend::Alert::error(std::__1::basic_string<wchar_t,
std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&,
 std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>,
 std::__1::allocator<wchar_t> > const&, bool) : 2   lyx
 0x0000000108f3f2c9
 lyx::frontend::Alert::error(std::__1::basic_string<wchar_t,
std::__1::char_traits<wchar_t>, std::__1::allocator<wchar_t> > const&,
 std::__1::basic_string<wchar_t, std::__1::char_traits<wchar_t>,
 std::__1::allocator<wchar_t> > const&, bool) + 149
 (  3) 3   lyx                                 0x0000000108cc8dab
 lyx::error_handler(int) : 3   lyx
 0x0000000108cc8dab lyx::error_handler(int) + 506
 (  7) 7   QtCore                              0x000000010a1afb69
 QMetaObject::activate(QObject*, int, int, void**) : 7   QtCore
0x000000010a1afb69 QMetaObject::activate(QObject*, int, int, void**) +
 3113
 (  8) 8   QtWidgets                           0x000000010a5eae27
 QAction::activate(QAction::ActionEvent) : 8   QtWidgets
 0x000000010a5eae27 QAction::activate(QAction::ActionEvent) + 263
 (  9) 9   QtCore                              0x000000010a1afb69
 QMetaObject::activate(QObject*, int, int, void**) : 9   QtCore
0x000000010a1afb69 QMetaObject::activate(QObject*, int, int, void**) +
 3113
 ( 10) 10  QtCore                              0x000000010a1a7b71
 QObject::event(QEvent*) : 10  QtCore
 0x000000010a1a7b71 QObject::event(QEvent*) + 801
 ( 11) 11  QtWidgets                           0x000000010a5f47cd
 QApplicationPrivate::notify_helper(QObject*, QEvent*) : 11  QtWidgets
0x000000010a5f47cd QApplicationPrivate::notify_helper(QObject*, QEvent*) +
 301
 ( 12) 12  QtWidgets                           0x000000010a5f5b47
 QApplication::notify(QObject*, QEvent*) : 12  QtWidgets
 0x000000010a5f5b47 QApplication::notify(QObject*, QEvent*) + 391
 ( 13) 13  lyx                                 0x0000000108f4f4fc
 lyx::frontend::GuiApplication::notify(QObject*, QEvent*) : 13  lyx
 0x0000000108f4f4fc lyx::frontend::GuiApplication::notify(QObject*,
 QEvent*) + 22
 ( 14) 14  QtCore                              0x000000010a17dcc4
 QCoreApplication::notifyInternal2(QObject*, QEvent*) : 14  QtCore
0x000000010a17dcc4 QCoreApplication::notifyInternal2(QObject*, QEvent*) +
 164
 ( 15) 15  QtCore                              0x000000010a17ee1b
QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) :
 15  QtCore                              0x000000010a17ee1b
QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) +
 891
 ( 16) 16  libqcocoa.dylib                     0x000000010b2cf70e
QCocoaEventDispatcherPrivate::processPostedEvents() : 16 libqcocoa.dylib 0x000000010b2cf70e QCocoaEventDispatcherPrivate::processPostedEvents() +
 190
 ( 17) 17  libqcocoa.dylib                     0x000000010b2cffd1
 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) : 17
 libqcocoa.dylib                     0x000000010b2cffd1
 QCocoaEventDispatcherPrivate::postedEventsSourceCallback(void*) + 33
 ( 18) 18  CoreFoundation                      0x00007fff328245a1
 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ : 18
 CoreFoundation                      0x00007fff328245a1
 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
 ( 19) 19  CoreFoundation                      0x00007fff328de35c
 __CFRunLoopDoSource0 : 19  CoreFoundation
 0x00007fff328de35c __CFRunLoopDoSource0 + 108
 ( 20) 20  CoreFoundation                      0x00007fff32807040
 __CFRunLoopDoSources0 : 20  CoreFoundation
 0x00007fff32807040 __CFRunLoopDoSources0 + 208
 ( 21) 21  CoreFoundation                      0x00007fff328064bd
 __CFRunLoopRun : 21  CoreFoundation
 0x00007fff328064bd __CFRunLoopRun + 1293
 ( 22) 22  CoreFoundation                      0x00007fff32805d23
 CFRunLoopRunSpecific : 22  CoreFoundation
 0x00007fff32805d23 CFRunLoopRunSpecific + 483
 ( 23) 23  HIToolbox                           0x00007fff31b1de26
 RunCurrentEventLoopInMode : 23  HIToolbox
 0x00007fff31b1de26 RunCurrentEventLoopInMode + 286
 ( 24) 24  HIToolbox                           0x00007fff31b1da9f
 ReceiveNextEventCommon : 24  HIToolbox
 0x00007fff31b1da9f ReceiveNextEventCommon + 366
 ( 25) 25  HIToolbox                           0x00007fff31b1d914
 _BlockUntilNextEventMatchingListInModeWithFilter : 25  HIToolbox
0x00007fff31b1d914 _BlockUntilNextEventMatchingListInModeWithFilter + 64
 ( 26) 26  AppKit                              0x00007fff2fde8f5f
_DPSNextEvent : 26 AppKit 0x00007fff2fde8f5f
 _DPSNextEvent + 2085
 ( 27) 27  AppKit                              0x00007fff3057eb4c
 -[NSApplication: 27  AppKit
 0x00007fff3057eb4c -[NSApplication(NSEvent)
 _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
 ( 28) 28  AppKit                              0x00007fff2fdddd6d
 -[NSApplication run] : 28  AppKit
 0x00007fff2fdddd6d -[NSApplication run] + 764
 ( 29) 29  libqcocoa.dylib                     0x000000010b2ced3d
 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
 : 29  libqcocoa.dylib                     0x000000010b2ced3d
 QCocoaEventDispatcher::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
 + 2445
 ( 30) 30  QtCore                              0x000000010a179851
 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) : 30  QtCore
0x000000010a179851 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)
 + 417
 ( 31) 31  QtCore                              0x000000010a17e368
 QCoreApplication::exec() : 31  QtCore
 0x000000010a17e368 QCoreApplication::exec() + 392
 ( 32) 32  lyx                                 0x0000000108cc466e
 lyx::LyX::exec(int&, char**) : 32  lyx
 0x0000000108cc466e lyx::LyX::exec(int&, char**) + 982
( 33) 33 lyx 0x0000000108ba3c33 main : 33
 lyx                                 0x0000000108ba3c33 main + 71
( 34) 34 lyx 0x0000000108ba3be4 start :
 34  lyx                                 0x0000000108ba3be4 start + 52
( 35) 35 ??? 0x0000000000000001 0x0 : 35
 ???                                 0x0000000000000001 0x0 + 1
 }}}

--

Comment (by lasgouttes):

I reformatted and demangled the backtrace. It looks like the interesting
 lines are
 {{{
( 4) 4 libsystem_platform.dylib 0x00007fff5a2d7f5a _sigtramp : 4 libsystem_platform.dylib 0x00007fff5a2d7f5a _sigtramp +
 26
 (  5) 5   lyx                                 0x0000000108f4602e non-
virtual thunk to lyx::frontend::GuiApplication::getStatus(lyx::FuncRequest const&) const : 5 lyx 0x0000000108f4602e
 non-virtual thunk to
lyx::frontend::GuiApplication::getStatus(lyx::FuncRequest const&) const +
 18
 (  6) 6   lyx                                 0x0000000108f2454b
lyx::frontend::Action::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) : 6 lyx 0x0000000108f2454b lyx::frontend::Action::qt_static_metacall(QObject*, QMetaObject::Call,
 int, void**) + 157
 }}}

Something wrong is happening in {{{GuiApplication::getStatus}}}, but there
 is no way to know what.

 Is the issue happening with any .tex file?

--
Ticket URL: <http://www.lyx.org/trac/ticket/10994#comment:2>
The LyX Project <http://www.lyx.org/>
LyX -- The Document Processor

Reply via email to