Trying to record audio but getting message “mediarecorder went away with unhandled events” and “Fatal signal 11 (SIGSEGV)…”

假如想象 提交于 2019-11-29 01:10:33
blackfyre

I solved this problem by reseting recorder before releasing it.

recorder.stop();     // stop recording
recorder.reset();    // set state to idle
recorder.release();  // release resources back to the system
recorder = null;
dimetil

This could arise due to running modded firmware. A SIGSEGV should not be possible from Java. Read this post. There is an explanation of the error in the end. Good luck.

Android SIGSEGV error when recording audio

The documentation states:

In order to receive the respective callback associated with these listeners, applications are required to create MediaRecorder objects on threads with a Looper running (the main UI thread by default already has a Looper running).

Make sure you create the recorder on the UI thread. Perhaps also call its methods on the UI thread.

I have Android 4.0.4 (an by my unmodified version of, Samsung have made changes to it) running on my Samsung Galaxy S3 and I can sometimes get a SIGSEGV ("A/libc(20448): Fatal signal 11 (SIGSEGV) at 0x00000010 (code=1)") when I use the mediarecorder.

I also get a SIGSEGV in my AVD for Android 4.0, so it's possible to get a SIGSEGV even there.

Now I just have to find what I do wrong with the mediarecorder. =)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!