ssbssa / heob

Detects buffer overruns and memory leaks.
Boost Software License 1.0
155 stars 25 forks source link

Application stopped unexpectedly ( Qt5.15.2 MinGW64) #23

Closed siyuhong closed 2 years ago

siyuhong commented 2 years ago

Hi, I want to use this tool to check the memory leak in QtCreator. But, when I exit the test app, the heob app while stopped. I tried both solutions with the same results:

  1. heob releases tag 3.1
  2. build the heob project(MinGW64) What do I need to do to make him work properly?
ssbssa commented 2 years ago

How do you exit the test app?

siyuhong commented 2 years ago

Click the close button on the window titlebar

ssbssa commented 2 years ago

Console window or GUI window?

siyuhong commented 2 years ago

控制台窗口还是 GUI 窗口?

GUI Window

ssbssa commented 2 years ago

Could you maybe give me a small test application, and the steps to reproduce the issue?

siyuhong commented 2 years ago

Could you maybe give me a small test application, and the steps to reproduce the issue?

OK. I recorded the operation by gif, you can try to reproduce it.

However, for some reason, I can't upload the file. Can you tell me your email address?

siyuhong commented 2 years ago

Could you maybe give me a small test application, and the steps to reproduce the issue?

Now, you can see on here https://github.com/siyuhong/testfiles

ssbssa commented 2 years ago

I just tried it, with Qt 5.12.2 and gcc-11.2 (provided by MSYS2), and I can't reproduce it. Once I close the window, it shows me a lot of memory leaks (by Qt), and there is no "Application stopped unexpectedly" error.

siyuhong commented 2 years ago

Maybe the problem is compiling environment?

ssbssa commented 2 years ago

Hard to say. Have you tried a different one?

siyuhong commented 2 years ago

The others have not been tried. Now I'm testing the code under Linux.

Hard to say. Have you tried a different one?

ssbssa commented 2 years ago

I've just fixed a bug in heob, which might have been the reason for your crash. Maybe you could try it out?

ssbssa commented 2 years ago

I'm assuming this was the bug fixed by 4cb79f57c4, and close this.

siyuhong commented 2 years ago

I'm assuming this was the bug fixed by 4cb79f5, and close this.

Thank you for your maintenance, But same problem will happen again.

ssbssa commented 2 years ago

To find the problem, I would need more information, like a backtrace of the program when it crashes.