Hello ChrisW67 and Lukas
First, I changed to:
@
QString program = "../helper-functions/Perl/DiscoverNodes";
QProcess *myprocess = new QProcess(this);
qRegisterMetaType<QTextCharFormat>("QTextCharFormat");
qRegisterMetaType<QTextCursor>("QTextCursor");
//myprocess->startDetached(program.toStdString().c_str());
myprocess->start(program);@
Next, about segfault:
I did a core dump, and here is the info:
#0 0x00007f4eb7f04525 in QTextLayout::createLine() () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#1 0x00007f4eb7f3976a in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#2 0x00007f4eb7f413a0 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3 0x00007f4eb7f3fef1 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#4 0x00007f4eb7f4040f in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#5 0x00007f4eb7f42741 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#6 0x00007f4eb7f436c9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7 0x00007f4eb7f23284 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#8 0x00007f4eb7ee443d in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#9 0x00007f4eb81080d2 in QTextEdit::append(QString const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x0000000000405640 in publish_to_Browser (TB=0x224c5e0, messagetype=3 '\003', message=...) at ../QDAL/PublishtoBrowser.cpp:35
#11 0x00000000004052d0 in Populate_Browser_WithData (file=..., thisObject=0x7fff0be41460, resourcetype=2 '\002') at ../QDAL/class_discovernodes.cpp:117
#12 0x00000000004050ca in class_discoverNodes::run (this=0x7fff0be41460) at ../QDAL/class_discovernodes.cpp:61
#13 0x00007f4eb767baec in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#14 0x00007f4eb68d7e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#15 0x00007f4eb6e1acbd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#16 0x0000000000000000 in ?? ()
I suspect something is wrong with QTextBrowser instance. I still cannot figure out what. If anyone is interested, I can make the project available.
Thanks!
Devendra