Skip to content

HookMain crash when using extractInfo #17

@joshgare

Description

@joshgare

Example project works without any issues and all unit tests working as expected too. However when I run the following code in a fresh project I get crash.

Code example:

        Task { @MainActor in
            let youtubeDL = YoutubeDL()
            let (formats, info) = try await youtubeDL.extractInfo(url: URL(string: "https://www.youtube.com/watch?v=WdFj7fUnmC0")!)
            print(formats, info)
        }

Crash info

Thread 5: EXC_BAD_ACCESS (code=2, address=0x2800001100)

Crash occurs on:

Hook.m

Line 55:

    ret = realMain(argc, argv);
    NSLog(@"%s: realMain=%d", __func__, ret);

When the following is called in YoutubeDL.swift:576

pythonObject = try await makePythonObject()

Fully expecting this to be something I am doing incorrectly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions