libpd / pd-for-android

Pure Data for Android
352 stars 91 forks source link

A/libc: Fatal signal 31 (SIGSYS), code 1 (SYS_SECCOMP) in tid 6889 (mqt_native_modu) #104

Open cawfree opened 4 years ago

cawfree commented 4 years ago

Hey,

Many thanks for your hard work putting all of this together.

I'm currently working on react-native-pure-data and have managed to connect the iOS interface, and I'm currently in the middle of implementing the Android wrapper.

I'm currently encountering the following problem:

A/libc: Fatal signal 31 (SIGSYS), code 1 (SYS_SECCOMP) in tid 6889 (mqt_native_modu)

When making a call to:

PdAudio.initAudio(44100, 1, 2, 8, true);

Against:

buildToolsVersion = "28.0.3"
minSdkVersion = 17
compileSdkVersion = 28
targetSdkVersion = 28

I've read online that this is most likely a security issue in making some kind of protected native call.

Just curious whether there are known any workarounds to this problem? I'm going to lower the SDK version to 24 as this should be pre-secure computing (just to unblock development), but ideally it'd be great to execute against the modern Android APIs without throwing this error.

tkirshboim commented 4 years ago

Hi @cawfree, Which version of pd-for-android are you using? If it's 1.0.2 as referenced in the commit below, maybe it's worth trying to use the latest release version instead, which is 1.1.0. https://github.com/cawfree/react-native-pure-data/blob/develop/android/build.gradle#L76

If you could provide instructions how this issue could be reproduced, it might help.

cawfree commented 4 years ago

Hey @tkirshboim, many thanks for your response. I'll give it a shot, and if I encounter any problems I'll provide you with some repro instructions.

Thanks again!