Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Hi shru,

I'm getting a LOVE / Lua error on the title screen in Windows 10 64-bit if the OS thinks there are no audio devices:

Error scene/game/sound.lua:0: attempt to call method 'getActiveSourceCount' (a nil value) Traceback scene/game/sound.lua: in function '_playSoundsFromQueue'
scene/game/sound.lua: in function 'flush'
scene/game/game.lua: in function '_updateByOneFrame'
scene/game/game.lua: in function 'update'
main.lua: in function 'update'
main.lua: in function <main.lua:0>
[C]: in function 'xpcall' <label></label>

<button class="button"></button>

(2 edits)

Sorry, I posted that by mistake before writing everything out, and now I'm having some issues with editing the previous message. I'm going to reboot and see if it still happens.

(Edit: OK, I'm back, issue still present. Here's some more info!)

OS: Windows 10 Pro 64-bit; Version    10.0.17763 Build 17763

Steps to reproduce on my end:

1) Shut down PC, remove all audio output devices, start up PC again. A small red X should be next to the volume icon in the taskbar.



2) Start 'Vacant Kingdom.exe'. The title screen will appear.

3) Press Enter, or click within the window, and the LOVE error will appear. Issue is present on both the 32-bit and 64-bit versions.

Workaround: Plug in an audio device, and the issue goes away.


Some additional context: I'm setting up an old Windows tower PC so that I can test LOVE games on Windows, and also catch up on neat Windows-only games. This PC is hooked up to a KVM switch for sharing i/o devices among multiple PCs. The KVM switch is very old, and supports only VGA for video and 3.5mm jacks for sound. When switching between systems, it looks like Windows is not always detecting that my speakers are plugged in.

All that said, this error probably won't be encountered by many people.

Ah, good catch! It's always good when people with uncommon setups try my games, a lot of times it reveals that I'm doing something silly, as was the case this time. I can go ahead and change a certain code comment now, heh.

Thanks for the detailed steps to reproduce the issue! Although, in this case it was a tad unnecessary because the crash was just me calling a method on a source instead of love.audio by mistake.

Not sure if you intend to go back and play more for the secret boss or anything, but if you do know that this crash is fixed on the itch.io release.