User forums > Help

Code Blocks -- Mingw64 - run error -- CodeComSegmentation fault

<< < (3/6) > >>

Miguel Gimenez:
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.

manugoswami:
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


--- End code ---

Commaster:
Simply rename the file
--- Code: ---D:\ons_codeblocks_msys\ons_codeblocks_2003_svn_master\src\devel32_64\share\codeblocks\plugins\codecompletion.dll
--- End code ---
as advised by @blauzahn, for now

Miguel Gimenez:
Does codecompletion.zip exist in share\CodeBlocks?
Do you have zip.exe in your path?

manugoswami:
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

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version