I receive an error which is this one:
libc++abi: terminating due to uncaught exception of type std::__1::system_error: thread::join failed: Invalid argument
It happens when the program is joining a thread, this one is set in a startHeartbeating method and is joined on the destructor part of the class.
I’m not sure what’s wrong with it in general as the code worked and broke when I did setup the project back on my new computer after a year.
Maybe it’s one of the dependencies that I use (boost beast/asio, certify), but that’s probably not the case as std::thread has nothing to do with that, so I guess it could also be an issue with the API I’m trying to connect to that made some changes, or maybe the CMake? but honestly I’m not sure at all so I’d like to ask and see what could it be, no need to be precise I just want an idea on what could it be or maybe how to debug these kind of errors when it comes to thread joining.
Thank you!
brujyt is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.