[GH-ISSUE #94] 2.7.1 Injector absolutely does not work #87

Closed
opened 2026-02-27 15:48:12 +03:00 by kerem · 11 comments
Owner

Originally created by @FailSafeNow on GitHub (Dec 19, 2023).
Original GitHub issue: https://github.com/Rafiuth/Soggfy/issues/94

I had a perfect, error-free installation. Here's what happened when I tried to run the injector:
Screenshot 2023-12-19 172715

Here's what happened when I ran Spotify and THEN tried to run the injector:
Screenshot 2023-12-19 172952
Screenshot 2023-12-19 173025

I had no errors whatsoever during installation. By the way, running the install bat the normal way does not work. I had to change directory to the Soggfy folder in the command prompt or else the installation failed, because it tried to look for relevant files in C:\WINDOWS\system32, so that definitely hasn't been fixed. And now, despite doing everything exactly right, I can't make the injector work.

Originally created by @FailSafeNow on GitHub (Dec 19, 2023). Original GitHub issue: https://github.com/Rafiuth/Soggfy/issues/94 I had a perfect, error-free installation. Here's what happened when I tried to run the injector: ![Screenshot 2023-12-19 172715](https://github.com/Rafiuth/Soggfy/assets/65687160/d1221ec3-213e-4d63-a1a9-042f58e7ef28) Here's what happened when I ran Spotify and THEN tried to run the injector: ![Screenshot 2023-12-19 172952](https://github.com/Rafiuth/Soggfy/assets/65687160/65f78b7c-101f-4cb7-9327-2d92df8ce729) ![Screenshot 2023-12-19 173025](https://github.com/Rafiuth/Soggfy/assets/65687160/800f225d-7168-4c2d-8b6f-cd8262e78061) I had no errors whatsoever during installation. By the way, running the install bat the normal way does not work. I had to change directory to the Soggfy folder in the command prompt or else the installation failed, because it tried to look for relevant files in C:\WINDOWS\system32, so that definitely hasn't been fixed. And now, despite doing everything exactly right, I can't make the injector work.
kerem closed this issue 2026-02-27 15:48:13 +03:00
Author
Owner

@Rafiuth commented on GitHub (Dec 20, 2023):

From https://github.com/Rafiuth/Soggfy/issues/92#issuecomment-1858607502:

After running the install script in v2.7.1, Soggfy should just work whenever you launch Spotify. The injector was left as a last resort thing and it now requires that Spotify be open before using it.

I think what's happening here with the hook error is that the hijacked DLL (from the install script) has already been loaded, and running the injector will load another copy of it on the same Spotify process, but it won't find DecodeAudioData because the target function code has already been overwritten by the first DLL.

Also, the soggfy interface will fail to load in some rare launches, but will work fine after restarting Spotify (fixed but not yet released).

I'll take a look at the install script, thanks for reporting.

<!-- gh-comment-id:1863826993 --> @Rafiuth commented on GitHub (Dec 20, 2023): From https://github.com/Rafiuth/Soggfy/issues/92#issuecomment-1858607502: > After running the install script in v2.7.1, Soggfy should just work whenever you launch Spotify. The injector was left as a last resort thing and it now requires that Spotify be open before using it. I think what's happening here with the hook error is that the hijacked DLL (from the install script) has already been loaded, and running the injector will load another copy of it on the same Spotify process, but it won't find DecodeAudioData because the target function code has already been overwritten by the first DLL. Also, the soggfy interface will fail to load in some rare launches, but will work fine after restarting Spotify (fixed but not yet released). I'll take a look at the install script, thanks for reporting.
Author
Owner

@FailSafeNow commented on GitHub (Dec 21, 2023):

Where's the download button, that decides whether I'm just playing music or downloading it? I remember where it used to be in 2.5.0, and it's sure not there now.

<!-- gh-comment-id:1867048180 --> @FailSafeNow commented on GitHub (Dec 21, 2023): Where's the download button, that decides whether I'm just playing music or downloading it? I remember where it used to be in 2.5.0, and it's sure not there now.
Author
Owner

@YehudaEi commented on GitHub (Dec 25, 2023):

I also don't see a download button (even though the installation says that everything is working properly).
And if I try to open Spotify and then the Injector, I get the following error:
image
It should be noted that the error also appears when I run the Injector as an administrator...

<!-- gh-comment-id:1868891210 --> @YehudaEi commented on GitHub (Dec 25, 2023): I also don't see a download button (even though the installation says that everything is working properly). And if I try to open Spotify and then the Injector, I get the following error: <img width="295" alt="image" src="https://github.com/Rafiuth/Soggfy/assets/32451776/04c59524-0609-44dd-bcca-9b3e2a549a47"> It should be noted that the error also appears when I run the Injector as an administrator...
Author
Owner

@Rafiuth commented on GitHub (Dec 26, 2023):

@YehudaEi Are you using the x64 Spotify version by any chance? Soggfy is only compatible with the 32-bit version and
and the install script will fail to account for it atm.

A possible workaround might be to either reinstall Spotify or to delete %appdata%/Spotify/Spotify.exe, and then run the install script again.

<!-- gh-comment-id:1869799883 --> @Rafiuth commented on GitHub (Dec 26, 2023): @YehudaEi Are you using the x64 Spotify version by any chance? Soggfy is only compatible with the 32-bit version and and the install script will fail to account for it atm. A possible workaround might be to either [reinstall Spotify](https://upgrade.scdn.co/upgrade/client/win32-x86/spotify_installer-1.2.26.1187.g36b715a1-269.exe) or to delete `%appdata%/Spotify/Spotify.exe`, and then run the install script again.
Author
Owner

@hhoneeyy commented on GitHub (Dec 30, 2023):

@YehudaEi Are you using the x64 Spotify version by any chance? Soggfy is only compatible with the 32-bit version and and the install script will fail to account for it atm.

A possible workaround might be to either reinstall Spotify or to delete %appdata%/Spotify/Spotify.exe, and then run the install script again.

im having the same issue as OP, i tried your solutions but noting

<!-- gh-comment-id:1872518885 --> @hhoneeyy commented on GitHub (Dec 30, 2023): > @YehudaEi Are you using the x64 Spotify version by any chance? Soggfy is only compatible with the 32-bit version and and the install script will fail to account for it atm. > > A possible workaround might be to either [reinstall Spotify](https://upgrade.scdn.co/upgrade/client/win32-x86/spotify_installer-1.2.26.1187.g36b715a1-269.exe) or to delete `%appdata%/Spotify/Spotify.exe`, and then run the install script again. im having the same issue as OP, i tried your solutions but noting
Author
Owner

@Masterload1975 commented on GitHub (Jan 1, 2024):

For me it is working well. Installed with spicetify copied Spotify from roaming folder to soggfy folder and started Soggfy\Spotify\Spotify.exe without using Injector.exe.

Downloads and spicetify are working thanks...

<!-- gh-comment-id:1873070214 --> @Masterload1975 commented on GitHub (Jan 1, 2024): For me it is working well. Installed with spicetify copied Spotify from roaming folder to soggfy folder and started Soggfy\Spotify\Spotify.exe without using Injector.exe. Downloads and spicetify are working thanks...
Author
Owner

@FailSafeNow commented on GitHub (Jan 18, 2024):

For me, it's random. SOMETIMES I get the download button, but most of the time I don't. It's annoying. There were times when I would have no arrow, but I would be downloading music, and I couldn't shut the download feature off. So I suspect there's a javascript trigger that's failing to fire properly. It's waiting for an event that never comes. Would be good to have more than one way of triggering the download button. Redundancy can solve these problems.

For instance, function first checks for button, and if button isn't there, it generates button. Listener checks for whether button is removed, and if it is, it puts button back. Function runs immediately, runs at window onload, runs at dom content loaded... I think that'll be enough triggers to cover it.

<!-- gh-comment-id:1898741189 --> @FailSafeNow commented on GitHub (Jan 18, 2024): For me, it's random. SOMETIMES I get the download button, but most of the time I don't. It's annoying. There were times when I would have no arrow, but I would be downloading music, and I couldn't shut the download feature off. So I suspect there's a javascript trigger that's failing to fire properly. It's waiting for an event that never comes. Would be good to have more than one way of triggering the download button. Redundancy can solve these problems. For instance, function first checks for button, and if button isn't there, it generates button. Listener checks for whether button is removed, and if it is, it puts button back. Function runs immediately, runs at window onload, runs at dom content loaded... I think that'll be enough triggers to cover it.
Author
Owner

@Rafiuth commented on GitHub (Jan 19, 2024):

@FailSafeNow could you try removing the two lines highlighted in red here from the file at %appdata%/Spotify/SoggfyUIC.js?

If that doesn't fixes it, the problem might be something else, which I suspect given your description of downloads working but not the UI hooks.

(I've been meaning to get back on this but didn't realize it's been a month already. Oh well.)

<!-- gh-comment-id:1899589096 --> @Rafiuth commented on GitHub (Jan 19, 2024): @FailSafeNow could you try removing the two lines [highlighted in red here](https://github.com/Rafiuth/Soggfy/commit/ce93116036371f55e9043bc8404fffbf41229ed1) from the file at `%appdata%/Spotify/SoggfyUIC.js`? If that doesn't fixes it, the problem might be something else, which I suspect given your description of downloads working but not the UI hooks. (I've been meaning to get back on this but didn't realize it's been a month already. Oh well.)
Author
Owner

@FailSafeNow commented on GitHub (Jan 23, 2024):

@FailSafeNow could you try removing the two lines highlighted in red here from the file at %appdata%/Spotify/SoggfyUIC.js?

If that doesn't fixes it, the problem might be something else, which I suspect given your description of downloads working but not the UI hooks.

(I've been meaning to get back on this but didn't realize it's been a month already. Oh well.)

I think that did it. It seems to be working reliably now. Thank you.

<!-- gh-comment-id:1906290440 --> @FailSafeNow commented on GitHub (Jan 23, 2024): > @FailSafeNow could you try removing the two lines [highlighted in red here](https://github.com/Rafiuth/Soggfy/commit/ce93116036371f55e9043bc8404fffbf41229ed1) from the file at `%appdata%/Spotify/SoggfyUIC.js`? > > If that doesn't fixes it, the problem might be something else, which I suspect given your description of downloads working but not the UI hooks. > > (I've been meaning to get back on this but didn't realize it's been a month already. Oh well.) I think that did it. It seems to be working reliably now. Thank you.
Author
Owner

@Rafiuth commented on GitHub (Feb 16, 2024):

This should be fixed in 2.7.2.

<!-- gh-comment-id:1947653010 --> @Rafiuth commented on GitHub (Feb 16, 2024): This should be fixed in 2.7.2.
Author
Owner

@YehudaEi commented on GitHub (Feb 16, 2024):

@Rafiuth I really apologize for not being available to comment here. I am now up to date on this thread.
Thank you very much for the correction!

<!-- gh-comment-id:1948342198 --> @YehudaEi commented on GitHub (Feb 16, 2024): @Rafiuth I really apologize for not being available to comment here. I am now up to date on this thread. Thank you very much for the correction!
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Soggfy#87
No description provided.