Code::Blocks Forums

User forums => Help => Topic started by: MKU on May 06, 2022, 12:28:22 pm

Title: Codeblocks crashing almost on everything after built it from source
Post by: MKU on May 06, 2022, 12:28:22 pm
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.
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: Miguel Gimenez on May 06, 2022, 12:47:10 pm
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.
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: MKU on May 06, 2022, 01:17:19 pm
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 :).
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: Miguel Gimenez on May 06, 2022, 01:45:20 pm
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.
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: MKU on May 09, 2022, 02:11:28 pm
Yes, nightly build works without crashing.

I have turned off every antyvirus and nothing changed.
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: Miguel Gimenez on May 09, 2022, 04:33:09 pm
Did you compile wxWidgets yourself or, are you using a precompiled binary?. The latter may cause crashes.
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: MKU on May 10, 2022, 07:43:42 am
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.
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: BlueHazzard on May 10, 2022, 05:36:51 pm
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.
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: MKU on May 11, 2022, 09:57:41 am
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
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: MKU on May 11, 2022, 10:32:35 am
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.
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: MKU 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.
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: BlueHazzard on May 16, 2022, 11:32:52 am
Have you run the update script after building?
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: MKU on May 16, 2022, 11:40:18 am
Yes, update31_64 after codeblocks and plugins builds.
Title: Re: Codeblocks crashing almost on everything after built it from source
Post by: AndrewCot 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 (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/ (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 (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 (https://github.com/acotty/CodeBlocks_Unofficial_Testing/blob/master/windows_installer/Installer_NSIS.nsi)


Good luck.