grpc / grpc/grpc-java

IllegalStateException in binder HostServices

Abierto
#10,463 2 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
12.1k
Forks
4k
Merge medio
2 d 17 h
PR fusionados (30 d)
37

Descripción

We are seeing the Android interop test case fail occasionally because of an exception from Binder:

```
java.lang.RuntimeException: Unable to create service io.grpc.binder.HostServices$HostService1: java.lang.IllegalStateException
FATAL EXCEPTION: main
Process: io.grpc.binder.test, PID: 10393
java.lang.RuntimeException: Unable to create service io.grpc.binder.HostServices$HostService1: java.lang.IllegalStateException
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2887)
at android.app.ActivityThread.-wrap4(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1427)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: java.lang.IllegalStateException
at com.google.common.base.Preconditions.checkState(Preconditions.java:496)
at io.grpc.binder.HostServices$HostService.onCreate(HostServices.java:211)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:2877)
... 8 more
```

https://firebase.corp.google.com/project/grpc-testing/testlab/histories/bh.6e2cfdde264f9eb3/matrices/4697526383710484192/executions/bs.31b64d23fbf1c590

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con el caso de prueba de interoperabilidad de Android y el stack trace de io.grpc.binder.HostServices$HostService.onCreate, especialmente HostServices.java:211. Reproduce el fallo intermitente de Binder usando la ejecución de prueba enlazada, si está disponible, y después identifica por qué la creación del servicio llega a IllegalStateException. Se considera completado cuando la prueba de interoperabilidad ya no falla intermitentemente durante la creación de HostService.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
android, java
Área
mobile-dev, testing-qa
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.