googlequicksearchbox error - android

I am creating an app that access google map api to give location based services. I have nothing to do with the microphone still I am getting the following error in the logcat. As suggested by some websites I have already disabled my microphone and google app.I am a new user to android please,help.
ServiceManager: Permission failure: android.permission.RECORD_AUDIO from uid=10030 pid=-1
[ 03-23 05:42:02.309 1574: 6149 E/ ]
Request requires android.permission.RECORD_AUDIO
03-23 05:42:02.309 1574-6149/? E/AudioFlinger: openRecord() permission denied: recording not allowed
03-23 05:42:02.309 6661-7408/com.google.android.googlequicksearchbox:search E/AudioRecord: AudioFlinger could not create record track, status: -1
03-23 05:42:02.313 6661-7408/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -1.
03-23 05:42:02.313 6661-7408/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
03-23 05:42:02.313 6661-7408/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_started com.google.android.apps.gsa.staticplugins.aa.c#844b56e
03-23 05:42:02.316 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: onReady
03-23 05:42:02.320 6661-7408/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_close com.google.android.apps.gsa.staticplugins.aa.c#844b56e
03-23 05:42:02.322 6661-6733/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Detection finished
03-23 05:42:02.322 6661-6733/com.google.android.googlequicksearchbox:search W/ErrorReporter: reportError [type: 211, code: 524300]: Error reading from input stream
03-23 05:42:02.323 6661-6732/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Stopping hotword detection.
03-23 05:42:02.323 6661-6733/com.google.android.googlequicksearchbox:search W/ErrorProcessor: onFatalError, processing error from engine(4)
com.google.android.apps.gsa.shared.speech.b.g: Error reading from input stream
at com.google.android.apps.gsa.staticplugins.recognizer.j.a.a(SourceFile:28)
at com.google.android.apps.gsa.staticplugins.recognizer.j.b.run(SourceFile:15)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:14)
at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4)
at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
at com.google.android.apps.gsa.shared.util.concurrent.a.ai.run(SourceFile:6)
Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space.
at com.google.android.apps.gsa.speech.audio.Tee.f(SourceFile:103)
at com.google.android.apps.gsa.speech.audio.au.read(SourceFile:2)
at java.io.InputStream.read(InputStream.java:101)
at com.google.android.apps.gsa.speech.audio.ao.run(SourceFile:18)
at com.google.android.apps.gsa.speech.audio.an.run(SourceFile:2)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457) 
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:14) 
at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4) 
at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) 
at java.lang.Thread.run(Thread.java:764) 
at com.google.android.apps.gsa.shared.util.concurrent.a.ai.run(SourceFile:6) 
03-23 05:42:02.324 6661-6733/com.google.android.googlequicksearchbox:search I/AudioController: internalShutdown
03-23 05:42:02.337 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetector: Keeping mic open: false
03-23 05:42:02.337 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: #onError(false)
03-23 05:42:02.337 6661-6735/com.google.android.googlequicksearchbox:search I/DeviceStateChecker: DeviceStateChecker cancelled
03-23 05:42:02.337 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: #onError(false)
03-23 05:42:07.345 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: #updateMicroDetector [detectionMode: [mDetectionMode: [1]]]
03-23 05:42:07.345 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: #startMicroDetector [speakerMode: 0]
03-23 05:42:07.346 6661-6661/com.google.android.googlequicksearchbox:search I/AudioController: Using mInputStreamFactoryBuilder
03-23 05:42:07.349 6661-6661/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: onReady
03-23 05:42:07.353 6661-6733/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Starting detection.
03-23 05:42:07.355 6661-7408/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_starting com.google.android.apps.gsa.staticplugins.aa.c#be90ea0
03-23 05:42:07.358 1574-7906/? I/AudioFlinger: AudioFlinger's thread 0xb0797180 tid=7906 ready to run

Related

Kotlin Android error messages, but app runs well

My Android app written in Kotlin is ok to run, but Android Studio keeps showing a lot of errors. Can anyone help me solve it?
06-12 20:30:40.244 1500-11361/? E/AudioFlinger: not enough memory for AudioTrack size=131296
06-12 20:30:40.244 1500-11361/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block?
06-12 20:30:40.244 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord: AudioFlinger could not create record track, status: -12
06-12 20:30:40.246 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -12.
06-12 20:30:40.246 2960-13595/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-12 20:30:45.283 1500-1808/? E/AudioFlinger: not enough memory for AudioTrack size=131296
06-12 20:30:45.284 1500-1808/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block?
06-12 20:30:45.284 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord: AudioFlinger could not create record track, status: -12
06-12 20:30:45.285 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -12.
06-12 20:30:45.285 2960-13595/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-12 20:30:50.312 1500-1808/? E/AudioFlinger: not enough memory for AudioTrack size=131296
06-12 20:30:50.312 1500-1808/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block?
06-12 20:30:50.312 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord: AudioFlinger could not create record track, status: -12
06-12 20:30:50.314 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -12.
06-12 20:30:50.314 2960-13595/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-12 20:30:55.347 1500-1808/? E/AudioFlinger: not enough memory for AudioTrack size=131296
06-12 20:30:55.347 1500-1808/? E/AudioFlinger: createRecordTrack_l() initCheck failed -12; no control block?
06-12 20:30:55.348 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord: AudioFlinger could not create record track, status: -12
06-12 20:30:55.349 2960-13595/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -12.
06-12 20:30:55.349 2960-13595/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-12 20:31:00.009 1664-1684/system_process E/memtrack: Couldn't load memtrack module

devicestatechecker cancelled is coming frequently in android monitor

I have tried all possible options. When i am trying to run the app the app is woking fine with all functionality .However the below messages are coming in android monitor which is very annoying.Please help me in finding the reason why it is coming.
08-04 00:19:53.038 2322-2322/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: Micro detection mode: [mDetectionMode: [1]].
08-04 00:19:53.039 2322-2322/com.google.android.googlequicksearchbox:search I/AudioController: Using mInputStreamFactoryBuilder
08-04 00:19:53.058 2322-7024/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Starting detection.
08-04 00:19:53.059 2322-2473/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_starting com.google.android.apps.gsa.staticplugins.z.c#136a5d5
08-04 00:19:53.061 1308-1333/? W/APM_AudioPolicyManager: getInputForAttr() failed opening input: samplingRate 16000, format 1, channelMask 10
08-04 00:19:53.062 2322-2473/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 993, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
08-04 00:19:53.064 2322-2473/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
08-04 00:19:53.064 2322-2473/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
08-04 00:19:53.064 2322-2473/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_started com.google.android.apps.gsa.staticplugins.z.c#136a5d5
08-04 00:19:53.067 2322-2473/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
08-04 00:19:53.069 2322-2322/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: onReady
08-04 00:19:53.099 2322-2473/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_close com.google.android.apps.gsa.staticplugins.z.c#136a5d5
08-04 00:19:53.099 2322-7024/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Detection finished
08-04 00:19:53.099 2322-7024/com.google.android.googlequicksearchbox:search W/ErrorReporter: reportError [type: 211, code: 524300]: Error reading from input stream
08-04 00:19:53.100 2322-6584/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Stopping hotword detection.
08-04 00:19:53.101 2322-7024/com.google.android.googlequicksearchbox:search W/ErrorProcessor: onFatalError, processing error from engine(4)
com.google.android.apps.gsa.shared.speech.a.g: Error reading from input stream
at com.google.android.apps.gsa.staticplugins.recognizer.i.a.a(SourceFile:342)
at com.google.android.apps.gsa.staticplugins.recognizer.i.a$1.run(SourceFile:1367)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85)
Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space.
at com.google.android.apps.gsa.speech.audio.Tee.g(SourceFile:2531)
at com.google.android.apps.gsa.speech.audio.ap.read(SourceFile:555)
at java.io.InputStream.read(InputStream.java:101)
at com.google.android.apps.gsa.speech.audio.al.run(SourceFile:362)
at com.google.android.apps.gsa.speech.audio.ak$1.run(SourceFile:471)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66)
at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139)
at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85)
08-04 00:19:53.101 2322-7024/com.google.android.googlequicksearchbox:search I/AudioController: internalShutdown
08-04 00:19:53.106 2322-2322/com.google.android.googlequicksearchbox:search I/MicroDetector: Keeping mic open: false
08-04 00:19:53.106 2322-2322/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: #onError(false)
08-04 00:19:53.106 2322-7023/com.google.android.googlequicksearchbox:search I/DeviceStateChecker: DeviceStateChecker cancelled

How to debug in Android Studio Logcat

I am new to Android Studio and Android programming and am attempting to follow a how to lesson. I am having a lot of trouble following Android Studio Logcat because it is not as straightforward to me as any IDEs have used. Could someone please decode what things mean in my errors? I need to learn how to use Logcat since the explanations I see online are too simplified and do not cover much.
What exactly is:"2359-13990/"?
How do I find the place in the code that caused the errors?
What exactly does my error output from Logcat mean?
Due to the space limit, I have changed my post and now have only errors instead of verbose. Here are my errors in Logcat:
06-21 21:11:46.347 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3105, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:11:46.348 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:11:46.348 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:11:46.349 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:11:47.142 29992-29992/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:47.185 29992-29992/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:47.185 29992-29992/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:47.398 30006-30006/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:47.440 30006-30006/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:47.440 30006-30006/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:47.770 30029-30029/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:47.811 30029-30029/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:47.812 30029-30029/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:49.172 30041-30041/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:49.227 30046-30046/? E/cutils-trace: Error opening trace file: Permission denied (13)
06-21 21:11:49.229 30041-30041/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:49.229 30041-30041/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:49.279 30046-30046/? E/memtrack: Couldn't load memtrack module (No such file or directory)
06-21 21:11:49.279 30046-30046/? E/android.os.Debug: failed to load memtrack module: -2
06-21 21:11:49.331 30063-30070/? E/art: Failed sending reply to debugger: Broken pipe
06-21 21:11:52.997 30063-30063/com.example.android.sunshine E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.android.sunshine, PID: 30063
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.sunshine/com.example.android.sunshine.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2665)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6119)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ProgressBar.setVisibility(int)' on a null object reference
at com.example.android.sunshine.MainActivity$FetchWeatherTask.onPreExecute(MainActivity.java:97)
at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:620)
at android.os.AsyncTask.execute(AsyncTask.java:567)
at com.example.android.sunshine.MainActivity.loadWeatherData(MainActivity.java:74)
at com.example.android.sunshine.MainActivity.onCreate(MainActivity.java:63)
at android.app.Activity.performCreate(Activity.java:6679)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2618)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726) 
at android.app.ActivityThread.-wrap12(ActivityThread.java) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:154) 
at android.app.ActivityThread.main(ActivityThread.java:6119) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776) 
06-21 21:11:53.668 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3113, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:11:53.669 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:11:53.669 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:11:53.669 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:11:58.689 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3121, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:11:58.689 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:11:58.689 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:11:58.690 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:03.709 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3129, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:03.711 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:03.712 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:03.712 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:08.742 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3137, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:08.742 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:08.742 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:08.742 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:13.764 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3145, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:13.764 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:13.765 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:13.765 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:18.790 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3153, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:18.790 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:18.790 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:18.791 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-21 21:12:23.808 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 3161, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
06-21 21:12:23.808 2359-13990/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
06-21 21:12:23.808 2359-13990/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-21 21:12:23.808 2359-13990/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
You look for your package name (if you have not selected your project in the dropdown for logging). In you case I suppose its "com.example.android.sunshine".
Just after your package name you will find the exception and more details.
ComponentInfo{com.example.android.sunshine/com.example.android.sunshine.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void'
Below that you can find stacktrace. In that stacktrace again find your package name and you will find exact line where error occurred.
com.example.android.sunshine.MainActivity$FetchWeatherTask.onPreExecute(MainActivity.java:97)

Embedding Crosswalk for both x86 and ARM architectures

I'm attempting to bundle Crosswalk with my Android application so that I can include its webview on a Fragment. The business case being that any HTML we want to run on the view will work across all android versions (the HTML could be a complex activity such as a game). I'm looking for an example which could manage this or how I could change my project to suit that purpose.
I've followed the tutorial here (https://crosswalk-project.org/documentation/android/embedding_crosswalk.html) to get started, this allows me to build an APK that correctly shows web content on my Samsung S4, which uses the ARM chipset, however I now also would like to cover x86. I've got an emulator to test with but I'm not having much luck. I've also attempted to follow the steps here (How to add crosswalk webview in my own android library module?).
I've tried the following:
Different permutations of the including the modules provided on their download page.
Including both the ARM and x86 libraries (Android Studio complains that the classes are defined twice which is what I would expect).
Copying the 'x86' from src/main/jniLibs from within the x86 module and pasting it into the arm module which my application references.
Using 'XWalkActivity' (https://crosswalk-project.org/apis/embeddingapidocs_v7/index.html) not only did this not work on x86 but also stopped working on my ARM device.
The closest I've got is the code at the bottom of this post which allows me to install the application on my emulator but does not load the web content.
Few key things to note from my stack track (at the end of this question).
12-12 17:09:43.243 12271-12294/com.firstapp.crosswalktest W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app/com.firstapp.crosswalktest-2/lib/x86/libxwalkdummy.so': couldn't get XW_Initialize function.
12-12 17:09:43.243 12271-12294/com.firstapp.crosswalktest W/chromium: [WARNING:xwalk_extension_server.cc(407)] Failed to initialize extension: /data/app/com.firstapp.crosswalktest-2/lib/x86/libxwalkdummy.so
12-12 17:09:43.243 12271-12294/com.firstapp.crosswalktest W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app/com.firstapp.crosswalktest-2/lib/x86/libxwalkcore.so': couldn't get XW_Initialize function.
12-12 17:09:43.243 12271-12294/com.firstapp.crosswalktest W/chromium: [WARNING:xwalk_extension_server.cc(407)] Failed to initialize extension: /data/app/com.firstapp.crosswalktest-2/lib/x86/libxwalkcore.so
This looks problematic however this also occurs when I run it on my ARM device and that works as expected. Does anyone know what these are and the implications?
12-12 17:09:43.013 12271-12271/com.firstapp.crosswalktest D/XWalkLib: Init embedded mode
12-12 17:09:43.013 12271-12271/com.firstapp.crosswalktest D/XWalkLib: [App Version] build:22.52.561.4, api:7, min_api:7
12-12 17:09:43.014 12271-12271/com.firstapp.crosswalktest D/XWalkLib: [Lib Version] build:22.52.561.4, api:7, min_api:5
12-12 17:09:43.014 12271-12271/com.firstapp.crosswalktest D/XWalkLib: Crosswalk download mode: false
12-12 17:09:43.014 12271-12271/com.firstapp.crosswalktest D/XWalkLib: XWalk core version matched
12-12 17:09:43.045 12271-12271/com.firstapp.crosswalktest I/cr_LibraryLoader: Time to load native libraries: 1 ms (timestamps 144-145)
12-12 17:09:43.045 12271-12271/com.firstapp.crosswalktest I/cr_LibraryLoader: Expected native library version number "", actual native library version number ""
12-12 17:09:43.045 12271-12271/com.firstapp.crosswalktest D/XWalkLib: Native library is built for IA
12-12 17:09:43.045 12271-12271/com.firstapp.crosswalktest D/XWalkLib: XWalk core architecture matched
12-12 17:09:43.045 12271-12271/com.firstapp.crosswalktest D/XWalkLib: Running in embedded mode
12-12 17:09:43.045 12271-12271/com.firstapp.crosswalktest D/XWalkLib: Init core bridge
This looks like the set up that XWalk goes through, note that 'XWalk core architecture matched'; I would read from this that it has the native libraries it needs so perhaps something else is the issue?
Stack trace from once the application loads:
12-12 17:09:39.436 2087-2087/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: Micro detection mode: [mDetectionMode: [1]].
12-12 17:09:39.436 2087-2087/com.google.android.googlequicksearchbox:search I/AudioController: Using mInputStreamFactoryBuilder
12-12 17:09:39.440 2087-12244/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Starting detection.
12-12 17:09:39.440 2087-11832/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_starting com.google.android.apps.gsa.staticplugins.z.c#eee8318
12-12 17:09:39.441 1246-1624/? W/APM_AudioPolicyManager: getInputForAttr() failed opening input: samplingRate 16000, format 1, channelMask 10
12-12 17:09:39.441 2087-11832/com.google.android.googlequicksearchbox:search E/AudioRecord: Could not get audio input for session 265, record source 1999, sample rate 16000, format 0x1, channel mask 0x10, flags 0
12-12 17:09:39.442 2087-11832/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -22.
12-12 17:09:39.442 2087-11832/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
12-12 17:09:39.442 2087-11832/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_started com.google.android.apps.gsa.staticplugins.z.c#eee8318
12-12 17:09:39.443 2087-11832/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
12-12 17:09:39.445 2087-2087/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: onReady
12-12 17:09:39.447 2087-12244/com.google.android.googlequicksearchbox:search W/SpeechLevelGenerator: Really low audio levels detected. The audio input may have issues.
12-12 17:09:39.453 2087-11832/com.google.android.googlequicksearchbox:search I/MicrophoneInputStream: mic_close com.google.android.apps.gsa.staticplugins.z.c#eee8318
12-12 17:09:39.453 2087-12244/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Detection finished
12-12 17:09:39.454 2087-12244/com.google.android.googlequicksearchbox:search W/ErrorReporter: reportError [type: 211, code: 524300]: Error reading from input stream
12-12 17:09:39.455 2087-2242/com.google.android.googlequicksearchbox:search I/MicroRecognitionRunner: Stopping hotword detection.
12-12 17:09:39.455 2087-12244/com.google.android.googlequicksearchbox:search W/ErrorProcessor: onFatalError, processing error from engine(4)
com.google.android.apps.gsa.shared.speech.a.g: Error reading from input stream
at com.google.android.apps.gsa.staticplugins.recognizer.i.a.a(SourceFile:342)
at com.google.android.apps.gsa.staticplugins.recognizer.i.a$1.run(SourceFile:1367)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85)
Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space.
at com.google.android.apps.gsa.speech.audio.Tee.g(SourceFile:2531)
at com.google.android.apps.gsa.speech.audio.ap.read(SourceFile:555)
at java.io.InputStream.read(InputStream.java:101)
at com.google.android.apps.gsa.speech.audio.al.run(SourceFile:362)
at com.google.android.apps.gsa.speech.audio.ak$1.run(SourceFile:471)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66)
at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139)
at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:761) 
at com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85) 
12-12 17:09:39.455 2087-12244/com.google.android.googlequicksearchbox:search I/AudioController: internalShutdown
12-12 17:09:39.457 2087-2087/com.google.android.googlequicksearchbox:search I/MicroDetector: Keeping mic open: false
12-12 17:09:39.457 2087-2087/com.google.android.googlequicksearchbox:search I/MicroDetectionWorker: #onError(false)
12-12 17:09:39.457 2087-12243/com.google.android.googlequicksearchbox:search I/DeviceStateChecker: DeviceStateChecker cancelled
12-12 17:09:42.710 12251-12251/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
12-12 17:09:42.711 12251-12251/? D/AndroidRuntime: CheckJNI is ON
12-12 17:09:42.711 12251-12251/? E/cutils-trace: Error opening trace file: Permission denied (13)
12-12 17:09:42.736 12251-12251/? W/art: Unexpected CPU variant for X86 using defaults: x86
12-12 17:09:42.739 12251-12251/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:09:42.745 12255-12255/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
12-12 17:09:42.746 12255-12255/? D/AndroidRuntime: CheckJNI is ON
12-12 17:09:42.746 12255-12255/? E/cutils-trace: Error opening trace file: Permission denied (13)
12-12 17:09:42.748 12251-12251/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:09:42.748 12251-12251/? E/android.os.Debug: failed to load memtrack module: -2
12-12 17:09:42.749 12251-12251/? I/Radio-JNI: register_android_hardware_Radio DONE
12-12 17:09:42.758 12251-12251/? D/AndroidRuntime: Calling main entry com.android.commands.wm.Wm
12-12 17:09:42.759 12251-12251/? D/AndroidRuntime: Shutting down VM
12-12 17:09:42.761 12251-12262/? W/art: Thread attaching while runtime is shutting down: Binder:12251_1
12-12 17:09:42.761 12251-12262/? I/AndroidRuntime: NOTE: attach of thread 'Binder:12251_1' failed
12-12 17:09:42.776 12255-12255/? W/art: Unexpected CPU variant for X86 using defaults: x86
12-12 17:09:42.780 12255-12255/? D/ICU: No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:09:42.793 12255-12255/? E/memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:09:42.793 12255-12255/? E/android.os.Debug: failed to load memtrack module: -2
12-12 17:09:42.794 12255-12255/? I/Radio-JNI: register_android_hardware_Radio DONE
12-12 17:09:42.799 12255-12255/? D/AndroidRuntime: Calling main entry com.android.commands.am.Am
12-12 17:09:42.803 1461-1914/system_process I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.firstapp.crosswalktest/.MainActivity} from uid 2000 on display 0
12-12 17:09:42.811 12255-12255/? D/AndroidRuntime: Shutting down VM
12-12 17:09:42.815 12271-12271/? I/art: Not late-enabling -Xcheck:jni (already on)
12-12 17:09:42.816 12271-12271/? W/art: Unexpected CPU variant for X86 using defaults: x86
12-12 17:09:42.822 1461-1476/system_process I/ActivityManager: Start proc 12271:com.firstapp.crosswalktest/u0a76 for activity com.firstapp.crosswalktest/.MainActivity
12-12 17:09:42.943 1461-1476/system_process W/art: Long monitor contention with owner android.display (1509) at int com.android.server.wm.WindowManagerService.relayoutWindow(com.android.server.wm.Session, android.view.IWindow, int, android.view.WindowManager$LayoutParams, int, int, int, int, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.content.res.Configuration, android.view.Surface)(WindowManagerService.java:2850) waiters=0 in void com.android.server.wm.WindowManagerService.resumeKeyDispatching(android.os.IBinder) for 120ms
12-12 17:09:42.944 1461-1495/system_process W/art: Long monitor contention with owner Binder:1461_2 (1476) at void com.android.server.am.ActivityManagerService.activityPaused(android.os.IBinder)(ActivityManagerService.java:6915) waiters=0 in void com.android.server.am.ActivityManagerService.dispatchUidsChanged() for 132ms
12-12 17:09:42.958 2087-2087/com.google.android.googlequicksearchbox:search W/SearchService: Abort, client detached.
12-12 17:09:43.013 12271-12271/com.firstapp.crosswalktest D/XWalkLib: Init embedded mode
12-12 17:09:43.013 12271-12271/com.firstapp.crosswalktest D/XWalkLib: [App Version] build:22.52.561.4, api:7, min_api:7
12-12 17:09:43.014 12271-12271/com.firstapp.crosswalktest D/XWalkLib: [Lib Version] build:22.52.561.4, api:7, min_api:5
12-12 17:09:43.014 12271-12271/com.firstapp.crosswalktest D/XWalkLib: Crosswalk download mode: false
12-12 17:09:43.014 12271-12271/com.firstapp.crosswalktest D/XWalkLib: XWalk core version matched
12-12 17:09:43.045 12271-12271/com.firstapp.crosswalktest I/cr_LibraryLoader: Time to load native libraries: 1 ms (timestamps 144-145)
12-12 17:09:43.045 12271-12271/com.firstapp.crosswalktest I/cr_LibraryLoader: Expected native library version number "", actual native library version number ""
12-12 17:09:43.045 12271-12271/com.firstapp.crosswalktest D/XWalkLib: Native library is built for IA
12-12 17:09:43.045 12271-12271/com.firstapp.crosswalktest D/XWalkLib: XWalk core architecture matched
12-12 17:09:43.045 12271-12271/com.firstapp.crosswalktest D/XWalkLib: Running in embedded mode
12-12 17:09:43.045 12271-12271/com.firstapp.crosswalktest D/XWalkLib: Init core bridge
12-12 17:09:43.057 12271-12271/com.firstapp.crosswalktest W/XWalkInternalResources: org.xwalk.core.R$styleable.ButtonCompat is not int.
12-12 17:09:43.057 12271-12271/com.firstapp.crosswalktest W/XWalkInternalResources: org.xwalk.core.R$styleable.TextViewWithLeading is not int.
12-12 17:09:43.066 12271-12271/com.firstapp.crosswalktest W/XWalkInternalResources: org.xwalk.core.R$styleable.ButtonCompat is not int.
12-12 17:09:43.066 12271-12271/com.firstapp.crosswalktest W/XWalkInternalResources: org.xwalk.core.R$styleable.TextViewWithLeading is not int.
12-12 17:09:43.069 12271-12271/com.firstapp.crosswalktest W/XWalkInternalResources: org.xwalk.core.R$styleable.ButtonCompat is not int.
12-12 17:09:43.069 12271-12271/com.firstapp.crosswalktest W/XWalkInternalResources: org.xwalk.core.R$styleable.TextViewWithLeading is not int.
12-12 17:09:43.076 12271-12271/com.firstapp.crosswalktest W/XWalkInternalResources: org.xwalk.core.R$styleable.ButtonCompat is not int.
12-12 17:09:43.076 12271-12271/com.firstapp.crosswalktest W/XWalkInternalResources: org.xwalk.core.R$styleable.TextViewWithLeading is not int.
12-12 17:09:43.082 12271-12271/com.firstapp.crosswalktest I/cr_LibraryLoader: Expected native library version number "", actual native library version number ""
12-12 17:09:43.082 12271-12271/com.firstapp.crosswalktest I/chromium: [INFO:library_loader_hooks.cc(143)] Chromium logging enabled: level = 0, default verbosity = 0
12-12 17:09:43.084 12271-12271/com.firstapp.crosswalktest I/cr_BrowserStartup: Initializing chromium process, singleProcess=true
[ 12-12 17:09:43.098 12271:12271 D/ ]
HostConnection::get() New Host Connection established 0x9b4409a0, tid 12271
12-12 17:09:43.150 12271-12300/com.firstapp.crosswalktest W/cr_media: Requires BLUETOOTH permission
12-12 17:09:43.153 12271-12271/com.firstapp.crosswalktest E/chromium: [ERROR:xwalk_platform_notification_service.cc(143)] Not implemented reached in virtual bool xwalk::XWalkPlatformNotificationService::GetDisplayedPersistentNotifications(content::BrowserContext*, std::__1::set<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >*)
12-12 17:09:43.167 12271-12271/com.firstapp.crosswalktest E/chromium: [ERROR:xwalk_browser_context.cc(87)] Failed to read preference, error num: 0
12-12 17:09:43.168 12271-12271/com.firstapp.crosswalktest D/XWalkContent: CompositingSurfaceType is SurfaceView
12-12 17:09:43.209 12271-12271/com.firstapp.crosswalktest W/art: Attempt to remove non-JNI local reference, dumping thread
12-12 17:09:43.243 12271-12294/com.firstapp.crosswalktest W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app/com.firstapp.crosswalktest-2/lib/x86/libxwalkdummy.so': couldn't get XW_Initialize function.
12-12 17:09:43.243 12271-12294/com.firstapp.crosswalktest W/chromium: [WARNING:xwalk_extension_server.cc(407)] Failed to initialize extension: /data/app/com.firstapp.crosswalktest-2/lib/x86/libxwalkdummy.so
12-12 17:09:43.243 12271-12294/com.firstapp.crosswalktest W/chromium: [WARNING:xwalk_external_extension.cc(58)] Error loading extension '/data/app/com.firstapp.crosswalktest-2/lib/x86/libxwalkcore.so': couldn't get XW_Initialize function.
12-12 17:09:43.243 12271-12294/com.firstapp.crosswalktest W/chromium: [WARNING:xwalk_extension_server.cc(407)] Failed to initialize extension: /data/app/com.firstapp.crosswalktest-2/lib/x86/libxwalkcore.so
12-12 17:09:43.267 12271-12271/com.firstapp.crosswalktest I/cr_Ime: ImeThread is not enabled.
12-12 17:09:43.282 12271-12318/com.firstapp.crosswalktest I/chromium: [INFO:xwalk_extension_renderer_controller.cc(42)] EXTENSION PROCESS DISABLED.
12-12 17:09:43.301 12271-12323/com.firstapp.crosswalktest E/libEGL: validate_display:99 error 3008 (EGL_BAD_DISPLAY)
12-12 17:09:43.320 12271-12323/com.firstapp.crosswalktest I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
[ 12-12 17:09:43.326 12271:12323 D/ ]
HostConnection::get() New Host Connection established 0xa8b89800, tid 12323
12-12 17:09:43.333 1228-1268/? E/SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
12-12 17:09:43.487 12271-12326/com.firstapp.crosswalktest I/OpenGLRenderer: Initialized EGL, version 1.4
12-12 17:09:43.487 12271-12326/com.firstapp.crosswalktest D/OpenGLRenderer: Swap behavior 1
[ 12-12 17:09:43.488 12271:12326 D/ ]
HostConnection::get() New Host Connection established 0x87a05940, tid 12326
12-12 17:09:43.562 12271-12271/com.firstapp.crosswalktest W/art: Attempt to remove non-JNI local reference, dumping thread
12-12 17:09:43.958 1461-1509/system_process I/ActivityManager: Displayed com.firstapp.crosswalktest/.MainActivity: +1s147ms
12-12 17:09:43.994 12271-12271/com.firstapp.crosswalktest E/chromium: [ERROR:layer_tree_host_impl.cc(2233)] Forcing zero-copy tile initialization as worker context is missing
12-12 17:09:44.093 12271-12271/com.firstapp.crosswalktest W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 12271
12-12 17:09:44.102 12271-12323/com.firstapp.crosswalktest E/chromium: [ERROR:buffer_manager.cc(438)] [.DisplayCompositor-0x84d23400]GL ERROR :GL_INVALID_OPERATION : glBufferData: <- error from previous GL command
12-12 17:09:44.352 1228-1228/? W/SurfaceFlinger: couldn't log to binary event log: overflow.
12-12 17:09:44.640 12271-12323/com.firstapp.crosswalktest E/chromium: [ERROR:texture_manager.cc(2942)] [.RenderCompositor-0x88b75800]GL ERROR :GL_INVALID_OPERATION : glTexImage2D: <- error from previous GL command
12-12 17:09:45.247 12271-12291/com.firstapp.crosswalktest D/NetworkSecurityConfig: No Network Security Config specified, using platform default
My project structure:
MainActivity.java
package com.firstapp.crosswalktest;
import org.xwalk.core.XWalkPreferences;
import org.xwalk.core.XWalkView;
import android.app.Activity;
import android.os.Bundle;
public class MainActivity extends Activity {
private XWalkView mXWalkView;
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
XWalkPreferences.setValue(XWalkPreferences.REMOTE_DEBUGGING, true);
mXWalkView = (XWalkView) findViewById(R.id.activity_main);
mXWalkView.load("http://crosswalk-project.org/", null);
}
}
activity_main.xml
<org.xwalk.core.XWalkView android:id="#+id/activity_main"
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
</org.xwalk.core.XWalkView>

HLS Audio Only Stream Not Playing on Android MediaPlayer

I am using the cordova media plugin to play an audio only HLS stream. The HLS stream will play in the chrome browser, as a video element, but not in the MediaPlayer class. Here is the output from my logcat:
07-14 21:19:04.905 780 1346 I MediaFocusControl: AudioFocus requestAudioFocus() from android.media.AudioManager#4bf937corg.apache.cordova.media.AudioHandler$1#269c405 req=1flags=0x0
07-14 21:19:04.905 197 5274 I LiveSession: onConnect http://<suppressed>
07-14 21:19:05.193 197 5274 I LiveSession: #### Starting Bandwidth Switch: -1 => 0
07-14 21:19:05.473 197 5275 I ESQueue : found AAC codec config (48000 Hz, 2 channels)
07-14 21:19:05.643 197 5275 W PlaylistFetcher: MPEG2 Transport stream does not contain video data.
07-14 21:19:05.789 197 5273 D NuPlayerDriver: notifyListener_l(0xb363dba0), (200, 802, 0)
07-14 21:19:05.789 2057 2076 W MediaPlayer: info/warning (802, 0)
07-14 21:19:05.789 2057 2171 D MediaPlayer: setSubtitleAnchor in MediaPlayer
07-14 21:19:05.924 197 5275 W PlaylistFetcher: MPEG2 Transport stream does not contain video data.
07-14 21:19:06.141 197 5275 W PlaylistFetcher: MPEG2 Transport stream does not contain video data.
07-14 21:19:06.194 197 5273 W NuPlayer: Unknown video size, reporting 0x0!
07-14 21:19:06.194 197 5273 D NuPlayerDriver: notifyListener_l(0xb363dba0), (5, 0, 0)
07-14 21:19:06.194 197 5273 D NuPlayerDriver: notifyListener_l(0xb363dba0), (200, 801, 0)
07-14 21:19:06.194 197 5273 D NuPlayerDriver: notifyListener_l(0xb363dba0), (1, 0, 0)
07-14 21:19:06.194 2057 2075 W MediaPlayer: info/warning (801, 0)
07-14 21:19:06.195 197 197 E MediaPlayerService: getDuration returned -2147483648
07-14 21:19:06.195 2057 2171 W MediaPlayer: Stream has no duration and is therefore not seekable.
07-14 21:19:06.195 2057 2171 E MediaPlayer: error (-2147483648, 0)
07-14 21:19:06.195 2057 2171 D AudioPlayer: Send a onStatus update for the new seek
07-14 21:19:06.196 2057 2171 E MediaPlayer: start called in state 0
07-14 21:19:06.196 2057 2171 E MediaPlayer: error (-38, 0)
07-14 21:19:06.196 2057 2171 E MediaPlayer: Attempt to call getDuration without a valid mediaplayer
07-14 21:19:06.196 2057 2171 E MediaPlayer: error (-38, 0)
07-14 21:19:06.197 2057 2171 E MediaPlayer: Error (-2147483648,0)
07-14 21:19:06.197 2057 2171 D AudioPlayer: on completion is calling stopped
07-14 21:19:06.197 2057 2171 E MediaPlayer: Error (-38,0)
07-14 21:19:06.197 2057 2171 D AudioPlayer: on completion is calling stopped
07-14 21:19:06.197 2057 2171 E MediaPlayer: Error (-38,0)
07-14 21:19:06.200 2057 2171 D AudioPlayer: on completion is calling stopped
07-14 21:19:06.495 197 5275 W PlaylistFetcher: MPEG2 Transport stream does not contain video data.
07-14 21:19:13.306 197 5275 W PlaylistFetcher: MPEG2 Transport stream does not contain video data.
07-14 21:19:13.651 197 5275 W PlaylistFetcher: MPEG2 Transport stream does not contain video data.
07-14 21:19:17.576 197 5275 W PlaylistFetcher: MPEG2 Transport stream does not contain video data.
07-14 21:19:24.198 197 5275 W PlaylistFetcher: MPEG2 Transport stream does not contain video data.
Playing an mp3 through the cordova media plugin will work. The specific stream endpoint I am trying to play can be found at http://api.badkitty.co/api/audio-stream/monstercat. That is not the stream itself, the location of the stream is got from there. I cannot change the m3u8 files coming out of the stream.

Categories

Resources