Remember:
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.
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
...
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:...
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
Hi,
Rebuilt again everything but segmentation fault is still there.
Kindly advise most urgently.
Kind regards,
Manu
$ 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
Simply rename the file D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\share\codeblocks\plugins\codecompletion.dll
as advised by @blauzahn, for now
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"
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
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)
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
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
When zip says "Nothing to do" means "I did not find any file to compress". Check if this files
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.