cameron314 / cameron314/readerwriterqueue

Queue as member variable breaks my program

Open
#135 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
4.6k
Forks
736
Avg merge
10d 5h
Merged PRs (30d)
1

Description

While trying to make my Video to ascii program multithreaded, by adding this queue i created a bug that i just cant fix and i figured out what is causing it just now.
Whenever i have a queue as a member variable in my class an error occurs, and if i comment the member variable declaration out it doesnt happen anymore.
Also you can criticize my code overall if you want, im learning

Here is a video of me reproducing this:
https://drive.google.com/file/d/11Y6_ug_H8E413T8e7YkKXet7-9SUaeCH/view?usp=sharing

Pls help me fixing this bug, here is the code on github:
https://github.com/BetterRage/Movie2Ascii.git

To build it you need ffmpeg, SDL, and spdlog

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Movie2Ascii repository and reproduction video, focusing on how the queue is declared as a class member. Build the program with ffmpeg, SDL, and spdlog, then reduce the failure to a minimal example using readerwriterqueue. Done means determining whether the reproduction demonstrates a library defect or misuse, with a confirmed diagnosis or minimal reproducible case.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.