doublesymmetry / react-native-track-player

A fully fledged audio module created for music apps. Provides audio playback, external media controls, background mode and more!
https://rntp.dev/
Apache License 2.0
3.3k stars 1.02k forks source link

Can't get it working on Android Emulator #144

Closed bbuchanan closed 6 years ago

bbuchanan commented 6 years ago

Seems to be crashing in setupPlayer. Works great on iOS. I do have Google play services installed. I have tried the latest branch after reading issue #100 . I have also tried setting exoplayer to true and false. I'm not sure what else I'm doing wrong and would appreciate some guidance.

Here is my code.

    TrackPlayer.setupPlayer().then(async () => {
      const track = {
        id: 'abc1234',
        url:
          'https://this is a real url/something.mp3',
        title: 'title!',
        artist: 'artist!',
      };
      await TrackPlayer.add(track);
      TrackPlayer.play();
    });

Emulator info: Pixel 1 using API version 26 with 2GB of memory.

Here is what I see coming out of the emulator via logcat.

02-09 21:46:04.202 4007 4007 D ReactNativeTrackPlayer: Service init 02-09 21:46:04.203 4007 4007 I zygote : Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/exoplayer2/ExoPlayer$EventListener; 02-09 21:46:04.203 4007 4007 I zygote : at void guichaguri.trackplayer.logic.services.PlayerService.onCreate() (PlayerService.java:74) 02-09 21:46:04.203 4007 4007 I zygote : at void android.app.ActivityThread.handleCreateService(android.app.ActivityThread$CreateServiceData) (ActivityThread.java:3404) 02-09 21:46:04.203 4007 4007 I zygote : at void android.app.ActivityThread.-wrap4(android.app.ActivityThread, android.app.ActivityThread$CreateServiceData) (ActivityThread.java:-1) 02-09 21:46:04.203 4007 4007 I zygote : at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1683) 02-09 21:46:04.203 4007 4007 I zygote : at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105) 02-09 21:46:04.203 4007 4007 I zygote : at void android.os.Looper.loop() (Looper.java:164) 02-09 21:46:04.203 4007 4007 I zygote : at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6541) 02-09 21:46:04.203 4007 4007 I zygote : at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 02-09 21:46:04.203 4007 4007 I zygote : at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) 02-09 21:46:04.203 4007 4007 I zygote : at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) 02-09 21:46:04.203 4007 4007 I zygote : Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.exoplayer2.ExoPlayer$EventListener" on path: DexPathList[[zip file "/data/app/com.bsnmobile-Wfcsz3DVQ4WaC9qOczMlHg==/base.apk"],nativeLibraryDirectories=[/data/app/com.bsnmobile-Wfcsz3DVQ4WaC9qOczMlHg==/lib/x86, /data/app/com.bsnmobile-Wfcsz3DVQ4WaC9qOczMlHg==/base.apk!/lib/x86, /system/lib, /vendor/lib]] 02-09 21:46:04.203 4007 4007 I zygote : at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93) 02-09 21:46:04.203 4007 4007 I zygote : at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) 02-09 21:46:04.203 4007 4007 I zygote : at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 02-09 21:46:04.203 4007 4007 I zygote : at void guichaguri.trackplayer.logic.services.PlayerService.onCreate() (PlayerService.java:74) 02-09 21:46:04.203 4007 4007 I zygote : at void android.app.ActivityThread.handleCreateService(android.app.ActivityThread$CreateServiceData) (ActivityThread.java:3404) 02-09 21:46:04.203 4007 4007 I zygote : at void android.app.ActivityThread.-wrap4(android.app.ActivityThread, android.app.ActivityThread$CreateServiceData) (ActivityThread.java:-1) 02-09 21:46:04.203 4007 4007 I zygote : at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1683) 02-09 21:46:04.203 4007 4007 I zygote : at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105) 02-09 21:46:04.203 4007 4007 I zygote : at void android.os.Looper.loop() (Looper.java:164) 02-09 21:46:04.203 4007 4007 I zygote : at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6541) 02-09 21:46:04.203 4007 4007 I zygote : at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 02-09 21:46:04.203 4007 4007 I zygote : at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) 02-09 21:46:04.203 4007 4007 I zygote : at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) 02-09 21:46:04.203 4007 4007 I zygote : 02-09 21:46:04.203 4007 4007 I zygote : Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/exoplayer2/ExoPlayer$EventListener; 02-09 21:46:04.203 4007 4007 I zygote : at void guichaguri.trackplayer.logic.services.PlayerService.onCreate() (PlayerService.java:74) 02-09 21:46:04.203 4007 4007 I zygote : at void android.app.ActivityThread.handleCreateService(android.app.ActivityThread$CreateServiceData) (ActivityThread.java:3404) 02-09 21:46:04.203 4007 4007 I zygote : at void android.app.ActivityThread.-wrap4(android.app.ActivityThread, android.app.ActivityThread$CreateServiceData) (ActivityThread.java:-1) 02-09 21:46:04.203 4007 4007 I zygote : at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1683) 02-09 21:46:04.203 4007 4007 I zygote : at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105) 02-09 21:46:04.203 4007 4007 I zygote : at void android.os.Looper.loop() (Looper.java:164) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6541) 02-09 21:46:04.204 4007 4007 I zygote : at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 02-09 21:46:04.204 4007 4007 I zygote : at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) 02-09 21:46:04.204 4007 4007 I zygote : at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) 02-09 21:46:04.204 4007 4007 I zygote : Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.exoplayer2.ExoPlayer$EventListener" on path: DexPathList[[zip file "/data/app/com.bsnmobile-Wfcsz3DVQ4WaC9qOczMlHg==/base.apk"],nativeLibraryDirectories=[/data/app/com.bsnmobile-Wfcsz3DVQ4WaC9qOczMlHg==/lib/x86, /data/app/com.bsnmobile-Wfcsz3DVQ4WaC9qOczMlHg==/base.apk!/lib/x86, /system/lib, /vendor/lib]] 02-09 21:46:04.204 4007 4007 I zygote : at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93) 02-09 21:46:04.204 4007 4007 I zygote : at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) 02-09 21:46:04.204 4007 4007 I zygote : at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 02-09 21:46:04.204 4007 4007 I zygote : at void guichaguri.trackplayer.logic.services.PlayerService.onCreate() (PlayerService.java:74) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread.handleCreateService(android.app.ActivityThread$CreateServiceData) (ActivityThread.java:3404) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread.-wrap4(android.app.ActivityThread, android.app.ActivityThread$CreateServiceData) (ActivityThread.java:-1) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1683) 02-09 21:46:04.204 4007 4007 I zygote : at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105) 02-09 21:46:04.204 4007 4007 I zygote : at void android.os.Looper.loop() (Looper.java:164) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6541) 02-09 21:46:04.204 4007 4007 I zygote : at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 02-09 21:46:04.204 4007 4007 I zygote : at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) 02-09 21:46:04.204 4007 4007 I zygote : at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) 02-09 21:46:04.204 4007 4007 I zygote : 02-09 21:46:04.204 4007 4007 I zygote : Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/exoplayer2/ExoPlayer$EventListener; 02-09 21:46:04.204 4007 4007 I zygote : at void guichaguri.trackplayer.logic.services.PlayerService.onCreate() (PlayerService.java:74) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread.handleCreateService(android.app.ActivityThread$CreateServiceData) (ActivityThread.java:3404) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread.-wrap4(android.app.ActivityThread, android.app.ActivityThread$CreateServiceData) (ActivityThread.java:-1) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1683) 02-09 21:46:04.204 4007 4007 I zygote : at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105) 02-09 21:46:04.204 4007 4007 I zygote : at void android.os.Looper.loop() (Looper.java:164) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6541) 02-09 21:46:04.204 4007 4007 I zygote : at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 02-09 21:46:04.204 4007 4007 I zygote : at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) 02-09 21:46:04.204 4007 4007 I zygote : at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) 02-09 21:46:04.204 4007 4007 I zygote : Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.exoplayer2.ExoPlayer$EventListener" on path: DexPathList[[zip file "/data/app/com.bsnmobile-Wfcsz3DVQ4WaC9qOczMlHg==/base.apk"],nativeLibraryDirectories=[/data/app/com.bsnmobile-Wfcsz3DVQ4WaC9qOczMlHg==/lib/x86, /data/app/com.bsnmobile-Wfcsz3DVQ4WaC9qOczMlHg==/base.apk!/lib/x86, /system/lib, /vendor/lib]] 02-09 21:46:04.204 4007 4007 I zygote : at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93) 02-09 21:46:04.204 4007 4007 I zygote : at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) 02-09 21:46:04.204 4007 4007 I zygote : at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 02-09 21:46:04.204 4007 4007 I zygote : at void guichaguri.trackplayer.logic.services.PlayerService.onCreate() (PlayerService.java:74) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread.handleCreateService(android.app.ActivityThread$CreateServiceData) (ActivityThread.java:3404) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread.-wrap4(android.app.ActivityThread, android.app.ActivityThread$CreateServiceData) (ActivityThread.java:-1) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1683) 02-09 21:46:04.204 4007 4007 I zygote : at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105) 02-09 21:46:04.204 4007 4007 I zygote : at void android.os.Looper.loop() (Looper.java:164) 02-09 21:46:04.204 4007 4007 I zygote : at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6541) 02-09 21:46:04.204 4007 4007 I zygote : at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) 02-09 21:46:04.204 4007 4007 I zygote : at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240) 02-09 21:46:04.204 4007 4007 I zygote : at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767) 02-09 21:46:04.204 4007 4007 I zygote : 02-09 21:46:04.216 4007 4007 D AndroidRuntime: Shutting down VM 02-09 21:46:04.217 4007 4007 E AndroidRuntime: FATAL EXCEPTION: main 02-09 21:46:04.217 4007 4007 E AndroidRuntime: Process: com.bsnmobile, PID: 4007 02-09 21:46:04.217 4007 4007 E AndroidRuntime: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/app/NotificationCompat$Builder; 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at guichaguri.trackplayer.metadata.components.MediaNotification.(MediaNotification.java:48) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at guichaguri.trackplayer.metadata.Metadata.(Metadata.java:59) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at guichaguri.trackplayer.logic.MediaManager.(MediaManager.java:39) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at guichaguri.trackplayer.logic.services.PlayerService.onCreate(PlayerService.java:74) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:3404) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at android.app.ActivityThread.-wrap4(Unknown Source:0) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1683) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:105) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6541) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.app.NotificationCompat$Builder" on path: DexPathList[[zip file "/data/app/com.bsnmobile-Wfcsz3DVQ4WaC9qOczMlHg==/base.apk"],nativeLibraryDirectories=[/data/app/com.bsnmobile-Wfcsz3DVQ4WaC9qOczMlHg==/lib/x86, /data/app/com.bsnmobile-Wfcsz3DVQ4WaC9qOczMlHg==/base.apk!/lib/x86, /system/lib, /vendor/lib]] 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:379) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: at java.lang.ClassLoader.loadClass(ClassLoader.java:312) 02-09 21:46:04.217 4007 4007 E AndroidRuntime: ... 13 more 02-09 21:46:04.219 1690 3361 W ActivityManager: Force finishing activity com.bsnmobile/com.reactnativenavigation.controllers.NavigationActivity 02-09 21:46:04.223 1690 1706 I ActivityManager: Showing crash dialog for package com.bsnmobile u0 02-09 21:46:04.234 1412 1412 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 3764224 02-09 21:46:04.240 1412 1412 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 3764224 02-09 21:46:04.241 1690 2390 I OpenGLRenderer: Initialized EGL, version 1.4 02-09 21:46:04.241 1690 2390 D OpenGLRenderer: Swap behavior 1 02-09 21:46:04.242 1690 2390 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 02-09 21:46:04.242 1690 2390 D OpenGLRenderer: Swap behavior 0 02-09 21:46:04.245 1690 2390 D EGL_emulation: eglCreateContext: 0xa5814000: maj 2 min 0 rcv 2 02-09 21:46:04.245 1412 1412 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 3764224 02-09 21:46:04.252 1690 2390 D EGL_emulation: eglMakeCurrent: 0xa5814000: ver 2 0 (tinfo 0x94cff7e0) 02-09 21:46:04.373 1690 1706 W Looper : Dispatch took 122ms on android.ui, h=Handler (android.view.Choreographer$FrameHandler) {48e8c6b} cb=android.view.Choreographer$FrameDisplayEventReceiver@53c93c8 msg=0 02-09 21:46:04.721 1690 1705 W ActivityManager: Activity pause timeout for ActivityRecord{5655ef2 u0 com.bsnmobile/com.reactnativenavigation.controllers.NavigationActivity t27 f} 02-09 21:46:04.761 1412 1412 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496 02-09 21:46:04.769 1412 1412 I chatty : uid=1000(system) allocator@2.0-s identical 1 line 02-09 21:46:04.777 1412 1412 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496 02-09 21:46:04.788 2341 2593 D EGL_emulation: eglMakeCurrent: 0xa8485cc0: ver 2 0 (tinfo 0xa8483470) 02-09 21:46:04.795 1421 1421 D SurfaceFlinger: duplicate layer name: changing com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity to com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity#1 02-09 21:46:04.815 1412 1412 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496 02-09 21:46:04.822 1412 1412 I chatty : uid=1000(system) allocator@2.0-s identical 1 line 02-09 21:46:04.830 1412 1412 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496 02-09 21:46:04.840 2305 2422 D EGL_emulation: eglMakeCurrent: 0xa8485a80: ver 2 0 (tinfo 0xa8483990) 02-09 21:46:04.843 2341 2341 W SessionLifecycleManager: Handover failed. Creating new session controller. 02-09 21:46:04.845 2341 2341 I OptInState: There is a new client and it does not support opt-in. Dropping request. 02-09 21:46:04.854 2341 2743 W LocationOracle: No location history returned by ContextManager 02-09 21:46:04.856 2341 2341 I MicroDetectionWorker: #updateMicroDetector [detectionMode: [mDetectionMode: [1]]] 02-09 21:46:04.856 2341 2341 I MicroDetectionWorker: #startMicroDetector [speakerMode: 0] 02-09 21:46:04.857 2341 2341 I AudioController: Using mInputStreamFactoryBuilder 02-09 21:46:04.895 1412 1412 D gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 8298496 02-09 21:46:04.905 1421 1421 E EGL_emulation: tid 1421: eglCreateSyncKHR(1962): error 0x3004 (EGL_BAD_ATTRIBUTE) 02-09 21:46:04.926 2341 2743 I MicroRecognitionRunner: Starting detection. 02-09 21:46:04.927 2341 2462 I MicrophoneInputStream: mic_starting com.google.android.apps.gsa.staticplugins.aa.c@6762218 02-09 21:46:04.929 1515 4107 I AudioFlinger: AudioFlinger's thread 0xade98ec0 tid=4107 ready to run 02-09 21:46:04.930 2341 2462 I MicrophoneInputStream: mic_started com.google.android.apps.gsa.staticplugins.aa.c@6762218 02-09 21:46:04.930 2341 2462 E ActivityThread: Failed to find provider info for com.google.android.apps.gsa.testing.ui.audio.recorded 02-09 21:46:04.933 2341 2743 W SpeechLevelGenerator: Really low audio levels detected. The audio input may have issues. 02-09 21:46:04.934 2341 2462 I MicrophoneInputStream: mic_close com.google.android.apps.gsa.staticplugins.aa.c@6762218 02-09 21:46:04.934 2341 2743 I MicroRecognitionRunner: Detection finished 02-09 21:46:04.935 2341 2743 W ErrorReporter: reportError [type: 211, code: 524300]: Error reading from input stream 02-09 21:46:04.936 2341 2698 I MicroRecognitionRunner: Stopping hotword detection. 02-09 21:46:04.937 2341 2743 W ErrorProcessor: onFatalError, processing error from engine(4) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: com.google.android.apps.gsa.shared.speech.b.g: Error reading from input stream 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at com.google.android.apps.gsa.staticplugins.recognizer.j.a.a(SourceFile:28) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at com.google.android.apps.gsa.staticplugins.recognizer.j.b.run(SourceFile:15) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at java.util.concurrent.FutureTask.run(FutureTask.java:266) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at com.google.android.apps.gsa.shared.util.concurrent.a.ax.run(SourceFile:14) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at com.google.android.apps.gsa.shared.util.concurrent.a.bl.run(SourceFile:4) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at java.lang.Thread.run(Thread.java:764) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at com.google.android.apps.gsa.shared.util.concurrent.a.ai.run(SourceFile:6) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: Caused by: com.google.android.apps.gsa.shared.exception.GsaIOException: Error code: 393238 | Buffer overflow, no available space. 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at com.google.android.apps.gsa.speech.audio.Tee.f(SourceFile:103) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at com.google.android.apps.gsa.speech.audio.au.read(SourceFile:2) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at java.io.InputStream.read(InputStream.java:101) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at com.google.android.apps.gsa.speech.audio.ao.run(SourceFile:18) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: at com.google.android.apps.gsa.speech.audio.an.run(SourceFile:2) 02-09 21:46:04.937 2341 2743 W ErrorProcessor: ... 9 more 02-09 21:46:04.937 2341 2743 I AudioController: internalShutdown 02-09 21:46:04.939 1801 1816 D : HostConnection::get() New Host Connection established 0xa84af800, tid 1816 02-09 21:46:04.976 2341 2341 I MicroDetectionWorker: onReady 02-09 21:46:04.981 2341 2341 I MicroDetectionWorker: onReady 02-09 21:46:04.981 2341 2341 I MicroDetector: Keeping mic open: false 02-09 21:46:04.981 2341 2461 I DeviceStateChecker: DeviceStateChecker cancelled 02-09 21:46:04.981 2341 2341 I MicroDetectionWorker: #onError(false) 02-09 21:46:04.989 2212 2706 W GCoreFlp: No location to return for getLastLocation() 02-09 21:46:04.991 2212 2706 W GCoreFlp: No location to return for getLastLocation() 02-09 21:46:05.022 2212 2212 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=null] 02-09 21:46:05.024 2212 2212 I GeofencerStateMachine: removeGeofences: removeRequest=RemoveGeofencingRequest[REMOVE_BY_PENDING_INTENT pendingIntent=PendingIntent[creatorPackage=com.google.android.gms], packageName=null] 02-09 21:46:05.031 2212 4108 I PlaceInferenceEngine: [anon] Changed inference mode: 105 02-09 21:46:05.034 2212 2706 W GCoreFlp: No location to return for getLastLocation() 02-09 21:46:05.058 2212 3241 E ctxmgr : [ProducerStatusImpl]updateStateForNewContextData: inactive, contextName=7 02-09 21:46:05.068 2212 4108 I Places : ?: PlacesBleScanner start() with priority 2 02-09 21:46:05.070 2212 2706 W GCoreFlp: No location to return for getLastLocation() 02-09 21:46:05.070 2212 4108 I PlaceInferenceEngine: [anon] Changed inference mode: 102 02-09 21:46:05.072 2212 2706 W GCoreFlp: No location to return for getLastLocation() 02-09 21:46:05.083 2212 2212 E BeaconBle: Missing BluetoothAdapter 02-09 21:46:05.083 2212 2212 I BeaconBle: BLE 'KK+' software access layer enabled 02-09 21:46:05.093 2212 2212 I BeaconBle: Client requested scan, settings=BleSettings [scanMode=ZERO_POWER, callbackType=ALL_MATCHES, reportDelayMillis=0, 1 filters, 0 clients, callingClientName=Places] 02-09 21:46:05.094 2212 2212 I BeaconBle: Scan : No clients left, canceling alarm. 02-09 21:46:05.095 2212 2212 E BeaconBle: Scan couldn't start for Places 02-09 21:46:05.095 2212 2212 W Places : BLE failure while scanning - code 5 02-09 21:46:05.314 1801 1804 I zygote : Do partial code cache collection, code=125KB, data=88KB 02-09 21:46:05.314 1801 1804 I zygote : After code cache collection, code=125KB, data=88KB 02-09 21:46:05.314 1801 1804 I zygote : Increasing code cache capacity to 512KB 02-09 21:46:05.356 2305 2422 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...

umlx5h commented 6 years ago

I had a same error. But I figured out. You may have used Automatic link? Automatic link does not link it to MainApplication.java file. Please make sure there is "new TrackPlayer()" in MainApplication.js.