Skip to content

[DeckLinkDevice devices] crashes #1

@benoitlahoz

Description

@benoitlahoz

Hi and thank you for your work!

I'm trying to get a list of connected devices with [DeckLinkDevice devices] but it crashes, due to a dispatch_once error. I get this crash log:

**2016-05-01 22:46:45.392 StreamKnot[2939:76500] An uncaught exception was raised
2016-05-01 22:46:45.393 StreamKnot[2939:76500] * -[__NSArrayM insertObject:atIndex:]: object cannot be nil
2016-05-01 22:46:45.393 StreamKnot[2939:76500] (
0 CoreFoundation 0x00007fff8c72f4f2 __exceptionPreprocess + 178
1 libobjc.A.dylib 0x00007fff8830973c objc_exception_throw + 48
2 CoreFoundation 0x00007fff8c645ae0 checkForCloseTag + 0
3 DeckLink 0x0000000100145daf +[DeckLinkDevice(Devices) devicesWithIODirection:] + 559
4 DeckLink 0x0000000100145b75 +[DeckLinkDevice(Devices) devices] + 37

and the error concerns the following lines in once.h (dispatch)

void
_dispatch_once(dispatch_once_t *predicate, dispatch_block_t block)
{
    if (DISPATCH_EXPECT(*predicate, ~0l) != ~0l) {
        dispatch_once(predicate, block);
    }
}

Do you have any clue on what's happening?
Thanks!

Ben

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions