FunkinCrew / Funkin

A rhythm game made with HaxeFlixel
https://www.newgrounds.com/portal/view/770371
Other
2.97k stars 2.29k forks source link

Bug Report: [when i press in "touch here to play the game", my game freezes and this message appears: "Uncaught TypeError: Cannot read properties of null (reading 'duration') at openfl_media_Sound.get_length (Funkin.js:40023:34) at funkin_audio_FunkinSound.init (Funkin.js:95415:56) at funkin_audio_FunkinSound.loadEmbedded (Funkin.js:95375:15) at funkin_audio_FunkinSound.load (Funkin.js:119213:8) at funkin_audio_FunkinSound.playMusic (Funkin.js:119186:40) at funkin_ui_title_TitleState #2215

Closed iiwwakura closed 4 months ago

iiwwakura commented 6 months ago

Please check for duplicates or similar issues, as well performing simple troubleshooting steps (such as clearing cookies, clearing AppData, trying another browser) before submitting an issue.

If you are playing the game in a browser, what site are you playing it from?

If you are playing the game in a browser, what browser are you using?

What version of the game are you using? Look in the bottom left corner of the main menu. (ex: 0.2.7, 0.2.1, shit like that)

I can't say my game doesn't even loads to that point.

Have you identified any steps to reproduce the bug? If so, please describe them below in as much detail as possible. Use images if possible.

nop

Please describe your issue. Provide extensive detail and images if possible.

game is frozing and an error message appears:

Uncaught TypeError: Cannot read properties of null (reading 'duration') at openfl_media_Sound.get_length (Funkin.js:40023:34) at funkin_audio_FunkinSound.init (Funkin.js:95415:56) at funkin_audio_FunkinSound.loadEmbedded (Funkin.js:95375:15) at funkin_audio_FunkinSound.load (Funkin.js:119213:8) at funkin_audio_FunkinSound.playMusic (Funkin.js:119186:40) at funkin_ui_title_TitleState.playMenuMusic (Funkin.js:210449:28) at funkin_ui_title_TitleState.startIntro (Funkin.js:210347:8) at flixel_util_FlxTimer.onComplete (Funkin.js:210318:11) at flixel_util_FlxTimer.onLoopFinished (Funkin.js:114574:9) at flixel_util_FlxTimerManager.update (Funkin.js:114635:56)

image

If you're game is FROZEN and you're playing a web version, press F12 to open up browser dev window, and go to console, and copy-paste whatever red error you're getting

SilverT4 commented 6 months ago

Are you using Opera GX? I'm simply speculating here, but it seems that Opera GX may handle audio in embedded things (which FNF technically is) differently than most Chromium-based browsers.

Edit: Devs are aware of the bug

iiwwakura commented 6 months ago

my bad for late reply.

Yes I'm using Opera, I tried downloading the game and it opened just fine. If the problem was on the browser then it's not a problem for me anymore.

Em ter., 30 de abr. de 2024 23:25, Devin @.***> escreveu:

Are you using Opera GX? I'm simply speculating here, but it seems that Opera GX may handle audio in embedded things (which FNF technically is) differently than most Chromium-based browsers.

— Reply to this email directly, view it on GitHub https://github.com/FunkinCrew/Funkin/issues/2215#issuecomment-2087921461, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHT6U4CBAGXZRNB7RLKQNTDZABOBRAVCNFSM6AAAAABHBMAQA2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBXHEZDCNBWGE . You are receiving this because you authored the thread.Message ID: @.***>

SilverT4 commented 6 months ago

Yeah, the devs fixed the issue according to a statement by ninjamuffin on Twitter

EliteMasterEric commented 4 months ago

This got resolved.