-
Notifications
You must be signed in to change notification settings - Fork 493
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
fatal error: sweep increased allocation count #114
Comments
I found the issue. type Alphabet {
a: String!
b: String!
c: String!
}
type Query {
alphabet: Alphabet!
} type AlphabetResolver struct {}
func (r AlphabetResolver) A() string {
return "a"
}
func (r AlphabetResolver) B() string {
return "b"
}
func (r AlphabetResolver) C() string {
return "c"
}
type QueryResolver struct {}
func (r *QueryResolver) Alphabet() AlphabetResolver {
return AlphabetResolver{}
} This causes the func (r *QueryResolver) Alphabet() (*AlphabetResolver, error) {
return &AlphabetResolver{}, nil
} |
Did you mean Go 1.9.0 or 1.9.1? If the latter, is this a different issue than golang/go#21717? Is it already reported? |
Ah sorry, I meant go1.9.0. The fix looks slated for the 1.9.1 milestone. If you wanted to be safe in the meantime, you can build go from source and cherry-pick |
Thanks for confirming that it's not an issue in 1.9.1. |
Hi, running this library on
go 1.8.3
and seeing occasional crashes withfatal error: sweep increased allocation count
.I think this may be related to the usage of
reflect.Call()
but so far have not been able to reproduce locally. (Relevant issue: golang/go#21717).Has anyone else observed this error?
The text was updated successfully, but these errors were encountered: