I am using Speech Recogniser in my app. If I am trying ok google and at the same time launching my app for speech recognition, then performing these steps repeatedly causing crash of google app. I am getting this an error dialog saying "Google has stopped" and log exception as :
FATAL EXCEPTION: LocalEngine0
11-27 17:33:21.801 E/AndroidRuntime( 4490): Process: com.google.android.googlequicksearchbox:search, PID: 4490
11-27 17:33:21.801 E/AndroidRuntime( 4490): java.lang.RuntimeException: Unchecked exception running task: ThreadChanger: a.a(w, b, c)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at com.google.android.apps.gsa.shared.util.concurrent.a.ba.setException(SourceFile:20)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at java.util.concurrent.FutureTask.run(FutureTask.java:242)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at com.google.android.apps.gsa.shared.util.concurrent.a.ae.run(SourceFile:11)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at java.lang.Thread.run(Thread.java:761)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at com.google.android.apps.gsa.shared.util.concurrent.a.ak.run(SourceFile:6)
11-27 17:33:21.801 E/AndroidRuntime( 4490): Caused by: java.lang.IllegalStateException
11-27 17:33:21.801 E/AndroidRuntime( 4490): at com.google.common.base.Preconditions.checkState(SourceFile:33)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at com.google.android.apps.gsa.speech.e.c.b.a(SourceFile:103)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at com.google.android.apps.gsa.staticplugins.recognizer.c.a.a(SourceFile:31)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at java.lang.reflect.Method.invoke(Native Method)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at com.google.android.apps.gsa.shared.util.bn.run(SourceFile:9)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
11-27 17:33:21.801 E/AndroidRuntime( 4490): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
11-27 17:33:21.801 E/AndroidRuntime( 4490): ... 5 more
11-27 17:33:21.805 W/ActivityManager( 3327): Force finishing activity com.google.android.googlequicksearchbox/com.google.android.apps.gsa.lockscreenentry.LockscreenEntryActivity
How can i overcome this error.
To prevent false positives, hotword detection is disabled when a spoken feedback service is enabled.
add android:accessibilityFeedbackType="feedbackAllMask"
configure the service using an XML file
<accessibility-service
android:accessibilityEventTypes="typeViewClicked|typeViewFocused"
android:packageNames="com.example.android.myFirstApp,com.example.android.mySecondApp"
android:accessibilityFeedbackType="feedbackAllMask"
android:notificationTimeout="100"
android:settingsActivity="com.example.android.apis.accessibility.TestBackActivity"
android:canRetrieveWindowContent="true"/>
You can also refer these link one,two
Hope it will to you!!
Related
I'm working on a fork for React-Native with Android ICS support.
I have trouble running right now on Android 4.0.3, I am working on Ubuntu 14.04 64bit.
Here is what I have done (according to the following instructions: https://facebook.github.io/react-native/docs/android-building-from-source.html):
forked react-native so I had my own
Added compatibility stuff to start with (link: https://github.com/CodeBuffet/react-native/tree/ics-compat, on the ics-compat branch)
tested locally on android 4.0.3
After working away some errors I had because of the low version, I came across the following error, and was wondering if you guys knew what it was.
I think it has something to do with the fact that it's trying to look for com/facebook/react/uimanager/ReactProp which doesn't exists in the project (but com.facebook.react.uimanager.annotations.ReactProp does).
E/AndroidRuntime( 1270): java.lang.RuntimeException: An error occured while executing doInBackground()
E/AndroidRuntime( 1270): at android.os.AsyncTask$3.done(AsyncTask.java:278)
E/AndroidRuntime( 1270): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)
E/AndroidRuntime( 1270): at java.util.concurrent.FutureTask.setException(FutureTask.java:124)
E/AndroidRuntime( 1270): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)
E/AndroidRuntime( 1270): at java.util.concurrent.FutureTask.run(FutureTask.java:137)
E/AndroidRuntime( 1270): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:208)
E/AndroidRuntime( 1270): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
E/AndroidRuntime( 1270): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
E/AndroidRuntime( 1270): at java.lang.Thread.run(Thread.java:856)
E/AndroidRuntime( 1270): Caused by: java.lang.NoClassDefFoundError: com/facebook/react/uimanager/ReactProp
E/AndroidRuntime( 1270): at java.lang.reflect.Method.getAnnotation(Native Method)
E/AndroidRuntime( 1270): at java.lang.reflect.Method.getAnnotation(Method.java:275)
E/AndroidRuntime( 1270): at com.facebook.react.uimanager.ViewManagersPropertyCache.extractPropSettersFromViewManagerClassDefinition(ViewManagersPropertyCache.java:400)
E/AndroidRuntime( 1270): at com.facebook.react.uimanager.ViewManagersPropertyCache.getNativePropSettersForViewManagerClass(ViewManagersPropertyCache.java:301)
E/AndroidRuntime( 1270): at com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackViewManagerSetter.<init>(ViewManagerPropertyUpdater.java:116)
E/AndroidRuntime( 1270): at com.facebook.react.uimanager.ViewManagerPropertyUpdater$FallbackViewManagerSetter.<init>(ViewManagerPropertyUpdater.java:110)
E/AndroidRuntime( 1270): at com.facebook.react.uimanager.ViewManagerPropertyUpdater.findManagerSetter(ViewManagerPropertyUpdater.java:73)
E/AndroidRuntime( 1270): at com.facebook.react.uimanager.ViewManagerPropertyUpdater.getNativeProps(ViewManagerPropertyUpdater.java:60)
E/AndroidRuntime( 1270): at com.facebook.react.uimanager.ViewManager.getNativeProps(ViewManager.java:199)
E/AndroidRuntime( 1270): at com.facebook.react.uimanager.UIManagerModuleConstantsHelper.createConstants(UIManagerModuleConstantsHelper.java:62)
E/AndroidRuntime( 1270): at com.facebook.react.uimanager.UIManagerModule.createConstants(UIManagerModule.java:128)
E/AndroidRuntime( 1270): at com.facebook.react.uimanager.UIManagerModule.<init>(UIManagerModule.java:80)
E/AndroidRuntime( 1270): at com.facebook.react.CoreModulesPackage.createNativeModules(CoreModulesPackage.java:68)
E/AndroidRuntime( 1270): at com.facebook.react.ReactInstanceManagerImpl.processPackage(ReactInstanceManagerImpl.java:895)
E/AndroidRuntime( 1270): at com.facebook.react.ReactInstanceManagerImpl.createReactContext(ReactInstanceManagerImpl.java:812)
E/AndroidRuntime( 1270): at com.facebook.react.ReactInstanceManagerImpl.access$700(ReactInstanceManagerImpl.java:102)
E/AndroidRuntime( 1270): at com.facebook.react.ReactInstanceManagerImpl$ReactContextInitAsyncTask.doInBackground(ReactInstanceManagerImpl.java:198)
E/AndroidRuntime( 1270): at com.facebook.react.ReactInstanceManagerImpl$ReactContextInitAsyncTask.doInBackground(ReactInstanceManagerImpl.java:181)
E/AndroidRuntime( 1270): at android.os.AsyncTask$2.call(AsyncTask.java:264)
E/AndroidRuntime( 1270): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
E/AndroidRuntime( 1270): ... 5 more
E/AndroidRuntime( 1270): Caused by: java.lang.ClassNotFoundException: com.facebook.react.uimanager.ReactProp
E/AndroidRuntime( 1270): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
E/AndroidRuntime( 1270): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
E/AndroidRuntime( 1270): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
E/AndroidRuntime( 1270): ... 25 more
W/ActivityManager( 875): Force finishing activity com.ma3akom/.MainActivity
Some info:
Why are you trying to introduce support for such an old Android version?
Because I am making an app whose users are 90% Android ICS users. We already started working in React-Native without knowing this, so now I'm trying to make React-Native compatible with ICS so we dont have this issue anymore.
You may need extra work.
Please check https://github.com/facebook/react-native-website/issues/653 and https://github.com/facebook/react-native/issues/22118.
I'm getting a force close crash on a small Android app I made for school using Javafxports.
Here is the code and APKs
And the logcat returns this exception:
E/AndroidRuntime( 4474): FATAL EXCEPTION: JavaFX Application Thread
E/AndroidRuntime( 4474): Process: com.julioqc.superflush, PID: 4474
E/AndroidRuntime( 4474): java.lang.NullPointerException
E/AndroidRuntime( 4474): at com.sun.glass.ui.monocle.MonocleWindowManager$1.run(MonocleWindowManager.java:179)
E/AndroidRuntime( 4474): at com.sun.javafx.application.PlatformImpl.lambda$null$155(PlatformImpl.java:295)
E/AndroidRuntime( 4474): at com.sun.javafx.application.PlatformImpl$$Lambda$19.run(Unknown Source)
E/AndroidRuntime( 4474): at java.security.AccessController.doPrivileged(AccessController.java:52)
E/AndroidRuntime( 4474): at com.sun.javafx.application.PlatformImpl.lambda$runLater$156(PlatformImpl.java:294)
E/AndroidRuntime( 4474): at com.sun.javafx.application.PlatformImpl$$Lambda$6.run(Unknown Source)
E/AndroidRuntime( 4474): at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:92)
E/AndroidRuntime( 4474): at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:51)
E/AndroidRuntime( 4474): at java.lang.Thread.run(Thread.java:841)
I/cm.log.servpro( 1334): [Privacy]/ com.google.android.googlequicksearchbox is not in contact list
W/ActivityManager( 726): Force finishing activity com.julioqc.superflush/javafxports.android.FXActivity
What is causing this error in my code??
EDIT: found out the issue is caused by some unsupported JavaFX 8 dialogs. Trying alternative.
I'm porting an existing android cordova app to cordova crosswalk.
Using cordova 4, crosswalk-cordova-10.39.235.9-x86 and Android SDK 19
The app crashes at startup with the following logs in logcat:
D/AndroidRuntime( 7208): Shutting down VM
W/dalvikvm( 7208): threadid=1: thread exiting with uncaught exception (group=0x41caeda0)
E/AndroidRuntime( 7208): FATAL EXCEPTION: main
E/AndroidRuntime( 7208): Process: myapp.cqa, PID: 7208
E/AndroidRuntime( 7208): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 7208): at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:295)
E/AndroidRuntime( 7208): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:348)
E/AndroidRuntime( 7208): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:323)
E/AndroidRuntime( 7208): at myapp.cqa.CordovaApp.onCreate(CordovaApp.java:31)
E/AndroidRuntime( 7208): at android.app.Activity.performCreate(Activity.java:5451)
E/AndroidRuntime( 7208): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
E/AndroidRuntime( 7208): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2358)
E/AndroidRuntime( 7208): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2452)
E/AndroidRuntime( 7208): at android.app.ActivityThread.access$900(ActivityThread.java:172)
E/AndroidRuntime( 7208): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1302)
E/AndroidRuntime( 7208): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 7208): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 7208): at android.app.ActivityThread.main(ActivityThread.java:5586)
E/AndroidRuntime( 7208): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 7208): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 7208): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1268)
E/AndroidRuntime( 7208): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1084)
E/AndroidRuntime( 7208): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 7208): Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode
E/AndroidRuntime( 7208): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:233)
E/AndroidRuntime( 7208): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237)
E/AndroidRuntime( 7208): at org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132)
E/AndroidRuntime( 7208): at org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199)
E/AndroidRuntime( 7208): at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:112)
E/AndroidRuntime( 7208): at org.apache.cordova.CordovaWebView.<clinit>(CordovaWebView.java:890)
E/AndroidRuntime( 7208): ... 18 more
E/AndroidRuntime( 7208): Caused by: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode
E/AndroidRuntime( 7208): ... 23 more
Any idea why it crashes ?
OK, after a night of sleeping, I realized I was using x86 crosswalk instead of the ARM one. Sorry for the dumb issue post...
My appwidget crashes with following error:
E/AndroidRuntime( 5572): FATAL EXCEPTION: main
E/AndroidRuntime( 5572): java.lang.RuntimeException: Unable to start receiver com.android.mlweatherwidget.WeatherWidgetLarge: java.lang.RuntimeException: system server dead?
E/AndroidRuntime( 5572): at android.app.ActivityThread.handleReceiver(ActivityThread.java:1805)
E/AndroidRuntime( 5572): at android.app.ActivityThread.access$2400(ActivityThread.java:117)
E/AndroidRuntime( 5572): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:981)
E/AndroidRuntime( 5572): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 5572): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 5572): at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 5572): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 5572): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 5572): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 5572): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 5572): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 5572): Caused by: java.lang.RuntimeException: system server dead?
E/AndroidRuntime( 5572): at com.android.mlhome.appwidget.AppWidgetManager.getAppWidgetIds(AppWidgetManager.java:375)
E/AndroidRuntime( 5572): at com.android.mlweatherwidget.WeatherWidgetLarge.onReceive(WeatherWidgetLarge.java:202)
E/AndroidRuntime( 5572): at android.app.ActivityThread.handleReceiver(ActivityThread.java:1794)
E/AndroidRuntime( 5572): ... 10 more
E/AndroidRuntime( 5572): Caused by: android.os.DeadObjectException
E/AndroidRuntime( 5572): at android.os.BinderProxy.transact(Native Method)
E/AndroidRuntime( 5572): at com.android.mlhome.appwidget.ILauncherAppWidget$Stub$Proxy.getAppWidgetIds(ILauncherAppWidget.java:256)
E/AndroidRuntime( 5572): at com.android.mlhome.appwidget.AppWidgetManager.getAppWidgetIds(AppWidgetManager.java:369)
E/AndroidRuntime( 5572): ... 12 more
Can anybody understand from the above log what exactly is causing this error?
How to fix android.os.DeadObjectException android X
this guy met the same issue, check this link out.
I copyed the answer written by Dimitar Dimitrov as follows
This means that your service had already stopped - either killed from
the OS, or stopped from your application.
Does this problem happen every time you debug your project?
Override your service's onDestroy() method and watch what event flow
leads to it. If you catch DeadObjectException without going through
this method, your service should have been killed by the OS.
FIXED
For some reason the special menu i created was killing it... THere was no API's or anything in that class. But thanks for the support guys
So this really isnt a question about a code but a very random error...
My app runs perfectly on my Nexus S rooted, but when it runs on any other phone or the emulator it will instantly FC.
The app does have root permissions but only if you choose to use it. Otherwise it is just a normal application.
Does anyone have a solution to why it would run on one device but not another?
-EDIT-
11-27 17:28:37.734: E/AndroidRuntime(7104): FATAL EXCEPTION: main
11-27 17:28:37.734: E/AndroidRuntime(7104): java.lang.VerifyError: com.SyndicateApps.OmegaLauncher.Launcher
11-27 17:28:37.734: E/AndroidRuntime(7104): at java.lang.Class.newInstanceImpl(Native Method)
11-27 17:28:37.734: E/AndroidRuntime(7104): at java.lang.Class.newInstance(Class.java:1429)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.app.Instrumentation.newActivity(Instrumentation.java:1056)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2752)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2859)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.app.ActivityThread.access$2300(ActivityThread.java:136)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2179)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.os.Handler.dispatchMessage(Handler.java:99)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.os.Looper.loop(Looper.java:143)
11-27 17:28:37.734: E/AndroidRuntime(7104): at android.app.ActivityThread.main(ActivityThread.java:5073)
11-27 17:28:37.734: E/AndroidRuntime(7104): at java.lang.reflect.Method.invokeNative(Native Method)
11-27 17:28:37.734: E/AndroidRuntime(7104): at java.lang.reflect.Method.invoke(Method.java:521)
11-27 17:28:37.734: E/AndroidRuntime(7104): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
11-27 17:28:37.734: E/AndroidRuntime(7104): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-27 17:28:37.734: E/AndroidRuntime(7104): at dalvik.system.NativeStart.main(Native Method)
EDIT 2 -
So its on 2.2 but same problem... Is there a way i can find the class using the api level 9?
LOGCAT 2 (on android 2.2)
EDIT 2 / SECOND LOGCAT ON 2.2 EMULATOR -
11-27 18:56:12.159: E/AndroidRuntime(258): FATAL EXCEPTION: main
11-27 18:56:12.159: E/AndroidRuntime(258): java.lang.VerifyError: com.SyndicateApps.OmegaLauncher.Launcher
11-27 18:56:12.159: E/AndroidRuntime(258): at java.lang.Class.newInstanceImpl(Native Method)
11-27 18:56:12.159: E/AndroidRuntime(258): at java.lang.Class.newInstance(Class.java:1429)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.os.Handler.dispatchMessage(Handler.java:99)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.os.Looper.loop(Looper.java:123)
11-27 18:56:12.159: E/AndroidRuntime(258): at android.app.ActivityThread.main(ActivityThread.java:4627)
11-27 18:56:12.159: E/AndroidRuntime(258): at java.lang.reflect.Method.invokeNative(Native Method)
11-27 18:56:12.159: E/AndroidRuntime(258): at java.lang.reflect.Method.invoke(Method.java:521)
11-27 18:56:12.159: E/AndroidRuntime(258): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
11-27 18:56:12.159: E/AndroidRuntime(258): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
11-27 18:56:12.159: E/AndroidRuntime(258): at dalvik.system.NativeStart.main(Native Method)
A lot of the errors are when it comes to this... --> (new DialogInterface.OnShowListener()
java.lang.VerifyError typically means you're using a class or method that's not available on the current Java VM. Which Android version is on Nexus and which is on the other device? Android app manifest system allows for compiling against, say, API level 10 while allowing running against API level 6. There will be no warning against using backwards-incompatible classes until you run.
EDIT: So apparently the class com.SyndicateApps.OmegaLauncher.Launcher uses some API that was introduced in level 9. In the project properties, under "Android", set build target (temporarily) to Android 2.2 and see where the errors occur.
EDIT2: if the static analysis fails, try commenting out method insides in the class, method by method, until it loads. VerifyError is fairly easy to debug that way - it's triggered by very existence of faulty code in the class, not by its invokation. It's not like you have to do 100% coverage analysis.