YoutubeDL
YoutubeDL copied to clipboard
Thread 8: Fatal error: attempt to await next() on more than one task
Thread 8: Fatal error: attempt to await next() on more than one task
xcode 14.3
That's old code I don't use now. You better call yt_dlp().
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()
why do we need to set typealias Context = YoutubeDL
?
As you can see it's just an alias, there should be no change in behavior.
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
I guess you can comment out init() entirely.
Thread 8: Fatal error: Could not access PythonObject member 'Popen'
@kewlbear Thread 8: Fatal error: Could not access PythonObject member 'Popen'