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

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

Closed
ben-clayton opened this issue Sep 6, 2017 · 0 comments
Closed

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

ben-clayton opened this issue Sep 6, 2017 · 0 comments
Assignees
Milestone

Comments

@ben-clayton
Copy link
Contributor

GAPID Version: 0.6.0:298:3f048c56b628f96f912aac0d27d7e56a3be4f63b
OS: mac os x x86_64

panic: runtime error: index out of range [recovered]
	panic: 
--- *resolve.StateTreeResolvable ---
 path:<after:<capture:<id:<data:"-\367y\363\300$F\t\363\246\225\250\313y\350\261\237@L:" > > indices:423452 > > array_group_size:2000 
 Store():
  /tmpfs/src/github/src/github.com/google/gapid/gapis/database/database.go:51  github.com/google/gapid/gapis/database.Store
  /tmpfs/src/github/src/github.com/google/gapid/gapis/resolve/state_tree.go:38  github.com/google/gapid/gapis/resolve.StateTree
  /tmpfs/src/github/src/github.com/google/gapid/gapis/resolve/resolve.go:312  github.com/google/gapid/gapis/resolve.ResolveInternal
  /tmpfs/src/github/src/github.com/google/gapid/gapis/resolve/resolve.go:247  github.com/google/gapid/gapis/resolve.ResolveService
  /tmpfs/src/github/src/github.com/google/gapid/gapis/resolve/get.go:35  github.com/google/gapid/gapis/resolve.(*GetResolvable).Resolve
  /tmpfs/src/github/src/github.com/google/gapid/gapis/database/memory.go:78  github.com/google/gapid/gapis/database.(*record).resolve
  /tmpfs/src/github/src/github.com/google/gapid/gapis/database/memory.go:154  github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1

 Build() #0:
  /tmpfs/src/github/src/github.com/google/gapid/gapis/database/database.go:59  github.com/google/gapid/gapis/database.Resolve
  /tmpfs/src/github/src/github.com/google/gapid/gapis/resolve/state_tree.go:98  github.com/google/gapid/gapis/resolve.StateTreeNode
  /tmpfs/src/github/src/github.com/google/gapid/gapis/resolve/resolve.go:314  github.com/google/gapid/gapis/resolve.ResolveInternal
  /tmpfs/src/github/src/github.com/google/gapid/gapis/resolve/resolve.go:247  github.com/google/gapid/gapis/resolve.ResolveService
  /tmpfs/src/github/src/github.com/google/gapid/gapis/resolve/get.go:35  github.com/google/gapid/gapis/resolve.(*GetResolvable).Resolve
  /tmpfs/src/github/src/github.com/google/gapid/gapis/database/memory.go:78  github.com/google/gapid/gapis/database.(*record).resolve
  /tmpfs/src/github/src/github.com/google/gapid/gapis/database/memory.go:154  github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1

--- *resolve.GetResolvable ---
 path:<state_tree_node:<tree:<data:"\031e\3218\215\177o\312\343\016\246\375\231\t\n7\260\277\337j" > > > 
 Store():
  /tmpfs/src/github/src/github.com/google/gapid/gapis/database/database.go:51  github.com/google/gapid/gapis/database.Store
  /tmpfs/src/github/src/github.com/google/gapid/gapis/database/database.go:65  github.com/google/gapid/gapis/database.Build
  /tmpfs/src/github/src/github.com/google/gapid/gapis/resolve/get.go:27  github.com/google/gapid/gapis/resolve.Get
  /tmpfs/src/github/src/github.com/google/gapid/gapis/server/server.go:250  github.com/google/gapid/gapis/server.(*server).Get
  /tmpfs/src/github/src/github.com/google/gapid/gapis/server/grpc.go:157  github.com/google/gapid/gapis/server.(*grpcServer).Get
  /tmpfs/src/github/src/github.com/google/gapid/gapis/service/service.pb.go:5446  github.com/google/gapid/gapis/service._Gapid_Get_Handler.func1
  /tmpfs/src/github/src/github.com/google/gapid/core/app/auth/auth.go:82  github.com/google/gapid/core/app/auth.ServerInterceptor.func1
  /tmpfs/src/github/src/github.com/google/gapid/gapis/service/service.pb.go:5448  github.com/google/gapid/gapis/service._Gapid_Get_Handler
  /tmpfs/src/github/src/github.com/google/gapid/third_party/src/google.golang.org/grpc/server.go:719  google.golang.org/grpc.(*Server).processUnaryRPC

 Build() #0:
  /tmpfs/src/github/src/github.com/google/gapid/gapis/database/database.go:69  github.com/google/gapid/gapis/database.Build
  /tmpfs/src/github/src/github.com/google/gapid/gapis/resolve/get.go:27  github.com/google/gapid/gapis/resolve.Get
  /tmpfs/src/github/src/github.com/google/gapid/gapis/server/server.go:250  github.com/google/gapid/gapis/server.(*server).Get
  /tmpfs/src/github/src/github.com/google/gapid/gapis/server/grpc.go:157  github.com/google/gapid/gapis/server.(*grpcServer).Get
  /tmpfs/src/github/src/github.com/google/gapid/gapis/service/service.pb.go:5446  github.com/google/gapid/gapis/service._Gapid_Get_Handler.func1
  /tmpfs/src/github/src/github.com/google/gapid/core/app/auth/auth.go:82  github.com/google/gapid/core/app/auth.ServerInterceptor.func1
  /tmpfs/src/github/src/github.com/google/gapid/gapis/service/service.pb.go:5448  github.com/google/gapid/gapis/service._Gapid_Get_Handler
  /tmpfs/src/github/src/github.com/google/gapid/third_party/src/google.golang.org/grpc/server.go:719  google.golang.org/grpc.(*Server).processUnaryRPC
  /tmpfs/src/github/src/github.com/google/gapid/third_party/src/google.golang.org/grpc/server.go:905  google.golang.org/grpc.(*Server).handleStream


goroutine 184253 [running]:
github.com/google/gapid/gapis/database.(*memory).resolvePanicHandler(0xc420245cc0, 0x71eaba0, 0xc4b0259a40)
	/tmpfs/src/github/src/github.com/google/gapid/gapis/database/debug.go:106 +0x76e
panic(0x5b7f4c0, 0x726b2f0)
	/tmpfs/src/go/src/runtime/panic.go:489 +0x2cf
github.com/google/gapid/gapis/resolve.(*StateTreeResolvable).Resolve(0xc4970481b0, 0x71eaba0, 0xc4b0259a40, 0x138c91f8, 0xc4970481b0, 0x1, 0x71bd6a0)
	/tmpfs/src/github/src/github.com/google/gapid/gapis/resolve/state_tree.go:394 +0x65e
github.com/google/gapid/gapis/database.(*record).resolve(0xc507d9cbc0, 0x71eaba0, 0xc4b0259a40, 0x71eaba0, 0xc4b0259a40)
	/tmpfs/src/github/src/github.com/google/gapid/gapis/database/memory.go:78 +0x8d
github.com/google/gapid/gapis/database.(*memory).resolveLocked.func1(0xc420245cc0, 0xc507d9cbc0, 0xc5aa0de0a0, 0x71eaba0, 0xc4b0259a40)
	/tmpfs/src/github/src/github.com/google/gapid/gapis/database/memory.go:154 +0x81
created by github.com/google/gapid/gapis/database.(*memory).resolveLocked
	/tmpfs/src/github/src/github.com/google/gapid/gapis/database/memory.go:161 +0x708
@ben-clayton ben-clayton added this to the V0.8 (Beta) milestone Sep 6, 2017
@ben-clayton ben-clayton self-assigned this Sep 6, 2017
purvisa-at-google-com pushed a commit that referenced this issue Sep 29, 2022
Even though the test app captured and replayed without issue, the state view
showed that `VkAttachmentDescriptionStencilLayout` was not saved for the
render passes that included it. This is caused by the map access
operation returning a copy instead of a reference, making in-place
modification of `renderPass.AttachmentDescriptions[j].StencilLayout`
impossible. The solution here is to assign it to the map after
processing the pNext chain.
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

1 participant