google / gapid

Graphics API Debugger
https://gapid.dev
Apache License 2.0
2.21k stars 328 forks source link

The gapis server has exited with an error code of: 2 #3889

Open hilbertdu opened 2 years ago

hilbertdu commented 2 years ago

Environment information:

Bug description The application encountered an error

Reproduction steps there is a error when try to capture my app in oppo r9s.

Stacktrace panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: --- initialcmds.InitialCmdsResolvable --- capture:<ID:<data:"f\374\320\260\254\034\375\212c}\220\250N\013\250\314\021tk\200" > > Store(): gapis/database/database.go:56 github.com/google/gapid/gapis/database.Build gapis/resolve/initialcmds/initial_commands.go:40 github.com/google/gapid/gapis/resolve/initialcmds.InitialCommands gapis/resolve/resources.go:58 github.com/google/gapid/gapis/resolve.(ResourcesResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

Build() #0: gapis/database/database.go:60 github.com/google/gapid/gapis/database.Build gapis/resolve/initialcmds/initial_commands.go:40 github.com/google/gapid/gapis/resolve/initialcmds.InitialCommands gapis/resolve/resources.go:58 github.com/google/gapid/gapis/resolve.(ResourcesResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

--- resolve.ResourcesResolvable --- capture:<ID:<data:"f\374\320\260\254\034\375\212c}\220\250N\013\250\314\021tk\200" > > config:<replay_device:<ID:<data:"T\354\267unM1\340\027@Z;\251\354\301\252\352W\304\253" > > > Store(): gapis/database/database.go:56 github.com/google/gapid/gapis/database.Build gapis/resolve/resources.go:33 github.com/google/gapid/gapis/resolve.Resources gapis/resolve/resolve.go:353 github.com/google/gapid/gapis/resolve.ResolveInternal gapis/resolve/resolve.go:279 github.com/google/gapid/gapis/resolve.ResolveService gapis/resolve/get.go:33 github.com/google/gapid/gapis/resolve.(GetResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

Build() #0: gapis/database/database.go:60 github.com/google/gapid/gapis/database.Build gapis/resolve/resources.go:33 github.com/google/gapid/gapis/resolve.Resources gapis/resolve/resolve.go:353 github.com/google/gapid/gapis/resolve.ResolveInternal gapis/resolve/resolve.go:279 github.com/google/gapid/gapis/resolve.ResolveService gapis/resolve/get.go:33 github.com/google/gapid/gapis/resolve.(GetResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

--- resolve.GetResolvable --- path:<resources:<capture:<ID:<data:"f\374\320\260\254\034\375\212c}\220\250N\013\250\314\021tk\200" > > > > config:<replay_device:<ID:<data:"T\354\267unM1\340\027@Z;\251\354\301\252\352W\304\253" > > > Store(): gapis/database/database.go:56 github.com/google/gapid/gapis/database.Build gapis/resolve/get.go:26 github.com/google/gapid/gapis/resolve.Get gapis/server/server.go:425 github.com/google/gapid/gapis/server.(server).Get gapis/server/grpc.go:217 github.com/google/gapid/gapis/server.(grpcServer).Get bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10177 github.com/google/gapid/gapis/service._Gapid_Get_Handler.func1 core/app/auth/auth.go:110 github.com/google/gapid/core/app/auth.ServerInterceptor.func1 bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10179 github.com/google/gapid/gapis/service._Gapid_Get_Handler external/org_golang_google_grpc/server.go:971 google.golang.org/grpc.(Server).processUnaryRPC external/org_golang_google_grpc/server.go:1250 google.golang.org/grpc.(*Server).handleStream

Build() #0: gapis/database/database.go:60 github.com/google/gapid/gapis/database.Build gapis/resolve/get.go:26 github.com/google/gapid/gapis/resolve.Get gapis/server/server.go:425 github.com/google/gapid/gapis/server.(server).Get gapis/server/grpc.go:217 github.com/google/gapid/gapis/server.(grpcServer).Get bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10177 github.com/google/gapid/gapis/service._Gapid_Get_Handler.func1 core/app/auth/auth.go:110 github.com/google/gapid/core/app/auth.ServerInterceptor.func1 bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10179 github.com/google/gapid/gapis/service._Gapid_Get_Handler external/org_golang_google_grpc/server.go:971 google.golang.org/grpc.(Server).processUnaryRPC external/org_golang_google_grpc/server.go:1250 google.golang.org/grpc.(Server).handleStream [recovered] panic: --- initialcmds.InitialCmdsResolvable --- capture:<ID:<data:"f\374\320\260\254\034\375\212c}\220\250N\013\250\314\021tk\200" > > Store(): gapis/database/database.go:56 github.com/google/gapid/gapis/database.Build gapis/resolve/initialcmds/initial_commands.go:40 github.com/google/gapid/gapis/resolve/initialcmds.InitialCommands gapis/resolve/resources.go:58 github.com/google/gapid/gapis/resolve.(ResourcesResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

Build() #0: gapis/database/database.go:60 github.com/google/gapid/gapis/database.Build gapis/resolve/initialcmds/initial_commands.go:40 github.com/google/gapid/gapis/resolve/initialcmds.InitialCommands gapis/resolve/resources.go:58 github.com/google/gapid/gapis/resolve.(ResourcesResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

--- resolve.ResourcesResolvable --- capture:<ID:<data:"f\374\320\260\254\034\375\212c}\220\250N\013\250\314\021tk\200" > > config:<replay_device:<ID:<data:"T\354\267unM1\340\027@Z;\251\354\301\252\352W\304\253" > > > Store(): gapis/database/database.go:56 github.com/google/gapid/gapis/database.Build gapis/resolve/resources.go:33 github.com/google/gapid/gapis/resolve.Resources gapis/resolve/resolve.go:353 github.com/google/gapid/gapis/resolve.ResolveInternal gapis/resolve/resolve.go:279 github.com/google/gapid/gapis/resolve.ResolveService gapis/resolve/get.go:33 github.com/google/gapid/gapis/resolve.(GetResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

Build() #0: gapis/database/database.go:60 github.com/google/gapid/gapis/database.Build gapis/resolve/resources.go:33 github.com/google/gapid/gapis/resolve.Resources gapis/resolve/resolve.go:353 github.com/google/gapid/gapis/resolve.ResolveInternal gapis/resolve/resolve.go:279 github.com/google/gapid/gapis/resolve.ResolveService gapis/resolve/get.go:33 github.com/google/gapid/gapis/resolve.(GetResolvable).Resolve gapis/database/memory.go:137 github.com/google/gapid/gapis/database.(record).resolve gapis/database/memory.go:241 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1 core/app/crash/crash.go:65 github.com/google/gapid/core/app/crash.Go.func1

--- resolve.GetResolvable --- path:<resources:<capture:<ID:<data:"f\374\320\260\254\034\375\212c}\220\250N\013\250\314\021tk\200" > > > > config:<replay_device:<ID:<data:"T\354\267unM1\340\027@Z;\251\354\301\252\352W\304\253" > > > Store(): gapis/database/database.go:56 github.com/google/gapid/gapis/database.Build gapis/resolve/get.go:26 github.com/google/gapid/gapis/resolve.Get gapis/server/server.go:425 github.com/google/gapid/gapis/server.(server).Get gapis/server/grpc.go:217 github.com/google/gapid/gapis/server.(grpcServer).Get bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10177 github.com/google/gapid/gapis/service._Gapid_Get_Handler.func1 core/app/auth/auth.go:110 github.com/google/gapid/core/app/auth.ServerInterceptor.func1 bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10179 github.com/google/gapid/gapis/service._Gapid_Get_Handler external/org_golang_google_grpc/server.go:971 google.golang.org/grpc.(Server).processUnaryRPC external/org_golang_google_grpc/server.go:1250 google.golang.org/grpc.(*Server).handleStream

Build() #0: gapis/database/database.go:60 github.com/google/gapid/gapis/database.Build gapis/resolve/get.go:26 github.com/google/gapid/gapis/resolve.Get gapis/server/server.go:425 github.com/google/gapid/gapis/server.(server).Get gapis/server/grpc.go:217 github.com/google/gapid/gapis/server.(grpcServer).Get bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10177 github.com/google/gapid/gapis/service._Gapid_Get_Handler.func1 core/app/auth/auth.go:110 github.com/google/gapid/core/app/auth.ServerInterceptor.func1 bazel-out/x64_windows-opt/bin/gapis/service/windows_amd64_stripped/service_go_proto%/github.com/google/gapid/gapis/service/service.pb.go:10179 github.com/google/gapid/gapis/service._Gapid_Get_Handler external/org_golang_google_grpc/server.go:971 google.golang.org/grpc.(Server).processUnaryRPC external/org_golang_google_grpc/server.go:1250 google.golang.org/grpc.(Server).handleStream

[signal 0xc0000005 code=0x0 addr=0x0 pc=0x1e2f685]

goroutine 537 [running]: github.com/google/gapid/core/app/crash.Crash(0x5e4df00, 0xc0017b1160) core/app/crash/crash.go:89 +0xae github.com/google/gapid/core/app/crash.handler() core/app/crash/crash.go:56 +0x59 panic(0x5e4df00, 0xc0017b1160) GOROOT/src/runtime/panic.go:522 +0x1c3 github.com/google/gapid/gapis/database.(memory).resolvePanicHandler(0xc0001ad180, 0x77c6c00, 0xc0007385a0) gapis/database/debug.go:106 +0x775 panic(0x6016660, 0x50ecc10) GOROOT/src/runtime/panic.go:522 +0x1c3 github.com/google/gapid/gapis/api/gles.TextureUnitʳ.ID(...) bazel-out/x64_windows-opt/bin/gapis/api/gles/api_amrp.go:23863 github.com/google/gapid/gapis/api/gles.(stateBuilder).contextObjectPostEGLImage(0xc000026600, 0x77c6c00, 0xc000738690, 0x7f7d861180, 0xc005420000, 0x31ee) gapis/api/gles/state_builder.go:495 +0x10c5 github.com/google/gapid/gapis/api/gles.API.RebuildState(0x77c6c00, 0xc000738690, 0xc0006f2b60, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0) gapis/api/gles/state_builder.go:102 +0x5d9 github.com/google/gapid/gapis/resolve/initialcmds.(InitialCmdsResolvable).Resolve(0xc000738480, 0x77c6c00, 0xc000738690, 0xc000738690, 0xc0008adf00, 0x2, 0x2) gapis/resolve/initialcmds/initial_commands.go:62 +0x1e6 github.com/google/gapid/gapis/database.(record).resolve(0xc0042f1f20, 0x77c6c00, 0xc000738690, 0x0, 0x0) gapis/database/memory.go:137 +0x229 github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1() gapis/database/memory.go:241 +0x13b github.com/google/gapid/core/app/crash.Go.func1(0xc000738540) core/app/crash/crash.go:65 +0x4a created by github.com/google/gapid/core/app/crash.Go core/app/crash/crash.go:63 +0x46

Screenshots image

Additional debugging information logcat-full.txt