Logcat shows random / irrelevant errors

It's so annoying when logcat shows errors that are not related to my application at all. I disabled my app in emulator and this error will print every 15-20 seconds

06-08 18:22:50.685 2350-14664/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)

      

It makes debugging a little tedious and I really want to do something with it.

EDIT - Even after using the filter I get random errorsgooglequicksearchbox

06-08 18:20:34.728 2350-14241/com.google.android.googlequicksearchbox:search E/AudioRecord: AudioFlinger could not create record track, status: -1
06-08 18:20:34.732 2350-14241/com.google.android.googlequicksearchbox:search E/AudioRecord-JNI: Error creating AudioRecord instance: initialization check failed with status -1.
06-08 18:20:34.732 2350-14241/com.google.android.googlequicksearchbox:search E/android.media.AudioRecord: Error code -20 when initializing native AudioRecord object.
06-08 18:20:34.732 2350-14241/com.google.android.googlequicksearchbox:search E/ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded
06-08 18:20:39.760 1306-3296/? E/audio_hw_generic: Error opening input stream format 1, channel_mask 0010, sample_rate 16000
06-08 18:20:39.762 1306-1691/? E/AudioFlinger: openRecord() permission denied: recording not allowed

      

PS: I am not using any voice related stuff in my application.

+3


source to share


2 answers


You go to the File menu on android studio, they have the option to "invalidate the cache" and restart and hit that option. when you invalidate the cache and restart. Your problem is approximately solved.



+3


source


You can use pidcat ( https://github.com/JakeWharton/pidcat ) - Pidcat is a colored logcat script that only shows the log entries for a specific application package.



+1


source







All Articles