Author Topic: 4603 crashes (wxSmith)  (Read 4232 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5247
4603 crashes (wxSmith)
« on: November 09, 2007, 12:58:26 pm »
anyone having the same issue ??
Quote
Error occured on Friday, November 9, 2007 at 12:58:15.

C:\CodeBlocks\src\output\codeblocks.exe caused an Access Violation at location 671362ba in module C:\CodeBlocks\src\output\wxsmithlib.dll Reading from location 00000028.

Registers:
eax=00000020 ebx=00c3d638 ecx=00000001 edx=00000000 esi=00000018 edi=00000000
eip=671362ba esp=0022f098 ebp=0022f098 iopl=0         nv up ei pl nz na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00010206

Call stack:
671362BA  C:\CodeBlocks\src\output\wxsmithlib.dll:671362BA  _ZNK41wxPGHashMapS2P_wxImplementation_HashTable4sizeEv
67136311  C:\CodeBlocks\src\output\wxsmithlib.dll:67136311  _ZNK41wxPGHashMapS2P_wxImplementation_HashTable5emptyEv
6709E632  C:\CodeBlocks\src\output\wxsmithlib.dll:6709E632  _ZN14wxPropertyGrid5Init1Ev
6709D749  C:\CodeBlocks\src\output\wxsmithlib.dll:6709D749  _ZN14wxPropertyGridC1Ev
6707E95D  C:\CodeBlocks\src\output\wxsmithlib.dll:6707E95D  _ZNK21wxPropertyGridManager18CreatePropertyGridEv
6707DC31  C:\CodeBlocks\src\output\wxsmithlib.dll:6707DC31  _ZN21wxPropertyGridManager5Init1Ev
6707D856  C:\CodeBlocks\src\output\wxsmithlib.dll:6707D856  _ZN21wxPropertyGridManagerC2EP8wxWindowiRK7wxPointRK6wxSizelPKw
66F4958F  C:\CodeBlocks\src\output\wxsmithlib.dll:66F4958F  _ZN22wxsPropertyGridManagerC1EP8wxWindowiRK7wxPointRK6wxSizelPKw
66F560EB  C:\CodeBlocks\src\output\wxsmithlib.dll:66F560EB  _ZN7wxSmith8OnAttachEv
617DDA4F  C:\CodeBlocks\src\output\codeblocks.dll:617DDA4F  _ZN8cbPlugin6AttachEv
6189982D  C:\CodeBlocks\src\output\codeblocks.dll:6189982D  _ZN13PluginManager12AttachPluginEP8cbPluginb
618A1EF1  C:\CodeBlocks\src\output\codeblocks.dll:618A1EF1  _ZN13PluginManager14LoadAllPluginsEv
0042CB96  C:\CodeBlocks\src\output\codeblocks.exe:0042CB96
00427120  C:\CodeBlocks\src\output\codeblocks.exe:00427120
004023A7  C:\CodeBlocks\src\output\codeblocks.exe:004023A7
00403BB7  C:\CodeBlocks\src\output\codeblocks.exe:00403BB7
0045F810  C:\CodeBlocks\src\output\codeblocks.exe:0045F810
1004E329  C:\CodeBlocks\src\output\wxmsw28u_gcc_cb.dll:1004E329  _Z14wxUninitializev
100D1AEC  C:\CodeBlocks\src\output\wxmsw28u_gcc_cb.dll:100D1AEC  _Z7wxEntryP11HINSTANCE__S0_Pci
004017E4  C:\CodeBlocks\src\output\codeblocks.exe:004017E4
0045BD3A  C:\CodeBlocks\src\output\codeblocks.exe:0045BD3A
00401237  C:\CodeBlocks\src\output\codeblocks.exe:00401237
00401288  C:\CodeBlocks\src\output\codeblocks.exe:00401288
7C816FD7  C:\WINDOWS\system32\kernel32.dll:7C816FD7  RegisterWaitForInputIdle


Offline kkez

  • Almost regular
  • **
  • Posts: 153
    • WinapiZone
Re: 4603 crashes (wxSmith)
« Reply #1 on: November 09, 2007, 01:04:17 pm »
Same here, i deleted the wxsmithlib.dll in the output folder and CB starts again (but no wxsmith).

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7253
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: 4603 crashes (wxSmith)
« Reply #2 on: November 09, 2007, 03:54:19 pm »
Same here, i deleted the wxsmithlib.dll in the output folder and CB starts again (but no wxsmith).
I don't even have a wxsmithlib.dll (fresh svn4599).
It might be that the dll did not get build since some revisions and you deleted an older version that causes the crash.
Since svn4601 wxPropgrid is no longer part of the sdk, but of wxSmith. Until then an older version might have worked without causing an error.

I'm not sure about that, normally I don't use windows (just for testing  and on work :?), so I don't know since when wxSmith-dll went away, or if I made something wrong. But I use codeblocks .cbp, and that should work.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6995
    • My Best Post
Re: 4603 crashes (wxSmith)
« Reply #3 on: November 09, 2007, 04:32:09 pm »
Try this patch. wxPropertyGrid must be compiled with wxPG_USE_WXMODULE defined to 0.
If not, wxPropertyGrid crashed this was true several months ago; it might have changed.

Edit: It fixes the crash for me.

Tim S


Index: src/plugins/contrib/wxSmith/wxSmith.cbp
===================================================================
--- src/plugins/contrib/wxSmith/wxSmith.cbp   (revision 4602)
+++ src/plugins/contrib/wxSmith/wxSmith.cbp   (working copy)
@@ -15,6 +15,9 @@
             <Option type="2" />
             <Option compiler="gcc" />
             <Option createDefFile="1" />
+            <Compiler>
+               <Add option="-DwxPG_USE_WXMODULE=0" />
+            </Compiler>
          </Target>
          <Target title="wxSmithLib">
             <Option platforms="Windows;" />

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

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: 4603 crashes (wxSmith)
« Reply #4 on: November 09, 2007, 04:35:12 pm »
anyone having the same issue ??
I confirm it. I does delete wxsmithlib.dll .
Since svn4601 wxPropgrid is no longer part of the sdk, but of wxSmith. Until then an older version might have worked without causing an error.
I think you right.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5247
Re: 4603 crashes (wxSmith)
« Reply #5 on: November 09, 2007, 11:21:23 pm »
I have applied the patch.
Is this issue only present on windows ?

@byo : feel free to revert in case this was not the correct solution ;-)

EDIT : It seems byo just beat me to it :-) :-) :-)
« Last Edit: November 09, 2007, 11:23:35 pm by killerbot »

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: 4603 crashes (wxSmith)
« Reply #6 on: November 10, 2007, 12:07:25 am »
I have applied the patch.
Is this issue only present on windows ?

@byo : feel free to revert in case this was not the correct solution ;-)

EDIT : It seems byo just beat me to it :-) :-) :-)

I probably couldn't sleep well knowing there's such issue so even though it's really busy time for me now I couldn't resist ;)

Now I can sleep well up till next bug/issue  8)

BYO