xbmc/xbmc — comment on commit 921663709d4e55629c53235ff9b51b3692aad934
File:  line 0
By CrystalP:

This causes the runtime to detect an out of bounds access when scanning a new TV Show.
I don't know how the scrapers & thumbs work, sorry I can't be more helpful. Here is a backtrace, the bad access happens in CFile::Cache, line 113 " else if (strDirectory[0] == pathsep[0]) " because strDirectory, derived from strDest, is an empty string

>	XBMC.exe!XFILE::CFile::Cache(const CStdStr & strFileName, const CStdStr & strDest, XFILE::IFileCallback * pCallback, void * pContext) Line 113	C++
XBMC.exe!CPicture::CacheImage(const CStdStr & sourceUrl, const CStdStr & destFile, int width, int height) Line 78 + 0x11 bytes	C++
XBMC.exe!CPicture::CacheFanart(const CStdStr & sourceUrl, const CStdStr & destFile) Line 93 + 0x15 bytes	C++
XBMC.exe!VIDEO::CVideoInfoScanner::DownloadImage(const CStdStr & url, const CStdStr & destination, bool asThumb, CGUIDialogProgress * progress) Line 1171 + 0xd bytes	C++
XBMC.exe!VIDEO::CVideoInfoScanner::GetArtwork(CFileItem * pItem, const CONTENT_TYPE & content, bool bApplyToDir, bool useLocal, CGUIDialogProgress * pDialog) Line 1106 + 0x71 bytes	C++
XBMC.exe!VIDEO::CVideoInfoScanner::RetrieveInfoForTvShow(boost::shared_ptr pItem, bool bDirNames, boost::shared_ptr & info2, bool useLocal, CScraperUrl * pURL, bool fetchEpisodes, CGUIDialogProgress * pDlgProgress) Line 501	C++
XBMC.exe!VIDEO::CVideoInfoScanner::RetrieveVideoInfo(CFileItemList & items, bool bDirNames, CONTENT_TYPE content, bool useLocal, CScraperUrl * pURL, bool fetchEpisodes, CGUIDialogProgress * pDlgProgress) Line 386 + 0x51 bytes	C++
XBMC.exe!VIDEO::CVideoInfoScanner::DoScan(const CStdStr & strDirectory) Line 293 + 0x26 bytes	C++
XBMC.exe!VIDEO::CVideoInfoScanner::Process() Line 107 + 0xc bytes	C++

Reverting that change saves the fanart as ffffffff.tbn the first time.