Bug 397144 - Discover 5.13.4 freezes after searching for 'scan'
Summary: Discover 5.13.4 freezes after searching for 'scan'
Status: RESOLVED UPSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.13.3
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-04 10:58 UTC by Øystein Steffensen-Alværvik
Modified: 2018-09-03 10:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Øystein Steffensen-Alværvik 2018-08-04 10:58:52 UTC
--What I did when the freeze occured––
Opened Discover from Kickoff, immediately searched for 'scan' in the search field. Discover froze after displaying the search results.

Reproducible always.

plasma-discover --version outputs 5.13.4. 

--Backtrace--

GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) handle SIG33 pass nostop noprint
Signal        Stop	Print	Pass to program	Description
SIG33         No	No	Yes		Real-time event 33
(gdb) set pagination 0
(gdb) attach 30295
Attaching to process 30295
[New LWP 30296]
[New LWP 30297]
[New LWP 30298]
[New LWP 30299]
[New LWP 30300]
[New LWP 30301]
[New LWP 30302]
[New LWP 30309]
[New LWP 30315]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f5214e862dd in write () at ../sysdeps/unix/syscall-template.S:84
84	../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) backtrace full
#0  0x00007f5214e862dd in write () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f5214e07bff in _IO_new_file_write (f=0x7f5215154540 <_IO_2_1_stderr_>, data=0x2f16bf80, n=112) at fileops.c:1263
        count = <optimized out>
        to_do = 112
#2  0x00007f5214e0838a in _IO_new_file_xsputn (to_do=112, data=0x2f16bf80 "\n(process:30295): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed\n", fp=0x7f5215154540 <_IO_2_1_stderr_>) at fileops.c:518
        count = <optimized out>
        block_size = <optimized out>
        do_write = 112
        s = 0x2f16bf80 "\n(process:30295): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed\n"
        to_do = 112
        must_flush = <optimized out>
        count = <optimized out>
        n = 112
        data = <optimized out>
        f = 0x7f5215154540 <_IO_2_1_stderr_>
        s = <optimized out>
        to_do = 112
#3  0x00007f5214e0838a in _IO_new_file_xsputn (f=0x7f5215154540 <_IO_2_1_stderr_>, data=<optimized out>, n=112) at fileops.c:1342
        block_size = <optimized out>
        do_write = 112
        s = 0x2f16bf80 "\n(process:30295): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed\n"
        to_do = 112
        must_flush = <optimized out>
        count = <optimized out>
        n = 112
        data = <optimized out>
        f = 0x7f5215154540 <_IO_2_1_stderr_>
        s = <optimized out>
        to_do = 112
#4  0x00007f5214dfd0c8 in __GI__IO_fputs (str=str@entry=0x2f16bf80 "\n(process:30295): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed\n", fp=fp@entry=0x7f5215154540 <_IO_2_1_stderr_>) at iofputs.c:38
        _IO_acquire_lock_file = 0x7f5215154540 <_IO_2_1_stderr_>
        len = 112
        result = -1
#5  0x00007f520fad041f in g_log_default_handler (string=0x2f16bf80 "\n(process:30295): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed\n", stream=0x7f5215154540 <_IO_2_1_stderr_>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmessages.c:367
        level_prefix = "CRITICAL **\000R\177\000\000\060\061\341\024R\177\000\000\360\064\341\024R\177\000\000\240\000\270\203\375\177\000\000\340\000\270\203\375\177\000\000\000\000\000\000\000\000\000\000`", <incomplete sequence \331>
        string = 0x2f16bf80 "\n(process:30295): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed\n"
        gstring = 0x5aad800
        stream = 0x7f5215154540 <_IO_2_1_stderr_>
        domains = <optimized out>
#6  0x00007f520fad041f in g_log_default_handler (log_domain=log_domain@entry=0x7f520fb117ee "GLib", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, message=message@entry=0x2f15fb90 "g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed", unused_data=unused_data@entry=0x0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmessages.c:1507
        level_prefix = "CRITICAL **\000R\177\000\000\060\061\341\024R\177\000\000\360\064\341\024R\177\000\000\240\000\270\203\375\177\000\000\340\000\270\203\375\177\000\000\000\000\000\000\000\000\000\000`", <incomplete sequence \331>
        string = 0x2f16bf80 "\n(process:30295): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed\n"
        gstring = 0x5aad800
        stream = 0x7f5215154540 <_IO_2_1_stderr_>
        domains = <optimized out>
#7  0x00007f520fad09a4 in g_logv (log_domain=0x7f520fb117ee "GLib", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7ffd83b801c0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmessages.c:1059
        domain = 0x0
        data = 0x0
        depth = 1
        log_func = 0x7f520fad0220 <g_log_default_handler>
        domain_fatal_mask = <optimized out>
        masquerade_fatal = 0
        test_level = G_LOG_LEVEL_CRITICAL
        was_fatal = <optimized out>
        was_recursion = <optimized out>
        msg = 0x2f15fb90 "g_byte_array_remove_range: assertion 'iPython Exception <class 'gdb.error'> Attempt to dereference a generic pointer.: 
ndex_ + length <= array->len' failed"
        msg_alloc = 0x2f15fb90 "g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed"
        i = 3
#8  0x00007f520fad0bcf in g_log (log_domain=log_domain@entry=0x7f520fb117ee "GLib", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x7f520fb1b374 "%s: assertion '%s' failed") at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmessages.c:1119
#9  0x00007f520fad0c09 in g_return_if_fail_warning (log_domain=log_domain@entry=0x7f520fb117ee "GLib", pretty_function=pretty_function@entry=0x7f520fb11f70 <__func__.5554> "g_byte_array_remove_range", expression=expression@entry=0x7f520fb11e67 "index_ + length <= array->len") at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmessages.c:1134
#10 0x00007f520fa9e8ca in g_byte_array_remove_range (array=<optimized out>, index_=<optimized out>, length=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/garray.c:1817
        __func__ = "g_byte_array_remove_range"
#11 0x00007f51d04a577c in  () at /usr/lib/x86_64-linux-gnu/libsnapd-glib.so.1
#12 0x00007f51e3fe5901 in socket_source_dispatch (source=0x5829350, callback=0x7f51d04a5570, user_data=0x28657a0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./gio/gsocket.c:3543
        func = 0x7f51d04a5570
        socket_source = 0x5829350
        socket = 0x2d5cbb0 [GSocket]
        timeout = <optimized out>
        events = 1
        ret = <optimized out>
#13 0x00007f520faca04a in g_main_context_dispatch (context=0x7f52000016f0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3154
        dispatch = 0x7f51e3fe58b0 <socket_source_dispatch>
        prev_source = 0x0
        was_in_call = 0
        user_data = 0x28657a0
        callback = 0x7f51d04a5570
        cb_funcs = <optimized out>
        cb_data = 0x5828ab0
        need_destroy = <optimized out>
        source = 0x5829350
        current = 0x15ea110
        i = 0
#14 0x00007f520faca04a in g_main_context_dispatch (context=context@entry=0x7f52000016f0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3769
#15 0x00007f520faca3f0 in g_main_context_iterate (context=context@entry=0x7f52000016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3840
        max_priority = 200
        timeout = 0
        some_ready = 1
        nfds = <optimized out>
        allocated_nfds = 6
        fds = 0x1a520f0
#16 0x00007f520faca49c in g_main_context_iteration (context=0x7f52000016f0, may_block=may_block@entry=1) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3901
        retval = <optimized out>
#17 0x00007f5215aab09f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x15d24e0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
        d = 0x15cf6d0
        canWait = true
        savedFlags = {i = 0}
        result = <optimized out>
#18 0x00007f52097339a1 in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x15d24e0, flags=...) at qeventdispatcher_glib.cpp:69
        didSendEvents = <optimized out>
#19 0x00007f5215a525ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd83b80580, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
        d = 0x1b8e330
        locker = {val = 22579936}
        ref = {d = 0x1b8e330, locker = @0x7ffd83b80500, exceptionCaught = true}
#20 0x00007f5215a5b6c4 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1336
        threadData = 0x15889f0
        eventLoop = {<QObject> = {_vptr.QObject = 0x7f5215ed53c8 <vtable for QEventLoop+16>, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7f5215bdd880 <qt_meta_stringdata_QObject>, data = 0x7f5215bdd760 <qt_meta_data_QObject>, static_metacall = 0x7f5215a890c0 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x1b8e330}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7f5215be0640 <qt_meta_stringdata_Qt>, data = 0x7f5215bdd9a0 <qt_meta_data_Qt>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7f5215ecda40 <QObject::staticMetaObject>, stringdata = 0x7f5215bd8360 <qt_meta_stringdata_QEventLoop>, data = 0x7f5215bd8300 <qt_meta_data_QEventLoop>, static_metacall = 0x7f5215a522f0 <QEventLoop::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}
        returnCode = <optimized out>
#21 0x00007f5216898f8c in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1762
#22 0x00007f52170ad2f5 in QApplication::exec() () at kernel/qapplication.cpp:2901
#23 0x000000000041319f in main(int, char**) (argc=1, argv=<optimized out>) at /workspace/build/discover/main.cpp:156
        app = {<QGuiApplication> = {<QCoreApplication> = {<QObject> = {_vptr.QObject = 0x7f5217787a10 <vtable for QApplication+16>, static staticMetaObject = {d = {superdata = 0x0, stringdata = 0x7f5215bdd880 <qt_meta_stringdata_QObject>, data = 0x7f5215bdd760 <qt_meta_data_QObject>, static_metacall = 0x7f5215a890c0 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x1588f80}, static staticQtMetaObject = {d = {superdata = 0x0, stringdata = 0x7f5215be0640 <qt_meta_stringdata_Qt>, data = 0x7f5215bdd9a0 <qt_meta_data_Qt>, static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7f5215ecda40 <QObject::staticMetaObject>, stringdata = 0x7f5215bd89a0 <qt_meta_stringdata_QCoreApplication>, data = 0x7f5215bd8880 <qt_meta_data_QCoreApplication>, static_metacall = 0x7f5215a55d50 <QCoreApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, static self = 0x7ffd83b80660}, static staticMetaObject = {d = {superdata = 0x7f5215ed5560 <QCoreApplication::staticMetaObject>, stringdata = 0x7f5216c570c0 <qt_meta_stringdata_QGuiApplication>, data = 0x7f5216c56e40 <qt_meta_data_QGuiApplication>, static_metacall = 0x7f52168a45b0 <QGuiApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {superdata = 0x7f5216f3dec0 <QGuiApplication::staticMetaObject>, stringdata = 0x7f521742d380 <qt_meta_stringdata_QApplication>, data = 0x7f521742d200 <qt_meta_data_QApplication>, static_metacall = 0x7f52170b2480 <QApplication::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}}
        about = {d = 0x167e840}
        mainWindow = 0x16548e0
(gdb) info registers
rax            0x70	112
rbx            0x70	112
rcx            0x7f5214e862dd	139990514819805
rdx            0x70	112
rsi            0x2f16bf80	790019968
rdi            0x2	2
rbp            0x2f16bf80	0x2f16bf80
rsp            0x7ffd83b7ffb0	0x7ffd83b7ffb0
r8             0x7f5219bba8c0	139990595774656
r9             0x28	40
r10            0x20	32
r11            0x293	659
r12            0x70	112
r13            0x1	1
r14            0x7f5215154540	139990517761344
r15            0x3	3
rip            0x7f5214e862dd	0x7f5214e862dd <write+45>
eflags         0x293	[ CF AF SF IF ]
cs             0x33	51
ss             0x2b	43
ds             0x0	0
es             0x0	0
fs             0x0	0
gs             0x0	0
(gdb) x/16i $pc
=> 0x7f5214e862dd <write+45>:	mov    (%rsp),%rdi
   0x7f5214e862e1 <write+49>:	mov    %rax,%rdx
   0x7f5214e862e4 <write+52>:	callq  0x7f5214ea4130 <__libc_disable_asynccancel>
   0x7f5214e862e9 <write+57>:	mov    %rdx,%rax
   0x7f5214e862ec <write+60>:	add    $0x8,%rsp
   0x7f5214e862f0 <write+64>:	cmp    $0xfffffffffffff001,%rax
   0x7f5214e862f6 <write+70>:	jae    0x7f5214e862f9 <write+73>
   0x7f5214e862f8 <write+72>:	retq   
   0x7f5214e862f9 <write+73>:	mov    0x2ccb78(%rip),%rcx        # 0x7f5215152e78
   0x7f5214e86300 <write+80>:	neg    %eax
   0x7f5214e86302 <write+82>:	mov    %eax,%fs:(%rcx)
   0x7f5214e86305 <write+85>:	or     $0xffffffffffffffff,%rax
   0x7f5214e86309 <write+89>:	retq   
   0x7f5214e8630a:	nopw   0x0(%rax,%rax,1)
   0x7f5214e86310 <access>:	mov    $0x15,%eax
   0x7f5214e86315 <access+5>:	syscall 
(gdb) thread apply all backtrace

Thread 10 (Thread 0x7f51b77fe700 (LWP 30315)):
#0  0x00007f5214e8a74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f520faca38c in g_main_context_iterate (priority=2147483647, n_fds=1, fds=0x7f51a8007b00, timeout=<optimized out>, context=0x7f51a8000990) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007f520faca38c in g_main_context_iterate (context=context@entry=0x7f51a8000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007f520faca49c in g_main_context_iteration (context=0x7f51a8000990, may_block=may_block@entry=1) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007f5215aab0bb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f51a80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f5215a525ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f51b77fdcf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f52158875e4 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:525
#7  0x00007f5215892727 in QThreadPrivate::start(void*) (arg=0x1aebe70) at thread/qthread_unix.cpp:367
#8  0x00007f521192f6ba in start_thread (arg=0x7f51b77fe700) at pthread_create.c:333
#9  0x00007f5214e9641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7f51c2467700 (LWP 30309)):
#0  0x00007f5214e8a74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f520faca38c in g_main_context_iterate (priority=2147483647, n_fds=2, fds=0x7f51b803d690, timeout=<optimized out>, context=0x7f51b8000990) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007f520faca38c in g_main_context_iterate (context=context@entry=0x7f51b8000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007f520faca49c in g_main_context_iteration (context=0x7f51b8000990, may_block=may_block@entry=1) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007f5215aab0bb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f51b80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f5215a525ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f51c2466cf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f52158875e4 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:525
#7  0x00007f5215892727 in QThreadPrivate::start(void*) (arg=0x2f4bab0) at thread/qthread_unix.cpp:367
#8  0x00007f521192f6ba in start_thread (arg=0x7f51c2467700) at pthread_create.c:333
#9  0x00007f5214e9641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7f51e1e79700 (LWP 30302)):
#0  0x00007f5214e8a74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f520faca38c in g_main_context_iterate (priority=2147483647, n_fds=1, fds=0x7f51d8002870, timeout=<optimized out>, context=0x7f51d8000990) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007f520faca38c in g_main_context_iterate (context=context@entry=0x7f51d8000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007f520faca49c in g_main_context_iteration (context=0x7f51d8000990, may_block=may_block@entry=1) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007f5215aab09f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f51d80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007f5215a525ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f51e1e78cf0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f52158875e4 in QThread::exec() (this=<optimized out>) at thread/qthread.cpp:525
#7  0x00007f5215892727 in QThreadPrivate::start(void*) (arg=0x1dbed90) at thread/qthread_unix.cpp:367
#8  0x00007f521192f6ba in start_thread (arg=0x7f51e1e79700) at pthread_create.c:333
#9  0x00007f5214e9641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7f51e267a700 (LWP 30301)):
#0  0x00007f5214e8a74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f520faca38c in g_main_context_iterate (priority=2147483647, n_fds=2, fds=0x7f51d40010c0, timeout=<optimized out>, context=0x1db03a0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007f520faca38c in g_main_context_iterate (context=0x1db03a0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007f520faca712 in g_main_loop_run (loop=0x1db0330) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:4034
#4  0x00007f51e40529d6 in gdbus_shared_thread_func (user_data=0x1db0370) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./gio/gdbusprivate.c:246
#5  0x00007f520faf0bb5 in g_thread_proxy (data=0x1d898f0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gthread.c:780
#6  0x00007f521192f6ba in start_thread (arg=0x7f51e267a700) at pthread_create.c:333
#7  0x00007f5214e9641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f51e2e7b700 (LWP 30300)):
#0  0x00007f5214e8a74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f520faca38c in g_main_context_iterate (priority=2147483647, n_fds=1, fds=0x7f51dc0008c0, timeout=<optimized out>, context=0x1dafb60) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007f520faca38c in g_main_context_iterate (context=context@entry=0x1dafb60, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007f520faca49c in g_main_context_iteration (context=0x1dafb60, may_block=may_block@entry=1) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007f520faca4d9 in glib_worker_main (data=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:5672
#5  0x00007f520faf0bb5 in g_thread_proxy (data=0x1d898a0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gthread.c:780
#6  0x00007f521192f6ba in start_thread (arg=0x7f51e2e7b700) at pthread_create.c:333
#7  0x00007f5214e9641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f51ece62700 (LWP 30299)):
#0  0x00007f5214e8a74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f520faca38c in g_main_context_iterate (priority=2147483647, n_fds=1, fds=0x7f51e80013c0, timeout=<optimized out>, context=0x7f51e8000990) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007f520faca38c in g_main_context_iterate (context=context@entry=0x7f51e8000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007f520faca49c in g_main_context_iteration (context=0x7f51e8000990, may_block=may_block@entry=1) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007f5215aab0bb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f51e80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f5215a525ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f51ece61c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f52158875e4 in QThread::exec() (this=this@entry=0x1d09dc0) at thread/qthread.cpp:525
#7  0x00007f5218cd4f86 in QQuickPixmapReader::run() (this=0x1d09dc0) at util/qquickpixmapcache.cpp:934
#8  0x00007f5215892727 in QThreadPrivate::start(void*) (arg=0x1d09dc0) at thread/qthread_unix.cpp:367
#9  0x00007f521192f6ba in start_thread (arg=0x7f51ece62700) at pthread_create.c:333
#10 0x00007f5214e9641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f51fccbc700 (LWP 30298)):
#0  0x00007f5214e8a74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f520faca38c in g_main_context_iterate (priority=2147483647, n_fds=1, fds=0x7f51f0002e70, timeout=<optimized out>, context=0x7f51f0000990) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007f520faca38c in g_main_context_iterate (context=context@entry=0x7f51f0000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007f520faca49c in g_main_context_iteration (context=0x7f51f0000990, may_block=may_block@entry=1) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007f5215aab09f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f51f00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#5  0x00007f5215a525ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f51fccbbcd0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f52158875e4 in QThread::exec() (this=this@entry=0x164c9d0) at thread/qthread.cpp:525
#7  0x00007f5216411195 in QQmlThreadPrivate::run() (this=0x164c9d0) at qml/ftw/qqmlthread.cpp:148
#8  0x00007f5215892727 in QThreadPrivate::start(void*) (arg=0x164c9d0) at thread/qthread_unix.cpp:367
#9  0x00007f521192f6ba in start_thread (arg=0x7f51fccbc700) at pthread_create.c:333
#10 0x00007f5214e9641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f51fdecd700 (LWP 30297)):
#0  0x00007f5214e8a74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f520faca38c in g_main_context_iterate (priority=2147483647, n_fds=4, fds=0x7f51f8018cf0, timeout=<optimized out>, context=0x7f51f8000990) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:4135
#2  0x00007f520faca38c in g_main_context_iterate (context=context@entry=0x7f51f8000990, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3835
#3  0x00007f520faca49c in g_main_context_iteration (context=0x7f51f8000990, may_block=may_block@entry=1) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3901
#4  0x00007f5215aab0bb in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7f51f80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f5215a525ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7f51fdecccc0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#6  0x00007f52158875e4 in QThread::exec() (this=this@entry=0x7f5217a45d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread.cpp:525
#7  0x00007f52177ccf35 in QDBusConnectionManager::run() (this=0x7f5217a45d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:178
#8  0x00007f5215892727 in QThreadPrivate::start(void*) (arg=0x7f5217a45d60 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:367
#9  0x00007f521192f6ba in start_thread (arg=0x7f51fdecd700) at pthread_create.c:333
#10 0x00007f5214e9641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f5206c95700 (LWP 30296)):
#0  0x00007f5214e8a74d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f520f867c62 in _xcb_conn_wait (__timeout=-1, __nfds=1, __fds=0x7f5206c94bf0) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  0x00007f520f867c62 in _xcb_conn_wait (c=c@entry=0x15995f0, cond=cond@entry=0x1599630, vector=vector@entry=0x0, count=count@entry=0x0) at ../../src/xcb_conn.c:459
#3  0x00007f520f8698d7 in xcb_wait_for_event (c=0x15995f0) at ../../src/xcb_in.c:693
#4  0x00007f52096aa489 in QXcbEventReader::run() (this=0x15a4640) at qxcbconnection.cpp:1388
#5  0x00007f5215892727 in QThreadPrivate::start(void*) (arg=0x15a4640) at thread/qthread_unix.cpp:367
#6  0x00007f521192f6ba in start_thread (arg=0x7f5206c95700) at pthread_create.c:333
#7  0x00007f5214e9641d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f5219bba8c0 (LWP 30295)):
#0  0x00007f5214e862dd in write () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f5214e07bff in _IO_new_file_write (f=0x7f5215154540 <_IO_2_1_stderr_>, data=0x2f16bf80, n=112) at fileops.c:1263
#2  0x00007f5214e0838a in _IO_new_file_xsputn (to_do=112, data=0x2f16bf80 "\n(process:30295): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed\n", fp=0x7f5215154540 <_IO_2_1_stderr_>) at fileops.c:518
#3  0x00007f5214e0838a in _IO_new_file_xsputn (f=0x7f5215154540 <_IO_2_1_stderr_>, data=<optimized out>, n=112) at fileops.c:1342
#4  0x00007f5214dfd0c8 in __GI__IO_fputs (str=str@entry=0x2f16bf80 "\n(process:30295): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed\n", fp=fp@entry=0x7f5215154540 <_IO_2_1_stderr_>) at iofputs.c:38
#5  0x00007f520fad041f in g_log_default_handler (string=0x2f16bf80 "\n(process:30295): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed\n", stream=0x7f5215154540 <_IO_2_1_stderr_>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmessages.c:367
#6  0x00007f520fad041f in g_log_default_handler (log_domain=log_domain@entry=0x7f520fb117ee "GLib", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, message=message@entry=0x2f15fb90 "g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed", unused_data=unused_data@entry=0x0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmessages.c:1507
#7  0x00007f520fad09a4 in g_logv (log_domain=0x7f520fb117ee "GLib", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7ffd83b801c0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmessages.c:1059
#8  0x00007f520fad0bcf in g_log (log_domain=log_domain@entry=0x7f520fb117ee "GLib", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=format@entry=0x7f520fb1b374 "%s: assertion '%s' failed") at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmessages.c:1119
#9  0x00007f520fad0c09 in g_return_if_fail_warning (log_domain=log_domain@entry=0x7f520fb117ee "GLib", pretty_function=pretty_function@entry=0x7f520fb11f70 <__func__.5554> "g_byte_array_remove_range", expression=expression@entry=0x7f520fb11e67 "index_ + length <= array->len") at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmessages.c:1134
#10 0x00007f520fa9e8ca in g_byte_array_remove_range (array=<optimized out>, index_=<optimized out>, length=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/garray.c:1817
#11 0x00007f51d04a577c in  () at /usr/lib/x86_64-linux-gnu/libsnapd-glib.so.1
#12 0x00007f51e3fe5901 in socket_source_dispatch (source=0x5829350, callback=0x7f51d04a5570, user_data=0x28657a0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./gio/gsocket.c:3543
#13 0x00007f520faca04a in g_main_context_dispatch (context=0x7f52000016f0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3154
#14 0x00007f520faca04a in g_main_context_dispatch (context=context@entry=0x7f52000016f0) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3769
#15 0x00007f520faca3f0 in g_main_context_iterate (context=context@entry=0x7f52000016f0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3840
#16 0x00007f520faca49c in g_main_context_iteration (context=0x7f52000016f0, may_block=may_block@entry=1) at /build/glib2.0-b4FPyK/glib2.0-2.48.2/./glib/gmain.c:3901
#17 0x00007f5215aab09f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x15d24e0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#18 0x00007f52097339a1 in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x15d24e0, flags=...) at qeventdispatcher_glib.cpp:69
#19 0x00007f5215a525ba in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd83b80580, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
#20 0x00007f5215a5b6c4 in QCoreApplication::exec() () at kernel/qcoreapplication.cpp:1336
#21 0x00007f5216898f8c in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1762
#22 0x00007f52170ad2f5 in QApplication::exec() () at kernel/qapplication.cpp:2901
#23 0x000000000041319f in main(int, char**) (argc=1, argv=<optimized out>) at /workspace/build/discover/main.cpp:156
(gdb) quit
A debugging session is active.

	Inferior 1 [process 30295] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/bin/plasma-discover, process 30295
Comment 1 Aleix Pol 2018-08-08 10:39:13 UTC
Please provide a backtrace with the environment variable set G_DEBUG=fatal-criticals
Comment 2 Neousr 2018-08-08 19:10:03 UTC
I can confirm  this on Neon UE 5.13.4 with snap-backend.

From what i can see after typing scan it will freeze on "still looking.." the icon will show (circle spinning). But instead of showing "still looking.." like other searches Discover will just freeze. Clicking/resizing will make discover prompt "discover" is not responding.
Comment 3 Omar 2018-08-15 15:35:03 UTC
Can reproduce on KDE Neon dev Stable, Discover v5.13.4
when launching discover without `G_DEBUG=fatal-criticals` it outputs the following forever

-----------------------------

process:4365): GLib-CRITICAL **: g_byte_array_remove_range: assertion 'index_ + length <= array->len' failed

(process:4365): Snapd-WARNING **: Ignoring unexpected response

-----------------------------

After setting `G_DEBUG=fatal-criticals`, and running gdb

------------------------------

sudo gdb -p 6562
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 6562
[New LWP 6563]
[New LWP 6564]
[New LWP 6565]
[New LWP 6566]
[New LWP 6567]
[New LWP 6568]
[New LWP 6569]
[New LWP 6570]
[New LWP 6571]
[New LWP 6572]
[New LWP 6575]
[New LWP 6576]
[New LWP 6577]
[New LWP 6578]
[New LWP 6586]
[New LWP 6587]
[New LWP 6588]
[New LWP 6593]
[New LWP 6595]
[New LWP 6600]
[New LWP 6602]
[New LWP 6604]
[New LWP 6618]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007efbfa8ea74d in poll () at ../sysdeps/unix/syscall-template.S:84
84      ../sysdeps/unix/syscall-template.S: No such file or directory.
(gdb) c
Continuing.
[Thread 0x7efb82349700 (LWP 6618) exited]
[Thread 0x7efb9dffb700 (LWP 6604) exited]
[Thread 0x7efb9e7fc700 (LWP 6602) exited]
[Thread 0x7efb9f7fe700 (LWP 6600) exited]
[Thread 0x7efba5c8d700 (LWP 6588) exited]
[Thread 0x7efbbcd39700 (LWP 6587) exited]

Thread 1 "plasma-discover" received signal SIGTRAP, Trace/breakpoint trap.
0x00007efbf5531a5b in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
(gdb) backtrace full
#0  0x00007efbf5531a5b in g_logv () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#1  0x00007efbf5531bcf in g_log () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#2  0x00007efbf54ff8ca in g_byte_array_remove_range () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#3  0x00007efba4e1577c in ?? () from /usr/lib/x86_64-linux-gnu/libsnapd-glib.so.1
No symbol table info available.
#4  0x00007efbc14a1901 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
No symbol table info available.
#5  0x00007efbf552b04a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#6  0x00007efbf552b3f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#7  0x00007efbf552b49c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
No symbol table info available.
#8  0x00007efbfb50b09f in QEventDispatcherGlib::processEvents (this=0x27a57d0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
        d = 0x27d55d0
        canWait = true
        savedFlags = {i = 0}
        result = <optimized out>
#9  0x00007efbef3219a1 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
No symbol table info available.
#10 0x00007efbfb4b25ba in QEventLoop::exec (this=this@entry=0x7ffbffffb130, flags=..., flags@entry=...) at kernel/qeventloop.cpp:214
        d = 0x2823630
        locker = {val = 40983264}
        ref = {d = 0x2823630, locker = @0x7ffbffffb0b0, exceptionCaught = true}
#11 0x00007efbfb4bb6c4 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1336
        threadData = 0x27159f0
---Type <return> to continue, or q <return> to quit---
        eventLoop = {<QObject> = {_vptr.QObject = 0x7efbfb9353c8 <vtable for QEventLoop+16>, static staticMetaObject = {d = {
                superdata = 0x0, stringdata = 0x7efbfb63d880 <qt_meta_stringdata_QObject>,
                data = 0x7efbfb63d760 <qt_meta_data_QObject>,
                static_metacall = 0x7efbfb4e90c0 <QObject::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>,
                relatedMetaObjects = 0x0, extradata = 0x0}}, d_ptr = {d = 0x2823630}, static staticQtMetaObject = {d = {
                superdata = 0x0, stringdata = 0x7efbfb640640 <qt_meta_stringdata_Qt>, data = 0x7efbfb63d9a0 <qt_meta_data_Qt>,
                static_metacall = 0x0, relatedMetaObjects = 0x0, extradata = 0x0}}}, static staticMetaObject = {d = {
              superdata = 0x7efbfb92da40 <QObject::staticMetaObject>, stringdata = 0x7efbfb638360 <qt_meta_stringdata_QEventLoop>,
              data = 0x7efbfb638300 <qt_meta_data_QEventLoop>,
              static_metacall = 0x7efbfb4b22f0 <QEventLoop::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>,
              relatedMetaObjects = 0x0, extradata = 0x0}}}
        returnCode = <optimized out>
#12 0x00000000004131ff in main (argc=1, argv=<optimized out>) at /workspace/build/discover/main.cpp:156
        app = <incomplete type>
        about = {d = 0x2820c20}
        mainWindow = 0x283bb60

------------------------------

I would be happy to redo/correct anything, because this is my fist time using gdb
Comment 4 Omar 2018-08-15 15:36:19 UTC
Just for the record I tried reproducing with many other 4 letter common search term, but non caused an issue.
Comment 5 Aleix Pol 2018-09-03 10:47:49 UTC
This was an issue in snapd-glib. I can't reproduce it, I'd expect it to just be fixed in the library.

It could be useful to test it on neon 18.04 that has a newer version.