Author Topic: Error while codeblocks starts  (Read 3441 times)

Offline ithecourier

  • Single posting newcomer
  • *
  • Posts: 2
Error while codeblocks starts
« on: October 23, 2012, 10:55:27 pm »
Hello everyone.i'm getting an error every time i start codeblocks.The error is this:"/src/gtk/bitmap.cpp(570): assert "image.IsOk()" failed in wxBitmap(): invalid image".
This error occurs with latest wxPython also.
Full backtrace log here: http://pastebin.com/Mmic4Nsr.
I'm on Slackware 14.0 i'm using the latest wxWidgets and the latest build of codeblocks from svn.
When i compile with wxPython or wxGTK 2.8 codeblocks doesn't give me this error.
My configuration while i build wxWidgets and codeblocks is --enable-shared --enable-unicode --with-opengl --with-gtk=2 for wxWidgets
and --disable-static --with-contrib-plugins=all for codeblocks
Do i need to implement any other option?
Any advice will be appreciated.
I also want to apologize for my bad English and to thank you for this GREAT and FREE piece of software
« Last Edit: October 23, 2012, 10:57:58 pm by ithecourier »

ryanvade

  • Guest
Re: Error while codeblocks starts
« Reply #1 on: October 26, 2012, 02:28:42 am »
I am also getting this error. Are you building from the SVN? I am currently re-making codeblocks right now.
I am on Fedora 17 64bit.
Project wizard added for 'PowerPC Project'
../src/gtk/bitmap.cpp(570): assert "image.IsOk()" failed in wxBitmap(): invalid image
../src/gtk/bitmap.cpp(570): assert "image.IsOk()" failed in wxBitmap(): invalid image
Project wizard added for 'MCS51 Project'
« Last Edit: October 26, 2012, 02:30:51 am by ryanvade »

Offline ithecourier

  • Single posting newcomer
  • *
  • Posts: 2
Re: Error while codeblocks starts
« Reply #2 on: October 26, 2012, 04:45:18 am »
Yes i'm using the SVN.I've noticed that the app keeps running after i stop it and consumes about 50-60% cpu.I must use the killall command to terminate it.
Also when i create a new .cpp file and i start writing,for example #include <ios cursor hangs there and the app chushing.
Same thing happens when i compile latest SVN with wxWidgets 2.8 and wxWidgets 2.9.When i compile 8408 with wxGTK 2.8 or
wxPython 2.8 everything working well.
Is this some kind of memory leak?

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7164
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: Error while codeblocks starts
« Reply #3 on: October 26, 2012, 09:45:48 am »
C::B is not (yet) fully compatible with wx2.9 .
We are working on it, but wx2.9 is a development version and many things have changed, and as it is work in progress, many things will change before 3.0 release and there will surely be some more places where backward-compatibility will be broken.

Offline rcoll

  • Almost regular
  • **
  • Posts: 150
Re: Error while codeblocks starts
« Reply #4 on: March 16, 2017, 12:16:20 am »
It has been a while ...
But is this still an issue?  I'm building wxWidgets 3.10, with Code::Blocks (svn 10922), using TDM GCC 5.1.0 (32-bit).
Everything seems to build OK, but then I get this same error on startup.

I've seen several people mention this issue on several different web-sites, but never saw a real resolution to the problem.
Any Ideas?

Ringo

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10019
Re: Error while codeblocks starts
« Reply #5 on: March 16, 2017, 12:42:04 am »
I don't see this problem on linux with wx3.0 and 3.1. Can you attach a debugger and tell us what file is failing to load?
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline rcoll

  • Almost regular
  • **
  • Posts: 150
Re: Error while codeblocks starts
« Reply #6 on: March 16, 2017, 05:44:50 pm »
It's not that something is failing to load, but rather that there is a problem with "CreateImageFromBits()".  I have attached a couple of pics of the pop-up messages, and also the CodeBlocks.rpt file.  But, the report file is misleading, since it seems to indicate a problem with the "FortranProject".  This is not the case; if I leave out the FortranProject, the same problem just appears somewhere else.  If I leave out ALL the add-on projects, the problem appears in "ProjectManagerUI" (part of the core CodeBlocks).

Has nobody else ever seen anything like this?

Thanks,
Ringo

-------------------

Error occured on Thursday, March 16, 2017 at 09:11:24.

codeblocks.exe caused a Breakpoint at location 00CA5C7D in module wxmsw310ud_gcc_custom.dll.

Registers:
eax=00000001 ebx=0028dd70 ecx=7efdd000 edx=00000000 esi=0028dcc0 edi=0028e760
eip=00ca5c7d esp=0028db80 ebp=0028dcd8 iopl=0         nv up ei pl nz na pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00200202

AddrPC   Params
00CA5C7D 0028DDEC FFFFFFFF 00000000  wxmsw310ud_gcc_custom.dll!CreateFromImage  [C:/Local/wxWidgets310/build/msw/../../src/msw/bitmap.cpp @ 830]
   828: bool wxBitmap::CreateFromImage(const wxImage& image, int depth, WXHDC hdc)
   829: {
>  830:     wxCHECK_MSG( image.IsOk(), false, wxT("invalid image") );
   831:
   832:     UnRef();
00CA5AEE 0028DDEC FFFFFFFF 00000000  wxmsw310ud_gcc_custom.dll!CreateFromImage  [C:/Local/wxWidgets310/build/msw/../../src/msw/bitmap.cpp @ 810]
   808: bool wxBitmap::CreateFromImage(const wxImage& image, int depth)
   809: {
>  810:     return CreateFromImage(image, depth, 0);
   811: }
   812:
693E2CAD 0028DDEC FFFFFFFF 00000000  codeblocks.dll!wxBitmap::wxBitmap
69153BC5 0028DED4 0028E19C 0000000F  codeblocks.dll!cbLoadBitmap
63A5A2B3 121A0730 0028E738 0028E568  FortranProject.dll!FortranProject::BuildMenu
00474B53 15C6F788 00001F54 003777F8  codeblocks.exe!MainFrame::DoAddPlugin
004891D8 0028E978 00001F54 0028E8B8  codeblocks.exe!MainFrame::OnPluginLoaded
0053240F 0028E978 0028E8FC 0028E8D0  codeblocks.exe!cbEventFunctor<MainFrame, CodeBlocksEvent>::Call
6916BBCF 0028E978 00000000 00000000  codeblocks.dll!Manager::ProcessEvent
690A9FF4 00000000 0028EA98 00000000  codeblocks.dll!cbPlugin::Attach
6917AD7B 15C6F788 00000000 00000001  codeblocks.dll!PluginManager::AttachPlugin
69183370 15D0645C 00000002 00000001  codeblocks.dll!PluginManager::LoadAllPlugins
0046ED3A 0028F43C 0028F45C 00625120  codeblocks.exe!MainFrame::ScanForPlugins
00468606 00000000 11488018 11A09F10  codeblocks.exe!MainFrame::MainFrame
00403130 00000000 00000001 114F3E50  codeblocks.exe!CodeBlocksApp::InitFrame
00404DF9 00000000 0028FDDC 00000000  codeblocks.exe!CodeBlocksApp::OnInit
0053593A 01832BE0 11443020 0028FFC4  codeblocks.exe!wxAppConsoleBase::CallOnInit
00BD4E24 01832BE0 11443020 FFFFFFFE  wxmsw310ud_gcc_custom.dll!wxEntryReal  [C:/Local/wxWidgets310/build/msw/../../src/common/init.cpp @ 487]
   485:     {
   486:         // app initialization
>  487:         if ( !wxTheApp->CallOnInit() )
   488:         {
   489:             // don't call OnExit() if OnInit() failed
00C827B4 01832BE0 11443020 00AA7780  wxmsw310ud_gcc_custom.dll!wxEntry  [C:/Local/wxWidgets310/build/msw/../../src/msw/main.cpp @ 190]
   188: int wxEntry(int& argc, wxChar **argv)
   189: {
>  190:     return wxEntryReal(argc, argv);
   191: }
   192:
00C829FA 00400000 00000000 00000000  wxmsw310ud_gcc_custom.dll!wxEntry  [C:/Local/wxWidgets310/build/msw/../../src/msw/main.cpp @ 289]
   287:         return -1;
   288:
>  289:     return wxEntry(wxArgs.argc, wxArgs.argv);
   290: }
   291:
00402433 00400000 00000000 00A72AA5  codeblocks.exe!WinMain@16
005E6C6B 7EFDE000 00000000 7EFDE000  codeblocks.exe!main
004010FD 7EFDE000 73BA607D 00000000  codeblocks.exe!__mingw_CRTStartup
770B9902 004012A0 7EFDE000 00000000  ntdll.dll!RtlInitializeExceptionChain
770B98D5 004012A0 7EFDE000 00000000  ntdll.dll!RtlInitializeExceptionChain

codeblocks.exe   16.1.0.0
ntdll.dll      6.1.7601.23418
kernel32.dll   6.1.7601.23418
avghookx.dll   16.151.0.8007
KERNELBASE.dll   6.1.7601.23418
COMCTL32.DLL   6.10.7601.18837
msvcrt.dll     7.0.7601.17744
GDI32.dll      6.1.7601.23457
USER32.dll     6.1.7601.17514
ADVAPI32.dll   6.1.7601.23418
sechost.dll    6.1.7601.18839
RPCRT4.dll     6.1.7601.23452
SspiCli.dll    6.1.7601.23452
CRYPTBASE.dll   6.1.7601.23452
LPK.dll        6.1.7601.23453
USP10.dll      1.626.7601.19054
SHLWAPI.dll    6.1.7601.17514
SHELL32.DLL    6.1.7601.18952
SHFOLDER.DLL   6.1.7600.16385
wxmsw310ud_gcc_custom.dll   3.1.0.0
COMDLG32.DLL   6.1.7601.17514
OLE32.dll      6.1.7601.23392
OLEAUT32.DLL   6.1.7601.19144
VERSION.dll    6.1.7600.16385
WINMM.DLL      6.1.7601.17514
WINSPOOL.DRV   6.1.7601.17514
WSOCK32.DLL    6.1.7600.16385
WS2_32.dll     6.1.7601.23451
NSI.dll        6.1.7600.16385
exchndl.dll    0.8.0.0
mgwhelp.dll    0.8.0.0
dbghelp.dll    6.1.7601.17514
PSAPI.DLL      6.1.7600.16385
codeblocks.dll
IMM32.DLL      6.1.7601.17514
MSCTF.dll      6.1.7601.18731
uxtheme.dll    6.1.7600.16385
dwmapi.dll     6.1.7601.18917
CRYPTSP.dll    6.1.7601.18741
rsaenh.dll     6.1.7600.16385
RpcRtRemote.dll   6.1.7601.17514
CLBCatQ.DLL    2001.12.8530.16385
WindowsCodecs.dll   6.2.9200.21830
apphelp.dll    6.1.7601.18777
DropboxExt.14.0.dll   1.0.14.0
SETUPAPI.dll   6.1.7601.17514
CFGMGR32.dll   6.1.7601.17621
DEVOBJ.dll     6.1.7601.17621
propsys.dll    7.0.7601.17514
ntmarta.dll    6.1.7600.16385
WLDAP32.dll    6.1.7601.17514
thumbcache.dll   6.1.7601.17514
PhotoMetadataHandler.dll   6.1.7600.16385
TortoiseOverlays.dll   1.1.4.26626
api-ms-win-core-synch-l1-2-0.DLL   10.0.10586.9
TortoiseStub32.dll   1.9.5.27581
TortoiseSVN32.dll   1.9.5.27581
CRYPT32.dll    6.1.7601.18839
MSASN1.dll     6.1.7601.17514
WININET.dll    11.0.9600.18377
api-ms-win-downlevel-user32-l1-1-0.dll   6.2.9200.16492
api-ms-win-downlevel-shlwapi-l1-1-0.dll   6.2.9200.16492
api-ms-win-downlevel-version-l1-1-0.dll   6.2.9200.16492
api-ms-win-downlevel-normaliz-l1-1-0.dll   6.2.9200.16492
normaliz.DLL   6.1.7600.16385
iertutil.dll   11.0.9600.18377
api-ms-win-downlevel-advapi32-l1-1-0.dll   6.2.9200.16492
USERENV.dll    6.1.7601.17514
profapi.dll    6.1.7600.16385
msftedit.DLL   5.41.21.2510
abbreviations.dll
astyle.dll
autosave.dll
AutoVersioning.dll
BrowseTracker.dll
byogames.dll
cb_koders.dll
Cccc.dll
classwizard.dll
codecompletion.dll
codesnippets.dll
codestat.dll
compiler.dll
copystrings.dll
CppCheck.dll
Cscope.dll
debugger.dll
defaultmimehandler.dll
devpakupdater.dll
DoxyBlocks.dll   1.7.663.8397
DragScroll.dll
EditorConfig.dll
EditorTweaks.dll
envvars.dll
Exporter.dll
FileManager.dll
FortranProject.dll
headerfixup.dll
help_plugin.dll
HHCTRL.OCX     6.1.7600.16385
HexEditor.dll
IncrementalSearch.dll
keybinder.dll
lib_finder.dll
wxflatnotebook.dll
MouseSap.dll
OccurrencesHighlighting.dll
openfileslist.dll
Profiler.dll
ProjectOptionsManipulator.dll
projectsimporter.dll
RegExTestbed.dll
ReopenEditor.dll
rndgen.dll
scriptedwizard.dll
SmartIndentCpp.dll
SmartIndentFortran.dll
SmartIndentHDL.dll
SmartIndentLua.dll
SmartIndentPascal.dll
SmartIndentPython.dll
SmartIndentXML.dll
SpellChecker.dll
SymTab.dll
ThreadSearch.dll
wxcustombutton.dll
todo.dll
ToolsPlus.dll
xpmanifest.dll

Windows 6.1.7601
DrMingw 0.8.0

-------------------

Error occured on Thursday, March 16, 2017 at 09:30:44.

codeblocks.exe caused a Breakpoint at location 00965C7D in module wxmsw310ud_gcc_custom.dll.

Registers:
eax=00000001 ebx=0028dd70 ecx=7efdd000 edx=00000000 esi=0028dcc0 edi=0028e760
eip=00965c7d esp=0028db80 ebp=0028dcd8 iopl=0         nv up ei pl nz na pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00200202

AddrPC   Params
00965C7D 0028DDEC FFFFFFFF 00000000  wxmsw310ud_gcc_custom.dll!CreateFromImage  [C:/Local/wxWidgets310/build/msw/../../src/msw/bitmap.cpp @ 830]
   828: bool wxBitmap::CreateFromImage(const wxImage& image, int depth, WXHDC hdc)
   829: {
>  830:     wxCHECK_MSG( image.IsOk(), false, wxT("invalid image") );
   831:
   832:     UnRef();
00965AEE 0028DDEC FFFFFFFF 00000000  wxmsw310ud_gcc_custom.dll!CreateFromImage  [C:/Local/wxWidgets310/build/msw/../../src/msw/bitmap.cpp @ 810]
   808: bool wxBitmap::CreateFromImage(const wxImage& image, int depth)
   809: {
>  810:     return CreateFromImage(image, depth, 0);
   811: }
   812:
693E2CAD 0028DDEC FFFFFFFF 00000000  codeblocks.dll!wxBitmap::wxBitmap
69153BC5 0028DED4 0028E19C 0000000F  codeblocks.dll!cbLoadBitmap
63A5A2B3 12246D80 0028E738 0028E568  FortranProject.dll!FortranProject::BuildMenu
00474B53 15A45BB8 00001E74 0FD477F8  codeblocks.exe!MainFrame::DoAddPlugin
004891D8 0028E978 00001E74 0028E8B8  codeblocks.exe!MainFrame::OnPluginLoaded
0053240F 0028E978 0028E8FC 0028E8D0  codeblocks.exe!cbEventFunctor<MainFrame, CodeBlocksEvent>::Call
6916BBCF 0028E978 00000000 00000000  codeblocks.dll!Manager::ProcessEvent
690A9FF4 00000000 0028EA98 00000000  codeblocks.dll!cbPlugin::Attach
6917AD7B 15A45BB8 00000000 00000001  codeblocks.dll!PluginManager::AttachPlugin
69183370 15DEA9A4 00000002 00000001  codeblocks.dll!PluginManager::LoadAllPlugins
0046ED3A 0028F43C 0028F45C 00625120  codeblocks.exe!MainFrame::ScanForPlugins
00468606 00000000 116F8018 11749AF8  codeblocks.exe!MainFrame::MainFrame
00403130 00000000 00000001 11764458  codeblocks.exe!CodeBlocksApp::InitFrame
00404DF9 00000000 0028FDDC 00000000  codeblocks.exe!CodeBlocksApp::OnInit
0053593A 014F2BE0 116B3020 0028FFC4  codeblocks.exe!wxAppConsoleBase::CallOnInit
00894E24 014F2BE0 116B3020 FFFFFFFE  wxmsw310ud_gcc_custom.dll!wxEntryReal  [C:/Local/wxWidgets310/build/msw/../../src/common/init.cpp @ 487]
   485:     {
   486:         // app initialization
>  487:         if ( !wxTheApp->CallOnInit() )
   488:         {
   489:             // don't call OnExit() if OnInit() failed
009427B4 014F2BE0 116B3020 00767780  wxmsw310ud_gcc_custom.dll!wxEntry  [C:/Local/wxWidgets310/build/msw/../../src/msw/main.cpp @ 190]
   188: int wxEntry(int& argc, wxChar **argv)
   189: {
>  190:     return wxEntryReal(argc, argv);
   191: }
   192:
009429FA 00400000 00000000 00000000  wxmsw310ud_gcc_custom.dll!wxEntry  [C:/Local/wxWidgets310/build/msw/../../src/msw/main.cpp @ 289]
   287:         return -1;
   288:
>  289:     return wxEntry(wxArgs.argc, wxArgs.argv);
   290: }
   291:
00402433 00400000 00000000 00732AA5  codeblocks.exe!WinMain@16
005E6C6B 7EFDE000 00000000 7EFDE000  codeblocks.exe!main
004010FD 7EFDE000 73AB93A2 00000000  codeblocks.exe!__mingw_CRTStartup
770B9902 004012A0 7EFDE000 00000000  ntdll.dll!RtlInitializeExceptionChain
770B98D5 004012A0 7EFDE000 00000000  ntdll.dll!RtlInitializeExceptionChain

codeblocks.exe   16.1.0.0
ntdll.dll      6.1.7601.23418
kernel32.dll   6.1.7601.23418
avghookx.dll   16.151.0.8007
KERNELBASE.dll   6.1.7601.23418
COMCTL32.DLL   6.10.7601.18837
msvcrt.dll     7.0.7601.17744
GDI32.dll      6.1.7601.23457
USER32.dll     6.1.7601.17514
ADVAPI32.dll   6.1.7601.23418
sechost.dll    6.1.7601.18839
RPCRT4.dll     6.1.7601.23452
SspiCli.dll    6.1.7601.23452
CRYPTBASE.dll   6.1.7601.23452
LPK.dll        6.1.7601.23453
USP10.dll      1.626.7601.19054
SHLWAPI.dll    6.1.7601.17514
SHELL32.DLL    6.1.7601.18952
SHFOLDER.DLL   6.1.7600.16385
wxmsw310ud_gcc_custom.dll   3.1.0.0
COMDLG32.DLL   6.1.7601.17514
OLE32.dll      6.1.7601.23392
OLEAUT32.DLL   6.1.7601.19144
VERSION.dll    6.1.7600.16385
WINMM.DLL      6.1.7601.17514
WINSPOOL.DRV   6.1.7601.17514
WSOCK32.DLL    6.1.7600.16385
WS2_32.dll     6.1.7601.23451
NSI.dll        6.1.7600.16385
exchndl.dll    0.8.0.0
mgwhelp.dll    0.8.0.0
dbghelp.dll    6.1.7601.17514
PSAPI.DLL      6.1.7600.16385
codeblocks.dll
IMM32.DLL      6.1.7601.17514
MSCTF.dll      6.1.7601.18731
uxtheme.dll    6.1.7600.16385
dwmapi.dll     6.1.7601.18917
CRYPTSP.dll    6.1.7601.18741
rsaenh.dll     6.1.7600.16385
RpcRtRemote.dll   6.1.7601.17514
CLBCatQ.DLL    2001.12.8530.16385
WindowsCodecs.dll   6.2.9200.21830
apphelp.dll    6.1.7601.18777
DropboxExt.14.0.dll   1.0.14.0
SETUPAPI.dll   6.1.7601.17514
CFGMGR32.dll   6.1.7601.17621
DEVOBJ.dll     6.1.7601.17621
propsys.dll    7.0.7601.17514
ntmarta.dll    6.1.7600.16385
WLDAP32.dll    6.1.7601.17514
thumbcache.dll   6.1.7601.17514
PhotoMetadataHandler.dll   6.1.7600.16385
TortoiseOverlays.dll   1.1.4.26626
api-ms-win-core-synch-l1-2-0.DLL   10.0.10586.9
TortoiseStub32.dll   1.9.5.27581
TortoiseSVN32.dll   1.9.5.27581
CRYPT32.dll    6.1.7601.18839
MSASN1.dll     6.1.7601.17514
WININET.dll    11.0.9600.18377
api-ms-win-downlevel-user32-l1-1-0.dll   6.2.9200.16492
api-ms-win-downlevel-shlwapi-l1-1-0.dll   6.2.9200.16492
api-ms-win-downlevel-version-l1-1-0.dll   6.2.9200.16492
api-ms-win-downlevel-normaliz-l1-1-0.dll   6.2.9200.16492
normaliz.DLL   6.1.7600.16385
iertutil.dll   11.0.9600.18377
api-ms-win-downlevel-advapi32-l1-1-0.dll   6.2.9200.16492
USERENV.dll    6.1.7601.17514
profapi.dll    6.1.7600.16385
msftedit.DLL   5.41.21.2510
abbreviations.dll
astyle.dll
autosave.dll
AutoVersioning.dll
BrowseTracker.dll
byogames.dll
cb_koders.dll
Cccc.dll
classwizard.dll
codecompletion.dll
codesnippets.dll
codestat.dll
compiler.dll
copystrings.dll
CppCheck.dll
Cscope.dll
debugger.dll
defaultmimehandler.dll
devpakupdater.dll
DoxyBlocks.dll   1.7.663.8397
DragScroll.dll
EditorConfig.dll
EditorTweaks.dll
envvars.dll
Exporter.dll
FileManager.dll
FortranProject.dll
headerfixup.dll
help_plugin.dll
HHCTRL.OCX     6.1.7600.16385
HexEditor.dll
IncrementalSearch.dll
keybinder.dll
lib_finder.dll
wxflatnotebook.dll
MouseSap.dll
OccurrencesHighlighting.dll
openfileslist.dll
Profiler.dll
ProjectOptionsManipulator.dll
projectsimporter.dll
RegExTestbed.dll
ReopenEditor.dll
rndgen.dll
scriptedwizard.dll
SmartIndentCpp.dll
SmartIndentFortran.dll
SmartIndentHDL.dll
SmartIndentLua.dll
SmartIndentPascal.dll
SmartIndentPython.dll
SmartIndentXML.dll
SpellChecker.dll
SymTab.dll
ThreadSearch.dll
wxcustombutton.dll
todo.dll
ToolsPlus.dll
xpmanifest.dll

Windows 6.1.7601
DrMingw 0.8.0


Offline rcoll

  • Almost regular
  • **
  • Posts: 150
Re: Error while codeblocks starts
« Reply #7 on: March 16, 2017, 11:00:21 pm »
This is the report file, when CodeBlocks is started with no extra plugins:


-------------------

Error occured on Thursday, March 16, 2017 at 14:57:48.

codeblocks.exe caused a Breakpoint at location 65F54F6E in module wxmsw310u_gcc_custom.dll.

Registers:
eax=00000000 ebx=0028f4f0 ecx=7efdd000 edx=00000000 esi=008ba7b0 edi=008b7fa8
eip=65f54f6e esp=0028f340 ebp=0028f468 iopl=0         nv up ei pl nz na pe nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000202

AddrPC   Params
65F54F6E 0028F56C FFFFFFFF 00000000  wxmsw310u_gcc_custom.dll!wxBitmap::CreateFromImage
65F5561F 0028F56C FFFFFFFF 00000000  wxmsw310u_gcc_custom.dll!wxBitmap::CreateFromImage
69153BC5 0028F618 0028F620 0000000F  codeblocks.dll!cbLoadBitmap
00402217 00000001 00000001 009244C0  codeblocks.exe!(anonymous namespace)::Splash::Splash
00404D49 65DE7C27 0028FDB0 66BFCDF4  codeblocks.exe!CodeBlocksApp::OnInit
0053593A 66DFAB80 00872F08 00000000  codeblocks.exe!wxAppConsoleBase::CallOnInit
65DE7D6A 00400000 00000000 00932A9C  wxmsw310u_gcc_custom.dll!wxEntryReal
005E6C7B 7EFDE000 00000000 7EFDE000  codeblocks.exe!main
004010FD 7EFDE000 72F8AC24 00000000  codeblocks.exe!__mingw_CRTStartup
770B9902 004012A0 7EFDE000 00000000  ntdll.dll!RtlInitializeExceptionChain
770B98D5 004012A0 7EFDE000 00000000  ntdll.dll!RtlInitializeExceptionChain

codeblocks.exe   16.1.0.0
ntdll.dll      6.1.7601.23418
kernel32.dll   6.1.7601.23418
avghookx.dll   16.151.0.8007
KERNELBASE.dll   6.1.7601.23418
COMCTL32.DLL   6.10.7601.18837
msvcrt.dll     7.0.7601.17744
GDI32.dll      6.1.7601.23457
USER32.dll     6.1.7601.17514
ADVAPI32.dll   6.1.7601.23418
sechost.dll    6.1.7601.18839
RPCRT4.dll     6.1.7601.23452
SspiCli.dll    6.1.7601.23452
CRYPTBASE.dll   6.1.7601.23452
LPK.dll        6.1.7601.23453
USP10.dll      1.626.7601.19054
SHLWAPI.dll    6.1.7601.17514
SHELL32.DLL    6.1.7601.18952
SHFOLDER.DLL   6.1.7600.16385
wxmsw310u_gcc_custom.dll   3.1.0.0
COMDLG32.DLL   6.1.7601.17514
OLE32.dll      6.1.7601.23392
OLEAUT32.DLL   6.1.7601.19144
VERSION.dll    6.1.7600.16385
WINMM.DLL      6.1.7601.17514
WINSPOOL.DRV   6.1.7601.17514
WSOCK32.DLL    6.1.7600.16385
WS2_32.dll     6.1.7601.23451
NSI.dll        6.1.7600.16385
exchndl.dll    0.8.0.0
mgwhelp.dll    0.8.0.0
dbghelp.dll    6.1.7601.17514
PSAPI.DLL      6.1.7600.16385
codeblocks.dll
IMM32.DLL      6.1.7601.17514
MSCTF.dll      6.1.7601.18731
uxtheme.dll    6.1.7600.16385
dwmapi.dll     6.1.7601.18917

Windows 6.1.7601
DrMingw 0.8.0


Online stahta01

  • Lives here!
  • ****
  • Posts: 5798
    • My Best Post
Re: Error while codeblocks starts
« Reply #8 on: March 17, 2017, 02:01:49 am »
@ rcoll: What command did you use to build wxWidgets?
And, the Compiler information used to build CB and wxWidgets?

I will see if I can duplicate the issue; on my Windows 10 32 bit PC.

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

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: Error while codeblocks starts
« Reply #9 on: March 17, 2017, 02:30:41 pm »
I suspect a bitmap is missing or could not be read.

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline rcoll

  • Almost regular
  • **
  • Posts: 150
Re: Error while codeblocks starts
« Reply #10 on: March 17, 2017, 03:56:47 pm »
I thought also an internal bitmap might have become corrupt, but I've downloaded wxWidgets-3.10 from a few different places, and the result is always the same.

I am building on Windows 7 Professional, service pack 1.
The compiler is TDM GCC 32-bit, ver 5.1.0

The commands to build wxWidgets are

C:
cd \Local\wxWidgets310\build\msw

PATH=C:\Local\TDM-GCC-32\bin;%PATH%

mingw32-make -f makefile.gcc CXXFLAGS="-std=gnu++11" UNICODE=1 BUILD=debug MONOLITHIC=1 SHARED=1
pause


Everything seems to build OK, it's only the run-time error that has me flummoxed.
(I have also tried the release version, but same problem.)

To build Code::Blocks, I am using the provided workspace and project (Codeblocks_wx30.cbp), with the system variables and custom variables (WX_CONFIG, etc) set up properly.  It also seems to build correctly.

Thanks,
Ringo


Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: Error while codeblocks starts
« Reply #11 on: March 17, 2017, 05:03:11 pm »
You are hitting this assertion:
Code: [Select]
[C:/Local/wxWidgets310/build/msw/../../src/msw/bitmap.cpp @ 830]
   828: bool wxBitmap::CreateFromImage(const wxImage& image, int depth, WXHDC hdc)
   829: {
>  830:     wxCHECK_MSG( image.IsOk(), false, wxT("invalid image") );
   831:
   832:     UnRef();
00CA5AEE 0028DDEC FFFFFFFF 00000000  wxmsw310ud_gcc_custom.dll!CreateFromImage 
You should check the path to that image and see if it exists. My bet is on the fact that its missing since you've built it from source and probably it didn't install correctly or the build has synthesized the wrong resource paths.

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline rcoll

  • Almost regular
  • **
  • Posts: 150
Re: Error while codeblocks starts
« Reply #12 on: March 17, 2017, 07:28:53 pm »
Yes, that's it.  However, it is not an external image ... it is built from a set of bits (stored as hex values) in "dockart.cpp".

I did some simple testing, and the bits all make valid images.

Ringo

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 10019
Re: Error while codeblocks starts
« Reply #13 on: March 17, 2017, 08:58:59 pm »
Does any of the wx samples in the samples folder work? Can you try the auidemo?
<debugger plugin maintainer>
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: Error while codeblocks starts
« Reply #14 on: March 17, 2017, 09:00:05 pm »
Then it sounds like the bitmap subsystem is configured wrong at compile-time or broken somehow...

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib