Author Topic: Hangs...  (Read 9698 times)

joecar

  • Senior Community Member
  • Posts: 424
  • Hero Points: 9
  • engineer/gearhead
Hangs...
« on: October 14, 2019, 10:22:10 PM »
SlickEdit Pro 2019 (v24.0.0.8 64-bit)

Sometimes SlickEdit hangs, with cursor spinning, indefinitely... I'm not sure what happened leading up to this.


Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: Hangs...
« Reply #1 on: October 15, 2019, 12:01:51 AM »
In this case, can the editor be interrupted if you press Ctrl+Alt+Shift+F2 or Ctrl+Alt+Shift+F9 ?

Note, on MacOS, the combination to interrupt the interpreter is Ctrl+Option+Command+(s or t)

If so, could you post the resulting Slick-C stack ?

joecar

  • Senior Community Member
  • Posts: 424
  • Hero Points: 9
  • engineer/gearhead
Re: Hangs...
« Reply #2 on: October 15, 2019, 04:22:16 PM »
Ok, will do when it happens again.

joecar

  • Senior Community Member
  • Posts: 424
  • Hero Points: 9
  • engineer/gearhead
Re: Hangs...
« Reply #3 on: October 15, 2019, 05:08:32 PM »
Hang occured again, I did Ctrl+Alt+Shift+F9, editor interrupted with the following:

Quote from: popup
---------------------------
Slick-C Error
---------------------------
file=toolwindow.ex offset=1983
---------------------------
OK   
---------------------------

Quote from: popup
---------------------------
Slick-C Error
---------------------------
file=last.ex offset=2336
---------------------------
OK   
---------------------------

Quote from: Slick-C Stack
Break key pressed.  Macro halted
toolwindow.ex 1983 toolwindow:_onCreateAlreadyCalled()   p_window_id: 140   p_object: OI_FORM   p_name: _tbcbrowser_form
toolwindow.ex 2070 tw_find_form(_tbcbrowser_form,0,-1)   p_window_id: 140   p_object: OI_FORM   p_name: _tbcbrowser_form
cbrowser.ex 645 _tbGetActiveSymbolsForm()   p_window_id: 749   p_object: OI_EDITOR   p_name: edit1
cbrowser.ex 61385 _GetCBrowserWID()   p_window_id: 749   p_object: OI_EDITOR   p_name: edit1
cbrowser.ex 4114 cbrowser:_GetCBrowserLookinOption()   p_window_id: 749   p_object: OI_EDITOR   p_name: edit1
cbrowser.ex 8270 _switchbuf_symbols_browser(,W,<empty>,-1)   p_window_id: 749   p_object: OI_EDITOR   p_name: edit1
files.ex 12919 call_list(_switchbuf_,,W,<empty>,-1)   p_window_id: 748   p_object: OI_FORM   p_name: _tbslickc_stack_form
stdprocs.ex 13500 switch_buffer(,W,<empty>,-1)   p_window_id: 748   p_object: OI_FORM   p_name: _tbslickc_stack_form
stdprocs.ex 13248 _on_got_focus()   p_window_id: 748   p_object: OI_FORM   p_name: _tbslickc_stack_form

Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: Hangs...
« Reply #4 on: October 15, 2019, 07:19:37 PM »
Could you attach your <config dir>/logs/stack.log.  It looks like these stacks were truncated.

Taeguk

  • Community Member
  • Posts: 25
  • Hero Points: 3
Re: Hangs...
« Reply #5 on: October 15, 2019, 07:45:35 PM »
FYI,

I have been seeing SE v24.0.0.8 hang / freeze with Ubuntu 14.04 and Ubuntu 18.04 as well. I have a case file open, but did post a screen snapshot, gdb stack trace and maps file.
Reference: https://community.slickedit.com/index.php/topic,17247.0.html

b

  • Senior Community Member
  • Posts: 325
  • Hero Points: 26
Re: Hangs...
« Reply #6 on: October 16, 2019, 02:36:04 AM »

Just saw this via my Ubuntu 16.04.6.


Totally locked up an unresponsive to keys mentioned.   I did capture the following via a gdb and strace.  htop show one CPU core running at 100% for the vs_exe.


gdb -p 9501
Code: [Select]
0x0000000000739423 in tab_pos2(int, int, hfile_t*) ()
(gdb) bt
#0  0x0000000000739423 in tab_pos2(int, int, hfile_t*) ()
#1  0x0000000000739dbb in hTextColCurLine(int, unsigned char, fileview_t*, hfile_t*, bool*) ()
#2  0x0000000000739f7e in vsPosQCol2 ()
#3  0x000000000075f1b2 in VSSEARCHPOS_editor::isMatchValid(long long, cmFindFlags, cmFindEncoding, cmBitSet&) ()
#4  0x0000000001b98066 in cmRegexEngine::op_FinalState() ()
#5  0x0000000001b96a63 in cmRegexEngine::callop() ()
#6  0x0000000001b976a7 in cmRegexEngine::runRegex() ()
#7  0x0000000001baf8d2 in cmRegexEngine::findStrSBCSByteSet(cmI_Pos*, bool) ()
#8  0x0000000001b97a9c in cmStrFindEx::findNext2() ()
#9  0x000000000074b0fe in seFind(int, int, int, long long, int (*)(long long, long long, long long, void*), void*, bool) ()
#10 0x000000000075c427 in initsearch(int, int, long long, int (*)(long long, long long, long long, void*), void*, bool) [clone .constprop.239] ()
#11 0x000000000075d97b in vsaSearch2(unsigned char*, int, unsigned char*, int, unsigned char*, int, long long*, int (*)(long long, long long, long long, void*), void*, int (*)(void*), void*) ()
#12 0x000000000075df89 in psearch_op() ()
#13 0x00000000005b8b62 in run_proc(int) ()
#14 0x00000000005a51a0 in run_proc_immediate2(m_s*, int, int, VSARGTYPE*, int, int) [clone .isra.9] ()
#15 0x00000000005a6565 in run_callback_immediate(VSCALLPTR*, int, VSARGTYPE*, int, int) ()
#16 0x000000000079a077 in se_call_callback(filewindow_t*, VSCALLPTR*, int, int, VSARGTYPE*, int) ()
#17 0x0000000000640fb2 in vs_execute_timer_event(int) ()
#18 0x00007fbeeee27b8b in QObject::event(QEvent*) () from /home/b/slickedit-pro2019/bin/libQtCore.so.4
#19 0x00007fbeef3fa463 in QWidget::event(QEvent*) () from /home/b/slickedit-pro2019/bin/libQtGui.so.4
#20 0x00007fbeef3a9fec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/b/slickedit-pro2019/bin/libQtGui.so.4
#21 0x00007fbeef3b069b in QApplication::notify(QObject*, QEvent*) () from /home/b/slickedit-pro2019/bin/libQtGui.so.4
#22 0x00007fbeeee10c7d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /home/b/slickedit-pro2019/bin/libQtCore.so.4
#23 0x00007fbeeee3f12b in ?? () from /home/b/slickedit-pro2019/bin/libQtCore.so.4
#24 0x00007fbeeee3c379 in ?? () from /home/b/slickedit-pro2019/bin/libQtCore.so.4
#25 0x00007fbee90e2197 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007fbee90e23f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007fbee90e249c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007fbeeee3cc9d in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/b/slickedit-pro2019/bin/libQtCore.so.4
#29 0x00007fbeef447606 in ?? () from /home/b/slickedit-pro2019/bin/libQtGui.so.4
#30 0x00007fbeeee0f961 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/b/slickedit-pro2019/bin/libQtCore.so.4
#31 0x00007fbeeee0fc75 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/b/slickedit-pro2019/bin/libQtCore.so.4
#32 0x00007fbeeee14c19 in QCoreApplication::exec() () from /home/b/slickedit-pro2019/bin/libQtCore.so.4
#33 0x00000000004beaaa in vmain(int, char**) ()
#34 0x0000000001931959 in xmain ()
#35 0x0000000000467539 in main ()


strace -p 9501  (just a snippet as it appears to be stuck in a resource loop)
Code: [Select]
strace: Process 9501 attached
strace: [ Process PID=9501 runs in x32 mode. ]
strace: [ Process PID=9501 runs in 64 bit mode. ]
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{",\0\1\0", 4}, {NULL, 0}, {"", 0}], 3) = 4
poll([{fd=6, events=POLLIN}], 1, -1)    = 1 ([{fd=6, revents=POLLIN}])
recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\264!\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 40
recvmsg(6, 0x7ffdd3db1340, 0)           = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(6, 0x7ffdd3db1340, 0)           = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{",\0\1\0", 4}, {NULL, 0}, {"", 0}], 3) = 4
poll([{fd=6, events=POLLIN}], 1, -1)    = 1 ([{fd=6, revents=POLLIN}])
recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\265!\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 40
recvmsg(6, 0x7ffdd3db17e0, 0)           = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(6, 0x7ffdd3db17e0, 0)           = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{",\0\1\0", 4}, {NULL, 0}, {"", 0}], 3) = 4
poll([{fd=6, events=POLLIN}], 1, -1)    = 1 ([{fd=6, revents=POLLIN}])
recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\266!\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 40
recvmsg(6, 0x7ffdd3db1340, 0)           = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(6, 0x7ffdd3db1340, 0)           = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{",\0\1\0", 4}, {NULL, 0}, {"", 0}], 3) = 4
poll([{fd=6, events=POLLIN}], 1, -1)    = 1 ([{fd=6, revents=POLLIN}])
recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\267!\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 40
recvmsg(6, 0x7ffdd3db1340, 0)           = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(6, 0x7ffdd3db1340, 0)           = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{",\0\1\0", 4}, {NULL, 0}, {"", 0}], 3) = 4
poll([{fd=6, events=POLLIN}], 1, -1)    = 1 ([{fd=6, revents=POLLIN}])
recvmsg(6, {msg_name(0)=NULL, msg_iov(1)=[{"\1\0\270!\2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 40
recvmsg(6, 0x7ffdd3db17e0, 0)           = -1 EAGAIN (Resource temporarily unavailable)
recvmsg(6, 0x7ffdd3db17e0, 0)           = -1 EAGAIN (Resource temporarily unavailable)

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Hangs...
« Reply #7 on: October 16, 2019, 01:05:50 PM »
Yeah, that looks like the same stack reported by @Taeguk.   We're investigating it.  Thanks for posting that.

Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: Hangs...
« Reply #8 on: October 16, 2019, 03:23:42 PM »
Just an FYI, you need to hold Ctrl+Alt+Shift+F9 down for a few seconds in general to force the interrupt.

b

  • Senior Community Member
  • Posts: 325
  • Hero Points: 26
Re: Hangs...
« Reply #9 on: October 16, 2019, 04:10:35 PM »
Just an FYI, you need to hold Ctrl+Alt+Shift+F9 down for a few seconds in general to force the interrupt.

I'll try that again if I encounter it again.    How long is "a few seconds?"

joecar

  • Senior Community Member
  • Posts: 424
  • Hero Points: 9
  • engineer/gearhead
Re: Hangs...
« Reply #10 on: October 16, 2019, 04:54:29 PM »
Could you attach your <config dir>/logs/stack.log.  It looks like these stacks were truncated.
See attached.

I'm running on Win10.

joecar

  • Senior Community Member
  • Posts: 424
  • Hero Points: 9
  • engineer/gearhead
Re: Hangs...
« Reply #11 on: October 16, 2019, 04:56:55 PM »
What is the difference between Ctrl+Alt+Shift+F2 and Ctrl+Alt+Shift+F9...?

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Hangs...
« Reply #12 on: October 16, 2019, 05:29:39 PM »
@b if it doesn't respond after holding it down for 10 seconds, I'd say it's not going to.
Also, can we get your user.cfg.xml file from your configuration directory?

b

  • Senior Community Member
  • Posts: 325
  • Hero Points: 26
Re: Hangs...
« Reply #13 on: October 16, 2019, 06:02:46 PM »
@b if it doesn't respond after holding it down for 10 seconds, I'd say it's not going to.
Also, can we get your user.cfg.xml file from your configuration directory?



PM Sent.

TKasparek

  • Senior Community Member
  • Posts: 246
  • Hero Points: 29
Re: Hangs...
« Reply #14 on: October 16, 2019, 06:31:52 PM »
I also seen a hang regularly (enough that I now Ctrl-S every couple seconds...). I've tried the Ctrl-Alt-Shift-F2 and Ctrl-Alt-Shift-F9 and have not been able to recover from it either.