Skip to content
This repository was archived by the owner on May 3, 2021. It is now read-only.
This repository was archived by the owner on May 3, 2021. It is now read-only.

Hit assert(false && "Can't write to pending frame queue.") likely red light off. #18

@m-7761

Description

@m-7761

FYI: I hit this assert inside PS3EyeFrameProcessor::enqueueCompressedFrame_usbThread. It's a mild annoyance, but I think it's hit because the red lights on the PS3Eye cameras were off. That said, I'm not sure if they are turned on manually.

Afterward the red lights came on on their own, and it no longer hit.

The following subroutine had to return false for this to have occurred:

bool enqueue(const t_element_type& input)
    {
        const size_t head = m_head.load(std::memory_order_relaxed);

        if (((m_tail.load(std::memory_order_acquire) - (head + 1)) & m_mask) >= 1)
		{
            m_buffer[head & m_mask] = input;
            m_head.store(head + 1, std::memory_order_release);

            return true;
        }

        return false;
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions