IllegalStateException in binder HostServices
- Lingua principale
- Java
- Stelle
- 12.1k
- Fork
- 4k
- Merge medio
- 2g 17h
- PR unite (30g)
- 37
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start with the Android interop test case and the stack trace for io.grpc.binder.HostServices$HostService.onCreate, especially HostServices.java:211. Reproduce the intermittent Binder failure using the linked test execution if available, then identify why service creation reaches IllegalStateException. Done means the interop test no longer fails intermittently during HostService creation.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- android, java
- Ambito
- mobile-dev, testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100