This repository has been archived by the owner on Mar 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GraphPerspective fix: the program may hang on close as soon as a QtWe…
…bProcessEngineProcess is still running after a geographic has been created, so force an exit call
- Loading branch information
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
00cf587
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not observe that from my side. I assume because I never compile Tulip in Debug mode.
Did you try to debug the issue with gdb to get more details on the hang ?
00cf587
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the simple stack I observed using gdb
#0 0x00007ffff430774d in poll () at ../sysdeps/unix/syscall-template.S:84
#1 0x00007fffef72e38c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007fffef72e49c in g_main_context_iteration ()
from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007ffff4e381ef in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () from /code/Qt_5.12.1/gcc_64/lib/libQt5Core.so.5
#4 0x00007ffff4ddf78a in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () from /code/Qt_5.12.1/gcc_64/lib/libQt5Core.so.5
#5 0x00007ffff4de8190 in QCoreApplication::exec() ()
from /code/Qt_5.12.1/gcc_64/lib/libQt5Core.so.5
#6 0x000000000042449c in main (argc=1, argv=0x7fffffffde48)
at /code/tulipdev/tulip_dev/software/tulip_perspective/src/main.cpp:350
and 3 QtWebEngineProcess programs were still running.
00cf587
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh I see, you are using the Qt distribution from https://qt.io. If you are using the qt5 packages from your Linux distribution, I do not think the issue will occur. I need to check that, there must be a way to properly terminate the WebEngine processes.