Kodi Community Forum
Android why xbmc exit so slow? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: Android Development (https://forum.kodi.tv/forumdisplay.php?fid=184)
+---- Thread: Android why xbmc exit so slow? (/showthread.php?tid=183537)

Pages: 1 2


why xbmc exit so slow? - liuxiaoyao - 2014-01-16

dear all:
I enjoy xbmc very much!but there is a bug , xbmc exit so very slow! sometimes we need wait for about ten minutes! why?
how to fix this bug ,I have get the source code and how to modify it !
looking forward to anyone's reply!
thanks!


RE: why xbmc exit so slow? - Martijn - 2014-01-16

most likely you have installed several addons that causes it to close so slow.


RE: why xbmc exit so slow? - liuxiaoyao - 2014-01-16

(2014-01-16, 09:48)Martijn Wrote: most likely you have installed several addons that causes it to close so slow.

I don't install any addons,but still close so slow! this bug may be always in existence,why noboby fix this bug?


RE: why xbmc exit so slow? - Martijn - 2014-01-16

(2014-01-16, 10:53)liuxiaoyao Wrote:
(2014-01-16, 09:48)Martijn Wrote: most likely you have installed several addons that causes it to close so slow.

I don't install any addons,but still close so slow! this bug may be always in existence,why noboby fix this bug?

why?
maybe because we don't have this bug or no one has time. we don't get paid you know


RE: why xbmc exit so slow? - da-anda - 2014-01-16

not experiencing this on my Nexus10. It's not slower than on desktop. Can you provide a log file? There we should probably see what's blocking shutdown.


RE: why xbmc exit so slow? - romano - 2014-02-17

Yes, i have this slow shutdown on my ouya, sometimes takes is slow and sometimes is less slow, i just wait no problem.


RE: why xbmc exit so slow? - davilla - 2014-02-18

Lets see, looking at your posted xbmc.log (see FAQ), oh snap. No posted xbmc.log. So sorry, can't help.


RE: why xbmc exit so slow? - Kib - 2014-02-19

In case it wasn't clear, you need to upload a debug log (wiki)


RE: why xbmc exit so slow? - liuxiaoyao - 2014-03-11

dear all,
I find why my xbmc exit so slow,this is becaseof this code: CJobManager::GetInstance().CancelJobs().this code excute very slowly when xbmc exit.
I remove this code ,it exit very fast! But if I remove this code,Can it cause other problems?


Re: why xbmc exit so slow? - Koying - 2014-03-11

It will seem fast, because the gui is closing without asking and waiting for all the child threads to close.
Bottom line: You might see the desktop, but part of XBMC is still running in the background.


RE: why xbmc exit so slow? - liuxiaoyao - 2014-03-11

The main thread have exited,is other thread still running in the backgroundHuh why? i think that if process is killed,anything will end.


RE: why xbmc exit so slow? - davilla - 2014-03-11

and still no xbmc.log...


RE: why xbmc exit so slow? - liuxiaoyao - 2014-03-12

this is the xbmc.log : http://xbmclogs.com/show.php?id=147934
thank you for any help


RE: why xbmc exit so slow? - davilla - 2014-03-13

07:51:22 T:1699679512 DEBUG: CAnnouncementManager - Announcement: OnQuit from xbmc
...
07:51:23 T:1754119872 DEBUG: CCurlFile::GetMimeType - http://mirrors.xbmc.org/addons/frodo/plugin.video.creationtoday_org/icon.png -> image/png
07:51:23 T:1754119872 DEBUG: CurlFile::Open(0x68da2160) http://mirrors.xbmc.org/addons/frodo/plugin.video.creationtoday_org/icon.png
07:51:30 T:1754119872 DEBUG: Caching image
...
07:51:33 T:1698839720 DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc

addons/frodo/plugin.video.creationtoday_org is holding up quit for seven seconds. Martijn wins the guessing contest.


RE: why xbmc exit so slow? - liuxiaoyao - 2014-03-13

(2014-03-11, 09:05)Koying Wrote: It will seem fast, because the gui is closing without asking and waiting for all the child threads to close.
Bottom line: You might see the desktop, but part of XBMC is still running in the background.

(2014-03-13, 03:02)davilla Wrote: 07:51:22 T:1699679512 DEBUG: CAnnouncementManager - Announcement: OnQuit from xbmc
...
07:51:23 T:1754119872 DEBUG: CCurlFile::GetMimeType - http://mirrors.xbmc.org/addons/frodo/plugin.video.creationtoday_org/icon.png -> image/png
07:51:23 T:1754119872 DEBUG: CurlFile::Open(0x68da2160) http://mirrors.xbmc.org/addons/frodo/plugin.video.creationtoday_org/icon.png
07:51:30 T:1754119872 DEBUG: Caching image
...
07:51:33 T:1698839720 DEBUG: CAnnouncementManager - Announcement: OnClear from xbmc

addons/frodo/plugin.video.creationtoday_org is holding up quit for seven seconds. Martijn wins the guessing contest.
yes! addons/frodo/plugin.video.creationtoday_org is holding up quit for seven seconds,this is a better situation,sometimes somes addons hold up quit for few minutes.how to fix this bug?