Having trouble getting MP3's and MP4's to play, using Windows 10

Hello, and thanks for the help.

I am new to Corona, and I am having trouble getting some background music to play properly; I suspect it may be related to using Windows 10, but I am new, so I can’t be sure.

This is the line of code causing the trouble:

    local musicLevel1 = audio.loadStream(“theme.mp3”)

theme.mp3 is just a 416kb music file, when I try to run the code, Corona Simulator crashes at this line without an error. 

I also tried a theme.mp4 file, and Corona Simulator works fine and the music plays, but when I run it on a phone, the music is missing.

However, when I try theme.wav, everything works fine, and it plays fine on the Simulator and the phone.  theme.wav is the original file, and the mp3 and mp4 versions are both compressed from the wav original.  All of the files play fine outside of Corona.

I also tried other music files in various formats, and it’s hit and miss. Sometimes an MP3 will work and sometimes it won’t.

Although there are no errors in Corona, there are errors in the Windows Event Log.  I’ll post those errors below.  You’ll notice the one error mentions mfmkvsrcsnk.dll which is a Win10 DLL, and that’s why I’m suspicious it may be a Win10 issue, but I’m trying to route out the problem.

I will also attach the MP3 and MP4 files as a ZIP, but the WAV file is over 2MB, so I can’t attach it.

Any help you can provide would be very much appreciated.  

Thank you

Here are the two associated Windows Events:

Application Error: 

Faulting application name: Corona Simulator.exe, version: 15.0.2646.0, time stamp: 0x55666c74

Faulting module name: mfmkvsrcsnk.dll, version: 10.0.10130.0, time stamp: 0x55602e55

Exception code: 0xc0000005

Fault offset: 0x000103a8

Faulting process id: 0x1f60

Faulting application start time: 0x01d0b34d2d40564e

Faulting application path: C:\Program Files (x86)\Corona Labs\Corona SDK\Corona Simulator.exe

Faulting module path: C:\Windows\System32\mfmkvsrcsnk.dll

Report Id: b43fb378-1963-4a43-836b-1b7f30fa4ad8

Faulting package full name: 

Faulting package-relative application ID: 

 

Appcrash Information:

Fault bucket 107375950793, type 1

Event Name: APPCRASH

Response: Not available

Cab Id: 0

Problem signature:

P1: Corona Simulator.exe

P2: 15.0.2646.0

P3: 55666c74

P4: mfmkvsrcsnk.dll

P5: 10.0.10130.0

P6: 55602e55

P7: c0000005

P8: 000103a8

P9: 

P10: 

Attached files:

C:\Users\duane\AppData\Local\Temp\WER8F6F.tmp.WERInternalMetadata.xml

C:\Users\duane\AppData\Local\Temp\WER91E1.tmp.appcompat.txt

C:\ProgramData\Microsoft\Windows\WER\Temp\WER925F.tmp.hdmp

C:\Users\duane\AppData\Local\Temp\WER9406.tmp.WERDataCollectionFailure.txt

These files may be available here:

C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_Corona Simulator_d0b5c4b9d048d8c7a66dd69be33fd47867dee083_cc5829a0_179b9432

Analysis symbol: 

Rechecking for solution: 0

Report Id: b43fb378-1963-4a43-836b-1b7f30fa4ad8

Report Status: 4104

Hashed bucket: 0811c18d6b9ac17bf9d49639b5ae4486

Before I can ask engineering to check this, we are going to need a complete project that crashes.  Please put together a main.lua that crashes using your assets. Include the config.lua and build.settings and any art and audio needed to duplicate the problem.  Then use the “Report a bug” feature at the top of the page.

When you do, you will get an email with a Case ID number in the subject. Please post that back here and I’ll see if I can find someone on the team with Window’s 10 that can test it for you.

Rob

Thank you.

I reported the bug as you directed me.

To duplicate easily enough, I created a blank corona project and just added the music.  If you play with the .wav, it works. If you play it with the .mp3, it crashes immediately.  I changed no settings or configs for this test, but I included them anyway.

I can’t attach the WAV file, but it can be downloaded here: https://www.freesound.org/people/Setuniman/sounds/249302/

Thanks again,

Duane

Oops, I just realized you probably needed the case number.  It’s Case 41702.  

Same problem here using Win 10 Pro insider Preview build 10130.

Don’t ask why I’m using a pre release version of Windows for my dev machine… long story

We’ve confirmed this is a bug.  I don’t know where it is in the queue to be worked on and for now, you can use .wav files without crashing, so until you’re ready to deploy, test with the .wav files in the simulator and switch to MP3 when going to the device. I know that’s a lot of work, but you can minimize it with some programming tricks like using variables for all your audio files and define the variables in one place making changing in and out the extension easy. Wrap all of that in an if statement that uses a flag that you might want to name useMP3. Or get a little more creative:

local soundExt = “mp3”

local beepFile = “beep.” … soundExt

local backgroundFile = “musictrack.” … soundExt

Then when you’re ready to load the sound:

beep = audio.loadSound(beepFile)

I can do that, Rob, thanks.

As soon as I try to compile to the Simulator, it crashes.  I’m new to Corona, so how can I compile to Android without loading it to the Simulator first?

Thank you,

Duane

Even if it crashes the simulator, you can still do File->Build for Android.

Rob

@Rob: By crashing the simulator, he means really crashing it. The simulator itself crashes, it doesn’t get a runtime error.

This has been fixed locally. It should be fixed in the upcoming daily builds. For now you can revert back to build 2675 to bypass this issue.

Good point Michael!

Rob

any update on this? I have encountered the same thing

@mesozoicgames: Have you tried the latest daily build?

This was fixed in Daily build 2015.2682.  Make sure you’re running a later version than that.

Rob

Before I can ask engineering to check this, we are going to need a complete project that crashes.  Please put together a main.lua that crashes using your assets. Include the config.lua and build.settings and any art and audio needed to duplicate the problem.  Then use the “Report a bug” feature at the top of the page.

When you do, you will get an email with a Case ID number in the subject. Please post that back here and I’ll see if I can find someone on the team with Window’s 10 that can test it for you.

Rob

Thank you.

I reported the bug as you directed me.

To duplicate easily enough, I created a blank corona project and just added the music.  If you play with the .wav, it works. If you play it with the .mp3, it crashes immediately.  I changed no settings or configs for this test, but I included them anyway.

I can’t attach the WAV file, but it can be downloaded here: https://www.freesound.org/people/Setuniman/sounds/249302/

Thanks again,

Duane

Oops, I just realized you probably needed the case number.  It’s Case 41702.  

Same problem here using Win 10 Pro insider Preview build 10130.

Don’t ask why I’m using a pre release version of Windows for my dev machine… long story

We’ve confirmed this is a bug.  I don’t know where it is in the queue to be worked on and for now, you can use .wav files without crashing, so until you’re ready to deploy, test with the .wav files in the simulator and switch to MP3 when going to the device. I know that’s a lot of work, but you can minimize it with some programming tricks like using variables for all your audio files and define the variables in one place making changing in and out the extension easy. Wrap all of that in an if statement that uses a flag that you might want to name useMP3. Or get a little more creative:

local soundExt = “mp3”

local beepFile = “beep.” … soundExt

local backgroundFile = “musictrack.” … soundExt

Then when you’re ready to load the sound:

beep = audio.loadSound(beepFile)

I can do that, Rob, thanks.

As soon as I try to compile to the Simulator, it crashes.  I’m new to Corona, so how can I compile to Android without loading it to the Simulator first?

Thank you,

Duane

Even if it crashes the simulator, you can still do File->Build for Android.

Rob