Skip to content

Locker assertion failure around ASVideoPlayerNode init #1040

Description

@qiaoyan

#1024 seems bring locker assertion failure around ASVideoPlayerNode init. Remove ASVideoPlayerNode works fine, or disable locking assertions.

ASVideoPlayerNode *videoPlayerNode = [[ASVideoPlayerNode alloc] initWithURL:videoMetaDataMP4.URL];
            videoPlayerNode.userInteractionEnabled = YES;
            videoPlayerNode.shouldAutoPlay = YES;
            if (mediaType.unsignedIntegerValue == 0) {
                videoPlayerNode.shouldAutoRepeat = YES;
            }
            videoPlayerNode.muted = YES;
            videoPlayerNode.delegate = self;
            videoPlayerNode.placeholderImageURL = [NSURL URLWithString:[obj valueForKey:@"mediaUrl"]];

2018-07-18 18:35:42.637364+0800 Simple T[6209:1212423] *** Assertion failure in -[ASVideoPlayerNode _insertSubnode:atSubnodeIndex:sublayerIndex:andRemoveSubnode:], /Users/new/Desktop/Code/Projects/Simple T/Pods/Texture/Source/ASDisplayNode.mm:2212
2018-07-18 18:35:42.638717+0800 Simple T[6209:1212423] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Expected instanceLock.locked() to be false.'

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