the error code shown when download window is opened
sbIAsyncForLoop::eval( this.m_FinishedEval )
function webPlaylist_finishedEval() {
if (!this.m_Interval) {
return;
}
var mediaList = aMediaListView.mediaList;
var library = mediaList.library;
var foundItemsLength = this.items.length;
if (foundItemsLength) {
if (context) {
context.playlistHasItems = true;
context.showPlaylist = true;
}
var self = this;
var mediaItemsToScan;
var batchFunction = function () {if (mediaList.length) {mediaList.clear();}for (var index = 0; index < foundItemsLength; index++) {var item = self.items[index];var mediaItem = null;if (item instanceof Components.interfaces.sbIMediaItem) {mediaItem = item;} else {var url = item;var name = "";if (item instanceof Object) {url = item.url;name = item.name;}try {var mainLibrary = LibraryUtils.mainLibrary;var listener = {foundItem: null, onEnumerationBegin: function () {return Components.interfaces.sbIMediaListEnumerationListener.CONTINUE;}, onEnumeratedItem: function (list, item) {this.foundItem = item;return Components.interfaces.sbIMediaListEnumerationListener.CANCEL;}, onEnumerationEnd: function () {}};LibraryUtils.mainLibrary.enumerateItemsByProperty(SBProperties.originURL, url, listener);if (listener.foundItem) {mediaItem = listener.foundItem;}} catch (err) {}if (mediaItem == null) {var propArray = [[SBProperties.originPage, self.currentURL], [SBProperties.originPageImage, self.currentURL], [SBProperties.originURL, url], [SBProperties.originPageTitle, self.currentTitle], [SBProperties.enableAutoDownload, "1"], [SBProperties.downloadButton, "1|0|0"]];if (name.length > 0) {propArray.push([SBProperties.trackName, name]);}var uri = newURI(url);mediaItem = library.createMediaItem(uri, SBProperties.createArray(propArray));if (!mediaItemsToScan) {mediaItemsToScan = Components.classes[CONTRACTID_ARRAY].createInstance(nsIMutableArray);}mediaItemsToScan.appendElement(mediaItem, false);}}mediaList.add(mediaItem);}};
mediaList.runInBatchMode(batchFunction);
if (mediaItemsToScan && mediaItemsToScan.length) {
var metadataService = Components.classes['@songbirdnest.com/Songbird/FileMetadataService;1'].getService(Components.interfaces.sbIFileMetadataService);
metadataService.read(mediaItemsToScan);
}
} else if (this.child == false) {
if (!this.checkForAnything(this)) {
library.remove(mediaList);
false;
delete aMediaListView;
}
}
if (this.child == false) {
context.progressTotal = context.progressCurrent = 1;
}
}
[Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [sbIMediaList.runInBatchMode]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://songbird/content/scripts/asyncWebPlaylist.js :: webPlaylist_finishedEval :: line 323" data: no]
function webPlaylist_finishedEval() {
if (!this.m_Interval) {
return;
}
var mediaList = aMediaListView.mediaList;
var library = mediaList.library;
var foundItemsLength = this.items.length;
if (foundItemsLength) {
if (context) {
context.playlistHasItems = true;
context.showPlaylist = true;
}
var self = this;
var mediaItemsToScan;
var batchFunction = function () {if (mediaList.length) {mediaList.clear();}for (var index = 0; index < foundItemsLength; index++) {var item = self.items[index];var mediaItem = null;if (item instanceof Components.interfaces.sbIMediaItem) {mediaItem = item;} else {var url = item;var name = "";if (item instanceof Object) {url = item.url;name = item.name;}try {var mainLibrary = LibraryUtils.mainLibrary;var listener = {foundItem: null, onEnumerationBegin: function () {return Components.interfaces.sbIMediaListEnumerationListener.CONTINUE;}, onEnumeratedItem: function (list, item) {this.foundItem = item;return Components.interfaces.sbIMediaListEnumerationListener.CANCEL;}, onEnumerationEnd: function () {}};LibraryUtils.mainLibrary.enumerateItemsByProperty(SBProperties.originURL, url, listener);if (listener.foundItem) {mediaItem = listener.foundItem;}} catch (err) {}if (mediaItem == null) {var propArray = [[SBProperties.originPage, self.currentURL], [SBProperties.originPageImage, self.currentURL], [SBProperties.originURL, url], [SBProperties.originPageTitle, self.currentTitle], [SBProperties.enableAutoDownload, "1"], [SBProperties.downloadButton, "1|0|0"]];if (name.length > 0) {propArray.push([SBProperties.trackName, name]);}var uri = newURI(url);mediaItem = library.createMediaItem(uri, SBProperties.createArray(propArray));if (!mediaItemsToScan) {mediaItemsToScan = Components.classes[CONTRACTID_ARRAY].createInstance(nsIMutableArray);}mediaItemsToScan.appendElement(mediaItem, false);}}mediaList.add(mediaItem);}};
mediaList.runInBatchMode(batchFunction);
if (mediaItemsToScan && mediaItemsToScan.length) {
var metadataService = Components.classes['@songbirdnest.com/Songbird/FileMetadataService;1'].getService(Components.interfaces.sbIFileMetadataService);
metadataService.read(mediaItemsToScan);
}
} else if (this.child == false) {
if (!this.checkForAnything(this)) {
library.remove(mediaList);
false;
delete aMediaListView;
}
}
if (this.child == false) {
context.progressTotal = context.progressCurrent = 1;
}
}
[Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [sbIMediaList.runInBatchMode]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://songbird/content/scripts/asyncWebPlaylist.js :: webPlaylist_finishedEval :: line 323" data: no]
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
The company .
-
Inappropriate?Hi praveen,
So that I can further assist you, please let me know:
1) what version of Songbird you are using;
2) what operating system you are using; and
3) a step-by-step rundown of how to reproduce this error.
Thanks. -
Inappropriate?

1) My songbird version is Version: Songbird/0.7.0 (20080819112708) XPCOMViewer/0.9a (2008072921) Build 716
2) I am using Windows Vista business edition
3) When I type a song to search in the SkreemR box i got the following error. When i pressed the download option i get this error as well
playlist.xml - onPlaylistClick - [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [sbILibrary.batchCreateMediaItems]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///C:/Program%20Files/Songbird/components/sbDownloadDeviceHelper.js :: sbDownloadDeviceHelper_downloadItem :: line 160" data: no]
When I search for some other songs in ScreemR, I dont get the download window and there is no error msg.
Thanks a lot for replying.
Loading Profile...




EMPLOYEE