Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Radio not playing causing crash?  (Read 221 times)

0 Members and 1 Guest are viewing this topic.

Ta183Huckebein

  • FAC #17
  • Modder
  • member
  • Offline Offline
  • Posts: 1077
  • aka "Raven"
Radio not playing causing crash?
« on: February 19, 2025, 10:23:25 AM »

So, for reference, I'm (re)playing one of Vampire Pilots campaigns at the moment, and suffered a crash near the end of the mission with a popup stating something to the effect of it being a Runtime Error, with the application being requested to close in "and unusual way."

A check of the log shows that I have a large number of mp3 stream errors, which seem to correspond to the time in the mission that I wasn't tuned into the Radio Honolulu beacon that was playing this music (which I only turned on later in the mission, I don't usually listen to the radio in-game during missions).

Code: [Select]
Mission: campaign/us/wasp_bat/02_Houston_pickup.mis is Playing
INTERNAL ERROR: HierMesh: Can't find chunk 'Nose_D0'
INTERNAL ERROR: HierMesh: Can't find chunk 'Nose_D1'
INTERNAL ERROR: HierMesh: Can't find chunk 'Nose_D2'
INTERNAL ERROR: HierMesh: Can't find chunk 'Allglass_D0'
ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AR_Benny Goodman & His Orchestra Feat. Peggy Lee - Why Don't You Do Right_.wav

ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AR_Benny Goodman & His Orchestra Feat. Peggy Lee - Why Don't You Do Right_.wav
ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AR_Benny Goodman & His Orchestra Feat. Peggy Lee - Why Don't You Do Right_.wav

INTERNAL ERROR: HierMesh: Can't find chunk 'Blister1_D0'
exception at <67>

ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AC_Judy Garland & Gene Kelly - For Me And My Gal.wav

ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AC_Judy Garland & Gene Kelly - For Me And My Gal.wav
ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AC_Judy Garland & Gene Kelly - For Me And My Gal.wav

ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AD_Gene Krupa Orch V Anita O'Day - Georgia On My Mind.wav

ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AD_Gene Krupa Orch V Anita O'Day - Georgia On My Mind.wav
ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AD_Gene Krupa Orch V Anita O'Day - Georgia On My Mind.wav

ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AE_Glenn Miller & His Orchestra - In The Mood.wav

ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AF_The Andrews Sisters - Boogie Woogie Bugle Boy.wav

ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AF_The Andrews Sisters - Boogie Woogie Bugle Boy.wav
ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AF_The Andrews Sisters - Boogie Woogie Bugle Boy.wav

ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AK_Glenn Miller & Modernaires - Kalamazoo Vocal.wav

ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AK_Glenn Miller & Modernaires - Kalamazoo Vocal.wav
ERROR !mp3 stream error samples/Music/Radio/Radio_Honolulu/AK_Glenn Miller & Modernaires - Kalamazoo Vocal.wav

Is this why my game crashed? I remember having a similar problem in Poltava's Raging Eagles campaign during the Singapore section where if I wasn't tuned into the radio the game would end up crashing mid-mission with a stream of similar mp3 stream errors. I solved this by putting the mp3s into a copy folder and leaving the Radio folder blank.

Basically, my question is 'can I circumvent this without needing to remove the music files from their radio folder?' Obviously the other answer would be "just listen to the radio, silly, it's the intended experience" but sometimes I'm not in the mood for that, so I'm curious if there's another way
Logged

Ta183Huckebein

  • FAC #17
  • Modder
  • member
  • Offline Offline
  • Posts: 1077
  • aka "Raven"
Re: Radio not playing causing crash?
« Reply #1 on: February 19, 2025, 12:11:54 PM »

As an update, I played the mission I suffered the crash on again, this time playing the radio the overwhelming majority of the runtime. It didn't crash, however on the next mission (with a similar flight time as well as the Radio Honolulu object), even though I played the radio for the majority of the flight duration, the game still crashed, with the log showing the same errors.

On closer inspection, though, it seems that a specific list of the songs present are responsible for this, so I suppose the next thing to do would be to test and see if removing those songs from the folder solves the problem
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 24024
  • Taking a timeout
    • STFU
Re: Radio not playing causing crash?
« Reply #2 on: February 19, 2025, 12:27:13 PM »

Malformatted audio files can cause the game to crash at any arbitrary point without causing a proper log entry indeed.
This log line...
Code: [Select]
exception at <67>...tells us that apparently your audio files are MP3 encoded files with ".wav" extensions (which is okay) containing a RIFF header (which causes trouble for IL-2 quite frequently).

Stock game's samples/Music/Menu/*.wav are in the format of "RIFF WAVE (mp3)" / "MPEG-1.0, Layer-3" / "BitRate 192kbps (CBR) / "SampleRate 44100 Hz" / "Mode Stereo" without a dedicated RIFF header whatsoever.
IIRC audacity can create such files flawlessly.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.

Ta183Huckebein

  • FAC #17
  • Modder
  • member
  • Offline Offline
  • Posts: 1077
  • aka "Raven"
Re: Radio not playing causing crash?
« Reply #3 on: February 19, 2025, 12:55:22 PM »

The files I have are ones that were packaged with campaigns I've downloaded over the years, so this isn't due to my own audio fuckery (although your software recommendation is noted for future reference).

Tried the mission again, this time it crashed in the middle of a song (which is probably due it having the header you mentioned), although I'm not 100% sure which one due to my lack of familiarity with '40s tunes. I suspect this one is probably the culprit for all the crashes I've had previously, but as I don't currently have the patience to go in and test every individual track to see if it causes a crash or not, I'll probably just elect for the "nuclear option" I mentioned earlier so that I can at least make progress.

Thanks for the answer!
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 24024
  • Taking a timeout
    • STFU
Re: Radio not playing causing crash?
« Reply #4 on: February 19, 2025, 02:56:36 PM »

You could as well upload all tracks from your "samples/Music/Radio" folders and we could check and see whether they can easily be converted to a playable format.
The fact that these files were part of campaigns doesn't necessarily make them legit. There oh so many addons, including payware ones, that are crafted rather carelessly.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.

ssn637

  • member
  • Offline Offline
  • Posts: 223
  • Men mean more than guns in the rating of a ship
Re: Radio not playing causing crash?
« Reply #5 on: Yesterday at 03:24:58 AM »

I've uploaded my Radio folder in case anyone would like to take a look at these.  I'm also noting the same error messages in my log files so I would guess they need fixing, but there are quite a lot of them so I have no idea how difficult it would be to verify each.

https://www.mediafire.com/file/f8fbyj8q42l91o4/Radio.rar/file
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 24024
  • Taking a timeout
    • STFU
Re: Radio not playing causing crash?
« Reply #6 on: Yesterday at 06:03:26 AM »

Oh freck, there's all sorts of codecs in that set.
MPEG1 (which is correct), MPEG2, MPEG2.5, PCM, you name it.
No wonder they don't work.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.

ssn637

  • member
  • Offline Offline
  • Posts: 223
  • Men mean more than guns in the rating of a ship
Re: Radio not playing causing crash?
« Reply #7 on: Yesterday at 06:23:51 AM »

Thanks for checking Mike!  I never listen to them anyway so I'll just get rid of the lot for now.
Logged

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 24024
  • Taking a timeout
    • STFU
Re: Radio not playing causing crash?
« Reply #8 on: Yesterday at 07:09:17 AM »

No need to.
Here's the re-encoded set.
They're all supposed to work well, tested a few of the ones that gave you and me errors before, and now they seem to be fine:
https://www.mediafire.com/file/jqo79cfig02tw7t/Radio_Reencoded.rar/file

In the root folder you will find a .cmd windows batch file which I used for conversion.
Prerequisite is that you have "ffmpeg" tools installed.

]cheers[
Mike
Logged
Don't split your mentality without thinking twice.

Dimlee

  • member
  • Online Online
  • Posts: 1312
Re: Radio not playing causing crash?
« Reply #9 on: Yesterday at 08:16:27 AM »

Just from my memory, I might forget something...

Years ago, when the servers were full, I played online with the radio on most of the time. I used large collections of mp3 files with songs, authentic radio transmissions mixed with noise, etc. As my collections grew larger I began to experience crashes. After consulting with others and reading forums I came to the same conclusion as mentioned here, i.e. the wrong formatting. I started to clean the collections bringing everything to one standard but then I stopped playing online and could not finally prove my conclusions.

I didn't play radio since that time. Maybe it's time to try again, with the right encoding!
Logged

ssn637

  • member
  • Offline Offline
  • Posts: 223
  • Men mean more than guns in the rating of a ship
Re: Radio not playing causing crash?
« Reply #10 on: Yesterday at 10:58:03 AM »

Wow Mike, that was quick!  Thank you!  I've duly downloaded and added the new library...maybe I'll give them a try after all.
Logged
Pages: [1]   Go Up
 

Page created in 0.037 seconds with 24 queries.