SciLor's Open Source Forums

Also visit my Website!
It is currently Fri Nov 22, 2019 3:06 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Bugs-
PostPosted: Thu Jun 24, 2010 10:51 am 
It's an awesome program, and I am willing to help you make it even better :)

Here are two bugs:

On downloading certain songs(it may have something to do with the filename), the program crashes with a null reference exception.
It is quite erratic, sometimes it happens, sometimes it doesn't - one of those really hard bugs to track.

I suggest that, if there is no other way around, you can either display only the artist name only as a filename, and then a number, for
example : Taylor Swift Track 1, Track 2 etc...
I wouldn't mind having to rename the file, as long as it downloads :) Use try catch and get it :). I have an HTC Kaiser Tytn2

Heres the exception:
Code:
************** Exception Text **************
System.NullReferenceException:
 Object reference not set to an instance of an object.
 at SciLors_GrooveDownloader.frmGroove.StripIllegalFileName(String myString) at
 SciLors_GrooveDownloader.frmGroove.btnDownload_Click(Object sender, EventArgs e) at
 System.Windows.Forms.Control.OnClick(EventArgs e) at
 System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at
 System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at
 System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at
 System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at
 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)




 ************** Loaded Assemblies **************
 mscorlib Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900) CodeBase:
 file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll ----------------------------------------

SciLors GrooveDownloader Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Bella/Desktop/SciLor's%20Grooveshark.com%20Downloader/SciLors%20GrooveDownloader.exe ---------------------------------------- Microsoft.VisualBasic Assembly Version: 8.0.0.0 Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll ---------------------------------------- System Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Windows.Forms Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Runtime.Remoting Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll ---------------------------------------- SciLorsGroovesharkAPI Assembly Version: 1.0.3826.705 Win32 Version: 1.0.3826.705 CodeBase: file:///C:/Users/Bella/Desktop/SciLor's%20Grooveshark.com%20Downloader/SciLorsGroovesharkAPI.DLL ---------------------------------------- System.Xml Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Xml.Linq Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.4926 built by: NetFXw7 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll ---------------------------------------- System.Core Assembly Version: 3.5.0.0 Win32 Version: 3.5.30729.4926 built by: NetFXw7 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- Newtonsoft.Json.Compact Assembly Version: 3.5.0.0 Win32 Version: 3.5.0.0 CodeBase: file:///C:/Users/Bella/Desktop/SciLor's%20Grooveshark.com%20Downloader/Newtonsoft.Json.Compact.DLL ---------------------------------------- System.Configuration Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- System.Data Assembly Version: 2.0.0.0 Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900) CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll ----------------------------

------------ ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.



Note that this is the bug from the PC version of your program, but I get it on WM as well. Exactly the same error.


There is also another problem:

Every once in a while , my internet slows down a bit, and I get this unhandled exception:


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

Code:
************** Exception Text **************
System.Net.WebException: The operation has timed out
   at System.Net.HttpWebRequest.GetResponse()
   at SciLorsGroovesharkAPI.Groove.GroovesharkRequestBuilder`2.MakeRequest()
   at SciLorsGroovesharkAPI.Groove.GroovesharkClient.GetMusicStream(Int32 SongId)
   at SciLors_GrooveDownloader.frmGroove.btnDownload_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
SciLors GrooveDownloader
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Users/Bella/Desktop/SciLor's%20Grooveshark.com%20Downloader/SciLors%20GrooveDownloader.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
SciLorsGroovesharkAPI
    Assembly Version: 1.0.3826.705
    Win32 Version: 1.0.3826.705
    CodeBase: file:///C:/Users/Bella/Desktop/SciLor's%20Grooveshark.com%20Downloader/SciLorsGroovesharkAPI.DLL
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Xml.Linq
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.4926 built by: NetFXw7
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.4926 built by: NetFXw7
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Newtonsoft.Json.Compact
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.0.0
    CodeBase: file:///C:/Users/Bella/Desktop/SciLor's%20Grooveshark.com%20Downloader/Newtonsoft.Json.Compact.DLL
----------------------------------------
System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



Good luck, and I hope you fix these :) I like your software alot. If it is in Visual C++ or Vb.net I can help you code it


One last thing, try to set the download buffer in "GrooveDownloaderWM" to a different size, because I noticed that at first it is fast, then it slows down... alot.
This is exactly what I used to get when I set a bad buffer size for winsock in VB. You might consider trying to copy the code from "GrooveMobile", because
streming the complete song from "GrooveMobile" is about four times faster than downloading it in "GrooveDownloaderWM", and this shouldn't be, when my storage card has a speed
of 1mb/s!


Top
  
 
 
Online
The Adswinger

Joined: Wed Jan 13, 2010 11:56 pm
Posts: Too many!
Donated: Ad Posts


 Post subject: Re: Bugs-
PostPosted: Thu Jun 24, 2010 11:22 am 
Offline
The Developer

Joined: Wed Jan 13, 2010 11:56 pm
Posts: 1466
Donated: free software
Maltadav wrote:
It's an awesome program, and I am willing to help you make it even better :)

Here are two bugs:

On downloading certain songs(it may have something to do with the filename), the program crashes with a null reference exception.
It is quite erratic, sometimes it happens, sometimes it doesn't - one of those really hard bugs to track.

I suggest that, if there is no other way around, you can either display only the artist name only as a filename, and then a number, for
example : Taylor Swift Track 1, Track 2 etc...
I wouldn't mind having to rename the file, as long as it downloads :) Use try catch and get it :). I have an HTC Kaiser Tytn2

I would thank you, if you would find out when it happens exactly (The artist, search, song etc).


Maltadav wrote:
Every once in a while , my internet slows down a bit, and I get this unhandled exception:

I may set the Timeout a bit higher, if that is possible :)

Maltadav wrote:
One last thing, try to set the download buffer in "GrooveDownloaderWM" to a different size, because I noticed that at first it is fast, then it slows down... alot.
This is exactly what I used to get when I set a bad buffer size for winsock in VB. You might consider trying to copy the code from "GrooveMobile", because
streming the complete song from "GrooveMobile" is about four times faster than downloading it in "GrooveDownloaderWM", and this shouldn't be, when my storage card has a speed
of 1mb/s!

My current buffer is 1024 bytes, I may experiment a bit with it.

Thank you for all you feedback.

_________________
My Windows Mobile and Windows Open Source Website:
www.scilor.com

Like my work? Donate!
Donation Website

My Programs:
grooveshark™.com Downloader, GrooveMobile, Fuel Blaster, Chameleon TicTacToe, QuickTap, WiMoBlue, Driving Licence Trainer, CodeSnippetViewer, Gesture Launcher, Fahrplanauskunft, GSensor Control


Top
 Profile  
 
 Post subject: Re: Bugs-
PostPosted: Thu Jun 24, 2010 11:47 am 
Try this song: it crashes instantly when I try to dowload it.

Avril Lavigne - My happy ending - take me away


Top
  
 
 Post subject: Re: Bugs-
PostPosted: Thu Jun 24, 2010 11:56 am 
Quote:
I may set the Timeout a bit higher, if that is possible


No need! :) Display an error message in a messagebox instead, so that your program won't crash - but
would just display the message. That would be nicer :lol:

Code:
try{

//connect

} catch  //timeout

{
 MessageBox("Could not connect: Request has been timed out Retry?",yesno,"Error");
}


Top
  
 
 Post subject: Re: Bugs-
PostPosted: Sat Jun 26, 2010 4:07 pm 
Offline
The Developer

Joined: Wed Jan 13, 2010 11:56 pm
Posts: 1466
Donated: free software
The Windows version is now much nicer ;)

_________________
My Windows Mobile and Windows Open Source Website:
www.scilor.com

Like my work? Donate!
Donation Website

My Programs:
grooveshark™.com Downloader, GrooveMobile, Fuel Blaster, Chameleon TicTacToe, QuickTap, WiMoBlue, Driving Licence Trainer, CodeSnippetViewer, Gesture Launcher, Fahrplanauskunft, GSensor Control


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
template->_php_include(): File ./counter/foruminclude.php does not exist or is empty Powered by phpBB® Forum Software © phpBB Group