lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] 'less': stuck at end


From: Greg Chicares
Subject: [lmi] 'less': stuck at end
Date: Wed, 17 Mar 2021 21:24:15 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0

I want to run a GTK build of lmi and see exception backtraces,
but I don't want my terminal buffer to be flushed by a lengthy
stream of GTK messages...so I pipe lmi_wx_shared into 'less':

$LD_LIBRARY_PATH=/opt/lmi/gcc_x86_64-pc-linux-gnu/build/ship:$LD_LIBRARY_PATH  
/opt/lmi/bin/lmi_wx_shared --ash_nazg --data_path=/opt/lmi/data 2>&1 |less -FS

Now, after some scrolling, I get past the GTK stuff and can
see the early lines of the stack trace:

(lmi_wx_shared:10353): Gtk-CRITICAL **: 21:05:21.419: 
gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkSpinButton
Exception type: 'std::runtime_error'
# 0 0x7f277e280f76: /opt/lmi/src/lmi/unwind.cpp:194 __cxa_throw
# 1 0x7f277e1c5fcc: /opt/lmi/src/lmi/bourn_cast.hpp:192 bool 
product_database::query<bool>(e_database_key) const
# 2 0x7f277e1c2f1f: /opt/lmi/src/lmi/input_harmonization.cpp:131 
Input::DoHarmonize()
# 3 0x7f277e26467c: /opt/lmi/src/lmi/mvc_model.cpp:162 MvcModel::Harmonize()
# 4 0x7f277e264822: /opt/lmi/src/lmi/mvc_model.cpp:104 MvcModel::Reconcile()

...but if I scroll down to the end...

#61 0x7f277c40e7a5: ???:0 gtk_main
#62 0x7f277d8325e5: ???:0 wxGUIEventLoop::DoRun()
#63 0x7f277d6c63d6: ???:0 wxEventLoopBase::Run()
#64 0x7f277d693427: ???:0 wxAppConsoleBase::MainLoop()
#65 0x7f277d70def6: ???:0 wxEntry(int&, wchar_t**)
#66 0x55d122c16350: /opt/lmi/src/lmi/main_wx.cpp:93 main
#67 0x7f277cf0fcca: ???:0 __libc_start_main
#68 0x55d122c163ea: ???:0 _start
Cannot cast negative to unsigned.

(lmi_wx_shared:10353): Gtk-CRITICAL **: 21:05:31.666: 
gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

...then I'm stuck in 'less'. I can't scroll up to see the beginning
of the stack trace again...unless I hit Ctrl-C, which terminates
lmi abruptly.

Same outcome if I remove 'F' from the 'less' command line above:
-   2>&1 |less -FS
+   2>&1 |less -S
and either hit shift-F in less, or just scroll all the way to the
bottom without '-F' on the command line or 'F' from the keyboard.

Is there any way to tell 'less' to wake up without killing lmi?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]