GPT4 Code Generation Freezes

Hi

Is this a quirk or is the system down? I’ve been a plus user for a year now. I came across this weird issue today. I’ve narrowed the hanging issue to this. Each time I request “Explain what is a std::unique_ptr with an example”.

The code generation freezes when it gets to the last where its printing the std::unique_ptr. It just hangs.

What I’ve noticed is that if the class is called Widget then it hangs, if I ask it use a different name then it finishes code generation. If I say use raw pointers it’s fine.

… This is the code generated and it hangs at the end:

#include
#include // include for std::unique_ptr

class Widget
{
public:
Widget()
{
std::cout << “Created\n”;
}
~Widget()
{
std::cout << “Destroyed\n”;
}
void greet()
{
std::cout << “Hello\n”;
}
};

int main()
{
{
std::unique_ptr

Finally gives up after network error.

2 Likes

I have been having the same issue, it is freezing when trying to generate vue code.

I do have the same issue and was so confused. it stuck on std::unique_ptr and keeps trying then network error. This is any promote

I have the same problem, usually when Im working on C++ with map composed by vectors…always freeze and cant finish the taks

I think the same problem is happening with gpt-4o-mini