android - 模拟器: socketTcpLoopbackClientFor: error: fd 52396 above FD_SETSIZE (32768) but the Emulator seems to run properly

标签 android android-studio sockets android-emulator android-sdk-tools

这些错误列表的含义是什么,更重要的是如何解决这些错误?如果有人也可以发表评论,那我应该期待什么可能的问题,这可能会促使我采取一些措施,因为我不清楚,因为我的应用程序正在运行并且显示正确

我发现了一个与here有点类似的问题,但是在这种情况下,它阻止了使用“无法在端口5037上连接到adb守护程序”来启动仿真器,并且在我的情况下,仿真器正在工作(我可以正确地导航和点击按钮)

31/05/2020
18:55   Emulator: Process finished with exit code 0

18:55   Executing tasks: [:app:assembleDebug] in project C:\WSs\FireStoreDemos\AppFirestore

18:55   Gradle build finished in 752 ms

18:55   Emulator: socketTcpLoopbackClientFor: error: fd 52380 above FD_SETSIZE (32768)

18:55   Emulator: socketTcpLoopbackClientFor: error: fd 52380 above FD_SETSIZE (32768)

18:55   Emulator: socketTcpLoopbackClientFor: error: fd 52396 above FD_SETSIZE (32768)

18:55   Emulator: socketTcpLoopbackClientFor: error: fd 52396 above FD_SETSIZE (32768)

18:55   Install successfully finished in 142 ms.: App restart successful without requiring a re-install.

这是启动过程中的控制台
05/31 18:55:37: Launching 'app' on Pixel 3a API 28.
$ adb shell am start -n "com.mycomp.appfirestore/com.mycomp.appfirestore.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.mycomp.appfirestore.test | com.mycomp.appfirestore
Waiting for application to come online: com.mycomp.appfirestore.test | com.mycomp.appfirestore
Connected to process 8310 on device 'emulator-5554'.
Waiting for application to come online: com.mycomp.appfirestore.test | com.mycomp.appfirestore
Connecting to com.mycomp.appfirestore
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.
I/mp.appfirestor: Not late-enabling -Xcheck:jni (already on)
W/mp.appfirestor: Unexpected CPU variant for X86 using defaults: x86
W/ActivityThread: Application com.mycomp.appfirestore is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk
I/System.out: Debugger has connected
I/System.out: waiting for debugger to settle...
Connected to the target VM, address: 'localhost:8604', transport: 'socket'
I/chatty: uid=10086(com.mycomp.appfirestore) identical 2 lines
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/chatty: uid=10086(com.mycomp.appfirestore) identical 1 line
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1312)
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:13 and remote module com.google.android.gms.measurement.dynamite:0
    Selected local version of com.google.android.gms.measurement.dynamite
I/FirebaseInitProvider: FirebaseApp initialization successful
I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to gms implementation
W/mp.appfirestor: Unsupported class loader
W/mp.appfirestor: Skipping duplicate class check due to unsupported classloader
W/mp.appfirestor: Accessing hidden method Landroid/graphics/drawable/Drawable;->getOpticalInsets()Landroid/graphics/Insets; (light greylist, linking)
    Accessing hidden field Landroid/graphics/Insets;->left:I (light greylist, linking)
    Accessing hidden field Landroid/graphics/Insets;->right:I (light greylist, linking)
    Accessing hidden field Landroid/graphics/Insets;->top:I (light greylist, linking)
    Accessing hidden field Landroid/graphics/Insets;->bottom:I (light greylist, linking)
V/FA: onActivityCreated
W/mp.appfirestor: Accessing hidden method Landroid/view/View;->getAccessibilityDelegate()Landroid/view/View$AccessibilityDelegate; (light greylist, linking)
V/FA: App measurement collection enabled
V/FA: App measurement enabled for app package, google app id: com.mycomp.appfirestore, 1:322838517289:android:c8792f2cb4e1fb14ceae38
I/FA: App measurement initialized, version: 28000
I/FA: To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
I/FA: To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.mycomp.appfirestore
D/FA: Debug-level message logging enabled
W/mp.appfirestor: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (light greylist, reflection)
    Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (light greylist, reflection)
W/mp.appfirestor: Accessing hidden method Landroid/widget/TextView;->getTextDirectionHeuristic()Landroid/text/TextDirectionHeuristic; (light greylist, linking)
V/FA: Connecting to remote service
D/OpenGLRenderer: Skia GL Pipeline
V/FA: Connection attempt already in progress
V/FA: Activity resumed, time: 1151344
I/FA: Tag Manager is not found and thus will not be used
D/HostConnection: HostConnection::get() New Host Connection established 0xd8d5af50, tid 8353
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0 
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
D/OpenGLRenderer: Swap behavior 0
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 0 0
D/EGL_emulation: eglCreateContext: 0xd8d167e0: maj 3 min 0 rcv 3
D/EGL_emulation: eglMakeCurrent: 0xd8d167e0: ver 3 0 (tinfo 0xd8d06c70)
V/FA: Connection attempt already in progress
V/FA: Connection attempt already in progress
D/HostConnection: createUnique: call
    HostConnection::get() New Host Connection established 0xd8d5b310, tid 8353
D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_YUV420_888_to_NV21 ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_gles_max_version_3_0 
E/eglCodecCommon: GoldfishAddressSpaceHostMemoryAllocator: ioctl_ping failed for device_type=5, ret=-1
D/EGL_emulation: eglMakeCurrent: 0xd8d167e0: ver 3 0 (tinfo 0xd8d06c70)
D/eglCodecCommon: setVertexArrayObject: set vao to 0 (0) 3 2
D/FA: Connected to remote service
V/FA: Processing queued up service tasks: 4
V/FA: Inactivity, disconnecting from the service

我正在使用的虚拟设备
Name: Pixel_3a_API_28

CPU/ABI: Google Play Intel Atom (x86)

Path: C:\Users\Cast\.android\avd\Pixel_3a_API_28.avd

Target: google_apis_playstore [Google Play] (API level 28)

Skin: pixel_3a

SD Card: 512M

fastboot.chosenSnapshotFile: 

runtime.network.speed: full

hw.accelerometer: yes

hw.device.name: pixel_3a

hw.lcd.width: 1080

hw.initialOrientation: Portrait

image.androidVersion.api: 28

tag.id: google_apis_playstore

hw.mainKeys: no

hw.camera.front: emulated

avd.ini.displayname: Pixel 3a API 28

hw.gpu.mode: auto

hw.ramSize: 1536

PlayStore.enabled: true

fastboot.forceColdBoot: no

hw.cpu.ncore: 4

hw.keyboard: yes

hw.sensors.proximity: yes

hw.dPad: no

hw.lcd.height: 2220

vm.heapSize: 256

skin.dynamic: yes

hw.device.manufacturer: Google

hw.gps: yes

hw.audioInput: yes

image.sysdir.1: system-images\android-28\google_apis_playstore\x86\

showDeviceFrame: yes

hw.camera.back: virtualscene

AvdId: Pixel_3a_API_28

hw.lcd.density: 440

hw.arc: false

hw.device.hash2: MD5:0e6953ebf01bdc6b33a2f54746629c50

fastboot.forceChosenSnapshotBoot: no

fastboot.forceFastBoot: yes

hw.trackBall: no

hw.battery: yes

hw.sdCard: yes

tag.display: Google Play

runtime.network.latency: none

disk.dataPartition.size: 6442450944

hw.sensors.orientation: yes

avd.ini.encoding: UTF-8

hw.gpu.enabled: yes

我更喜欢使用Android 10,但无法正常运行。我创建了另一个question for that with complete different error

已安装SDK工具

enter image description here

最后,据我了解,所有仿真器端口:

C:\Users> netstat -ano | findstr“5037”
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       7892
  TCP    127.0.0.1:5037         127.0.0.1:49735        ESTABLISHED     7892
  TCP    127.0.0.1:5037         127.0.0.1:51843        ESTABLISHED     7892
  TCP    127.0.0.1:5037         127.0.0.1:51855        ESTABLISHED     7892
  TCP    127.0.0.1:5037         127.0.0.1:51859        ESTABLISHED     7892
  TCP    127.0.0.1:5037         127.0.0.1:51867        ESTABLISHED     7892
  TCP    127.0.0.1:49735        127.0.0.1:5037         ESTABLISHED     9604
  TCP    127.0.0.1:51843        127.0.0.1:5037         ESTABLISHED     13184
  TCP    127.0.0.1:51855        127.0.0.1:5037         ESTABLISHED     9604
  TCP    127.0.0.1:51859        127.0.0.1:5037         ESTABLISHED     9604
  TCP    127.0.0.1:51867        127.0.0.1:5037         ESTABLISHED     9604

最佳答案

通过打开最新的Android Studio Canary版本的仿真器,并从所用的稳定版中运行我的项目,我解决了该问题以及ADB守护程序问题。它像一种魅力。
至于它为什么会起作用,请阅读this。FD_SETSIZE问题已在“仿真器30.0.12 Canary”上修复,该问题仅适用于最新的Android Studio Canary版本。
查看日志,这是另一个提示,如果未在Android Studio中显示,请尝试将firebase/firestore插件更新为手动可用的最新版本。

关于android - 模拟器: socketTcpLoopbackClientFor: error: fd 52396 above FD_SETSIZE (32768) but the Emulator seems to run properly,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62123251/

相关文章:

已授予 Android 权限但仍被拒绝

android - PreferenceFragment - getPreferenceManager() 和 getPreferenceScreen() 之间的区别?

android - com.google.android.gms.common.api.internal.zza的依赖项解析错误

android - 关于使用 gradle 或 android studio 进行 Android 单元测试的问题

android - 顶级 build.gradle 文件中的 ext 属性

java - 如何用NIO设计Java服务器?

android - 错误 :Execution failed for task ':app:processDebugGoogleServices' . 安卓

android - 尽管存在资源,但Android资源链接失败

sockets - Ember 2,验收测试,Websocket挂起,然后Then()等待挂起

javascript - Nodejs 后面写的连接套接字如何保存?