Go Back   Winamp Forums > Winamp > Winamp Bug Reports

Reply
Thread Tools Search this Thread Display Modes
Old 11th January 2008, 17:58   #1
a-deck-of-hands
Junior Member
 
Join Date: Jan 2008
Posts: 1
Debugging on Play

Running Winamp 1.51
System Spec: Core2Duo E6750, Geforce 8800 GTS, 2Gig Ram
Related Software: Microsoft Visual C++ 6.0

Im having the bug that whenever i select an artist in the main screen my computer loads up the Visual C++ debugger.
I can tell that from the code that appears there is an error in the info form and hiding the form stops the bug.

Im getting this code and i have highlighted the breakpoint.
code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Winamp - Now Playing</title>
<style type="text/css" media="screen">
body
{
font-size: 10px;
font-family: tahoma, arial, helvetica;
margin: 0;
padding: 0;
overflow: hidden;
}

ul, .ul, li, .li
{
margin: 0px;
padding: 1px;
border: 0px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
cursor: hand;
}

.h2s
{
font-size: 12px;
margin: 0px;
padding: 0px;
border-bottom: 1px solid #333;
}

.missing_art_75x75
{
margin: 0;
padding: 0;
border: 0px;
width: 100px;
height: 100px;
background-image: url("http://media.winamp.com/client/images/np/missing_art_130x130.png");
_background-image: none;
_filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled='true', sizingMethod='scale', src='http://media.winamp.com/client/images/np/missing_art_130x130.png');
}

#artwork
{
margin: 0px;
padding: 0px;
border: 0px;
float: left;
display: none;
}

#artwork img
{
margin: 1px;
padding: 0px;
border: 0px;
float: left;
}

#left
{
margin: 0 0 0 5px;
font-family: arial;
width: 30%;
float: left;
text-overflow: ellipsis; overflow: hidden;
display: none;
}

#middle
{
font-family: arial;
width: 30%;
float: left;
text-overflow: ellipsis; overflow: hidden;
padding-left: 4px;
display: none;
}

#right
{
font-family: arial;
width: 20%;
float: left;
overflow: hidden;
padding-left: 4px;
display: none;
}

#container
{
margin: 0px;
padding: 0px;
border: 0px;
overflow: hidden;
text-overflow: ellipsis;
}

.waItem{}
.waItemBg{}
.waItemFg{}
.waWndBg{}
.waBtnFg{}
.waWndFg{}
.waHilite{}
.waSel{}
.waListHeadBg{}
.waListHeadFont{}
.waListHeadTop{}
.waListHeadMid{}
.waListHeadBot{}
.waListHeadEmpty{}
.waScrollFg{}
.waScrollBg{}
.waScrollInvFg{}
.waScrollInvBg{}
.waScrollEmpty{}
.waSelbarFg{}
.waInactSelbarFg{}
.waPlFg{}
.waPlCurrentFg{}
.waPlBg{}
.waPlSelbar{}
.waPlGenericFg{}
.waPlGenericBg{}
</style>
<script type="text/javascript" src="http://media.winamp.com/client/js/winamp_js_lib.js"></script>
<script type="text/javascript" src="http://media.winamp.com/client/js/gracenote.js"></script>
<script type="text/javascript">

var waTagID = "";
var lookupFilename = "";

function ajaxObject(url, callbackFunction)
{
var that = this;
this.updating = false;
this.abort = function()
{
if (that.updating)
{
that.updating = false;
that.AJAX.abort();
that.AJAX = null;
}
}

this.update = function(passData, postMethod) {
if (that.updating) { return false; }
that.AJAX = null;
if (window.XMLHttpRequest) {
that.AJAX = new XMLHttpRequest();
} else {
that.AJAX = new ActiveXObject("Microsoft.XMLHTTP");
}
if (that.AJAX == null) {
return false;
} else {
that.AJAX.onreadystatechange = function() {
if (that.AJAX.readyState == 4) {
that.updating = false;
that.callback(that.AJAX.responseText, that.AJAX.status, that.AJAX.responseXML);
that.AJAX = null;
}
}
that.updating = new Date();
if (/post/i.test(postMethod)) {
var uri = urlCall+'?'+that.updating.getTime();
(bChk=1) ;
that.AJAX.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
that.AJAX.setRequestHeader("Content-Length", passData.length);
that.AJAX.send(passData);
} else {
var uri = urlCall+'?'+passData;
(bChk=1) ;
that.AJAX.send(null) ;
}
return true;
}
}
var urlCall = url;
this.callback = callbackFunction || function () { };
}

function get_amg_img(albumImageName)
{
albroot = "http://coverart.music.aol.com/amgmusic/album/pop/";
dir1 = "dr"+albumImageName.substr(0,2)+"00";
dir2 = albumImageName.substr(0,4);

return albroot+"cov"+100+"/"+dir1+"/"+dir2+"/"+albumImageName+".jpg";
}

function waProcessAMGAlbumData( filename, xmltext )
{
if (lookupFilename == filename )
{
var xml = new ActiveXObject("MSXML2.FreeThreadedDOMDocument");
xml.async = false;
result = xml.loadXML(xmltext);
if (result)
{
var amgArtistID = "";
var resultArray = new Array();
var field_nodes = xml.getElementsByTagName("Field");
var field_count = field_nodes.length;
// Store all the Named Field Tags to an associatve array for easy access
for ( index = 0; index < field_count; index++)
resultArray[field_nodes[index].getAttribute("name")] = field_nodes[index].childNodes[0].nodeValue;

if ( resultArray["albumImageName"] )
{
document.getElementById("artwork").innerHTML = '<img border="0" width="98" height="98" src="'+get_amg_img( resultArray["albumImageName"])+'">';
document.getElementById("artwork").style.display = "block";
}
}
}
}

function waAOLAMGAlbumLookup( filename, amgID )
{
if (lookupFilename == filename )
{
request = "http://client.winamp.com/np/details/lib/functions.aolamgxml.php";
params = "albumID="+escape(amgID);
var ajaxRequest = new ajaxObject(request);
ajaxRequest.callback = function (responseText)
{
waProcessAMGAlbumData(filename, responseText);
}
ajaxRequest.update(params);
}
}

function waGNArtistLookup( filename, artistID)
{
if (lookupFilename == filename )
{
request = "http://client.winamp.com/np/details/lib/functions.gnxml.php";
params = "ArtistID="+artistID;
var ajaxRequest = new ajaxObject(request);
ajaxRequest.callback = function (responseText)
{

foundResult = responseText.indexOf("result");
if (foundResult == 0) // Proper result should begin with "result = ";
{
eval(responseText);
newspage = "";
if (result.ARTISTCONTENT && result.ARTISTCONTENT.HEADLINES)
for ( index = 0; index < 5; index++)
if ( result.ARTISTCONTENT.HEADLINES[index] && result.ARTISTCONTENT.HEADLINES[index].TEXT && result.ARTISTCONTENT.HEADLINES[index].HREF)
{
newspage += "<ul onClick=\"window.external.Application.LaunchURL('"+result.ARTISTCONTENT.HEADLINES[index].HREF+"');\" title=\""+result.ARTISTCONTENT.HEADLINES[index].TEXT+"\">"+result.ARTISTCONTENT.HEADLINES[index].TEXT+"</ul>\n";

}

if (newspage.length > 1)
{
document.getElementById("news_items").innerHTML = newspage;
document.getElementById("left").style.display = "block";
}
fanpage = "";
if (result.ARTISTCONTENT && result.ARTISTCONTENT.FANSITES)
for ( index = 0; index < 5; index++)
if ( result.ARTISTCONTENT.FANSITES[index] && result.ARTISTCONTENT.FANSITES[index].FANSITE_NAME )
fanpage += "<ul onClick=\"window.external.Application.LaunchURL('"+result.ARTISTCONTENT.FANSITES[index].HREF+"');\" title=\""+result.ARTISTCONTENT.FANSITES[index].DESCRIPTION+"\">"+result.ARTISTCONTENT.FANSITES[index].FANSITE_NAME+"</ul>\n";
if (fanpage.length > 1)
{
document.getElementById("fan_items").innerHTML = fanpage;
document.getElementById("middle").style.display = "block";
}
}
else
alert(responseText);

}
ajaxRequest.update(params);
}
}

function waMusicIDCallback( filename, tagID )
{
if (lookupFilename == filename )
{
if (tagID.length)
{
waTagID = tagID;
request = "http://client.winamp.com/np/details/lib/functions.gnxml.php";
params = "TagID="+waTagID;
var ajaxRequest = new ajaxObject(request);
ajaxRequest.callback = function (responseText)
{
var amgID = "";
try
{
foundResult = responseText.indexOf("result");
if (foundResult == 0) // Proper result should begin with "result = ";
{
eval(responseText);
if (result.ALBUM && result.ALBUM.ARTIST && result.ALBUM.ARTIST.ID )
waGNArtistLookup( filename,parseInt(result.ALBUM.ARTIST.ID));

if (result.ALBUMCONTENT && result.ALBUMCONTENT.EXTERNALIDS)
for ( index = 0; index < result.ALBUMCONTENT.EXTERNALIDS.length; index++)
if ( result.ALBUMCONTENT.EXTERNALIDS[index].DATASOURCE == "amg" )
amgID = result.ALBUMCONTENT.EXTERNALIDS[index].ID;

if (amgID)
waAOLAMGAlbumLookup(filename, amgID);
}

}
catch (e)
{
}
}
ajaxRequest.update(params);
}
}
}



function SongInfoCallback( filename )
{
if (filename != lookupFilename)
{
document.getElementById("artwork").style.display = "none";
document.getElementById("left").style.display = "none";
document.getElementById("middle").style.display = "none";
document.getElementById("right").style.display = "none";
}


if (filename.length > 2 && filename != lookupFilename )
{
var gracenoteFileID = oWa.MediaCore.GetMetadata(filename,"GracenoteFileID");
lookupFilename = filename;
if (!gracenoteFileID && filename.indexOf("cda://") != 0 )
oWa.MusicID.GetID(filename,waMusicIDCallback);
else
waMusicIDCallback( filename, gracenoteFileID );
}
}

function waOnSkinChange()
{
updateColors();
}

function updateColors()
{
var items = [".h2s"];
var styles = ["borderColor"];
var values = [sColorSelbarBg];
changeStyleValue(items,styles,values);
}

window.onload = onPageLoad;
window.onunload = onPageUnload;

</script>
</head>

<body class="waItem" ondragstart="return false" onselectstart="return false">

<h1 class="h1s"></h1>
<div id="container">
<div id="artwork"></div>
<div id="left">
<h2 class="h2s">News</h2>
<div id="news_items">
</div>
</div>
<div id="middle">
<h2 class="h2s">Fan Sites</h2>
<div id="fan_items"></div>
</div>
<div id="right">
<h2 class="h2s">Buy Stuff</h2>
<div id="buy_items"></div>
</div>
</div>

<div id="omnitureCode" style="position: absolute; left: -100px; top: -100px;">
<script type="text/javascript">
<!--
var s_account="aolwinamp,aolsvc";
//-->
</script>
<script type="text/javascript" src="http://o.aolcdn.com/omniunih.js"></script>
<script type="text/javascript">
<!--
s_265.pfxID="wna"; s_265.pageName="wna : winamp-client-nowplaying-details-songinfo"; s_265.server="MTC-0"; s_265.channel="us.winamp"; s_265.pageType=""; s_265.linkInternalFilters="javascript:,aol.com,shoutcast.com,www.shoutcast.com,winamp.com"; s_265.prop1="Winamp"; s_265.prop2="Winamp Client"; s_265.prop12="http://client.winamp.com/np/details/songinfo.php";s_265.prop16=""; s_265.prop17="GB";
//-->
</script>
<script type="text/javascript">
<!--
var s_code=s_265.t(); if(s_code){ document.write(s_code); }
//-->
</script>
<noscript><a href="http://www.omniture.com" title="Web Analytics"><img src="http://aolwinamp.122.2O7.net/b/ss/aolwinamp/1/H.9--NS/0" height="1" width="1" border="0" alt="" /></a></noscript>
</div>

</body>
</html>



Is their any fix for this or is it just an installation error? i can try and reinstall if needed.
a-deck-of-hands is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Winamp > Winamp Bug Reports

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump