Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Crash: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR) in libalmixer.so
Started by pbozzone0 Jan 02 2019 08:42 AM

28 replies to this topic
crash report failure libalmixer.so signal 11
[TOPIC CONTROLS]
Page 2 of 2 1 2
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#26

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Contributor

  • 851 posts
  • Corona Staff

Hello! This crash proved to be extremely hard to reproduce. It is caused by some audio related things. Only thing I can suggest for now is to try out audio2 subsystem. Just place this line as first line in your main.lua:

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

Note, this is much simpler audio system, and doesn't have OpenAL capabilities. Make sure to test your game on android device after trying it out. Note, audio2 is available only on actual devices.



[TOPIC: post.html]
#27

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,042 posts
  • Enterprise

Given it's a SIGSEGV, and it doesn't happen all the time, make sure you don't have some conditional or race condition where you're removing a scene or audio object that has an onComplete listener attached to it. I had a similar issue in a project years ago and I wasn't stopping an onComplete listener, removing the scene so the function the listener called didn't exist any more, but the audio was still trying to call nothing and BOOM Single 11, Segment violation.

 

There is also the very real possibility that this is related to a similar issue deep in the OpenAL library and outside of anything we can catch. Perhaps some audio decoder on some variant of a device driver that OpenAL is trying call on that user's device is borked and it's beyond our ability to fix. This seems like the more likely combination and @vlad's suggestion to try audio2 makes sense. 

I know I've suggested this before and people say they've tried it but "it doesn't work", well if it doesn't work, let us know. audio2 is new and a cleaner implementation so it's easier for us to fix problems in our control in audio2 than audio due to it's dependence on OpenAL which we have no control over.

 

Rob



[TOPIC: post.html]
#28

fkilius

[GLOBAL: userInfoPane.html]
fkilius
  • Enthusiast

  • 39 posts
  • Corona SDK

Rob/Vlads, two months ago you already suggested to try using audio2. But when we tried no all sounds plays in the app and sometimes we have 2 secs of delay between the play call in code and the start of sound in device.

If you see the entire thread you will see my response.

We will do another code review trying to find som case like you described in oncomplete handler.

Regards.



[TOPIC: post.html]
#29

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,042 posts
  • Enterprise

audio2 should work. There are quite a few people who tried it and used it it. I seem to remember you saying it didn't work, but I'd rather spend time trying to get audio2 working for you than fight something we can't see.

 

Rob




[topic_controls]
Page 2 of 2 1 2
 
[/topic_controls]

Also tagged with one or more of these keywords: crash report, failure, libalmixer.so, signal 11