View Issue Details

IDProjectCategoryLast Update
0018817Starward RogueBug - AudioFeb 7, 2018 4:31 pm
ReporterPepisolo Assigned ToChris_McElligottPark  
Severityminor 
Status resolvedResolutionfixed 
Product Version1.101 
Summary0018817: Super weird audio/input problem from steam user
DescriptionFrom steam user Esty was here:

"HEY GUys, i dont know how this game got past me but its pretty freakin awesome. First two runs on normal mode and got to floor 4 both times, which brings me to the reason im dying= around floor 3 or 4 both runs the Music randomly turns off and my xbox controller stops working, forcing me to use the Mouse and keyboard and play with no sound, until like 4 min later the music will come back but no gunshot sounds or anything like that, just the soundtrack but the controller wont continue to work after that, any ideas ?? and how do you go to a menu with keyboard ?"
TagsNo tags attached.

Activities

Chris_McElligottPark

Feb 7, 2018 4:31 pm

administrator   ~0046919

* FINALLY fixed the longstanding super-infrequent crashing that was happening for some-but-not-all players. This has been a thorn in our side for two years now, but we finally got some excellent help from Unity's engine developers themselves, and it turns out that we were triggering a crash bug somewhere deep in the engine via calls to WWW.audio.GetAudioClip().
** That's now on their list to investigate and fix, but in our case now that we know what the problem actually is, we've switched approaches to no longer use that method at all, instead baking the music and voice tracks into the game itself. This is also why it would happen sometimes specifically during tutorials.
** We do still have to use this method for the SoundsFromMods optional folder, but that's just for modders who want to add sounds, and it should limit any crashes to on-startup only, not during gameplay. And in those instances it would only be if you're playing with some mods on, and even then only rarely if ever. For everyone currently playing the game that we are aware of, you won't have a crash from this piece. If you have a crash, that would be something else instead.
** Incidentally, the reason that the game was crashing after killing enemies or during room switches is... drumroll... because those are times when music tracks change. We were looking for so many other pieces of code that might be a problem during that time that we never thought to look at music. This is the same music code we've used since 2010 in every other title of ours prior to this one, so whatever the problem is with the underlying engine is must have been introduced in Unity 5 or thereabouts.

Issue History

Date Modified Username Field Change
May 11, 2016 7:25 pm Pepisolo New Issue
Feb 7, 2018 4:31 pm Chris_McElligottPark Assigned To => Chris_McElligottPark
Feb 7, 2018 4:31 pm Chris_McElligottPark Status new => resolved
Feb 7, 2018 4:31 pm Chris_McElligottPark Resolution open => fixed
Feb 7, 2018 4:31 pm Chris_McElligottPark Note Added: 0046919