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

Thread 8: Fatal error: attempt to await next() on more than one task #14

Open
leecaa opened this issue May 16, 2023 · 7 comments
Open

Comments

@leecaa
Copy link

leecaa commented May 16, 2023

Thread 8: Fatal error: attempt to await next() on more than one task
xcode 14.3
image
image

@kewlbear
Copy link
Owner

That's old code I don't use now. You better call yt_dlp().

@kieuquangloc
Copy link

Hi @kewlbear, I face the crash when I try to download another video after finishing the first downloading,
it occurs after this line:
let context = Context()
image

why do we need to set typealias Context = YoutubeDL?

@kewlbear
Copy link
Owner

As you can see it's just an alias, there should be no change in behavior.

@kieuquangloc
Copy link

Hi @kewlbear the problem is when the Context init, it calls:

public override init() {
        super.init()
        _ = postDownloadTask
 }

when _ = postDownloadTask be called, the app get the crash

_Concurrency/AsyncStreamBuffer.swift:253: Fatal error: attempt to await next() on more than one task 2023-08-18 10:03:38.043840+0700 {project_name} _Concurrency/AsyncStreamBuffer.swift:253: Fatal error: attempt to await next() on more than one task

@kewlbear
Copy link
Owner

I guess you can comment out init() entirely.

@HamstyDeveloper
Copy link

Thread 8: Fatal error: Could not access PythonObject member 'Popen'

@HamstyDeveloper
Copy link

@kewlbear Thread 8: Fatal error: Could not access PythonObject member 'Popen'

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

No branches or pull requests

4 participants