Matthias De Vriendt created CB-12825:
----------------------------------------
Summary: Android app crashes on startup
Key: CB-12825
URL: https://issues.apache.org/jira/browse/CB-12825
Project: Apache Cordova
Issue Type: Bug
Components: cordova-android
Environment: MacOS Sierra 10.12.4 for building
Android 7.1.1 (API 25)
Reporter: Matthias De Vriendt
Priority: Critical
Fix For: [email protected]
When i use the cordova CLI to build an application for android, and then run
the application on an android device using either the simulator or an actual
device, the app crashes on startup.
The logs are as follows (note the GL_ERROR near the bottom):
05-17 11:34:54.246 2157 6299 E AudioRecord-JNI: Error creating AudioRecord
instance: initialization check failed with status -22.
05-17 11:34:54.246 2157 6299 E android.media.AudioRecord: Error code -20 when
initializing native AudioRecord object.
05-17 11:34:54.246 2157 6299 I MicrophoneInputStream: mic_started
com.google.android.apps.gsa.staticplugins.z.c@3fce888
05-17 11:34:54.248 2157 6299 E ActivityThread: Failed to find provider info
for com.google.android.apps.gsa.testing.ui.audio.recorded
05-17 11:34:54.249 2157 7963 W SpeechLevelGenerator: Really low audio levels
detected. The audio input may have issues.
05-17 11:34:54.258 7893 7893 W art : Attempt to remove non-JNI local
reference, dumping thread
05-17 11:34:54.262 2157 2157 I MicroDetectionWorker: onReady
05-17 11:34:54.263 2157 6299 I MicrophoneInputStream: mic_close
com.google.android.apps.gsa.staticplugins.z.c@3fce888
05-17 11:34:54.265 2157 7963 I MicroRecognitionRunner: Detection finished
05-17 11:34:54.265 2157 7963 W ErrorReporter: reportError [type: 211, code:
524300]: Error reading from input stream
05-17 11:34:54.267 2157 7963 W ErrorProcessor: onFatalError, processing error
from engine(4)
05-17 11:34:54.267 2157 7963 W ErrorProcessor:
com.google.android.apps.gsa.shared.speech.a.g: Error reading from input stream
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
com.google.android.apps.gsa.staticplugins.recognizer.i.a.a(SourceFile:342)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
com.google.android.apps.gsa.staticplugins.recognizer.i.a$1.run(SourceFile:1367)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
java.util.concurrent.FutureTask.run(FutureTask.java:237)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
java.lang.Thread.run(Thread.java:761)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
com.google.android.apps.gsa.shared.util.concurrent.a.ad$1.run(SourceFile:85)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: Caused by:
com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238
| Buffer overflow, no available space.
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
com.google.android.apps.gsa.speech.audio.Tee.g(SourceFile:2531)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
com.google.android.apps.gsa.speech.audio.ap.read(SourceFile:555)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
java.io.InputStream.read(InputStream.java:101)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
com.google.android.apps.gsa.speech.audio.al.run(SourceFile:362)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
com.google.android.apps.gsa.speech.audio.ak$1.run(SourceFile:471)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
java.util.concurrent.FutureTask.run(FutureTask.java:237)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:66)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: at
com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:139)
05-17 11:34:54.267 2157 7963 W ErrorProcessor: ... 4 more
05-17 11:34:54.267 2157 7963 I AudioController: internalShutdown
05-17 11:34:54.267 2157 2535 I MicroRecognitionRunner: Stopping hotword
detection.
05-17 11:34:54.275 2157 2157 I MicroDetector: Keeping mic open: false
05-17 11:34:54.275 2157 2157 I MicroDetectionWorker: #onError(false)
05-17 11:34:54.276 2157 7962 I DeviceStateChecker: DeviceStateChecker
cancelled
05-17 11:34:54.535 7893 7893 D CordovaActivity: Stopped the activity.
05-17 11:34:54.535 7893 7893 D CordovaActivity: CordovaActivity.onDestroy()
05-17 11:34:54.535 7893 7893 D com.unarin.beacon: Unbind from IBeacon service
05-17 11:34:54.538 7893 7893 D CordovaWebViewImpl: >>> loadUrl(about:blank)
05-17 11:34:54.539 7893 7893 W cr_AwContents: WebView.destroy() called while
WebView is still attached to window.
05-17 11:34:54.622 7893 7934 E chromium: [ERROR:gles2_cmd_decoder.cc(2210)]
[.RenderCompositor-0x8db18c00]GL ERROR :GL_INVALID_OPERATION :
BackFramebuffer::Destroy: <- error from previous GL command
05-17 11:34:54.708 2068 2203 W OpenGLRenderer: Incorrectly called buildLayer
on View: ShortcutAndWidgetContainer, destroying layer...
05-17 11:34:59.112 2409 7961 W PlatformStatsUtil: Could not retrieve Usage &
Diagnostics setting. Giving up.
05-17 11:34:59.283 2157 2157 I MicroDetectionWorker: Micro detection mode:
[mDetectionMode: [1]].
05-17 11:34:59.283 2157 2157 I AudioController: Using
mInputStreamFactoryBuilder
05-17 11:34:59.289 2157 7970 I MicroRecognitionRunner: Starting detection.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]