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

v3: Unlock of already unlocked mutex on nil body #359

Open
diamondburned opened this issue Dec 7, 2022 · 0 comments
Open

v3: Unlock of already unlocked mutex on nil body #359

diamondburned opened this issue Dec 7, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@diamondburned
Copy link
Owner

2022/12/06 18:26:08 Discord API: GET /api/v9/channels/1048525374616768574/messages
2022/12/06 18:26:08 Discord API: GET /api/v9/channels/1048525374616768574/messages: 429 Too Many Requests
2022/12/06 18:26:08 Discord API: GET /api/v9/channels/1048525374616768574/messages
2022/12/06 18:26:08 Discord API: GET /api/v9/channels/1048525374616768574/messages nil response
panic: Unlock of already unlocked mutex.

goroutine 33729 [running]:
github.com/diamondburned/arikawa/v3/internal/moreatomic.(*CtxMutex).Unlock(...)
	/home/diamond/.go/pkg/mod/github.com/diamondburned/arikawa/[email protected]/internal/moreatomic/mutex.go:41
github.com/diamondburned/arikawa/v3/api/rate.(*Limiter).Acquire(0xc00011fb00, {0x2067f80, 0xc00829c510}, {0xc00343a5d3, 0x2d})
	/home/diamond/.go/pkg/mod/github.com/diamondburned/arikawa/[email protected]/api/rate/rate.go:157 +0x3ab
github.com/diamondburned/arikawa/v3/api.(*Client).InjectRequest(0xc0002e3980, {0x20691e0, 0xc005a76700})
	/home/diamond/.go/pkg/mod/github.com/diamondburned/arikawa/[email protected]/api/api.go:86 +0x1d6
github.com/diamondburned/arikawa/v3/utils/httputil.(*Client).applyOptions(0xc0000b1b68?, {0x20691e0, 0xc005a76700}, {0xc0000b1dd8, 0x1, 0xc00343a5c0?})
	/home/diamond/.go/pkg/mod/github.com/diamondburned/arikawa/[email protected]/utils/httputil/client.go:80 +0x65
github.com/diamondburned/arikawa/v3/utils/httputil.(*Client).request(0xc008846310, {0x1d33b9c, 0x3}, {0xc00343a5c0, 0x40}, {0xc0000b1dd8, 0x1, 0x1})
	/home/diamond/.go/pkg/mod/github.com/diamondburned/arikawa/[email protected]/utils/httputil/client.go:209 +0x22f
github.com/diamondburned/arikawa/v3/utils/httputil.(*Client).Request(0x40?, {0x1d33b9c?, 0x9?}, {0xc00343a5c0?, 0xc00343a5c0?}, {0xc0000b1dd8?, 0xc0000b1d20?, 0xc00829c480?})
	/home/diamond/.go/pkg/mod/github.com/diamondburned/arikawa/[email protected]/utils/httputil/client.go:170 +0x45
github.com/diamondburned/arikawa/v3/utils/httputil.(*Client).RequestJSON(0xc009388858?, {0x19e9d40, 0xc0086cf230}, {0x1d33b9c?, 0x10000000000?}, {0xc00343a5c0?, 0x5720?}, {0xc0000b1dd8, 0x1, 0x1})
	/home/diamond/.go/pkg/mod/github.com/diamondburned/arikawa/[email protected]/utils/httputil/client.go:143 +0x89
github.com/diamondburned/arikawa/v3/api.(*Client).messagesRange(0xc00510c480, 0x0?, 0x0, 0x0, 0x0, 0xe8d1c45dc04103e?)
	/home/diamond/.go/pkg/mod/github.com/diamondburned/arikawa/[email protected]/api/message.go:182 +0x1aa
github.com/diamondburned/arikawa/v3/api.(*Client).MessagesBefore(0xc0007476c8?, 0xc000a01bf0?, 0x0, 0x2d)
	/home/diamond/.go/pkg/mod/github.com/diamondburned/arikawa/[email protected]/api/message.go:79 +0x111
github.com/diamondburned/arikawa/v3/state.(*State).Messages(0xc0050c2240, 0x0?, 0x2d)
	/home/diamond/.go/pkg/mod/github.com/diamondburned/arikawa/[email protected]/state/state.go:652 +0x1fb
github.com/diamondburned/gtkcord4/internal/gtkcord/message.(*View).load.func1()
	/home/diamond/Scripts/gotk4/gtkcord4/internal/gtkcord/message/view.go:323 +0x45
github.com/diamondburned/gotkit/gtkutil.Async.func1()
	/home/diamond/.go/pkg/mod/github.com/diamondburned/[email protected]/gtkutil/gtkutil.go:302 +0x33
created by github.com/diamondburned/gotkit/gtkutil.Async
	/home/diamond/.go/pkg/mod/github.com/diamondburned/[email protected]/gtkutil/gtkutil.go:301 +0xaa
@diamondburned diamondburned added the bug Something isn't working label Dec 7, 2022
@diamondburned diamondburned self-assigned this Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant