Author Topic: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault  (Read 2419 times)

Offline manugoswami

  • Multiple posting newcomer
  • *
  • Posts: 12
Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« on: November 07, 2023, 12:19:49 pm »
Hi,

I have succcessfully built codeblocks in mingw64 as per instruction in https://wiki.codeblocks.org/index.php/Installing_Code::Blocks_from_source_on_Windows but
when i run ./codeblocks.exe in mingw64 it fails with below errors ending with "CodeComSegmentation fault".

Kindly urgently suggest how to get code-blocks working.

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
$ ./codeblocks.exe
Starting Code::Blocks svn build  rev 13387 Nov  7 2023, 13:36:39 - wxWidgets 3.2.3 - gcc 13.2.0 (Windows, unicode) - 64 bit
Manager initialized
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/file.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/file-missing.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/file-modified.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/file-readonly.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/rc-file-added.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/rc-file-conflict.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/rc-file-missing.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/rc-file-modified.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/rc-file-outofdate.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/rc-file-uptodate.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/rc-file-requireslock.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/rc-file-external.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/rc-file-gotlock.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/rc-file-lockstolen.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/rc-file-mismatch.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/rc-file-noncontrolled.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/workspace.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/workspace-readonly.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/project.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/project-readonly.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/folder_open.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:images/tree/svg/vfolder_open.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/infopane/svg/edit.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filefind.svg'
Initialize EditColourSet .....
Initialize EditColourSet: done.
Loading menubar...
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/fileopen.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/fileopen.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/history_clear.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/history_clear.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filesave.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filesave.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filesaveas.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filesaveas.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filesaveall.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filesaveall.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/fileclose.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/fileclose.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/fileprint.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/fileprint.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/exit.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/exit.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/undo.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/undo.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/redo.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/redo.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/editcut.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/editcut.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/editcopy.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/editcopy.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/editpaste.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/editpaste.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/bookmark_add.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/bookmark_add.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filefind.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filefind.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/findf.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/findf.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filefindnext.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filefindnext.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filefindprev.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/filefindprev.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/searchreplace.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/searchreplace.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/searchreplacef.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/searchreplacef.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/goto.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/goto.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/plug.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/plug.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/info.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/info.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/idea.svg'
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\share\codeblocks/resources.zip#zip:/images/svg/idea.svg'
Abbreviations: loaded
AStylePlugin: loaded
Autosave: loaded
ClassWizard: loaded
CodeComSegmentation fault

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

Kind regards,
Manu

Offline blauzahn

  • Almost regular
  • **
  • Posts: 150
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #1 on: November 07, 2023, 12:35:23 pm »
When you start codeblocks in cmd from the commandline, you can add arguments. If you enter
Code
codeblocks --safe-mode
  it disables all-plugins, even including the compiler-plugin. Without this, cb is of limited use but you can see, whether the segfault comes from a plugin or cb-core.

Code
codblocks --help
outputs a brief usage help including the args.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1485
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #2 on: November 07, 2023, 12:55:00 pm »
Next time use code tags (the # in the composing window).

Have you executed update32_64.bat? After compiling, you must change to the 'src' folder and execute update32_64.bat (or update32.bat if you created a 32-bit C::B). If using Powershit then you must write ./update32_64.bat or the script will not be found.

EDIT: After that, if the segmentation fault persists attach the RPT file (it should be near the executable) or execute C::B with GDB.
« Last Edit: November 07, 2023, 01:48:42 pm by Miguel Gimenez »

Offline manugoswami

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #3 on: November 08, 2023, 07:19:20 am »
Hi,

Many Thanks for response. Kindly find below progress update

1st
======================================
codeblocks --safe-mode  , this worked and codeblocks started
codeblocks --help , this worked and all options were visible.

2nd
======================================
update32_64.bat  -- ran below errors

$ ./update31_64.bat
Creating output directory tree
Make dir devel31_64\share\CodeBlocks\compilers
Make dir devel31_64\share\CodeBlocks\lexers
Make dir devel31_64\share\CodeBlocks\images
Make dir devel31_64\share\CodeBlocks\images\settings
Make dir devel31_64\share\CodeBlocks\plugins
Make dir devel31_64\share\CodeBlocks\templates
Make dir devel31_64\share\CodeBlocks\templates\wizard
Make dir devel31_64\share\CodeBlocks\scripts
Make dir devel31_64\share\CodeBlocks\scripts\tests
Make dir output31_64\share\CodeBlocks\compilers
Make dir output31_64\share\CodeBlocks\lexers
Make dir output31_64\share\CodeBlocks\images
Make dir output31_64\share\CodeBlocks\images\settings
Make dir output31_64\share\CodeBlocks\plugins
Make dir output31_64\share\CodeBlocks\templates
Make dir output31_64\share\CodeBlocks\templates\wizard
Make dir output31_64\share\CodeBlocks\scripts
Make dir output31_64\share\CodeBlocks\scripts\tests
Compressing core UI resources
Compressing plugins UI resources
Packing core UI bitmaps
Packing plugins UI bitmaps
Copying default files
Copying files of several contrib plugins
Copying files of several contrib plugins settings
Transferring executable files from devel to output folder
File not found - *.exe
Transferring DLL files from devel to output folder
File not found - *.dll
Transferring LIB files from devel to output folder
File not found - *.a
Transferring DLL plugin files from devel to output folder
File not found - *.dll
Stripping debug info from output tree
strip: 'output31_64\*.exe': No such file
strip: 'output31_64\*.dll': No such file
strip: 'output31_64\share\CodeBlocks\plugins\*.dll': No such file
Copying help files
Copying crash handler files

3                                           gdb dump of segmentation fault below
===============================================
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\codeblocks.exe
[New Thread 16292.0x17bc]
[New Thread 16292.0x2f90]
[New Thread 16292.0x1ae0]
[New Thread 16292.0x22d0]
[New Thread 16292.0x28b8]
[New Thread 16292.0x828]
[New Thread 16292.0x3a14]
[New Thread 16292.0x3a94]
[New Thread 16292.0x3c8c]
[New Thread 16292.0x3cb8]
warning: ../../src/msw/bitmap.cpp(1611): assert ""bitmap.IsOk()"" failed in Create(): invalid bitmap in wxMask::Create
[New Thread 16292.0x3de4]
[Thread 16292.0x3de4 exited with code 0]
warning: ../../src/msw/dib.cpp(155): assert ""hbmp"" failed in Create(): wxDIB::Create(): invalid bitmap
[New Thread 16292.0x371c]
[Thread 16292.0x371c exited with code 0]
warning: ../../src/common/image.cpp(2209): assert ""IsOk()"" failed in GetAlpha(): invalid image
[New Thread 16292.0x3fb8]
[Thread 16292.0x3fb8 exited with code 0]
warning: ../../src/common/image.cpp(2209): assert ""IsOk()"" failed in GetAlpha(): invalid image
[New Thread 16292.0x3f50]
[Thread 16292.0x3f50 exited with code 0]
warning: ../../src/common/image.cpp(2191): assert ""IsOk()"" failed in SetAlpha(): invalid image
[New Thread 16292.0x2214]
[Thread 16292.0x2214 exited with code 0]

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ff8c1e1257c in wxImage::InitAlpha() ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\devel32_64\wxmsw32u_gcc_custom.dll

==================================================================

Kind regards,
Manu

Online stahta01

  • Lives here!
  • ****
  • Posts: 7513
    • My Best Post
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #4 on: November 08, 2023, 08:49:34 am »
Please use the # when posting code. See image at https://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28general%29#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F
Please decide what version of wxWidgets you wish to use and then tell us the one you are using.
Please run the update32_64.bat if that is the batch file you tell us you ran instead of update31_64.bat which looks like the one you ran

Tim S.
« Last Edit: November 08, 2023, 08:51:21 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1485
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #5 on: November 08, 2023, 08:50:07 am »
Remember:
Quote
Next time use code tags (the # in the composing window).

You are mixing 31_64 with 32_64, so the update fails. Use one or the other depending on the wxWidgets version used.
Code
update32_64.bat  -- ran below errors

$ ./update31_64.bat

Creating output directory tree
Make dir devel31_64\share\CodeBlocks\compilers
...
Transferring executable files from devel to output folder
File not found - *.exe
...

Offline manugoswami

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #6 on: November 08, 2023, 10:37:39 am »
Hi,

Many Thanks i ran correct update. Codeblocks now runs in safe mode with more windows opening, still it crashes in normal mode with below gdb output

I am running ...
 Code::Blocks svn build  rev 13387 Nov  7 2023, 13:36:39 - wxWidgets 3.2.3 - gcc 13.2.0 (Windows, unicode) - 64 bit (in mingw64 window)


When I ...
gdb codeblocks.exe

Description of problem...
Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ff8c1ea257c in wxmsw32u_gcc_custom!_ZN7wxImage9InitAlphaEv ()

Build log:...
Code
Paste full build log here. (It is found in the 'Build log' tab). Please make always a 'rebuild' (Menu: Build->Rebuild) or a 'clean' and 'build' before you copy the full build log. 

Crash report: ...
[New Thread 13392.0x2364]
[New Thread 13392.0xd68]
[New Thread 13392.0x2194]
[New Thread 13392.0x3b44]
[New Thread 13392.0x3280]
[New Thread 13392.0x2018]
[New Thread 13392.0x27e0]
[New Thread 13392.0x39a4]
[New Thread 13392.0x1d2c]
[New Thread 13392.0x39dc]
warning: ../../src/msw/bitmap.cpp(1611): assert ""bitmap.IsOk()"" failed in Create(): invalid bitmap
 in wxMask::Create
[New Thread 13392.0x3e14]
[Thread 13392.0x3e14 exited with code 0]
warning: ../../src/msw/dib.cpp(155): assert ""hbmp"" failed in Create(): wxDIB::Create(): invalid bi
tmap
[New Thread 13392.0x2748]
[Thread 13392.0x2748 exited with code 0]
warning: ../../src/common/image.cpp(2209): assert ""IsOk()"" failed in GetAlpha(): invalid image
[New Thread 13392.0x43bc]
[Thread 13392.0x43bc exited with code 0]
warning: ../../src/common/image.cpp(2209): assert ""IsOk()"" failed in GetAlpha(): invalid image
[New Thread 13392.0x3c44]
[Thread 13392.0x3c44 exited with code 0]
warning: ../../src/common/image.cpp(2191): assert ""IsOk()"" failed in SetAlpha(): invalid image
[New Thread 13392.0x2fe4]
[Thread 13392.0x2fe4 exited with code 0]

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ff8c1ea257c in wxmsw32u_gcc_custom!_ZN7wxImage9InitAlphaEv ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\wxmsw32u_gcc_custom.dll
(gdb) Quit (expect signal SIGINT when the program is resumed)



I have already tried ...
List of attempted solutions.
... but none of them worked.

Kind regards,
Manu

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1485
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #7 on: November 08, 2023, 12:18:15 pm »
After you get the segmentation fault execute "bt" and post the result here. Use codeblocks.exe from the devel32_64 folder.

Offline manugoswami

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #8 on: November 08, 2023, 12:36:04 pm »
Hi,
Kindly find backtrace below

bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb

(gdb) bt
#0  0x00007ff8c1ea257c in wxmsw32u_gcc_custom!_ZN7wxImage9InitAlphaEv ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\wxmsw32u_gcc_custom.dll
#1  0x00007ff8c1ccd358 in wxmsw32u_gcc_custom!_ZN11wxImageList19GetImageListBitmapsERNS_12wxMSWBitma
psERK8wxBitmapS4_ ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\wxmsw32u_gcc_custom.dll
#2  0x00007ff8c1ccd5e8 in wxmsw32u_gcc_custom!_ZN11wxImageList3AddERK8wxBitmapS2_ ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\wxmsw32u_gcc_custom.dll
#3  0x00007ff8db3586a5 in ?? ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\share\codeblocks\plugins\code
completion.dll
#4  0x00007ff8db35881b in ?? ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\share\codeblocks\plugins\code
completion.dll
#5  0x00007ff8db35b06c in ?? ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\share\codeblocks\plugins\code
completion.dll
#6  0x00007ff8db31ab6f in ?? ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\share\codeblocks\plugins\code
completion.dll
#7  0x00007ff8db35f4f1 in ?? ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\share\codeblocks\plugins\code
completion.dll
#8  0x00007ff8db32f830 in ?? ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\share\codeblocks\plugins\code
completion.dll
#9  0x00007ff8d80384df in codeblocks!_ZN8cbPlugin6AttachEv ()
--Type <RET> for more, q to quit, c to continue without paging--
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\codeblocks.dll
#10 0x00007ff8d81049af in codeblocks!_ZN13PluginManager12AttachPluginEP8cbPluginb ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\codeblocks.dll
#11 0x00007ff8d810cefa in codeblocks!_ZN13PluginManager14LoadAllPluginsEv ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\codeblocks.dll
#12 0x00007ff6f61e4c34 in ?? ()
#13 0x00007ff6f61dcc81 in ?? ()
#14 0x00007ff6f61731a0 in ?? ()
#15 0x00007ff6f6174aa3 in ?? ()
#16 0x00007ff6f6290755 in ?? ()
#17 0x00007ff8c1b2c7f2 in wxmsw32u_gcc_custom!_Z12wxInitializeRiPPc ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn\src\output32_64\wxmsw32u_gcc_custom.dll
#18 0x00007ff6f6172479 in ?? ()
#19 0x00007ff6f61712ee in ?? ()
#20 0x00007ff6f61713e6 in ?? ()
#21 0x00007ff934b87344 in KERNEL32!BaseThreadInitThunk () from C:\WINDOWS\System32\kernel32.dll
#22 0x00007ff9351e26b1 in ntdll!RtlUserThreadStart () from C:\WINDOWS\SYSTEM32\ntdll.dll
#23 0x0000000000000000 in ?? ()


kind regards,
Manu

Offline blauzahn

  • Almost regular
  • **
  • Posts: 150
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #9 on: November 08, 2023, 12:45:43 pm »
looks like the segfault is at least indirectly triggered by the plugin codecompletion. Can you please try to rename codecompletion.dll so that cb does not find it during startup.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1485
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #10 on: November 08, 2023, 01:06:42 pm »
I told you to use the devel_32 executable. I also told you to use code tags. Please follow instructions if you really want help.

The output32_64 folder may be corrupted by previous actions. I would delete the ns_codeblocks_2003_svn folder, checkout trunk again (because there is a commit related to this) and compile the workspace. Do not forget going to src and executing update32_64.bat before running the new C::B.

Offline manugoswami

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #11 on: November 09, 2023, 08:57:39 am »
Hi,

Rebuilt again everything but segmentation fault is still there.

Kindly advise most urgently.

Kind regards,
Manu

Code
$ gdb codeblocks.exe
GNU gdb (GDB) 13.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from codeblocks.exe...
(gdb) r
Starting program: D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\codeblocks.ex
e
[New Thread 17000.0x3150]
[New Thread 17000.0x3e6c]
[New Thread 17000.0x1c30]
[New Thread 17000.0x43d4]
[New Thread 17000.0x4290]
[New Thread 17000.0x3590]
[New Thread 17000.0x3c70]
[New Thread 17000.0x1c7c]
[New Thread 17000.0x41e4]
[New Thread 17000.0x9c0]
warning: ../../src/msw/bitmap.cpp(1611): assert ""bitmap.IsOk()"" failed in Create(): invalid bitmap
 in wxMask::Create
[New Thread 17000.0x2330]
[Thread 17000.0x2330 exited with code 0]
warning: ../../src/msw/dib.cpp(155): assert ""hbmp"" failed in Create(): wxDIB::Create(): invalid bi
tmap
warning: ../../src/common/image.cpp(2209): assert ""IsOk()"" failed in GetAlpha(): invalid image
warning: ../../src/common/image.cpp(2209): assert ""IsOk()"" failed in GetAlpha(): invalid image
warning: ../../src/common/image.cpp(2191): assert ""IsOk()"" failed in SetAlpha(): invalid image

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00007ffc28d5257c in wxImage::InitAlpha() ()
   from D:\ons_codeblocks_msys\ons_wxWidgets_323_master\lib\gcc_dll\wxmsw32u_gcc_custom.dll
(gdb) bt
#0  0x00007ffc28d5257c in wxImage::InitAlpha() ()
   from D:\ons_codeblocks_msys\ons_wxWidgets_323_master\lib\gcc_dll\wxmsw32u_gcc_custom.dll
#1  0x00007ffc28b7d358 in wxImageList::GetImageListBitmaps(wxImageList::wxMSWBitmaps&, wxBitmap cons
t&, wxBitmap const&) ()
   from D:\ons_codeblocks_msys\ons_wxWidgets_323_master\lib\gcc_dll\wxmsw32u_gcc_custom.dll
#2  0x00007ffc28b7d5e8 in wxImageList::Add(wxBitmap const&, wxBitmap const&) ()
   from D:\ons_codeblocks_msys\ons_wxWidgets_323_master\lib\gcc_dll\wxmsw32u_gcc_custom.dll
#3  0x00007ffc3d8c86d5 in AddToImageList(wxImageList*, wxString const&, int) ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\share\codeblocks\plugin
s\codecompletion.dll
#4  0x00007ffc3d8c884b in LoadImageList(int) ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\share\codeblocks\plugin
s\codecompletion.dll
#5  0x00007ffc3d8cb09c in NativeParser::GetImageList(int) ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\share\codeblocks\plugin
s\codecompletion.dll
#6  0x00007ffc3d88ab6f in ClassBrowser::ClassBrowser(wxWindow*, NativeParser*) ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\share\codeblocks\plugin
s\codecompletion.dll
#7  0x00007ffc3d8cf521 in NativeParser::CreateClassBrowser() ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\share\codeblocks\plugin
s\codecompletion.dll
#8  0x00007ffc3d89f830 in CodeCompletion::OnAttach() ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\share\codeblocks\plugin
s\codecompletion.dll
#9  0x00007ffc3cd584df in cbPlugin::Attach() ()
--Type <RET> for more, q to quit, c to continue without paging--
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\codeblocks.dll
#10 0x00007ffc3ce249af in PluginManager::AttachPlugin(cbPlugin*, bool) ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\codeblocks.dll
#11 0x00007ffc3ce2cefa in PluginManager::LoadAllPlugins() ()
   from D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\codeblocks.dll
#12 0x00007ff6739c4c34 in MainFrame::ScanForPlugins() ()
#13 0x00007ff6739bcc81 in MainFrame::MainFrame(wxWindow*) ()
#14 0x00007ff6739531a0 in CodeBlocksApp::InitFrame() ()
#15 0x00007ff673954aa3 in CodeBlocksApp::OnInit() ()
#16 0x00007ff673a70755 in wxAppConsoleBase::CallOnInit() ()
#17 0x00007ffc289dc7f2 in wxEntryReal(int&, wchar_t**) ()
   from D:\ons_codeblocks_msys\ons_wxWidgets_323_master\lib\gcc_dll\wxmsw32u_gcc_custom.dll
#18 0x00007ff673952479 in WinMain ()
#19 0x00007ff6739512ee in __tmainCRTStartup ()
    at C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:267
#20 0x00007ff6739513e6 in WinMainCRTStartup ()
    at C:/M/B/src/mingw-w64/mingw-w64-crt/crt/crtexe.c:157


Online Commaster

  • Almost regular
  • **
  • Posts: 169
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #12 on: November 09, 2023, 09:08:45 am »
Simply rename the file
Code
D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\share\codeblocks\plugins\codecompletion.dll
as advised by @blauzahn, for now

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1485
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #13 on: November 09, 2023, 10:04:42 am »
Does codecompletion.zip exist in share\CodeBlocks?
Do you have zip.exe in your path?

Offline manugoswami

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #14 on: November 09, 2023, 11:09:39 am »
Hi,

Thanks for the reply.

After renaming codecompletion.dll to --codecompletion.dll, codeblocks starts normally. only issue is images are missing.

Yes codecompletion.zip exiss in share\codeblocks.
zip.exe command runs so zip.exe should be in path.

kindly share how to resolve this error.

Kind regards,
Manu

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1485
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #15 on: November 09, 2023, 11:54:08 am »
The plugin is unable to find the images, hence the exceptions.

Does codecompletion.zip contain 50 SVG files in the images\svg folder?. I refer to the file in the 'share\Codeblocks' folder near the executable.

Thanks for the GDB report, I have just commited a fix for that exception, see r13391. If you update to current trunk the CodeCompletion plugin should work (or give a new exception).

Offline manugoswami

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #16 on: November 10, 2023, 04:44:40 am »
Hi,

Many Thanks. This worked and all plugins of codeblocks are enabled

2 problems remain. First is several image files are not loaded (one line i have mentioned below complete log is in attachment), and Second when i tried to build on another computer this line fails

zip -jq9 devel32_64\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc"



Code
cbLoadBitmapBundleFromSVG: Cannot load 'D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\output32_64\share\codeblocks/resources.zip#zip:/images/svg/dbgstepi.svg'

Kind regards,
Manu


Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1485
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #17 on: November 10, 2023, 12:03:55 pm »
Looks like all images fail to load, That is a problem in your side, I still suspect of zip.exe not being found. Verify the zip files under output32_64\share\codeblocks are there (for example resources.zip) and have valid images in the svg folder.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7513
    • My Best Post
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #18 on: November 10, 2023, 03:44:07 pm »
Looks like all images fail to load, That is a problem in your side, I still suspect of zip.exe not being found. Verify the zip files under output32_64\share\codeblocks are there (for example resources.zip) and have valid images in the svg folder.

If the all zip files are missing, then verify you have a good zip command in the PATH.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline manugoswami

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #19 on: November 10, 2023, 05:29:54 pm »
Hi,

Many thanks again for the reply. I am getting confused regarding setting zip file and its path. on 2nd computer i have set the path of zip.exe in environment variables.(path to C:\ons_msys64\usr\bin\zip.exe) and on running zip.exe i get below message. I dont know if this is the correct zip.exe. Build gets stuck up on 2nd computer at this level even when both computers have same zip.exe. Kindly help to resolve this. (zip.exe backslash problem)


Code
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
Zip 3.0 (July 5th 2008). Usage:
zip [-options] [-b path] [-t mmddyyyy] [-n suffixes] [zipfile list] [-xi list]
  The default action is to add or replace zipfile entries from list, which
  can include the special name - to compress standard input.
  If zipfile and list are omitted, zip compresses stdin to stdout.
  -f   freshen: only changed files  -u   update: only changed or new files
  -d   delete entries in zipfile    -m   move into zipfile (delete OS files)
  -r   recurse into directories     -j   junk (don't record) directory names
  -0   store only                   -l   convert LF to CR LF (-ll CR LF to LF)
  -1   compress faster              -9   compress better
  -q   quiet operation              -v   verbose operation/print version info
  -c   add one-line comments        -z   add zipfile comment
  -@   read names from stdin        -o   make zipfile as old as latest entry
  -x   exclude the following names  -i   include only the following names
  -F   fix zipfile (-FF try harder) -D   do not add directory entries
  -A   adjust self-extracting exe   -J   junk zipfile prefix (unzipsfx)
  -T   test zipfile integrity       -X   eXclude eXtra file attributes
  -y   store symbolic links as the link instead of the referenced file
  -e   encrypt                      -n   don't compress these suffixes
  -h2  show more help

Code
zip -jq9 devel32_64\share\CodeBlocks\manager_resources.zip sdk\resources\*.xrc
cmd /c "cd sdk\resources & zip -0 -q ..\..\devel32_64\share\CodeBlocks\manager_resources.zip images\*.png images\8x8\*.png images\10x10\*.png images\12x12\*.png images\16x16\*.png images\20x20\*.png images\24x24\*.png images\28x28\*.png images\32x32\*.png images\40x40\*.png images\48x48\*.png images\56x56\*.png images\64x64\*.png images\svg\*.svg"
zip error: Nothing to do! (devel32_64\share\CodeBlocks\manager_resources.zip)


Kind regards,
manu
« Last Edit: November 10, 2023, 05:31:36 pm by manugoswami »

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1485
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #20 on: November 10, 2023, 05:54:13 pm »
When zip says "Nothing to do" means "I did not find any file to compress". Check if this files
Code
images\*.png images\8x8\*.png images\10x10\*.png images\12x12\*.png images\16x16\*.png images\20x20\*.png images\24x24\*.png images\28x28\*.png images\32x32\*.png images\40x40\*.png images\48x48\*.png images\56x56\*.png images\64x64\*.png images\svg\*.svg
are in src\sdk\resources. My 'images' folder contains 69 files and 13 folders.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7513
    • My Best Post
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #21 on: November 10, 2023, 06:01:48 pm »
When zip says "Nothing to do" means "I did not find any file to compress". Check if this files
Code
images\*.png images\8x8\*.png images\10x10\*.png images\12x12\*.png images\16x16\*.png images\20x20\*.png images\24x24\*.png images\28x28\*.png images\32x32\*.png images\40x40\*.png images\48x48\*.png images\56x56\*.png images\64x64\*.png images\svg\*.svg
are in src\sdk\resources. My 'images' folder contains 69 files and 13 folders.

I think I had this problem when using a bad zip command; example the zip command from MSys2 had an issue like this.
Edit: The MSys2 zip expects to be ran under sh.exe instead of cmd.exe; therefore it has issuses with backslash and wildcards "\*".

Tim S.
« Last Edit: November 10, 2023, 06:04:02 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline manugoswami

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #22 on: November 10, 2023, 06:10:39 pm »
Hi,

Many Many thanks for your support. I have finally understood and resolved the zip issue though the some images are still not loading.

There need to be TWO versions of gnuwin32 zip.exe on the persons computers. The first is the windows version in C or D drive and second is the gnuwin32 of MSYS2.
The zip of c or d drive should be in PATH but MSYS2 zip.exe should NOT be in path. Everything will work fine then.

codeblocks is a nice IDE. I was very much impressed by emacs-w32 also. Hope we can integrate both and make more wonderful codeblocks  + emacs w32 combined !  8)

Only image problem is remaining.

Kind regards,
Manu

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1485
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #23 on: November 10, 2023, 06:13:58 pm »
You must rebuild the whole workspace so the correct zip is called. Afterwards, change to 'src' and run 'update32_64.bat' again.

Online stahta01

  • Lives here!
  • ****
  • Posts: 7513
    • My Best Post
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #24 on: November 10, 2023, 07:04:09 pm »
In my CB toolchain setting additional paths I have this entry first to fix issues with zip.
Code
C:\misctools\zip

The above is where I extracted an zip command that works with cmd.exe.
Edit: The batch file and some CB projects both need a good zip command.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline manugoswami

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #25 on: November 11, 2023, 07:38:06 am »
Hi,

I have rectified the zip issue completely for resources. The correct command is below. Kindly modify your project file accordingly.

in D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\src\resources
zip -rq resources.zip . -i \*.xrc \*.svg

and in D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\plugins\codecompletion\resources
zip -rq codecompletion.zip . -i manifest.xml \*.xrc  \*.svg

Now codeblocks build is complete. This issue is closed
Many Thanks again to all for support.


Kind regards,
Manu




Online stahta01

  • Lives here!
  • ****
  • Posts: 7513
    • My Best Post
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #26 on: November 11, 2023, 10:09:38 am »
Hi,

I have rectified the zip issue completely for resources. The correct command is below. Kindly modify your project file accordingly.

in D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\src\resources
zip -rq resources.zip . -i \*.xrc \*.svg

and in D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\plugins\codecompletion\resources
zip -rq codecompletion.zip . -i manifest.xml \*.xrc  \*.svg

Now codeblocks build is complete. This issue is closed
Many Thanks again to all for support.


Kind regards,
Manu

Please ignore this suggestion; the user is likely still using the bad zip command from MSys2.

Tim S.
« Last Edit: November 11, 2023, 10:17:02 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline manugoswami

  • Multiple posting newcomer
  • *
  • Posts: 12
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #27 on: November 11, 2023, 10:19:05 am »
Hi Tim,

Kindly share meaning of bad zip command as it is standard msys2 and gnuwin32 zip exes.

Kindly regards,
Manu

Online stahta01

  • Lives here!
  • ****
  • Posts: 7513
    • My Best Post
Re: Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault
« Reply #28 on: November 11, 2023, 10:24:22 am »
Hi Tim,

Kindly share meaning of bad zip command as it is standard msys2 and gnuwin32 zip exes.

Kindly regards,
Manu

The project works for several people that does not have MSys2 installed; it works for me with MSys2 installed; but, I have the path to a good zip in the CB toolchain setting as I already posted.

If the update batch is having zip problem you need to make sure the good zip is in the PATH of the cmd.exe
If CB is having problems with zips then you need to add the path to the zip command to the toolchain additional paths.
Edit: Link CB Wiki likely where I got my zip command https://wiki.codeblocks.org/index.php/MinGW_installation#ZIP

Tim S.
« Last Edit: November 11, 2023, 10:27:49 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org