Crash Report: Segmentation Fault when loading into Week 7 and Weekend 1 (Linux)
Issue Checklist
- [X] I have properly named my issue
- [X] I have checked the Issues/Discussions pages to see if my issue has already been reported
Platform
Itch.io (Downloadable Build) - Linux
Browser
None
Version
0.5.2
Description
When loading into Week 7 and Weekend 1 through the Story Mode menu on Linux, the game crashes. An error is thrown in the terminal stating "Segmentation fault (core dumped)". This does not happen when loading any other weeks, or songs through freeplay.
As a matter of fact, loading any week 7 song through Freeplay works, just not through story mode, leading me to believe its an issue with the cutscenes.
It's possible it could be my system, this is running on ChromeOS 128 Linux (penguin), but I thought it'd be best to submit a report anyway just in case.
Steps to Reproduce
Open the game and start either Week 7 or Weekend 1 through story mode.
Crash logs
There was no crash log so here's the terminal output instead
source/funkin/ui/transition/preload/FunkinPreloader.hx:137: Initializing custom preloader... source/funkin/util/CLIUtil.hx:25: Working directory is already correct. source/funkin/ui/transition/preload/FunkinPreloader.hx:933: Preloader state: DownloadingAssets (100%, 0.133998046875s) source/funkin/ui/transition/preload/FunkinPreloader.hx:936: Preloader state: PreloadingPlayAssets (100%, 0.481261962890625s) source/funkin/ui/transition/preload/FunkinPreloader.hx:936: Preloader state: PreloadingPlayAssets (0%, 0.498431884765625s) source/funkin/ui/transition/preload/FunkinPreloader.hx:939: Preloader state: InitializingScripts (0%, 0.62056396484375s) source/funkin/ui/transition/preload/FunkinPreloader.hx:942: Preloader state: CachingGraphics (0%, 0.634007080078125s) source/funkin/ui/transition/preload/FunkinPreloader.hx:942: Preloader state: CachingGraphics (0%, 0.6736669921875s) source/funkin/ui/transition/preload/FunkinPreloader.hx:942: Preloader state: CachingGraphics (7%, 0.681414306640625s) source/funkin/ui/transition/preload/FunkinPreloader.hx:942: Preloader state: CachingGraphics (40%, 0.714571044921875s) source/funkin/ui/transition/preload/FunkinPreloader.hx:942: Preloader state: CachingGraphics (69%, 0.742761962890625s) source/funkin/ui/transition/preload/FunkinPreloader.hx:942: Preloader state: CachingGraphics (85%, 0.75960302734375s) source/funkin/ui/transition/preload/FunkinPreloader.hx:945: Preloader state: CachingAudio (0%, 0.777078857421875s) source/funkin/ui/transition/preload/FunkinPreloader.hx:945: Preloader state: CachingAudio (0%, 0.794716064453125s) source/funkin/ui/transition/preload/FunkinPreloader.hx:945: Preloader state: CachingAudio (13%, 0.808151123046875s) source/funkin/ui/transition/preload/FunkinPreloader.hx:945: Preloader state: CachingAudio (28%, 0.82280224609375s) source/funkin/ui/transition/preload/FunkinPreloader.hx:945: Preloader state: CachingAudio (47%, 0.8420439453125s) source/funkin/ui/transition/preload/FunkinPreloader.hx:945: Preloader state: CachingAudio (59%, 0.85418212890625s) source/funkin/ui/transition/preload/FunkinPreloader.hx:945: Preloader state: CachingAudio (78%, 0.873123046875s) source/funkin/ui/transition/preload/FunkinPreloader.hx:945: Preloader state: CachingAudio (92%, 0.88706591796875s) source/funkin/ui/transition/preload/FunkinPreloader.hx:948: Preloader state: CachingData (0%, 0.90290185546875s) source/funkin/ui/transition/preload/FunkinPreloader.hx:948: Preloader state: CachingData (0%, 0.94409814453125s) source/funkin/ui/transition/preload/FunkinPreloader.hx:948: Preloader state: CachingData (10%, 0.95452783203125s) source/funkin/ui/transition/preload/FunkinPreloader.hx:948: Preloader state: CachingData (22%, 0.966884033203125s) source/funkin/ui/transition/preload/FunkinPreloader.hx:948: Preloader state: CachingData (46%, 0.990198974609375s) source/funkin/ui/transition/preload/FunkinPreloader.hx:948: Preloader state: CachingData (69%, 1.01343798828125s) source/funkin/ui/transition/preload/FunkinPreloader.hx:951: Preloader state: ParsingSpritesheets (0%, 1.07140087890625s) source/funkin/ui/transition/preload/FunkinPreloader.hx:951: Preloader state: ParsingSpritesheets (0%, 1.08510180664063s) source/funkin/ui/transition/preload/FunkinPreloader.hx:951: Preloader state: ParsingSpritesheets (9%, 1.09488403320313s) source/funkin/ui/transition/preload/FunkinPreloader.hx:951: Preloader state: ParsingSpritesheets (25%, 1.11102026367187s) source/funkin/ui/transition/preload/FunkinPreloader.hx:951: Preloader state: ParsingSpritesheets (42%, 1.12764233398438s) source/funkin/ui/transition/preload/FunkinPreloader.hx:951: Preloader state: ParsingSpritesheets (57%, 1.14276928710938s) source/funkin/ui/transition/preload/FunkinPreloader.hx:951: Preloader state: ParsingSpritesheets (74%, 1.1597529296875s) source/funkin/ui/transition/preload/FunkinPreloader.hx:951: Preloader state: ParsingSpritesheets (91%, 1.1761953125s) source/funkin/ui/transition/preload/FunkinPreloader.hx:954: Preloader state: ParsingStages (0%, 1.19463696289063s) source/funkin/ui/transition/preload/FunkinPreloader.hx:954: Preloader state: ParsingStages (0%, 1.210208984375s) source/funkin/ui/transition/preload/FunkinPreloader.hx:954: Preloader state: ParsingStages (10%, 1.22113842773438s) source/funkin/ui/transition/preload/FunkinPreloader.hx:954: Preloader state: ParsingStages (27%, 1.23770825195313s) source/funkin/ui/transition/preload/FunkinPreloader.hx:954: Preloader state: ParsingStages (43%, 1.25374194335938s) source/funkin/ui/transition/preload/FunkinPreloader.hx:954: Preloader state: ParsingStages (59%, 1.26998413085937s) source/funkin/ui/transition/preload/FunkinPreloader.hx:954: Preloader state: ParsingStages (75%, 1.28585791015625s) source/funkin/ui/transition/preload/FunkinPreloader.hx:954: Preloader state: ParsingStages (93%, 1.30347998046875s) source/funkin/ui/transition/preload/FunkinPreloader.hx:957: Preloader state: ParsingCharacters (0%, 1.31834985351563s) source/funkin/ui/transition/preload/FunkinPreloader.hx:957: Preloader state: ParsingCharacters (0%, 1.33501489257812s) source/funkin/ui/transition/preload/FunkinPreloader.hx:957: Preloader state: ParsingCharacters (15%, 1.35063989257812s) source/funkin/ui/transition/preload/FunkinPreloader.hx:957: Preloader state: ParsingCharacters (31%, 1.36652490234375s) source/funkin/ui/transition/preload/FunkinPreloader.hx:957: Preloader state: ParsingCharacters (47%, 1.38262622070313s) source/funkin/ui/transition/preload/FunkinPreloader.hx:957: Preloader state: ParsingCharacters (63%, 1.39820190429687s) source/funkin/ui/transition/preload/FunkinPreloader.hx:957: Preloader state: ParsingCharacters (79%, 1.41427197265625s) source/funkin/ui/transition/preload/FunkinPreloader.hx:957: Preloader state: ParsingCharacters (95%, 1.4307568359375s) source/funkin/ui/transition/preload/FunkinPreloader.hx:960: Preloader state: ParsingSongs (0%, 1.44700512695312s) source/funkin/ui/transition/preload/FunkinPreloader.hx:960: Preloader state: ParsingSongs (0%, 1.46253491210937s) source/funkin/ui/transition/preload/FunkinPreloader.hx:960: Preloader state: ParsingSongs (17%, 1.47992504882813s) source/funkin/ui/transition/preload/FunkinPreloader.hx:960: Preloader state: ParsingSongs (32%, 1.49510693359375s) source/funkin/ui/transition/preload/FunkinPreloader.hx:960: Preloader state: ParsingSongs (49%, 1.51193603515625s) source/funkin/ui/transition/preload/FunkinPreloader.hx:960: Preloader state: ParsingSongs (65%, 1.52852490234375s) source/funkin/ui/transition/preload/FunkinPreloader.hx:960: Preloader state: ParsingSongs (80%, 1.54316186523438s) source/funkin/ui/transition/preload/FunkinPreloader.hx:960: Preloader state: ParsingSongs (96%, 1.55927587890625s) source/funkin/util/logging/CrashHandler.hx:34: [LOG] Enabling standard uncaught error handler... source/funkin/util/logging/CrashHandler.hx:38: [LOG] Enabling C++ critical error handler... source/funkin/util/logging/CrashHandler.hx:235: ERROR HANDLER STATUS: true source/funkin/util/logging/CrashHandler.hx:238: Define: openfl_enable_handle_error is enabled source/funkin/util/logging/CrashHandler.hx:246: Define: openfl_disable_handle_error is disabled Segmentation fault (core dumped)
It's probably crashing when loading a cutscene due to a missing VLC library, which for some reason causes it to segfault instead of failing nicely. See if sudo apt install vlc (if it's Debian based apt should be correct) solves the issue.
Yeah, it seemed a few drivers were corrupted or missing and reinstalling VLC fixed the issue.
I ran into the same problem since I only installed libvlc-bin on my Debian system. Installing the vlc package helped. I think it should give a readable error in the terminal, not crash.
Btw, why don't the other weeks require vlc? Why does Week 7 and Weekend 1 specifically require vlc?
Btw, why don't the other weeks require vlc? Why does Week 7 and Weekend 1 specifically require vlc?
Funkin' uses hxCodec (hxvlc as of 0.6.0) (except on the web version) to play videos which in turn uses LibVLC, and those are the only weeks that use videos for their cutscenes.
This is not a problem on Windows because the required VLC libraries are already included with the game files as dlls.
Same problem on my laptop running OpenSUSE Leap 15.6, despite having both libvlc5 and libvlccore9 installed. Installing the distro's vlc package fixed the issue for me as well.
I'm gonna close this since there is a clear set of steps to resolve this