Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Unable to pause activity: pure data (ofxpd) on android

$
0
0

Hi,

I am developing an android application with ofxpd. My current problem is that when I change something in the pd patch, the app behaviour does not change, it behaves as before the changes.

To understand why it happens, I am debuging the app in the mobile device using the android logcat, I have the error copied below, which is related to AudioRecord. I have not used AudioRecord in my application, so, do you know what might be the cause of this error? I actually do not know if it is related to my problem.

logcat:

JLs-MacBook-2:platform-tools JL$ ./adb logcat
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
--------- beginning of crash
E/AndroidRuntime(16018): FATAL EXCEPTION: main
E/AndroidRuntime(16018): Process: cc.openframeworks.exampleTweenPd, PID: 16018
E/AndroidRuntime(16018): java.lang.RuntimeException: Unable to pause activity {cc.openframeworks.exampleTweenPd/cc.openframeworks.exampleTweenPd.OFActivity}: java.lang.IllegalStateException: stop() called on an uninitialized AudioRecord.
E/AndroidRuntime(16018): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3312)
E/AndroidRuntime(16018): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3259)
E/AndroidRuntime(16018): at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3234)
E/AndroidRuntime(16018): at android.app.ActivityThread.access$1000(ActivityThread.java:148)
E/AndroidRuntime(16018): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
E/AndroidRuntime(16018): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(16018): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime(16018): at android.app.ActivityThread.main(ActivityThread.java:5312)
E/AndroidRuntime(16018): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(16018): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime(16018): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
E/AndroidRuntime(16018): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
E/AndroidRuntime(16018): Caused by: java.lang.IllegalStateException: stop() called on an uninitialized AudioRecord.
E/AndroidRuntime(16018): at android.media.AudioRecord.stop(AudioRecord.java:661)
E/AndroidRuntime(16018): at cc.openframeworks.OFAndroidSoundStream.appStop(OFAndroidSoundStream.java:127)
E/AndroidRuntime(16018): at cc.openframeworks.OFAndroidSoundStream.appPause(OFAndroidSoundStream.java:161)
E/AndroidRuntime(16018): at cc.openframeworks.OFAndroidObject.onPause(OFAndroidObject.java:31)
E/AndroidRuntime(16018): at cc.openframeworks.OFAndroid.pause(OFAndroid.java:366)
E/AndroidRuntime(16018): at cc.openframeworks.exampleTweenPd.OFActivity.onPause(OFActivity.java:28)
E/AndroidRuntime(16018): at android.app.Activity.performPause(Activity.java:6064)
E/AndroidRuntime(16018): at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1317)
E/AndroidRuntime(16018): at android.app.ActivityThread.performPauseActivity(ActivityThread.java:3292)
E/AndroidRuntime(16018): ... 11 more

Thank you,
jl


Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>