PDA

View Full Version : Crashes upon crashes when trying to load thumbnails


djh_
2008-06-16, 17:39
I've noticed a fair increase in the number of segfaults during day-to-day use of XBMC, most of which I've ignored due to early development - but there's a recurring issue with loading thumbnails. So when I flushed my thumbnail directory to refresh my Music thumbnails, it took six attempts before XBMC actually loaded the screen with the new thumbnails; every other time it crashed. Now that it has the thumbnails, there are several albums which have folder.jpg files in the directories, and which had thumbnails previously, which are now blank. If I pull out of the directory and go back in, they remain blank.

Any idea what this issue could be? The crashes invariably culminate in the following:

!ASSERT: file logging.c: line 99 (cdio_logv): should not be reached

EDIT: In fact, I'm fairly confident the number of crashes before the page loads successfully corresponds with the number of blank thumbnails. There's no pattern to which thumbnails are affected.

I should also add a note of thanks regarding the increasing speed of thumbnail navigation in these builds.

BLKMGK
2008-06-17, 02:59
Post your XBMC log to Pastebin - I've not been seeing these crashes myself FWIW.

althekiller
2008-06-17, 03:31
While you're at it make sure it's the FULL log, not just the parts you feel are relevant. Also, post XBMC revision, PPA repo (if applicable) and the source of the files (local, SMB, optical medium, etc).

Coca Cola Zero
2008-06-18, 02:46
I'm also getting tons of crashes, same basic problems as djh. Running hardy on nvidia geforce 8600, fully updated against current ubuntu packages and XBMC svn.

Problem only occurs when XBMC has to generate thumbnails, and the more thumbnails it has to generate the more likely the crash seems to occur (and the faster it will happen), so if your local install doesn't have to generate any new thumbnails you're unlikely to see this crash. It is way easier for me to reproduce this problem by deleting my thumbnail cache and then navigating around in directories that have a lot of files in them. Navigating around while the thumbnail generation is going on seems to pretty much ensure a crash will occur quickly.

No idea if it is related, but I'm getting this on stdout a lot these days:

++ WARN: could not retrieve file info for `image.nrg': No such file or directory
++ WARN: can't open nrg image file image.nrg for reading

Sometimes I get this on stderr:

!ASSERT: file logging.c: line 99 (cdio_logv): should not be reached

Sample xbmc.log url below. When these crashes occur the XBMC log tends to just suddenly stop during a set of those "Creating thumbnail" info messages, presumably that's when XBMC crashes. I don't know the XBMC code at all so I may be totally wrong, but this 'feels' like a threading race condition bug.

http://pastebin.com/m509fbe57

Coca Cola Zero
2008-06-18, 02:48
(For the record, fully updated XBMC svn above means rev 13596).

I have no clue as to when this problem was introduced because until yesterday I was running a much older build of XBMC (> 1 month) and never had this issue before.

Coca Cola Zero
2008-06-18, 02:56
Oh, a couple of more bits of data -- All files are from local ext3 filesystems. System is running on a dual core (Intel C2D) so if it *is* a threading issue, it might not show itself on single-core/single-CPU systems.

Coca Cola Zero
2008-06-18, 03:00
Oh, one more thing -- most of my files have existing thumbnails in (Filename).tbn files within their directories, so it is possible this problem occurs when caching those and not when XBMC is generating new thumbnails based on the file content.

djh_
2008-06-18, 03:25
Not that I'm being lazy, but my situation is identical to the above, right down to the logs, file system and CPU. The only difference is that I'm running Gutsy.

alphacube
2008-06-30, 12:29
I have the exact same errors in my logs.
I run Gentoo.

the only difference is thet the first time I fire up xbmc it works fine.
but played videos way to fast....searched a bit and found that it could be becous I hadn't configed my sound yet. Got the sound working, started xbmc played a local avi movie. xbmc crashd
and whenever I trie to start xbmc it craches imeadeatly.

revision:13819

alphacube
2008-06-30, 14:17
UPDATE:
Reinstalled xbmc. Tried to play music, that works great.
but if I play a movie the gui will crash. And I cant find anything useful in the logs..
If I try to start xbmc it shows splash screen and craches...

althekiller
2008-06-30, 20:48
alphacube, you need to build alsa-libs with the debug USE flag, this is in a couple posts and a Gentoo specific issue (has nothing to do with the original topic).

gryzor
2008-06-30, 22:41
This "!ASSERT: file logging.c: lone 99 (cdio_logv): should not be reached)" upon starting XBMC is, however, consistant. I'm getting this aswell.

djh_
2008-07-01, 00:35
'Suppose now's the time to say that the problem persists. Picture views are essentially unusable, as are file browsers when applied to a directories with images in. I'm also seeing occasional crashes with certain music files now - not sure if it's the embedded thumbnails...

I'll get some log files and specs sorted when I can get back on the TV.