Author Topic: Codeblocks crashing almost on everything after built it from source  (Read 1912 times)

Offline MKU

  • Single posting newcomer
  • *
  • Posts: 8
I have built codeblocks from source on the newest svn revision 12804 using this tutorial https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows.
It went without any problems but when I try to create new project (plugin or even console) it instantly crashes. It does open existing projects, but crashes when adding new files or trying to edit XRC files (does not crash on every xrc). Even when trying to create new wxSmith dialog etc. it crashes.

Please help.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1053
Do you have write permissions for the folders where you are saving the new projects?.
Can you attach the codeblocks.rpt file? It should be near the C::B executable.

Offline MKU

  • Single posting newcomer
  • *
  • Posts: 8
Do you have write permissions for the folders where you are saving the new projects?.
I do have a permission. I tryed to save them on C and D drives.
Can you attach the codeblocks.rpt file? It should be near the C::B executable.
Attached here :).

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1053
You used a nightly to build from source, right?. Does said nightly work OK?.

Probably an antivirus is preventing C::B from writing on the disk.

Offline MKU

  • Single posting newcomer
  • *
  • Posts: 8
Yes, nightly build works without crashing.

I have turned off every antyvirus and nothing changed.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1053
Did you compile wxWidgets yourself or, are you using a precompiled binary?. The latter may cause crashes.

Offline MKU

  • Single posting newcomer
  • *
  • Posts: 8
Im buidling wxWidget with these commands from https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows:
mingw32-make -f makefile.gcc     SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean
mingw32-make -f makefile.gcc     SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 setup_h
mingw32-make -f makefile.gcc -j8 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1

I tried different flags but same.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3220
Make sure you compile both with the same compiler (Check your path when calling mingw32-make and what is your compiler setting in codeblocks Settings->Compiler->Executable)
You can try dependency walker and load the compiled codeblocks and look if there are any errors.

Offline MKU

  • Single posting newcomer
  • *
  • Posts: 8
I'm using TDM-GCC-64 compiler and have none more compilers. I have rebuild and made sure i have this compiler and mingw32-make set everywhere same.

Also I have used DW and can see that there is a lot of api sets and other DLL's.

Can not attach Dependency walker image here so here is google drive link: https://drive.google.com/file/d/1FSHvWE5x73lvji5pkYxuBHzvu1OoEO1K/view?usp=sharing

Offline MKU

  • Single posting newcomer
  • *
  • Posts: 8
So ive found that api sets and these EXT_*.dlls are nothing to worry about and its problem with DW compability (latest version is for windows 8 ).
HVSIFILETRUST.dll and IESHIMS.dll missing file errors disappeared after downloding and place them in C:/windows/system32 directory.

Also RPT file is appearing only after crash on opening xrc file. When for example I try to create wxsmith dialog rpt does not appear.
« Last Edit: May 11, 2022, 10:47:08 am by MKU »

Offline MKU

  • Single posting newcomer
  • *
  • Posts: 8
Re: Codeblocks crashing almost on everything after built it from source
« Reply #10 on: May 16, 2022, 11:18:19 am »
I tryed to install C::B again on empty pc to check if anything collides with codeblocks but nothing changed, still same problem.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3220
Re: Codeblocks crashing almost on everything after built it from source
« Reply #11 on: May 16, 2022, 11:32:52 am »
Have you run the update script after building?

Offline MKU

  • Single posting newcomer
  • *
  • Posts: 8
Re: Codeblocks crashing almost on everything after built it from source
« Reply #12 on: May 16, 2022, 11:40:18 am »
Yes, update31_64 after codeblocks and plugins builds.

Offline AndrewCot

  • Lives here!
  • ****
  • Posts: 574
Re: Codeblocks crashing almost on everything after built it from source
« Reply #13 on: May 16, 2022, 12:25:54 pm »
If you look at the TDM github issues you will issue #31 which affects C::B. Have a read of it

Once you have read the issue then have a look at https://forums.codeblocks.org/index.php/topic,24941.msg169962.html#msg169962


For wxWidgets building I would suggest reading the following (second time recommended in a few days BTW) as it will explaining what is needed for you build it:
https://github.com/PBfordev/wxpbguide/

Searching using google and the forum will save you allot of time and effort.

If you are still stuck and need help with building wxWidget and C::B check out the following repo for the readme in the root and the batch/script files in the Build_Helper-Files directory tree:
* https://github.com/acotty/CodeBlocks_Unofficial_Testing

If you need help with Windows x where X <10 then have a look at the following file and look fort "IsWin" to see what you need to do for the version of windows you are using:
  * https://github.com/acotty/CodeBlocks_Unofficial_Testing/blob/master/windows_installer/Installer_NSIS.nsi


Good luck.
« Last Edit: May 16, 2022, 12:27:43 pm by AndrewCot »