Crash on startup #1
Comments
Hi sm4rk0, |
I think, I fix the issue. I read on stackoverflow that it is better to multiply the minimal buffer size with two. The reason is a bit strange: I used a function to get the minimal buffer size from the system, but the result of this function is for 8bit and not for 16bit sampling. Because it is a minimal value, there is no problem to make it two times bigger. The App still works on my Wileyfox Swift (6.0) and Nexus S (Kitkat). If you want to test the new APK from https://github.com/no-go/RickApp/tree/master/app, please remove the old one! I sign it with a new, different key. :-D |
Thanks for a quick response, but there's the same exception again: I/ActivityManager( 1228): Start proc 14887:click.dummer.rickapp/u0a259 for activity click.dummer.rickapp/.RickActivity |
Okay, but the hint "getInputBufferSize failed" is new for me. I will try to fix it in the next 2 or 3 day. But it is hard to fix, because there is no possibility for me to simulate this special Motorola Device :-S |
Maybe, it could be a permission problem. Did you have a special App or Manager to allow/forbid the permissions on your android system? try to check the microphone access of RickApp ;-) |
Only XPrivacy, but it's the same when I disable it for RickApp. Only things the XPrivacy logs, when it's enabled, are IPackageManager:getPackageInfo, Serial, Configuration.MCC and Configuration.MNC which are usually requested for all possible applications, probably by some system library, not the RickApp. |
I think, that Motorola has no default call recording and this makes all the trouble. Please try the echo App. Parts of the echo App Code is very similar to RickApp. If the echo App did not start on your phone, I will not find a solution for you :-( |
Echo app is working. Yes, there are some difficulties with call recording on Moto X. The only app that worked for me (with root) is CallRecorder by skvalex. |
I changed some important parts to make it more like "echo App":
|
It works! Thanks! |
Motorola Moto X (2013), Lollipop 5.1 + Xposed
logcat -d | grep 30276:
E/AndroidRuntime(30276): FATAL EXCEPTION: main
E/AndroidRuntime(30276): Process: click.dummer.rickapp, PID: 30276
E/AndroidRuntime(30276): java.lang.RuntimeException: Unable to start activity ComponentInfo{click.dummer.rickapp/click.dummer.rickapp.RickActivity}: java.lang.IllegalArgumentException: Invalid audio buffer size.
E/AndroidRuntime(30276): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2339)
E/AndroidRuntime(30276): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)
E/AndroidRuntime(30276): at android.app.ActivityThread.access$800(ActivityThread.java:155)
E/AndroidRuntime(30276): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
E/AndroidRuntime(30276): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(30276): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(30276): at android.app.ActivityThread.main(ActivityThread.java:5343)
E/AndroidRuntime(30276): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(30276): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(30276): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
E/AndroidRuntime(30276): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
E/AndroidRuntime(30276): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:102)
E/AndroidRuntime(30276): Caused by: java.lang.IllegalArgumentException: Invalid audio buffer size.
E/AndroidRuntime(30276): at android.media.AudioRecord.audioBuffSizeCheck(AudioRecord.java:428)
E/AndroidRuntime(30276): at android.media.AudioRecord.(AudioRecord.java:318)
The text was updated successfully, but these errors were encountered: