Warning: audio error: Already initialized in win simulator 2013.1225

We want to fix this bug but we need a reproducible case before we can do that.  I have implemented the incomplete sample code in the first post and it does not trigger this behavior and the relatively few reports of the issue means that it must be something specific that is being done in certain Lua code that is triggering the issue.  I have tried repeatedly to reproduce the problem using any of the sample apps that use the audio library but nothing I do triggers it.  If I don’t know what causes the bug, I can’t fix it.

I hesitate to suggest the obvious, but if the automatic reload on file change feature is causing problems for you, just turn it off in the Preferences and you wont be any worse off than before the feature was added.

Just installed the latest public release (2100) and now I am getting the same warning …

Shutting down the simulator and restarting it usually works for me…

Just installed the latest public release (2100) and now I am getting the same warning …

Shutting down the simulator and restarting it usually works for me…

I am using the newest release 2189

I have exactly the same problem even when running a sample code.

Whatever uses

audio.loadsound()

(even only once)

The issue here has been finding a reproducible case.  I’ve spent literally hours trying to make this happen and the Samples work fine for me so can I ask for some more details?

  1. Specifically which Sample does this for you? List the exact steps you do when the error occurs (from starting Corona SDK)
  2. Paste the entire console output for the session that results in the error.
  3. What operating system are you running?  Is it fully updated?  Anything else about your system that might relevant (e.g. is it a VM?)
  4. What soundcard does your system have?

I’d really like to solve this issue but, as I mentioned, reproducing it has proved elusive.  I believe it’s happening but unless I can make it happen myself I can’t fix it.

If it helps, I have had this on XP and Vista 32 using same laptop, an old dual core with Realtek built in audio card. Also getting it on new quad core with windows 8, 64bit. It crashes quite often still on new PC but my build is a couple of weeks old. All pcs are always updated. No vm, vm hardware is not enabled. Not sure what sound card I have in new PC yet. I have had it using wav and mp3

@Perry, easiest way to reproduce this is to update your audio drivers or graphics+audio drivers if your using something like nvidia and “don’t” reboot it should cause the error :slight_smile:

I have had this error on multiple occasions and it has 100% of the time been caused by nvidia updating my graphics/audio drivers and the problem goes away after i reboot (except for one time where the nvidia audio driver was an issue, then just rolled back and rebooted).

On a Win8 Box that is never seen the issue on the Apple.

Hello,

I found that if I don’t have a real audio output for my system(win7),

Every time audio.loadsound() and  audio.play() causes Warning.

I can fix it by inserting earphones.

Ok, that’s new!

Which would not happen in build 2100.

I don’t think it’s  intentionally, at least the warning text doesn’t fit the real issue.

I am using the newest release 2189

I have exactly the same problem even when running a sample code.

Whatever uses

audio.loadsound()

(even only once)

The issue here has been finding a reproducible case.  I’ve spent literally hours trying to make this happen and the Samples work fine for me so can I ask for some more details?

  1. Specifically which Sample does this for you? List the exact steps you do when the error occurs (from starting Corona SDK)
  2. Paste the entire console output for the session that results in the error.
  3. What operating system are you running?  Is it fully updated?  Anything else about your system that might relevant (e.g. is it a VM?)
  4. What soundcard does your system have?

I’d really like to solve this issue but, as I mentioned, reproducing it has proved elusive.  I believe it’s happening but unless I can make it happen myself I can’t fix it.

If it helps, I have had this on XP and Vista 32 using same laptop, an old dual core with Realtek built in audio card. Also getting it on new quad core with windows 8, 64bit. It crashes quite often still on new PC but my build is a couple of weeks old. All pcs are always updated. No vm, vm hardware is not enabled. Not sure what sound card I have in new PC yet. I have had it using wav and mp3

@Perry, easiest way to reproduce this is to update your audio drivers or graphics+audio drivers if your using something like nvidia and “don’t” reboot it should cause the error :slight_smile:

I have had this error on multiple occasions and it has 100% of the time been caused by nvidia updating my graphics/audio drivers and the problem goes away after i reboot (except for one time where the nvidia audio driver was an issue, then just rolled back and rebooted).

On a Win8 Box that is never seen the issue on the Apple.

Hello,

I found that if I don’t have a real audio output for my system(win7),

Every time audio.loadsound() and  audio.play() causes Warning.

I can fix it by inserting earphones.

Ok, that’s new!

Which would not happen in build 2100.

I don’t think it’s  intentionally, at least the warning text doesn’t fit the real issue.

hi, i was also getting same issue, while i just some hours before started simulator.

but when i closed the corona simulator and again re opened then its working fine.

i don,t know what is exact problem

It always “fixes” when you re open simiulator. Im still getting it 9 months later.  My guess is that on reload, the audio files/buffer/allocation  or whatever is not getting released up on  reload/code change so it tries to load again. 

Same here. It hasn’t caused any significant problems for me. I suspect it has to do with high-bitrate files being cached, as BeatsnBobs references. Either way, a restart solves it and I’m back into lua coding.

Right now I am getting this error everytime I open a project. This has not happened before. I am now getting this on the console even if I exit Corona and restart with an app. This didnt happen a couple of days ago so its gotten worse since yesterdays daily build. "Warning: audio error: Cannot open sound device for OpenALWarning "…“Failed to create sound”… and then the same old error after about the audio being already initialized. repeated about 30 times for each wav file its supposed to be loading.

This is happening with the sample projects:AudioPlayer and Simple Mixer. Simple Mixer comes up with this error: