-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Bug Report: Song may restart at the end while missed notes pass by #3142
Comments
I managed to reproduce this bug back in v0.4.1, but I simply thought it was an issue with one of my mods. |
Definitely looking for help diagnosing/reproducing this. |
I was encountering the same issue but can only reproduce it on web. I also use firefox. |
Yeah I was trying it on the standalone build but couldn't reproduce it. Could be a browser / web version specific issue. |
I also had managed to reproduce it in that version while I was testing #2706, but I was on WSL and couldn't replicate it again afterward. |
Encountered this one at the end of Cocoa Erect on itch.io Web. |
Were you perchance in Firefox as well? |
I was using Brave when this happened |
Had this exact same thing happen to me on both DadBattle Pico & Blammed Pico Opera GX, btw |
Had this issue happen to me in the windows build during my first time playing Pico (Pico Mix). |
Just replicated this bug with Bopeebo (Pico Mix) on itch.io for Brave. The clip begins on the second loop of the song and goes into the third loop (which starts in the middle of the song). Pico.ghost.loop.bug.mp4 |
I also had this happen to me whilst playing South (Pico Mix) on Newgrounds, also on Firefox. I think the ghost notes are notes you missed the first time round and they're just wrapping round the second time. |
I've observed this "wrapping around" effect as well! |
I literally can't complete Philly Nice (Pico Mix) and Blammed (Pico Mix) because of this issue |
This can be happen in windows build too, just rarely unless framerate are unlocked it somehow increases the chances of it happening |
Got this bug as well while playing 2Hot on the itch.io version, as well as while playing on the web version (using Microsoft Edge). I think this might happen is because Conductor sets the song position to 0.0 if FlxG.sound.music is null, which also restarts the song in PlayState's stepHit() function. Not sure why onComplete doesn't want to work for FlxG.sound.music, but if I find sumthin I'll edit da comment more. |
I experienced the same thing on Chrome |
Apparently it's easier to reproduce this issue if Unlocked Framerate is enabled, and doesn't seem to occur when it's disabled. |
i have found multiple ways to reproduce this looping bug. |
This just happened to me moments ago. I was playing South on Hard in Story Mode, and when the song finished it didn't end but the song replayed and ghost notes passed by. I believe those notes might be the notes I missed before the song looped? But my game broke and the sprites became black after finishing the looped song. I'm on Opera Gx playing on Newgrounds btw |
Is there a consistent way to replicate this bug? |
This bug happens on desktop as well, but it's a lot more rare! |
Initially, I thought it was a Funkin' bug, but I simply time traveled on accident, resulting in more notes and in turn raising the clear% beyond 100! |
oh i see! that's crazy, also what's that song? looks very fun can i get link :) |
Someone needs to reach 1000% and see if #3631 happens |
The chart itself is made by me, which is not released publicly. You can find the song here though: https://www.youtube.com/watch?v=19y8YTbvri8 |
On it |
Just encountered this for the first time in 0.5.2 (itch.io (Downloadable Build) - Windows) Senpai.Erect.Loop.Bug.mp4 |
yeah i found it recently too, it was coincidentally on senpai erect too!!!! |
As a temporary workaround import funkin.modding.module.Module;
import funkin.play.PlayState;
import flixel.FlxG;
class EndSongKey extends Module {
public function new() {
super('EndSong');
}
function onUpdate() {
if (PlayState.instance != null) {
if (FlxG.keys.justPressed.ONE) PlayState.instance.endSong(true);
}
}
} This already exists as a hotkey in debug builds, but it's really useful in this context since you can't really complete the song without quitting and replaying it. |
since the bug exists i've encountered only twice, is it very common for others? |
My guess is that people's FPS settings determine how commonly they encounter this bug |
Considering that enabling Unlocked FPS on web made the issue more common for me, that might not be incorrect. |
Just encountered this on two different devices at once, both playing Senpai Erect at 300 FPS. Maybe this just happens a lot on this song now? Edit: This bug now occurs every time I play Senpai Erect |
Still encountering this bug even on 0.5.2. On Linux build, but the FPS was kept at 60. I've encountered this bug before on Web build as well before 0.5.x. |
Still exists in 0.5.3. |
You might be onto something, I've noticed that everytime it repeats/rewinds a voice resync is triggered, and it'll always rewind to a specific position. I had added a trace to track the |
It's always the goddamn offsets... |
I love that fixing the start-of-song desync bug led to all this chaos |
I think an easy - but not ideal - fix would be to disable vocal resync when the song is close to ending, since on songs where I consistently managed to reproduce the bug would actually end if I disabled the vocal resyncing logic. Edit: Nvm it doesn't work, the |
Upon further investigation, I began to realize that all the songs in which I was able to consistently reproduce this issue have vocals that are longer than the instrumental, those being Spookez, Dadbattle (Pico Mix) and Senpai Erect. To confirm if this was the case I changed the BF vocals for Fresh Erect to be a bit more long than the instrumental and it caused the glitch in that song as well. Likewise, editing the other songs' files so they all have the same length solved the issue on them. Still, this issue only occurred with Unlocked Framerate on. |
Excellent detective work, Hyper! |
I feel like the issue is that the game tries to resync the vocals since they go beyond the instrumental time (which is shorter) and eventually hit the threshold for resync (5ms). |
woah, 20 participants. |
pretty sure this happened to me in one of my other videos, ill give the link here: https://www.youtube.com/watch?v=4jYO3lp3MaI&t=215s clicking the link should bring you to the bug (3:35) |
Issue Checklist
What platform are you using?
Itch.io (Web)
If you are playing on a browser, which one are you using?
Firefox
Version
0.5.0
Context (Provide images, videos, etc.)
After a song ends, it might repeat once more. While this is happening "ghost" notes pass by.
Edit: In certain cases it seems like it'll keep repeating from where you last paused and basically getting you stuck unless you don't keep pausing and unpausing.
8mb.video-V09-1X6W5zzk.mp4
Steps to reproduce (or crash logs, errors, etc.)
This might not always happen and seems to occur more frequently on web builds when using Unlocked Framerate, but it is not necessarily caused by it.
The text was updated successfully, but these errors were encountered: