Comment 26 for bug 351510

Revision history for this message
Michael Lamothe (lamothe-deactivatedaccount-deactivatedaccount) wrote :

I've just installed Jaunty on 2 computers with 2 different DVB devices and tried it without issue. Admittedly there was a spot where the UI did not respond for 5-10 seconds, but that is to be expected and should be a one-off. Now, I would still like to remove this issue because I think I will solve another 2 outstanding bugs at the same time.

The major database access functions are:

1. EPG Thread (write)
2. EPG UI (read)
3. Scheduled recording (write)
4. Scheduled recording check (read)

I can only assume that the issue is contention between 1 and 2. Now, I would like to propose and implement a solution if people are prepared to build and test it from source, preferably the bzr repository. Let me know if you are interested.

Let me explain what I think the issue is, the UI is locking up while it tries to update the EPG UI because it happens within a GDK lock (blocking all other UI updates). The EPG UI is taking a long time to draw because it's waiting for EPG events to be written, so the whole UI locks up.

My solution, make the EPG UI DB call fail silently if the database is busy and let it try again a second later, it's not critical if the events don't appear immediately when updating the UI.

Thanks,

Michael