Kodi Community Forum

Full Version: XBMC crashes when scanning dir containing rar files
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just discovered that my XBMC crashes when I try to make it scan a directory that has rar files in it. The rar files work perfectly ok outside XBMC.

My system:
Shuttle XS35GT (dual atom, ion2)
Ubuntu 10.10 Maverick (kernel 2.6.35-22-generic)
Using newest nvidia drivers 260.19.12

Log file attached, what I did prior to the crash:
- Removed profile folder .xbmc completely (so everything should be default, skin etc.)
- Started XBMC
- Chose Music -> Files -> Scan to library
- Enabled debugging
- A few seconds later - crash to Gnome desktop.

Link to the log http://pastebin.ubuntu.com/515096/

After removing the one rar file existing in my music collection, it scanned perfectly to library. Tried this with movies library, same problem with crashing if seeing rar files.

I think this is kind of a big deal.
Just discovered that it may not be due to the rar file handling only, but rather in this line in the log file

Code:
0x08238ba8 in CCharsetConverter::utf8ToW(CStdStr<char> const&, CStdStr<wchar_t>&, bool, bool, bool*) ()

It happens always when a filename OR directory name contains underscore or apostrophe (_ or '), in my case. Perhaps more symbols too but I only tested with these. My files are read from an external usb drive formatted as ntfs.

Looking at the latest commits the CharsetConverter has been modified, so that could be the issue.
http://trac.xbmc.org/changeset/34770/trunk and forth.

Removing these characters from filenames/dirnames solves the problem.