Re: pdf (lua) of a lyx document
Le 02/02/2022 à 09:48, Wolfgang Engelmann via lyx-users a écrit : I use lyx 2.4.0dev (Debian) starting lyx from a terminal, selecting a certain document and trying to view it by export pdflua leads to this in the terminal wolfgang@Fuji:~/Dokumente/PUBLIKATIONEN-EIGENE/A-SP-2022$ lyx qt.qpa.xcb: QXcbConnection: XCB error: 5 (BadAtom), sequence: 597, resource id: 0, major code: 20 (GetProperty), minor code: 0 Warning: Failed to produce 1 preview snippet(s) /usr/include/c++/10/bits/stl_stack.h:274: void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::__debug::dequestd::allocator >]: Assertion '__builtin_expect(!this->empty(), true)' failed. Abgebrochen Wolfgang, could you share the document that causes issues (at least privately)? The assertion above (I ignore the QXcbConnection stuff for now) means that stack::pop() is called on a stack which is already empty (this methods removes one object from a stack). In our code, there are two places where such a stack is used: output_latex.cpp (LaTeX output) and output_xhtml.cpp (HTML output). Since your document is exported to late for LuaLaTeX, it has to be the former. The place where this pop() method is used (popLanguageName) is related to our use of nested languages. And indeed, it does not check that some language has been saved before pop-ing it. At this point, having a document that triggers the issue would be very useful. Then I am sure that Jürgen or Enrico will be able to take over. JMarc -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: pdf (lua) of a lyx document
Le 02/02/2022 à 10:05, José Abílio Matos via lyx-users a écrit : On Wednesday, 2 February 2022 08.48.18 WET Wolfgang Engelmann via lyx-users wrote: I use lyx 2.4.0dev (Debian) starting lyx from a terminal, selecting a certain document and trying to view it by export pdflua leads to this in the terminal wolfgang@Fuji:~/Dokumente/PUBLIKATIONEN-EIGENE/A-SP-2022$ lyx qt.qpa.xcb: QXcbConnection: XCB error: 5 (BadAtom), sequence: 597, resource id: 0, major code: 20 (GetProperty), minor code: 0 Warning: Failed to produce 1 preview snippet(s) /usr/include/c++/10/bits/stl_stack.h:274: void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::__debug::deque >]: Assertion '__builtin_expect(!this->empty(), true)' failed. I had reported before under lyx 2.4.0dev crashes and wonder whether it is the same issue. Yes probably. What should I do? From the build directory (tip: you can run LyX from there without installing): 1/ make sure that you have pulled the latest changes from git and built them 2/ run "gdb src/lyx" 3/ when you see the "(gdb)" prompt, type the following commands catch throw run [do the crashing thing] bt 4/ send the output of the bt command f you have issues with thunderbird, try to close it before debugging. p.s. if I compile lyx again, should I use ./configure --enable-debug since I am not familiar with gdb? Usually this type of discussion are more appropriate in lyx-devel mailing list. Indeed. But encouraging users to use latest version is good. But I am not sure that this particular instance is encouraging :) With that said if you use --enable-debug use also --enable-stdlib-debug that it will help as well. These are on by default with development builds. JMarc -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
Re: pdf (lua) of a lyx document
On Wednesday, 2 February 2022 08.48.18 WET Wolfgang Engelmann via lyx-users wrote: > I use lyx 2.4.0dev (Debian) > starting lyx from a terminal, selecting a certain document and trying to > view it by export pdflua > leads to this in the terminal > > wolfgang@Fuji:~/Dokumente/PUBLIKATIONEN-EIGENE/A-SP-2022$ lyx > qt.qpa.xcb: QXcbConnection: XCB error: 5 (BadAtom), sequence: 597, > resource id: 0, major code: 20 (GetProperty), minor code: 0 > Warning: Failed to produce 1 preview snippet(s) > /usr/include/c++/10/bits/stl_stack.h:274: void std::stack<_Tp, > _Sequence>::pop() [with _Tp = int; _Sequence = std::__debug::deque std::allocator >]: Assertion '__builtin_expect(!this->empty(), > true)' failed. > Abgebrochen > wolfgang@Fuji:~/Dokumente/PUBLIKATIONEN-EIGENE/A-SP-2022$ > > I had reported before under > lyx 2.4.0dev crashes > and wonder whether it is the same issue. > > What should I do? > Go back to Lyx 2.3.x? > Compile the 2.4 anew (in case it has changed in the meantime)? > > This error does not happen with other lyx documents which I tried > > Wolfgang > > p.s. if I compile lyx again, should I use > ./configure --enable-debug > since I am not familiar with gdb? Usually this type of discussion are more appropriate in lyx-devel mailing list. With that said if you use --enable-debug use also --enable-stdlib-debug that it will help as well. As usual with bug reports it helps to find, when possible, a minimal working example. Regards, -- José Abílio -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users
pdf (lua) of a lyx document
I use lyx 2.4.0dev (Debian) starting lyx from a terminal, selecting a certain document and trying to view it by export pdflua leads to this in the terminal wolfgang@Fuji:~/Dokumente/PUBLIKATIONEN-EIGENE/A-SP-2022$ lyx qt.qpa.xcb: QXcbConnection: XCB error: 5 (BadAtom), sequence: 597, resource id: 0, major code: 20 (GetProperty), minor code: 0 Warning: Failed to produce 1 preview snippet(s) /usr/include/c++/10/bits/stl_stack.h:274: void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::__debug::dequestd::allocator >]: Assertion '__builtin_expect(!this->empty(), true)' failed. Abgebrochen wolfgang@Fuji:~/Dokumente/PUBLIKATIONEN-EIGENE/A-SP-2022$ I had reported before under lyx 2.4.0dev crashes and wonder whether it is the same issue. What should I do? Go back to Lyx 2.3.x? Compile the 2.4 anew (in case it has changed in the meantime)? This error does not happen with other lyx documents which I tried Wolfgang p.s. if I compile lyx again, should I use ./configure --enable-debug since I am not familiar with gdb? -- lyx-users mailing list lyx-users@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-users