[mythtv-commits] Ticket #11194: Mythfrontend hangs when exiting
MythTV
noreply at mythtv.org
Sun Apr 28 12:15:10 UTC 2013
#11194: Mythfrontend hangs when exiting
----------------------------------+----------------------------
Reporter: bob.havlin@… | Owner: jyavenard
Type: Bug Report - General | Status: accepted
Priority: minor | Milestone: 0.26.1
Component: MythTV - Airplay | Version: 0.26-fixes
Severity: medium | Resolution:
Keywords: mythfrontend | Ticket locked: 0
----------------------------------+----------------------------
Comment (by danielk):
jya, I think the problem might be deeper than just changing how m_bonjour
is deleted. I only looked at this a little bit but I think this might
suffer from that QXXXSocket issue I discussed with you. i.e. where all the
sockets are created in the same thread and all the socket handling ends up
being done in that one thread. If so there are two workarounds: 1/ just
pass a socket file descriptor instead of a QTcpSocket to the handler
thread and create the QTcpSocket in the right thread or 2/ you can
reassign the thread a QObject belongs to using http://qt-
project.org/doc/qt-4.8/qobject.html#moveToThread.
#1 has implications for Qt5 which changes the socket descriptor type from
int to qintptr, but if you get it to work on Qt4.x I can easily make it
Qt5 compatible since I have the build environment set up.
Anyway, I only did a little of bit of debugging before deciding this was a
rabbit hole I didn't have time for at the time. I did find that the way to
reproduce this was to run bonjour in an environment where it could never
start up properly (I don't remember the details.)
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11194#comment:20>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list