Opened 19 months ago

Closed 5 days ago

#12664 closed Bug Report - General (fixed)

extreme slow respons from mythtv-setup

Reported by: mythtv@… Owned by: pbennett
Priority: minor Milestone: 30.0
Component: MythTV - Mythtv-setup Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no


In mythtv-seetup i've identified 3 locations where resons on key-press can be very slow (8 minutes or more):

  • 1 - selecting existing DVB-S2 card definition without diseqc tree
  • 2 - in capture card definition selecting the input device to use
  • 3 - in capture card definition selecting the diseqc sub-menu

From the message displayed on the terminal, it is not clear what is causing this. During non-response the following cases have been observed:

  • no messages at all
  • error message that no diseqc tree has been defined for the device (correct, the attempt was to enter the diseqc menu to do so)
  • messages about VBox been found on a W7 virtual machine. In one case closing down the virtual machine made mythtv-setup faster, in a second attempt to reproduce this behaviour closing down the virtual machine made no difference

Further testing may show more situations/conditions where respons is very slow

Attachments (1)

20170913_ticket_12664_slow_setup.patch (2.9 KB) - added by pbennett 12 days ago.
Cache probe results to speed card setup

Download all attachments as: .zip

Change History (8)

comment:1 Changed 18 months ago by stuarta

  • Milestone changed from 0.28 to 0.29

Moving to 0.29

comment:2 Changed 18 months ago by stuarta

  • Milestone changed from 0.29 to 29.0

Milestone renamed

comment:3 Changed 2 weeks ago by pbennett

  • Milestone changed from 29.0 to 30.0
  • Owner changed from jyavenard to pbennett
  • Priority changed from major to minor
  • Status changed from new to assigned

Vbox code takes a long time searching, especially when there are other UPNP devices like ceton on the network.

comment:4 Changed 12 days ago by pbennett

The system probes for devices many times during Capture Card processing. This patch caches the results so that the probe is only done once per invocation of capture card setup. Depending on how many capture cards you have, this can speed it up considerably.

Changed 12 days ago by pbennett

Cache probe results to speed card setup

comment:5 Changed 11 days ago by J.Pilk@…

I have tried this patch, together with one that simply inserted 'addUPnP();' into the mythtv-setup commandlineparser, using the command line 'mythtvsetup --noupnp'

It worked, but I'm not sure how much difference it made, and I have to do other things for a few days. I had two capture cards and started with them 'fully deleted'. Setup one, go to 'Input connections' and set multirec, setup the second card and then its Input connections and multirec. Then scan. I now have the usual set of channel numbers and another set much higher with an increment of 64 - don't want to investigate now... First card DVB-T, second card DVB-T/T2, different input groups. I have usually run with only the DVB-T card.

The log is still showing VBox searches, but not, I think, as many as before; I haven't looked hard at the code but suspect it may be doing other things as well during these apparent hangs, minimum 23 seconds.

comment:6 Changed 11 days ago by pbennett

The improvement will be most dramatic where you have many cards already on your system. In any case, it will only do the VBox search once for each time you enter the "Capture Cards" menu, which will be the first time you add a card or the first card it finds already added. Previously it would do the VBox search once for every card found or added. There may still be other things slowing it down, but I do not see them on my system.

comment:7 Changed 5 days ago by Peter Bennett <pbennett@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In 50afc013ca2fb29ce2a4d68dd67ee27b53655c67/mythtv:

mythtv-setup: Cache probe results to speed up Capture card processing

Fixes #12664

Add Comment

Modify Ticket

as closed The owner will remain pbennett.
The resolution will be deleted. Next status will be 'new'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.