Kodi Community Forum

Full Version: No Freeze on GetDirectory()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.

When I disconnect the network from and then try to access previously added network location (that is not accessible at this point), the screen freezes for a minute or so.

Quote:19:59:51.849 T:4113588224 DEBUG: CGUIMediaWindow::GetDirectory (smb://192.168.2.123/downloads/content/)
19:59:51.849 T:4113588224 DEBUG: ParentPath = [smb://192.168.2.123/downloads/content/]
20:00:21.840 T:3725546480 DEBUG: Thread JobWorker 3725546480 terminating (autodelete)
20:00:21.840 T:3475874800 DEBUG: Thread JobWorker 3475874800 terminating (autodelete)
20:00:21.840 T:3841979376 DEBUG: Thread JobWorker 3841979376 terminating (autodelete)
20:01:59.116 T:4113588224 ERROR: SMBDirectory->GetDirectory: Unable to open directory : 'smb://192.168.2.123/downloads/content'
unix_err:'6e' error : 'Connection timed out'
20:01:59.116 T:4113588224 DEBUG: ------ Window Init (DialogConfirm.xml) ------
20:01:59.116 T:4113588224 INFO: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
20:01:59.126 T:3911185392 DEBUG: script.module.osmcsetting.updates : - blurp 686 - DialogConfirm.xml

It would be much better to do that more async and have the "waiting" symbol showing that it is still alive and doing something, rather than freezing.

At the same time, I would not mind lowering the timeout to 10 seconds or so if the directory cannot be found. Is it possible to do at this point?

Thanks.
Hi,

I have the same problem. I have two computers in my network and a raspberry pi with kodi 17.
When the servers are sleeping and i press info or press play, on one computer i get after few seconds the message file not found. But on the other computer it takes almost two minutes and freezes the usr interface completely. Even the log info on the screen with cpu info freezes.
The files are all referenced over the network with samba of the pi over smb. It is really annoying when you have to wait two minutes before you can do anything. On windows with kodi i don’t have this problem.

20:38:36.512 T:1958629376 NOTICE: -----------------------------------------------------------------------
20:38:36.512 T:1958629376 NOTICE: Starting Kodi (17.5). Platform: Linux ARM (Thumb) 32-bit
20:38:36.512 T:1958629376 NOTICE: Using Release Kodi x32 build (version for Raspberry Pi)
20:38:36.512 T:1958629376 NOTICE: Kodi compiled Oct 29 2017 by GCC 4.9.2 for Linux ARM (Thumb) 32-bit version 3.16.39 (200743)
20:38:36.512 T:1958629376 NOTICE: Running on Open Source Media Center 2017.10-1, kernel: Linux ARM 32-bit version 4.9.29-10-osmc
20:38:36.512 T:1958629376 NOTICE: FFmpeg version/source: ffmpeg-3.1-kodi
20:38:36.512 T:1958629376 NOTICE: Host CPU: ARMv7 Processor rev 4 (v7l), 4 cores available

20:42:13.019 T:1543500784 DEBUG: CWebServer[8080]: request received for /jsonrpc
20:42:18.447 T:1760527344 DEBUG: Previous line repeats 8 times.
20:42:18.448 T:1760527344 DEBUG: script.module.osmcsetting.updates : - blurp 383 - MyVideoNav.xml
20:42:18.694 T:1543500784 DEBUG: CWebServer[8080]: request received for /jsonrpc
20:42:41.257 T:1937765360 DEBUG: Thread JobWorker 1937765360 terminating (autodelete)
20:42:41.257 T:1742701552 DEBUG: Thread JobWorker 1742701552 terminating (autodelete)
20:42:41.347 T:1656746992 DEBUG: Thread JobWorker 1656746992 terminating (autodelete)
20:42:41.365 T:1604318192 DEBUG: Thread JobWorker 1604318192 terminating (autodelete)
20:43:08.462 T:1760527344 DEBUG: script.module.osmcsetting.updates : - blurp 383 - MyVideoNav.xml
20:44:25.663 T:1958629376 DEBUG: Previous line repeats 1 times.
20:44:25.664 T:1958629376 DEBUG: OnClick called on 'videodb://movies/titles/224' but file doesn't exist
20:44:25.664 T:1958629376 DEBUG: ------ Window Init (DialogConfirm.xml) ------