Author Topic: crash when cb20.03 exit  (Read 716 times)

Offline fancyivan

  • Multiple posting newcomer
  • *
  • Posts: 11
crash when cb20.03 exit
« on: April 22, 2020, 10:03:10 am »
Hi,

I tried to compile the codeblocks from source code. I works.
But after I launched the codeblocks.exe (with 14 plugins activated by default), and then close it, click the OK in popup window "save the 'default' Layout?".   The application crashed.
And there is no default.conf which should be generated in C:\Users\USER\AppData\Roaming\CodeBlocks\.

When I removed the compiler.dll and debugger.dll from the folder: \output31_64\share\CodeBlocks\plugins\, it works fine (no crash). the default.conf will be generated after I close the application.
I tried very hard to debug it from the IDE, but can not capture any debug point or any info...

Anybody can give me some suggestion regarding this issue...?

Here is my environment:

1. Win10 x64
2. TDM-GCC64 (9.2.0)
3. wxWidgets3.1.3
Code: [Select]
Enabled wxUSE_GRAPHICS_DIRECT2D
mingw32-make -j4 SHELL=cmd.exe -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release VENDOR=cb

4. Codeblocks sourcecode: https://github.com/obfuscated/codeblocks_sf/tree/release-20.03

5. IDE: codeblocks-17.12-nosetup

5.1 open the project: src\CodeBlocks_wx31_64.cbp
5.2 Build All
5.3 copy wxmsw313u_gcc_cb.dll to src\devel31_64
5.3 run src\update31_64.bat, and then get the src\output31_64 finally.

Thanks~
Tao

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 572
Re: crash when cb20.03 exit
« Reply #1 on: April 22, 2020, 01:21:08 pm »
Do you have the lib_finder plugin activated?. There is a known problem with lib_finder and TDM9.2.0, see

http://forums.codeblocks.org/index.php/topic,23642.msg161686.html#msg161686

Offline fancyivan

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: crash when cb20.03 exit
« Reply #2 on: April 22, 2020, 04:05:11 pm »
Thanks for reply.

no, I only compiled the things in CodeBlocks_wx31_64.cbp. and it contains 14 plugins by default.

1. abbreviations.dll
2. astyle.dll
3. autosave.dll
4. classwizard.dll
5. codecompletion.dll
6. compiler.dll
7. debugger.dll
8. defaultmimehandler.dll
9. OccurrencesHighlighting.dll
10. openfileslist.dll
11. projectsimporter.dll
12. scriptedwizard.dll
13. todo.dll
14. xpmanifest.dll

And as I wrote in the first post, when I remove the 2 plugins (compiler.dll and debugger.dll) out, it works fine.

Do you have the lib_finder plugin activated?. There is a known problem with lib_finder and TDM9.2.0, see

http://forums.codeblocks.org/index.php/topic,23642.msg161686.html#msg161686

based on the above url you provide, I think I can dig a little bit from 2 different ways:
1. use old version of TDM-GCC64 (5.1.0-2) instead of 9.2.0
2. try to add -g when compile wxwidgets 3.1.3, and gdb the CodeBlocks_wx31_64.cbp project, hope I can capture some useful debug info.

will back to this post after I have some answer.

Thanks~
Tao

Offline fancyivan

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: crash when cb20.03 exit
« Reply #3 on: April 22, 2020, 05:45:33 pm »
interesting...., use TDM-GCC64 (5.1.0-2), it works fine... all steps are exactly the same, except the TDM-GCC version...

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12905
    • Travis build status
Re: crash when cb20.03 exit
« Reply #4 on: April 22, 2020, 08:51:20 pm »
We're using mingw-w64 8.x.x for the night builds and releases as far as I know.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]