Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal signal 4 in asus #27

Open
bijesh-pv opened this issue Mar 9, 2019 · 3 comments
Open

Fatal signal 4 in asus #27

bijesh-pv opened this issue Mar 9, 2019 · 3 comments

Comments

@bijesh-pv
Copy link

Hi,

Will tried to receive the audio QR using the Asus device (Asus T00J) and the application is crashing.
OS : Android Version 5.0 (Lollipop)
Device Details : https://www.gsmarena.com/asus_zenfone_5_a500cg_(2014)-5952.php

The crash details from the log :
AUDIO_INPUT_FLAG_FAST denied by client
A/libc: Fatal signal 4 (SIGILL), code 2, fault addr 0xa042c885 in tid 8138 (AudioRecord)

The code for receiving is
receiver.setBlocking(5, 0);
byte[] buf = new byte[1024];
try {
recvLen = receiver.receive(buf);
} catch (Exception e) {
e.printStackTrace();
}

We are getting the Fatal error from the JNI and unable to catch in the java.

Could you please help on solving this issue.

@brian-armstrong
Copy link
Member

Hi,

I think your app is missing audio record permissions.

Brian

@bijesh-pv
Copy link
Author

Hi Brain,

We have already added the audio record permissions

Thanks & Regards
Bijesh

@brian-armstrong
Copy link
Member

Unfortunately I don't have the device to test on so I can't really say. Your best bet would be to modify the source code and try to stop the crash. You might have luck trying different sample rates or depths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants