Kodi Community Forum

Full Version: XBMC hangs on opening folder with pictures
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Very weird though, it only happens on the first two folders in my list.

Debug log of going directly to the first pictures folder:

Code:
23:12:56 M: 58306560  NOTICE: -----------------------------------------------------------------------
23:12:56 M: 58286080  NOTICE: Starting XBoxMediaCenter.  Built on Aug 13 2007
23:12:56 M: 58286080  NOTICE: Q is mapped to: E:\apps\XBMC
23:12:56 M: 58286080  NOTICE: The executeable running is: E:\apps\XBMC\default.xbe
23:12:56 M: 58286080  NOTICE: Log File is located: Q:\xbmc.log
23:12:56 M: 58286080  NOTICE: -----------------------------------------------------------------------
23:12:57 M: 58286080  NOTICE: Unmapped drive T
23:12:57 M: 58286080  NOTICE: Mapping drive T to Harddisk0\Partition1\apps\XBMC\userdata
23:12:57 M: 58286080  NOTICE: Setup DirectX
23:12:57 M: 58261504  NOTICE: Mapping drive C to Harddisk0\Partition2
23:12:57 M: 58261504  NOTICE: Mapping drive E to Harddisk0\Partition1
23:12:57 M: 58261504  NOTICE: Unmapped drive D
23:12:57 M: 58261504  NOTICE: Mapping drive D to Cdrom0
23:12:57 M: 58261504  NOTICE: Mapping drive F to Harddisk0\Partition6
23:12:57 M: 58261504  NOTICE: Mapping drive G to Harddisk0\Partition7
23:12:57 M: 58261504  NOTICE: Mapping drive X to Harddisk0\Partition3
23:12:57 M: 58261504  NOTICE: Mapping drive Y to Harddisk0\Partition4
23:12:57 M: 58261504  NOTICE: Unmapped drive Z
23:12:57 M: 58261504  NOTICE: Mapping drive Z to Harddisk0\Partition5
23:12:57 M: 58261504  NOTICE: load settings...
23:12:57 M: 58261504  NOTICE: Mapping drive P to Harddisk0\Partition1\apps\XBMC\userdata
23:12:57 M: 58261504  NOTICE: loading T:\guisettings.xml
23:12:57 M: 57925632  NOTICE: Getting hardware information now...
23:12:57 M: 57925632  NOTICE: Checking resolution 7
23:12:58 M: 46936064    INFO: Key combination detected for full debug logging (X+Y)
23:12:58 M: 46936064  NOTICE: Running the application...
23:12:58 M: 43929600   DEBUG: CApplication::OnMessage : Translating ReplaceWindow(Home)
23:12:58 M: 43929600    INFO: CNetwork::LogState - Link: full duplex
23:12:58 M: 43929600   DEBUG: CApplication::OnMessage : To ReplaceWindow(Home)
23:12:58 M: 43929600    INFO: CNetwork::LogState - Link: 100 mbps
23:12:58 M: 43929600   DEBUG: Activating window ID: 10000
23:12:58 M: 43929600    INFO: CNetwork::LogState - ip:
23:12:58 M: 43929600   DEBUG: Checking if window ID 10000 is locked.
23:12:58 M: 43929600    INFO: CNetwork::LogState - subnet:
23:12:58 M: 43929600    INFO: CNetwork::LogState - gateway:
23:12:58 M: 43929600    INFO: CNetwork::LogState - dns: ,
23:12:58 M: 43929600    INFO: CNetwork::LogState - Link: full duplex
23:12:58 M: 43929600    INFO: CNetwork::LogState - Link: 100 mbps
23:12:58 M: 43929600    INFO: CNetwork::LogState - State: dns
23:12:58 M: 43929600    INFO: CNetwork::LogState - State: static
23:12:58 M: 43929600    INFO: CNetwork::LogState - ip: 10.0.0.151
23:12:58 M: 43929600    INFO: CNetwork::LogState - subnet: 255.255.255.0
23:12:58 M: 43929600    INFO: CNetwork::LogState - gateway: 10.0.0.138
23:12:58 M: 43929600    INFO: CNetwork::LogState - dns: 10.0.0.138, 0.0.0.0
23:12:58 M: 43929600    INFO: WEATHER: Downloading weather
23:12:58 M: 43929600    INFO: Get URL: http://xoap.weather.com/weather/local/NLXX0037?cc=*&unit=m&dayf=4&prod=xoap&par=1004124588&key=079f24145f208494
23:12:58 M: 43921408    INFO: WEATHER: Weather download successful
23:12:59 M: 42008576   DEBUG: CNetwork::NetworkMessage - Starting network services
23:12:59 M: 42008576  NOTICE: XBFileZilla: Starting...
23:12:59 M: 37986304    INFO: Get URL: http://feeds.nos.nl/nosnieuws
23:12:59 M: 37433344  NOTICE: XBFileZilla: Started
23:12:59 M: 37728256   DEBUG: Got rss feed: http://feeds.nos.nl/nosnieuws
23:12:59 M: 37728256   DEBUG: RSS feed encoding: UTF-8
23:12:59 M: 37707776   DEBUG: Parsed rss feed: http://feeds.nos.nl/nosnieuws
23:13:02 M: 42655744   DEBUG: CApplication::OnKey: 271 pressed, action is 4
23:13:06 M: 42651648   DEBUG: CApplication::OnKey: 256 pressed, action is 7
23:13:06 M: 42651648   DEBUG: CApplication::OnMessage : Translating ActivateWindow(MyPictures)
23:13:06 M: 42651648   DEBUG: CApplication::OnMessage : To ActivateWindow(MyPictures)
23:13:06 M: 42651648   DEBUG: Activating window ID: 10002
23:13:06 M: 42651648   DEBUG: Checking if window ID 10002 is locked.
23:13:06 M: 46170112    INFO: Attempting to default to: G: drive
23:13:06 M: 46170112    INFO:   Success! Opened destination path: G: drive
23:13:06 M: 45539328   DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
23:13:06 M: 45539328    INFO: Loading skin file: MyPics.xml
23:13:06 M: 45117440   DEBUG: CGUIMediaWindow::GetDirectory (G:\pictures)
23:13:06 M: 45137920   DEBUG:   ParentPath = [G:\pictures\]
23:13:07 M: 45117440    INFO: Loading skin file: DialogBusy.xml
23:13:09 M: 44978176   DEBUG: Saving fileitems [G:\pictures]
23:13:09 M: 44978176   DEBUG:   -- items: 12, sort method: 0, ascending: false
23:13:12 M: 41070592   DEBUG: CApplication::OnKey: 256 pressed, action is 7
23:13:12 M: 41070592   DEBUG: Clearing cached fileitems [G:\pictures\Antwerp en nieuw\]
23:13:12 M: 41070592   ERROR: XFILE::CFile::Delete - Error deleting file Z:\98b31e33.fi
23:13:12 M: 44253184   DEBUG: CGUIMediaWindow::GetDirectory (G:\pictures\Antwerp en nieuw\)
23:13:12 M: 44253184   DEBUG:   ParentPath = [G:\pictures]
23:13:12 M: 43696128   DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called

Any thoughts??
This is a debug log of opening the third folder (so XBMC not hanging):

Code:
23:18:29 M: 58306560  NOTICE: -----------------------------------------------------------------------
23:18:29 M: 58286080  NOTICE: Starting XBoxMediaCenter.  Built on Aug 13 2007
23:18:29 M: 58286080  NOTICE: Q is mapped to: E:\apps\XBMC
23:18:29 M: 58286080  NOTICE: The executeable running is: E:\apps\XBMC\default.xbe
23:18:29 M: 58286080  NOTICE: Log File is located: Q:\xbmc.log
23:18:29 M: 58286080  NOTICE: -----------------------------------------------------------------------
23:18:29 M: 58286080  NOTICE: Unmapped drive T
23:18:29 M: 58286080  NOTICE: Mapping drive T to Harddisk0\Partition1\apps\XBMC\userdata
23:18:29 M: 58286080  NOTICE: Setup DirectX
23:18:30 M: 58261504  NOTICE: Mapping drive C to Harddisk0\Partition2
23:18:30 M: 58261504  NOTICE: Mapping drive E to Harddisk0\Partition1
23:18:30 M: 58261504  NOTICE: Unmapped drive D
23:18:30 M: 58261504  NOTICE: Mapping drive D to Cdrom0
23:18:30 M: 58261504  NOTICE: Mapping drive F to Harddisk0\Partition6
23:18:30 M: 58261504  NOTICE: Mapping drive G to Harddisk0\Partition7
23:18:30 M: 58261504  NOTICE: Mapping drive X to Harddisk0\Partition3
23:18:30 M: 58261504  NOTICE: Mapping drive Y to Harddisk0\Partition4
23:18:30 M: 58261504  NOTICE: Unmapped drive Z
23:18:30 M: 58261504  NOTICE: Mapping drive Z to Harddisk0\Partition5
23:18:30 M: 58261504  NOTICE: load settings...
23:18:30 M: 58261504  NOTICE: Mapping drive P to Harddisk0\Partition1\apps\XBMC\userdata
23:18:30 M: 58261504  NOTICE: loading T:\guisettings.xml
23:18:30 M: 57925632  NOTICE: Getting hardware information now...
23:18:30 M: 57925632  NOTICE: Checking resolution 7
23:18:31 M: 46936064    INFO: Key combination detected for full debug logging (X+Y)
23:18:31 M: 46936064    INFO: CNetwork::LogState - Link: full duplex
23:18:31 M: 46936064  NOTICE: Running the application...
23:18:31 M: 46936064    INFO: CNetwork::LogState - Link: 100 mbps
23:18:31 M: 45879296    INFO: CNetwork::LogState - ip:
23:18:31 M: 45879296    INFO: CNetwork::LogState - subnet:
23:18:31 M: 45879296    INFO: CNetwork::LogState - gateway:
23:18:31 M: 46190592    INFO: CNetwork::LogState - dns: ,
23:18:31 M: 43929600   DEBUG: CApplication::OnMessage : Translating ReplaceWindow(Home)
23:18:31 M: 43929600   DEBUG: CApplication::OnMessage : To ReplaceWindow(Home)
23:18:31 M: 43929600   DEBUG: Activating window ID: 10000
23:18:31 M: 43929600   DEBUG: Checking if window ID 10000 is locked.
23:18:31 M: 43929600    INFO: CNetwork::LogState - Link: full duplex
23:18:31 M: 43929600    INFO: CNetwork::LogState - Link: 100 mbps
23:18:31 M: 43929600    INFO: CNetwork::LogState - State: dns
23:18:31 M: 43929600    INFO: CNetwork::LogState - State: static
23:18:31 M: 43929600    INFO: CNetwork::LogState - ip: 10.0.0.151
23:18:31 M: 43929600    INFO: CNetwork::LogState - subnet: 255.255.255.0
23:18:31 M: 43929600    INFO: CNetwork::LogState - gateway: 10.0.0.138
23:18:31 M: 43929600    INFO: CNetwork::LogState - dns: 10.0.0.138, 0.0.0.0
23:18:31 M: 43929600    INFO: WEATHER: Downloading weather
23:18:31 M: 43929600    INFO: Get URL: http://xoap.weather.com/weather/local/NLXX0037?cc=*&unit=m&dayf=4&prod=xoap&par=1004124588&key=079f24145f208494
23:18:31 M: 43921408    INFO: WEATHER: Weather download successful
23:18:32 M: 42008576   DEBUG: CNetwork::NetworkMessage - Starting network services
23:18:32 M: 42008576  NOTICE: XBFileZilla: Starting...
23:18:32 M: 37994496    INFO: Get URL: http://feeds.nos.nl/nosnieuws
23:18:32 M: 37707776  NOTICE: XBFileZilla: Started
23:18:32 M: 37736448   DEBUG: Got rss feed: http://feeds.nos.nl/nosnieuws
23:18:32 M: 37736448   DEBUG: RSS feed encoding: UTF-8
23:18:32 M: 37449728   DEBUG: Parsed rss feed: http://feeds.nos.nl/nosnieuws
23:18:33 M: 37781504   DEBUG: CApplication::OnKey: 271 pressed, action is 4
23:18:33 M: 42676224   DEBUG: CApplication::OnKey: 256 pressed, action is 7
23:18:34 M: 42676224   DEBUG: CApplication::OnMessage : Translating ActivateWindow(MyPictures)
23:18:34 M: 42676224   DEBUG: CApplication::OnMessage : To ActivateWindow(MyPictures)
23:18:34 M: 42676224   DEBUG: Activating window ID: 10002
23:18:34 M: 42676224   DEBUG: Checking if window ID 10002 is locked.
23:18:34 M: 46170112    INFO: Attempting to default to: G: drive
23:18:34 M: 46170112    INFO:   Success! Opened destination path: G: drive
23:18:34 M: 45539328   DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
23:18:34 M: 45539328    INFO: Loading skin file: MyPics.xml
23:18:34 M: 45117440   DEBUG: CGUIMediaWindow::GetDirectory (G:\pictures)
23:18:34 M: 45137920   DEBUG:   ParentPath = [G:\pictures\]
23:18:35 M: 45117440    INFO: Loading skin file: DialogBusy.xml
23:18:37 M: 45006848   DEBUG: Saving fileitems [G:\pictures]
23:18:37 M: 45006848   DEBUG:   -- items: 12, sort method: 0, ascending: false
23:18:39 M: 41070592   DEBUG: CApplication::OnKey: 271 pressed, action is 4
23:18:39 M: 41070592   DEBUG: CApplication::OnKey: 271 pressed, action is 4
23:18:40 M: 41070592   DEBUG: CApplication::OnKey: 256 pressed, action is 7
23:18:40 M: 41070592   DEBUG: Clearing cached fileitems [G:\pictures\Escher\]
23:18:40 M: 41070592   ERROR: XFILE::CFile::Delete - Error deleting file Z:\0da6c3ab.fi
23:18:40 M: 44253184   DEBUG: CGUIMediaWindow::GetDirectory (G:\pictures\Escher\)
23:18:40 M: 44253184   DEBUG:   ParentPath = [G:\pictures]
23:18:40 M: 43696128   DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
23:18:40 M: 43630592   DEBUG:   msg: JpgParse: Not a JPEG file G:\pictures\Escher\escher.gif
23:18:40 M: 43630592   DEBUG: Saving fileitems [G:\pictures\Escher\]
23:18:40 M: 43630592   DEBUG:   -- items: 9, sort method: 0, ascending: false

And when I say 'hangs' in the thread title, I mean the first (or second) folder don't even gets opened. Upon pressing 'A', everything stops. No busydialog, nothing. It happens every time, not at random.
No errors reported at least there - try and see if you can narrow it down to a particular subfolder and/or image. More than likely an image rather than a subfolder, possibly due to the EXIF code.
Well, as stated, it only happens on the first two folders in my list. This is in T3CH-rev9920.

I just reverted back to T3CH-rev9834, and the problem isn't in there...
One more thing I noticed, those first two folders won't open, but it IS possible to start a 'Recursive slideshow' from the context menu. Maybe that's helpful to know?

Other than that, I wouldn't know what else to look for.
as jmarshall said, its most likely on of the pictures sitting in that folder. if there's not too many, you can make a new folder then copy picture by picture until it hangs again.
if there are many a binary search is the way to go (i.e. add half, if it errors split that in half and recheck etc)
Well, I found one of the culprits.. It is in fact a picture that has been rotated, so it's probably due to the EXIF code indeed. Toggling the 'Rotate using EXIF' setting doesn't change anything. Is there anything else I can do to solve this besides deleting the picture?

What strikes me as odd is that other folders have rotated pictures as well, that don't cause problems. And of course that the previous T3CH-build didn't have the problem at all.

Should I file a bug report?
please provide the picture if it isnt of too personal a nature
I have several pictures that have been rotated, but having only one of them in a folder is enough to make it hang. Without them the folder opens just fine.

Also, using the 'Recursive slideshow' option on the folder (like I mentioned above) eventually hangs when one of these evildoers is displayed.

Sample picture of not too personal a nature:
http://files-upload.com/files/435159/DSC02981.JPG
Fixed in SVN, just grab the new dll:

http://xbmc.svn.sourceforge.net/viewvc/*...ibexif.dll

Cheers,
Jonathan
Very awesome! Thanks for the quick fix..! Big Grin