Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"do run gapic" failed #651

Closed
zhaijialong opened this issue Jun 28, 2017 · 0 comments
Closed

"do run gapic" failed #651

zhaijialong opened this issue Jun 28, 2017 · 0 comments

Comments

@zhaijialong
Copy link

I built it on a windows10 pc. After successful build , I got the message when runing "do run gapic".

lots of thanks for your help in advance.

E:\gpaid\src\src\github.com\google\gapid>do run gapic
[0/1] Install the project...
-- Install configuration: "Debug"
-- Up-to-date: e:/gapid/debug/pkg/./gapir.exe
-- Up-to-date: e:/gapid/debug/pkg/./gapis.exe
-- Up-to-date: e:/gapid/debug/pkg/./libwinpthread-1.dll
-- Up-to-date: e:/gapid/debug/pkg/./libstdc++-6.dll
-- Up-to-date: e:/gapid/debug/pkg/./libgcc_s_seh-1.dll
-- Up-to-date: e:/gapid/debug/pkg/./gapit.exe
-- Up-to-date: e:/gapid/debug/pkg/./libwinpthread-1.dll
-- Up-to-date: e:/gapid/debug/pkg/./libstdc++-6.dll
-- Up-to-date: e:/gapid/debug/pkg/./libgcc_s_seh-1.dll
-- Up-to-date: e:/gapid/debug/pkg/./lib/VirtualSwapchainLayer.json
-- Up-to-date: e:/gapid/debug/pkg/./lib/libVkLayer_VirtualSwapchain.dll
-- Up-to-date: e:/gapid/debug/pkg/./lib/libgapii.dll
-- Up-to-date: e:/gapid/debug/pkg/./lib/GraphicsSpyLayer.json
-- Up-to-date: e:/gapid/debug/pkg/./strings/en-us.stb
-- Up-to-date: e:/gapid/debug/pkg/./gapid-aarch64.apk
-- Up-to-date: e:/gapid/debug/pkg/./gapid-armeabi.apk
-- Up-to-date: e:/gapid/debug/pkg/./gapid-x86.apk
-- Up-to-date: e:/gapid/debug/pkg/./build.properties
I20170628-134659461[main][server.GapiPaths.checkForTools] Looking for GAPID in e:\gapid\debug\pkg -> e:\gapid\debug\pkg\gapis.exe
I20170628-134659481[server.ChildProcess-gapis][server.ChildProcess.runProcess] Starting gapis as [e:\gapid\debug\pkg\gapis.exe, -log-file, C:\Users\zhaijl\AppData\Local\Temp\gapis.log, -log-level, Info, -gapir-args, --log C:\Users\zhaijl\AppData\Local\Temp\gapir.log --log-level I, --strings, e:\gapid\debug\pkg\strings, --gapis-auth-token, JyLWBqso, --idle-timeout, 10000ms]
I20170628-134659516[server.ChildProcess$LoggingStringHandler][server.ChildProcess$LoggingStringHandler.lambda$new$0] gapis: 05:46:59.516 I: <gapis> Logging to: C:\Users\zhaijl\AppData\Local\Temp\gapis.log
W20170628-134700138[server.ChildProcess$LoggingStringHandler][server.ChildProcess$LoggingStringHandler.lambda$new$0] gapis: [libprotobuf ERROR E:/gpaid/src/src/github.com/google/gapid/third_party/protobuf/src/google/protobuf/wire_format_lite.cc:532] String field 'device.Instance.Serial' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
W20170628-134700141[server.ChildProcess$LoggingStringHandler][server.ChildProcess$LoggingStringHandler.lambda$new$0] gapis: [libprotobuf ERROR E:/gpaid/src/src/github.com/google/gapid/third_party/protobuf/src/google/protobuf/wire_format_lite.cc:532] String field 'device.Instance.Name' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
I20170628-134700143[server.ChildProcess$LoggingStringHandler][server.ChildProcess$LoggingStringHandler.lambda$new$0] gapis: Bound on port '58616'
W20170628-134700144[server.ChildProcess$LoggingStringHandler][server.ChildProcess$LoggingStringHandler.lambda$new$0] gapis: [libprotobuf ERROR E:/gpaid/src/src/github.com/google/gapid/third_party/protobuf/src/google/protobuf/wire_format_lite.cc:532] String field 'device.Instance.Serial' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
I20170628-134700146[server.ChildProcess$LoggingStringHandler][server.GapisProcess.lambda$createStdoutHandler$2] Detected gapis startup on port 58616
W20170628-134700149[server.ChildProcess$LoggingStringHandler][server.ChildProcess$LoggingStringHandler.lambda$new$0] gapis: [libprotobuf ERROR E:/gpaid/src/src/github.com/google/gapid/third_party/protobuf/src/google/protobuf/wire_format_lite.cc:532] String field 'device.Instance.Name' contains invalid UTF-8 data when serializing a protocol buffer. Use the 'bytes' type if you intend to send raw bytes.
I20170628-134700152[server.ChildProcess$LoggingStringHandler][server.GapisProcess.lambda$new$1] Established a new client connection to 58616
I20170628-134700195[server.ChildProcess$LoggingStringHandler][io.grpc.internal.ManagedChannelImpl.<init>] [ManagedChannelImpl@c8dbb7b] Created with target localhost:58616
I20170628-134700293[main][server.ChildProcess.shutdown] Shutting down gapis
I20170628-134700294[OkHttpClientTransport][io.grpc.internal.ManagedChannelImpl.maybeTerminateChannel] [ManagedChannelImpl@c8dbb7b] Terminated
Exception in thread "main" I20170628-134700294[server.ChildProcess-gapis][server.ChildProcess.runProcess] Killing gapis
com.google.gapid.Server$GapisInitException: Failed to initialize the graphics debuggerW20170628-134700297[server.ChildProcess-gapis][server.ChildProcess.onExit] The gapis process exited with a non-zero exit value: -1

I20170628-134700299[server.ChildProcess-gapis][server.ChildProcess.shutdown] Shutting down gapis
        at com.google.gapid.Server.connect(Server.java:80)
        at com.google.gapid.Main.main(Main.java:63)
Caused by: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: CANCELLED: Failed to read message.
        at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:500)
        at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:401)
        at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:83)
        at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:183)
        at com.google.gapid.rpc.Rpc.get(Rpc.java:54)
        at com.google.gapid.Server.fetchServerInfo(Server.java:126)
        at com.google.gapid.Server.connect(Server.java:74)
        ... 1 more
Caused by: io.grpc.StatusRuntimeException: CANCELLED: Failed to read message.
        at io.grpc.Status.asRuntimeException(Status.java:545)
        at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:442)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.close(ClientCallImpl.java:481)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl.access$600(ClientCallImpl.java:398)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessageRead.runInContext(ClientCallImpl.java:466)
        at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:52)
        at io.grpc.internal.SerializingExecutor$TaskRunner.run(SerializingExecutor.java:154)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
Caused by: io.grpc.StatusRuntimeException: INTERNAL: Invalid protobuf byte sequence
        at io.grpc.Status.asRuntimeException(Status.java:536)
        at io.grpc.protobuf.lite.ProtoLiteUtils$1.parse(ProtoLiteUtils.java:114)
        at io.grpc.protobuf.lite.ProtoLiteUtils$1.parse(ProtoLiteUtils.java:81)
        at io.grpc.MethodDescriptor.parseResponse(MethodDescriptor.java:187)
        at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1MessageRead.runInContext(ClientCallImpl.java:458)
        ... 5 more
Caused by: com.google.protobuf.InvalidProtocolBufferException: Protocol message had invalid UTF-8.
        at com.google.protobuf.InvalidProtocolBufferException.invalidUtf8(InvalidProtocolBufferException.java:132)
        at com.google.protobuf.CodedInputStream.readStringRequireUtf8(CodedInputStream.java:412)
        at com.google.gapid.proto.service.Service$ServerInfo.<init>(Service.java:629)
        at com.google.gapid.proto.service.Service$ServerInfo.<init>(Service.java:587)
        at com.google.gapid.proto.service.Service$ServerInfo$1.parsePartialFrom(Service.java:1393)
        at com.google.gapid.proto.service.Service$ServerInfo$1.parsePartialFrom(Service.java:1388)
        at com.google.protobuf.CodedInputStream.readMessage(CodedInputStream.java:497)
        at com.google.gapid.proto.service.Service$GetServerInfoResponse.<init>(Service.java:11278)
        at com.google.gapid.proto.service.Service$GetServerInfoResponse.<init>(Service.java:11236)
        at com.google.gapid.proto.service.Service$GetServerInfoResponse$1.parsePartialFrom(Service.java:11948)
        at com.google.gapid.proto.service.Service$GetServerInfoResponse$1.parsePartialFrom(Service.java:11943)
        at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:91)
        at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
        at io.grpc.protobuf.lite.ProtoLiteUtils$1.parseFrom(ProtoLiteUtils.java:124)
        at io.grpc.protobuf.lite.ProtoLiteUtils$1.parse(ProtoLiteUtils.java:111)
        ... 8 more
Error running D:\devtools\jdk1.8.0_131\bin\java.exe [-jar e:\gapid\debug\java\gapic-windows.jar -gapid e:\gapid\debug\pkg]: Process returned error
   Cause: exit status 1
exit status 1
@ben-clayton ben-clayton added this to the V0.9 (Beta) milestone Jun 29, 2017
ben-clayton added a commit to ben-clayton/gapid that referenced this issue Jun 29, 2017
@ben-clayton ben-clayton self-assigned this Jun 29, 2017
ben-clayton added a commit that referenced this issue Jun 29, 2017
RenfengLiu pushed a commit to RenfengLiu/gapid that referenced this issue Apr 23, 2020
…ismatch

Fix interface mismatch between VS and GS in deferredshadows
purvisa-at-google-com pushed a commit that referenced this issue Sep 29, 2022
…651)

PR will add the capability of compression with CGo that would slow the
builds. Therefore similar to ASTC, ETC should have it's own package.
purvisa-at-google-com pushed a commit that referenced this issue Sep 29, 2022
Image Format conversion in AGI done by the converters that are
registered in init time of Go Packages. There are details about this
but simply init function in go packages runs before main when the
packages are loaded.

Recently #651 moved ETC conversion to its own packages similar to ASTC
but different from ASTC, image creation remained in the parent package.
As all the conversion functions called via register map that has registered
during the init, this causes no function from the etc package, which ended up
with it's not being loaded therefore no converter registered.

This is a workaround that just create translator functions to reflect the image
create functions in the parent package and uses those functions in Vulkan/resources
to ensure the package is initialized.

This is suboptimal and only a workaround. I am creating another PR with a refactor
of the image formats. This is only a workaround until the other one can be merged.
purvisa-at-google-com pushed a commit that referenced this issue Sep 29, 2022
Fix ETC converter initialisation

Image Format conversion in AGI done by the converters that are
registered in init time of Go Packages. There are details about this
but simply init function in go packages runs before main when the
packages are loaded.

Recently #651 moved ETC conversion to its own packages similar to ASTC
but different from ASTC, image creation remained in the parent package.
As all the conversion functions called via register map that has registered
during the init, this causes no function from the etc package, which ended up
with it's not being loaded therefore no converter registered.

This is a workaround that just create translator functions to reflect the image
create functions in the parent package and uses those functions in Vulkan/resources
to ensure the package is initialised.

This is suboptimal and only a workaround. I am creating another PR with a refactor
of the image formats. This is only a workaround until the other one can be merged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants