Author Topic: Crash on startup with no speakers  (Read 4086 times)

latreides

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Crash on startup with no speakers
« on: April 07, 2018, 07:11:01 AM »
When I launch RetroFE on Windows 10 with no speakers or headphones connected, it crashes instantly.

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Crash on startup with no speakers
« Reply #1 on: April 07, 2018, 07:39:40 AM »
I guess that's never been tried before... I'll have to see if I can somehow reproduce that problem.

Sent from my SM-G950F using Tapatalk


Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Crash on startup with no speakers
« Reply #2 on: April 07, 2018, 08:01:35 AM »
Can you please upload your log.txt file?

latreides

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Crash on startup with no speakers
« Reply #3 on: April 07, 2018, 05:07:59 PM »
I guess that's never been tried before...
I very often run RetroFE with no speakers; in fact, in the month or so that I have been using RetroFE, I have never run RetroFE with speakers of any kind, except to test that this bug only happens when no speakers are plugged in.  This is down to the fact that I am still configuring RetroFE and my emulation box, which means I am not actually playing games.  When I am configuring this box, I hook it up to a computer monitor.  I do not bother to hook up any speakers to it, because I don't need speakers to setup collections, configure emulators, etc...  In Linux this is not an issue, in Windows it crashes instantly.

The reason is pretty simple.  Windows 10 is only enumerating sound devices that have speakers hooked up to them, and RetroFE is assuming that there is at least one sound device present.  Here is the relevant entry in the log file:

Code: [Select]
[2018-04-07 10:54:41] [ERROR] [SDL] Audio initialize failed: DirectSoundCreate8: No audio device found
I could grab the entire log (its on my emulation box, not my computer) if you really want it, but the rest of the log is just listing out the collections and launchers.
« Last Edit: April 07, 2018, 05:37:11 PM by latreides »

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Crash on startup with no speakers
« Reply #4 on: April 07, 2018, 06:30:54 PM »
No, that error message is sufficient. I'll see if I can make that a warning in stead.

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Crash on startup with no speakers
« Reply #5 on: April 08, 2018, 08:56:30 AM »
Try this one to see if it solves your issue:
http://retrofe.nl/SMF/index.php?topic=7.msg2901#msg2901