YoutubeDL icon indicating copy to clipboard operation
YoutubeDL copied to clipboard

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

Open leecaa opened this issue 1 year ago • 7 comments

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

leecaa avatar May 16 '23 06:05 leecaa

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

kewlbear avatar May 18 '23 00:05 kewlbear

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?

kieuquangloc avatar Aug 17 '23 12:08 kieuquangloc

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

kewlbear avatar Aug 17 '23 23:08 kewlbear

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

kieuquangloc avatar Aug 18 '23 03:08 kieuquangloc

I guess you can comment out init() entirely.

kewlbear avatar Aug 18 '23 06:08 kewlbear

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

HamstyDeveloper avatar May 30 '24 12:05 HamstyDeveloper

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

HamstyDeveloper avatar May 30 '24 12:05 HamstyDeveloper