Open zhouziyang opened 4 years ago
I'm also getting a blank screen. If I refresh the page, I get prompted for an username and password again.
Here is what I see in the console.
t.serializeBinary is not a function
at ve.MethodDescriptor.a (index.js:6216)
at A.Se.S (index.js:4247)
at A.serverStreaming (index.js:9585)
at v.i.android.emulation.control.EmulatorControllerClient.streamLogcat (index.js:6242)
at F.start (index.js:10431)
at T.componentDidMount (logcat_view.js:45)
at il (react-dom.production.min.js:212)
at pu (react-dom.production.min.js:255)
at t.unstable_runWithPriority (scheduler.production.min.js:19)
at Vo (react-dom.production.min.js:122)```
Uncaught TypeError: e.h is not a function
at qt.<anonymous> (index.js:4243)
at Mt (index.js:4228)
at wt (index.js:4227)
at ae (index.js:4236)
at qt.R (index.js:4235)
at qt.L (index.js:4235)
Getting exactly the same too.
I have the same issue. Some more info as well on what i see in the logs of the emulator:
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: ActionExecutorImpl: Action started execution, but we can't guarantee it will complete, the app may be killed. Action: class com.google.android.apps.messaging.shared.datamodel.action.SelfParticipantsRefreshAction-SelfParticipantsRefreshAction:48545005
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: java.lang.IllegalStateException: Not allowed to start service Intent { cmp=com.google.android.apps.messaging/.shared.datamodel.action.execution.ActionExecutorImpl$EmptyService }: app is in background uid UidRecord{f2c6596 u0a123 CEM idle change:cached procs:2 seq(0,0,0)}
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1616)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at android.app.ContextImpl.startService(ContextImpl.java:1571)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at android.content.ContextWrapper.startService(ContextWrapper.java:669)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at com.google.android.apps.messaging.shared.datamodel.action.execution.ActionExecutorImpl.e(SourceFile:107)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at com.google.android.apps.messaging.shared.datamodel.action.execution.ActionExecutorImpl.a(SourceFile:19)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at com.google.android.apps.messaging.shared.datamodel.action.execution.ActionExecutorImpl.a(SourceFile:16)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at dya.c(SourceFile:12)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at dyb.run(Unknown Source:2)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at android.os.Handler.handleCallback(Handler.java:883)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at android.os.Handler.dispatchMessage(Handler.java:100)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at android.os.Looper.loop(Looper.java:214)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at android.app.ActivityThread.main(ActivityThread.java:7356)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at java.lang.reflect.Method.invoke(Native Method)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
emulator_emulator | logcat: 07-10 10:03:36.499 4496 4496 W BugleDataModel: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
emulator_emulator | logcat: 07-10 10:03:36.503 4496 4672 I BugleDataModel: ParticipantRefresh: Start participant refresh. refreshMode: 1
emulator_emulator | logcat: 07-10 10:03:36.525 4496 4672 I BugleDataModel: SelfParticipantsData: insertSelfParticipant. participantId: 2, selfParticipantId: 2, subId: 1
emulator_emulator | logcat: 07-10 10:03:36.529 2088 2115 E memtrack: Couldn't load memtrack module
emulator_emulator | logcat: 07-10 10:03:36.529 2088 2115 W android.os.Debug: failed to get memory consumption info: -1
emulator_emulator | logcat: 07-10 10:03:36.540 2088 2115 E memtrack: Couldn't load memtrack module
emulator_emulator | logcat: 07-10 10:03:36.540 2088 2115 W android.os.Debug: failed to get memory consumption info: -1
emulator_emulator | logcat: 07-10 10:03:36.543 2088 2115 E memtrack: Couldn't load memtrack module
emulator_emulator | logcat: 07-10 10:03:36.543 2088 2115 W android.os.Debug: failed to get memory consumption info: -1
emulator_emulator | video: (network.cc:927): Connect failed with 99
emulator_emulator | logcat: 07-10 10:03:36.619 4496 4672 I BugleDataModel: ParticipantRefresh: Number of participants refreshed: 2
emulator_emulator | video: (network.cc:927): Connect failed with 99
It seems this is a protocol buffer issue. Using binary
for --js_out
options worked.
diff --git a/js/android-emulator-webrtc/Makefile b/js/android-emulator-webrtc/Makefile
index 29781af..02c7d56 100644
--- a/js/android-emulator-webrtc/Makefile
+++ b/js/android-emulator-webrtc/Makefile
@@ -81,7 +81,7 @@ $(PROTODIR)/%_pb.js : $(PROTOSRCDIR)/%.proto $(PROTODIR) protoc-gen-grpc-web
$(PROTOC) \
-I/usr/local/include -I$(PROTODIR) -I$(PROTOSRCDIR) \
--plugin=protoc-gen-grpc-web=$(CURRENT_DIR)/protoc-gen-grpc-web \
- --js_out=import_style=commonjs:$(PROTODIR) \
+ --js_out=import_style=commonjs,binary:$(PROTODIR) \
--grpc-web_out=import_style=commonjs,mode=grpcwebtext:$(PROTODIR) \
$<
$(PREFIX_ESLINT) $@```
We are in the process of moving the JS library to its own project and releasing it as a separate npm module. This would remove the need of compiling and would likely fix all these issues.
@masatoogawa I've applied your suggestion, however the code generated is exactly the same as not adding the binary parameter.
It may depend on the version of the protocol buffer. The version I'm using is 3.0.0. Adding the binary option makes it possible to use It worked. But I noticed the statement in the Makefile "Please install Google protocol buffers 3.6.0> and its compiler.". So I installed 3.7.0, It worked without the binary option. It would have been better if there had been some sort of protocol buffer version check.
environment:
Problems: I can run
create_web_container.sh
successfully and all containers started. I can get adb shell in emulator (android works fine). But blank page show after successfully logged in. I check Console in chrome Dev-Tools, and there are several js errors: