Crash: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) in libopenal.so

Hi @vlads, any updates on this issue?

Can you try using audio.loadStream() instead of audio.loadSound()? 

And see if that has any impact?

Rob

We may have identified one of OpenAL issues. Currently working on fixing it.

@vlad: thanks for the update

Where do you want discussions / reports about audio2? I enabled it in one of my apps, and get an error message in the logs when I return from showing an advertisement from Kidoz.

Steps:

  1. Music is playing in the game

  2. Click on a Kidoz panel ad. Music stops

  3. Exit the panel ad. Music resumes but error message shown in logs.

05-22 11:20:57.421 24835 25928 W libOpenSLES: Leaving Object::GetInterface (SL_RESULT_FEATURE_UNSUPPORTED)

05-22 11:20:57.421 24835 25928 I chatty  : uid=10713(se.appfamily.puzzle.cats.free) GLThread 3436 identical 1 line

05-22 11:20:57.421 24835 25928 W libOpenSLES: Leaving Object::GetInterface (SL_RESULT_FEATURE_UNSUPPORTED)

05-22 11:20:57.421 24835 25928 W libOpenSLES: Leaving BufferQueue::Enqueue (SL_RESULT_BUFFER_INSUFFICIENT)

05-22 11:20:57.421 24835 25928 I Corona  : [OpenSL Error]: Buffer insufficient

05-22 11:20:57.421 24835 25928 I Corona  : line 1407

05-22 11:20:57.421 24835 25928 W libOpenSLES: Leaving BufferQueue::Enqueue (SL_RESULT_BUFFER_INSUFFICIENT)

05-22 11:20:57.421 24835 25928 I Corona  : [OpenSL Error]: Buffer insufficient

05-22 11:20:57.421 24835 25928 I Corona  : line 1407

Everything seems to function as usual although there is a tonne of logging as seen in adb logcat. Playing a single sound generates about 100 lines of logging by “AudioManager Player” (tag “Avrcp”).

I’m going to push this live to one app and see how it goes, will report anything I find.

Great news! Did you come to any resolution?

Any news on this one? Since this is also my top crash report in Google Play Console.

Which one exactly?

My error looks like this:

 

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR)

libopenal.so

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** pid: 0, tid: 0 >>> io.torcia.idletraveler <<< backtrace:

#00 pc 00000000000a2f94 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/libopenal.so

#01 pc 0000000000016874 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/libopenal.so (alcCreateContext+436)

#02 pc 0000000000005ff7 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/libalmixer.so (ALmixer_Init+214)

#03 pc 000000000011de04 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/libcorona.so

#04 pc 00000000000fce20 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/libcorona.so

#05 pc 000000000000cc04 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/liblua.so

#06 pc 000000000001ce18 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/liblua.so

#07 pc 000000000000d050 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/liblua.so

#08 pc 0000000000005524 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/liblua.so (lua_call+32)

#09 pc 00000000000126cc /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/liblua.so

#10 pc 000000000000cc04 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/liblua.so

#11 pc 000000000001c954 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/liblua.so

#12 pc 000000000000d050 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/liblua.so

#13 pc 000000000000c35c /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/liblua.so

#14 pc 000000000000d1c8 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/liblua.so

#15 pc 00000000000055a0 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/liblua.so (lua_pcall+88)

#16 pc 00000000000f59e8 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/libcorona.so

#17 pc 00000000000d7b80 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/libcorona.so

#18 pc 000000000012f540 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/libcorona.so

#19 pc 00000000001314f0 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/libcorona.so

#20 pc 000000000012f9f8 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/libcorona.so

#21 pc 0000000000130754 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/libcorona.so

#22 pc 000000000002b530 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/lib/arm/libcorona.so

#23 pc 000000000001e847 /data/app/io.torcia.idletraveler-bxs5TeCZJan9TExzmEuhhA==/oat/arm/base.odex

We are seeing similar error messages, but they only seem to affect a small # of users. Is it possible that some of these errors only occur on rooted devices?

Latest examples:

Feb 17, 9:22 AM on app version 222

Asus ZenFone 2 (ZE551ML) (Z00A), 2048MB RAM, Android 5.0

Report 1 of 1

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

pid: 0, tid: 0 >>> com.gmail.vegasfungames.vegasfun <<<

backtrace:

  #00  pc 000000000014c255  [anon:Mem_0x20000000]

  #01  pc 000000000000302f  [anon:Mem_0x10002002]

Yesterday, 11:51 PM on app version 222

HTC Desire 626s (htc_a32ewhl), 1536MB RAM, Android 6.0

Report 1

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

pid: 0, tid: 0 >>> com.gmail.vegasfungames.vegasfun <<<

backtrace:

  #00  pc 00000000001fd972  /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb1EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+509)

  #01  pc 0000000000201975  /system/lib/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE4ELb0ELb1EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+760)

  #02  pc 00000000000afffd  /system/lib/libart.so (_ZN3art11interpreter15ExecuteGotoImplILb1ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_+25796)

  #03  pc 00000000001e37d5  /system/lib/libart.so (artInterpreterToInterpreterBridge+312)

  #04  pc 00000000001fd36b  /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+334)

  #05  pc 00000000000c0b87  /system/lib/libart.so (_ZN3art11interpreter15ExecuteGotoImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_+26126)

  #06  pc 00000000001e3715  /system/lib/libart.so (artInterpreterToInterpreterBridge+120)

  #07  pc 00000000001fd36b  /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+334)

  #08  pc 00000000000c07b3  /system/lib/libart.so (_ZN3art11interpreter15ExecuteGotoImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_+25146)

  #09  pc 00000000001e3715  /system/lib/libart.so (artInterpreterToInterpreterBridge+120)

  #10  pc 00000000001fd36b  /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+334)

  #11  pc 00000000000c07b3  /system/lib/libart.so (_ZN3art11interpreter15ExecuteGotoImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_+25146)

  #12  pc 00000000001e3715  /system/lib/libart.so (artInterpreterToInterpreterBridge+120)

  #13  pc 00000000001fd36b  /system/lib/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+334)

  #14  pc 00000000000c07b3  /system/lib/libart.so (_ZN3art11interpreter15ExecuteGotoImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_+25146)

  #15  pc 00000000001e34ed  /system/lib/libart.so (_ZN3art11interpreter30EnterInterpreterFromEntryPointEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameE+84)

  #16  pc 00000000003ea3ab  /system/lib/libart.so (artQuickToInterpreterBridge+546)

  #17  pc 00000000000eab93  /system/lib/libart.so (art_quick_to_interpreter_bridge+34)

  #18  pc 00000000000e6421  /system/lib/libart.so (art_quick_invoke_stub_internal+64)

  #19  pc 00000000003ec66f  /system/lib/libart.so (art_quick_invoke_stub+170)

  #20  pc 00000000000ec81b  /system/lib/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+174)

  #21  pc 000000000031dc9b  /system/lib/libart.so (_ZN3art12InvokeMethodERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectS4_S4_j+654)

  #22  pc 00000000002d5d8b  /system/lib/libart.so (_ZN3artL13Method_invokeEP7_JNIEnvP8_jobjectS3_S3_+22)

  #23  pc 00000000024d4ab1  /system/framework/arm/boot.oat

Any update on this. Getting quite a few of these as well:

  #00  pc 00000000000a2f94  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/libopenal.so

  #01  pc 0000000000016874  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/libopenal.so (alcCreateContext+436)

  #02  pc 0000000000005ff7  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/libalmixer.so (ALmixer_Init+214)

  #03  pc 000000000011f78c  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/libcorona.so

  #04  pc 00000000000fe03c  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/libcorona.so

  #05  pc 000000000000cc04  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/liblua.so

  #06  pc 000000000001ce18  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/liblua.so

  #07  pc 000000000000d050  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/liblua.so

  #08  pc 000000000000c35c  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/liblua.so

  #09  pc 000000000000d1c8  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/liblua.so

  #10  pc 00000000000055a0  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/liblua.so (lua_pcall+88)

  #11  pc 00000000000f5978  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/libcorona.so

  #12  pc 00000000000d7b10  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/libcorona.so

  #13  pc 000000000012f4d0  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/libcorona.so

  #14  pc 0000000000131480  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/libcorona.so

  #15  pc 000000000012f988  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/libcorona.so

  #16  pc 00000000001306e4  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/libcorona.so

  #17  pc 000000000002b540  /data/app/com.iabuzz.Puzzle4KidsDinos-1/lib/arm/libcorona.so

  #18  pc 0000000000d37555  /data/app/com.iabuzz.Puzzle4KidsDinos-1/oat/arm/base.odex

Our engineers are working on a replacement audio library for Android. This is in closed testing now. Hopefully we will have it out soon which should address many of these OpenAL crashes.

Rob

Please give us the tentative release/update date on this.

Hey Rob, can you give us approximate time on when this will be ready?

You can test new audio apis right now in latest daily builds. To test them insert this as first line of main.lua:

al = nil; if audio2 then audio=audio2; print("=====\>\>&nbsp; &nbsp;Using audio2 &nbsp;\<\<=====") end

I highly recommend to test your apps severely (sound especially) before submitting to Google Play. I you do, please, post your results here or in Slack. Changes only affect Android. Everything else is unchanged.

Thanks for the update!

The new Android audio apis seem promising. The Android audio lag is gone or not noticeable.

However, some sounds are not playing that worked before. I noticed some of these sounds dropped in the simulator as well. I’ll test more to see if I can determine why.

NOTE: Would it be helpful to provide you with a debug APK? I can provide one if you think it will help to resolve these issues and improve Android performance.

Hey, [member=‘rogkem’]. Thanks for checking it out! Yes, we are not using OpenAL for Android audio in new audio system, and using modern “low latency” android apis. We are actively working on it, so please, feel free to download very latest daily build and see if your issues was resolved. If they are not, I would appreciate if you could send me a test project to see what is going on. If you do, we would treat it with respect. PM for details.

P.S. Because we moved away from OpenAL, al.* apis are not working anymore. We may release OpenAL plugin separately in the future.

Hey vlads, what’s the ETA on a release date or beta for audio2?

It is in “beta” right now, and works pretty well for simple scenarios. To turn it on get latest daily build and add

al = nil; if audio2 then audio=audio2; print("=====\>\>&nbsp; &nbsp;Using audio2 &nbsp;\<\<=====") end

as the first line of main.lua.

Please note, this is temporary. audio2 will only be true on Android devices. This change doesn’t affect other platforms. You should not use “audio2” as a stand alone API. 

Because this is in beta, you should throughly test your app to make sure sounds are working. Beta software is not intended for distribution, but for you to try it and look for bugs that we can address before making it public.

Rob