Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Spotify issue #26

Closed
cmwallace opened this issue Mar 10, 2015 · 35 comments
Closed

New Spotify issue #26

cmwallace opened this issue Mar 10, 2015 · 35 comments
Assignees
Labels

Comments

@cmwallace
Copy link

When I updated spotify yesterday I got this error when snip try's to open:

The box is titled: Microsoft .NET Framework. It asks me to Quit or Continue and my only choice that works is Quit. Someone please help me resolve this issue.

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

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Winter.Spotify.Update()
at Winter.Snip.TimerScanMediaPlayer_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll

Snip
Assembly Version: 4.6.0.0
Win32 Version: 4.6.0.0

CodeBase: file:///C:/Users/Chris%20Wallace/Desktop/Snip/Snip.exe

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34209 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.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.

@denolfe
Copy link

denolfe commented Mar 11, 2015

The new version of Spotify no longer shows the currently playing song in its title. This was the method that Snip used to get the song information.

The solution is to downgrade Spotify to an older version from here. Then do the following:

Go to C:\Users\YOURUSERNAME\Appdata\Roaming\Spotify

  1. Make a new empy text file
  2. Name it Spotify_new.exe
  3. Right click the file and make the file read-only
  4. Copy this file and name the new one Spotify_new.exe.sig

Spotify needs to delete these files to do an automatic upgrade. The read-only flag on both of these files will prevent upgrading from happening.

@MrRenter
Copy link

Encountered same issue. Only happens with spottily.

@cmwallace
Copy link
Author

This fixes it for me!!!! Make sure you copy it exactly.

@dlrudie
Copy link
Owner

dlrudie commented Mar 12, 2015

Which version of Spotify is the newest version? Mine hasn't asked me to update it yet. It's version 9.5.15.27. Snip is still working fine here.

@dlrudie
Copy link
Owner

dlrudie commented Mar 12, 2015

I finally got the update and can confirm it's no longer working. I'll need to look into it more during the weekend.

@dlrudie dlrudie added the bug label Mar 12, 2015
@dlrudie dlrudie self-assigned this Mar 12, 2015
This was referenced Mar 15, 2015
@dlrudie
Copy link
Owner

dlrudie commented Mar 15, 2015

The issue is that the song information is no longer stored in the title of the window. I am very displeased with this UI update all around. I liked the original design the best. Anyway, I'm still working on finding an alternative way to make this work.

@TrollWarlord
Copy link

You may have to enumerate the window controls. Grab the section that controls the current playing song and get the text.

Use "Winspector" - http://gipsysoft.com/ or something like it, grab that control etc..

@denolfe
Copy link

denolfe commented Mar 15, 2015

Here are 2 projects that I've looked into in the past that might help you out:

Both of them deal with the local webserver that spotify runs on a machine. The first is C# so would probably be easier to implement. The second one is in Node, so you would have to wrap that somehow.

@denolfe
Copy link

denolfe commented Mar 16, 2015

This one looks even more up to date AND in C#. It has the ability to query locally for the song information along with song progress and spotify volume.

https://github.com/ikkentim/Spotify

@ayancey
Copy link

ayancey commented Mar 17, 2015

@denolfe This looks really promising. It looks like that code queries a local web server that Spotify uses to integrate with things like Facebook.

@dlrudie
Copy link
Owner

dlrudie commented Mar 18, 2015

Looks good. I'll look into that and see what I can come up with.

@dlrudie
Copy link
Owner

dlrudie commented Mar 22, 2015

I started to implement the Spotify API linked above but it doesn't seem to work either. It hangs as soon as you create a new Spotify(). Perhaps the web helper changed with the recent update.

@dlrudie
Copy link
Owner

dlrudie commented Mar 22, 2015

I've started to merge the code from the SpotifyAPI project into mine. I couldn't get the project as-is to work so I'm just copying over, updating, and using only the pieces I need to get it working. So far I'm getting responses and it's looking good.

@denolfe
Copy link

denolfe commented Mar 24, 2015

@dlrudie Good stuff! Keep us updated!

@tance77
Copy link

tance77 commented Mar 29, 2015

@dlrudie why don't you just use this https://github.com/JohnnyCrazy/SpotifyAPI-NET I have implemented a patch for the time being of my own that works like 90% of the time. I was to lazy to fix it 100% was just waiting for you to release it.

@Hatsune-Cthulhu
Copy link

Any news on a fix?

@Domin0e Domin0e mentioned this issue May 9, 2015
@dlrudie
Copy link
Owner

dlrudie commented May 10, 2015

I've been ridiculously busy lately. I'll try to get something going this weekend though.

@dlrudie
Copy link
Owner

dlrudie commented May 10, 2015

I have a working version here still. It was working when I made the comment on March 22. There are still features missing that I'm trying to figure out. The web helper API allows you to pause a track, and play a specific track on demand, but there seems to be no next track or previous track features. I know one of my personal reasons for using Snip before was actually just to use the hotkey to switch to the next track without having to touch Spotify.

@dlrudie
Copy link
Owner

dlrudie commented May 10, 2015

I committed what I have so far. It works and if you build it you should be good. I'll work on implementing more stuff over the weekend.

@the9quad
Copy link

Anyway, you could put up a temporary release?

@tance77
Copy link

tance77 commented May 20, 2015

@the9quad just go build the project yourself. Since your posting on here I'm assuming you have the knowledge to do so.

@the9quad
Copy link

@tance77 , actually buddy, I do not have the knowledge to do so. I did however know how to create an account to ask the question. That is why I asked. I figured there was no harm in asking. I apologize if I broke some kind of protocol. (there was no sarcasm in this post, so please don't read any into it.)

@denolfe
Copy link

denolfe commented May 20, 2015

Wow, very rude response to a simple request... @tance77 It is not expected that everyone has the ability to build the project themselves. I'm sure @dlrudie will be able to put one up.

@seanfmcd
Copy link

What version of Spotify is the latest one that works with Snip? @denolfe

@tance77
Copy link

tance77 commented May 22, 2015

@the9quad @denolfe i was mistaken apparently here is a simple compiled version. Note this is not an offical release. https://github.com/tance77/snip2/archive/master.zip

@the9quad
Copy link

@tance77 thanks appreciate it.

@piercy
Copy link

piercy commented May 28, 2015

thought id post here and let you know @dlrudie , the song name and artist seem to be back in the title again now. So might make things easier for you. Thanks for the great app 👍

@Anexodus
Copy link

@tance77 thanks for the temp fix.

@LastTalon
Copy link

@tance77 that version errors for me as well. I also can't compile my own because it seems there are quite a few references the project is expecting that aren't included.

@Arkpit
Copy link

Arkpit commented Jun 18, 2015

Hi guys, I compiled a working Snip.exe from the latest commits. I had to remove all iTunes references and the code is NOT signed since the pfx file was not included in the code BUT, it works. Here you go: http://puu.sh/isLzW.zip

@the9quad
Copy link

@Arkpit thank you very much. The artwork feature works great.

@nfons
Copy link

nfons commented Jun 28, 2015

can confirm @Arkpit works

@dlrudie
Copy link
Owner

dlrudie commented Jul 5, 2015

Since the song information was added back to Spotify's title I'll have something more efficient soon.

@dlrudie
Copy link
Owner

dlrudie commented Jul 5, 2015

Commit 4a2acad fixed this issue. Enjoy.

@dlrudie dlrudie closed this as completed Jul 5, 2015
@nfons
Copy link

nfons commented Jul 6, 2015

awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests