Skip to content

fix(189pc): crashes when upload cancelled #9094

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

XZB-1248
Copy link
Contributor

This PR will fix this:
panic: semaphore: released more than held

goroutine 46665 [running]:
golang.org/x/sync/semaphore.(*Weighted).Release(0xc000598550, 0xc0018a6000?)
/home/runner/go/pkg/mod/golang.org/x/sync@v0.12.0/semaphore/semaphore.go:127 +0xb8
github.com/alist-org/alist/v3/drivers/189pc.(*Cloud189PC).StreamUpload.func2({0x3f39ae8, 0xc0005984b0})
/home/runner/work/alist/alist/drivers/189pc/utils.go:547 +0x418
github.com/alist-org/alist/v3/pkg/errgroup.(*Group).Go.func1.1()
/home/runner/work/alist/alist/pkg/errgroup/errgroup.go:50 +0x23
github.com/avast/retry-go.Do(0xc000dc1fb0, {0xc000bf8bd0, 0x4, 0x771516?})
/home/runner/go/pkg/mod/github.com/avast/retry-go@v3.0.0+incompatible/retry.go:127 +0x1c3
github.com/alist-org/alist/v3/pkg/errgroup.(*Group).Go.func1()
/home/runner/work/alist/alist/pkg/errgroup/errgroup.go:50 +0x77
created by github.com/alist-org/alist/v3/pkg/errgroup.(*Group).Go in goroutine 45326
/home/runner/work/alist/alist/pkg/errgroup/errgroup.go:48 +0x96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant