Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#5228 closed patch (fixed)

Channel scanning hang with network recorder

Reported by: Michaël Burtin <mburtin@…> Owned by: danielk
Priority: minor Milestone: unknown
Component: channelscan Version: head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

In current trunk, the channel scanning with a network recorder input hang with :

2008-04-20 15:35:38.570 Using runtime prefix = /usr/local, libdir = /usr/local/lib
2008-04-20 15:35:38.588 DPMS is disabled.
2008-04-20 15:35:38.590 Empty LocalHostName.
2008-04-20 15:35:38.590 Using localhost value of solar
2008-04-20 15:35:38.627 New DB connection, total: 1
2008-04-20 15:35:38.633 Connected to database 'mythconverg' at host: localhost
2008-04-20 15:35:38.652 Closing DB connection named 'DBManager0'
2008-04-20 15:35:38.660 Primary screen: 0.
2008-04-20 15:35:38.662 Connected to database 'mythconverg' at host: localhost
2008-04-20 15:35:38.664 Using screen 0, 1280x1024 at 0,0
2008-04-20 15:35:38.762 Overriding GUI, width=1024, height=768 at 0,0
2008-04-20 15:35:38.763 New DB connection, total: 2
2008-04-20 15:35:38.764 Connected to database 'mythconverg' at host: localhost
2008-04-20 15:35:38.766 Current Schema Version: 1219
2008-04-20 15:35:38.820 Switching to square mode (G.A.N.T)
2008-04-20 15:35:38.846 Using the Qt painter
2008-04-20 15:35:38.849 lirc init success using configuration file: /home/mythtv/.mythtv/lircrc
2008-04-20 15:35:38.859 JoystickMenuClient Error: Joystick disabled - Failed to open device /dev/input/js0
2008-04-20 15:35:38.908 MC::NormalizeFontSize() called, but no window
2008-04-20 15:35:39.821 Loading from: /usr/local/share/mythtv/themes/G.A.N.T/base.xml
2008-04-20 15:35:40.364 Loading from: /usr/local/share/mythtv/themes/default/base.xml
2008-04-20 15:35:43.095 DiSEqCDevTree, Warning: No device tree for cardid 2
2008-04-20 15:35:43.097 New DB connection, total: 3
2008-04-20 15:35:43.098 Connected to database 'mythconverg' at host: localhost
2008-04-20 15:35:43.151 DiSEqCDevTree, Warning: No device tree for cardid 3
2008-04-20 15:35:43.166 New DB connection, total: 4
2008-04-20 15:35:43.167 Connected to database 'mythconverg' at host: localhost
2008-04-20 15:35:43.168 New DB connection, total: 5
2008-04-20 15:35:43.169 Connected to database 'mythconverg' at host: localhost
2008-04-20 15:35:43.296 DiSEqCDevTree, Warning: No device tree for cardid 5
QObject::setParent: Cannot set parent, new parent is in a different thread
QObject::startTimer: QTimer can only be used with threads started with QThread

Here's a patch that convert the IPTVChannelFetcher thread from pthread to QThread. Remark : the progress Dialog does not update during scanning, maybe it's a side effect.

Mythtv version :

Please include all output in bug reports.
MythTV Version   : 17084M
MythTV Branch    : trunk
Library API      : 0.22.20080416-1
Network Protocol : 40
QT Version       : 4.3.2
Options compiled in:
 linux debug using_oss using_alsa using_backend using_frontend using_iptv using_joystick_menu using_lirc using_opengl_vsync using_v4l using_x11 using_xrandr using_xv using_xvmc using_xvmc_vld using_bindings_perl using_bindings_python using_opengl using_ffmpeg_threads using_live

Attachments (2)

iptvchannelfetcher.path (3.6 KB) - added by Michaël Burtin <mburtin@…> 16 years ago.
Patch to convert IPTVChannelFetche thread from pthead to QThread
iptvchannelfetcher2.patch (3.5 KB) - added by Michaël Burtin <mburtin@…> 16 years ago.
Fix typo in code

Download all attachments as: .zip

Change History (4)

Changed 16 years ago by Michaël Burtin <mburtin@…>

Attachment: iptvchannelfetcher.path added

Patch to convert IPTVChannelFetche thread from pthead to QThread

Changed 16 years ago by Michaël Burtin <mburtin@…>

Attachment: iptvchannelfetcher2.patch added

Fix typo in code

comment:1 Changed 16 years ago by danielk

Resolution: fixed
Status: newclosed

(In [17119]) Fixes #5228. Uses QThread for iptv channel scanning to avoid some Qt4 problems.

comment:2 Changed 16 years ago by danielk

(In [17120]) Refs #2695. Refs #5228. Merges [17119] from trunk to channel scan branch.

Note: See TracTickets for help on using tickets.