{"action":"created","issue":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/7367","labels_url":"https://api.github.com/repos/xbmc/xbmc/issues/7367/labels{/name}","comments_url":"https://api.github.com/repos/xbmc/xbmc/issues/7367/comments","events_url":"https://api.github.com/repos/xbmc/xbmc/issues/7367/events","html_url":"https://github.com/xbmc/xbmc/pull/7367","id":92024670,"number":7367,"title":"[epg] Sync epg update from client / db on startup","user":{"login":"mapfau","id":12764616,"avatar_url":"https://avatars.githubusercontent.com/u/12764616?v=3","gravatar_id":"","url":"https://api.github.com/users/mapfau","html_url":"https://github.com/mapfau","followers_url":"https://api.github.com/users/mapfau/followers","following_url":"https://api.github.com/users/mapfau/following{/other_user}","gists_url":"https://api.github.com/users/mapfau/gists{/gist_id}","starred_url":"https://api.github.com/users/mapfau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapfau/subscriptions","organizations_url":"https://api.github.com/users/mapfau/orgs","repos_url":"https://api.github.com/users/mapfau/repos","events_url":"https://api.github.com/users/mapfau/events{/privacy}","received_events_url":"https://api.github.com/users/mapfau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-06-30T08:31:35Z","updated_at":"2015-07-05T20:06:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/xbmc/xbmc/pulls/7367","html_url":"https://github.com/xbmc/xbmc/pull/7367","diff_url":"https://github.com/xbmc/xbmc/pull/7367.diff","patch_url":"https://github.com/xbmc/xbmc/pull/7367.patch"},"body":"On Kodi startup two threads (1: client -> db, 2: db -> EpgContainer) accessing the same database. 1 is checking for new epg entries, 2 is retrieving valid epg's -> crash.\r\n\r\nThis first approach locks the dbaccess in PersistXXX functions, wich runs but could lead to freezes in the gui when reading Epg's (Timeline window).\r\nSo there must be a better solution for this - this PR is just to not forget the issue, it is an major ticket as kodi don't startup anymore after epg db is filled,\r\n\r\nWorkaround: \"Don't use DB for Epg (in TV::EPG settings dialog)"},"comment":{"url":"https://api.github.com/repos/xbmc/xbmc/issues/comments/118662446","html_url":"https://github.com/xbmc/xbmc/pull/7367#issuecomment-118662446","issue_url":"https://api.github.com/repos/xbmc/xbmc/issues/7367","id":118662446,"user":{"login":"Jalle19","id":1106133,"avatar_url":"https://avatars.githubusercontent.com/u/1106133?v=3","gravatar_id":"","url":"https://api.github.com/users/Jalle19","html_url":"https://github.com/Jalle19","followers_url":"https://api.github.com/users/Jalle19/followers","following_url":"https://api.github.com/users/Jalle19/following{/other_user}","gists_url":"https://api.github.com/users/Jalle19/gists{/gist_id}","starred_url":"https://api.github.com/users/Jalle19/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jalle19/subscriptions","organizations_url":"https://api.github.com/users/Jalle19/orgs","repos_url":"https://api.github.com/users/Jalle19/repos","events_url":"https://api.github.com/users/Jalle19/events{/privacy}","received_events_url":"https://api.github.com/users/Jalle19/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T20:06:40Z","updated_at":"2015-07-05T20:06:40Z","body":"@mapfau the only purpose of the EPG database is the ability to scroll back in time on the timeline (since many backends don't supply historic data)."}}