User forums > Help

Saving updated wxSmith .wxs file causes crash

(1/2) > >>

zaleksf:
I am using CB on Windows Vista32-sp2 with mingw-4.4.0 and wxWidgets-2.8.10. I can create and compile the 'Hello World' and other programs just fine. However, when I attempt to save a modified wxs resource file (modified using wxSmith beyond what was originally generated by the project set-up wizard) then CB crashes completely. Changes to the rest of the program are retained and changes to the .wxs file are not.

This problem occurs with CB versions 8.02 through svn build 5731. This problem does not occur for me on Ubuntu 9.04 (same builds).

Any thoughts on how to resolve this would be greatly appreciated.

Jenna:
Do you have a debug-report in the directory where C::B's is ?

Does it happen always, or does it depend on the changes you make ?

zaleksf:
Hi Jens,

I ran gdb and submitted a report to the berlios site. Based on your prompting, I did find an error report in the CB folder - thanks! I didn't know that file was being generated. I've attached the codeblocks.rpt file. 

The crash only happens when trying to save a file modified by wxSmith. It happens every single time. Otherwise CB seems to work excellently (works with gui files generated by wxFormBuilder, etc). The error report seems to indicate some issue with Dwarf (-unwinding, I'm assuming?). I compiled wxWidgets with MinGW32-4.4.0 (, with the following modules:
 * binutils (binutils-2.19.1-mingw32-bin.tar.gz)
 * mingw-runtime (mingwrt-3.15.2-mingw32-dev.tar.gz)
 * w32api (w32api-3.13-mingw32-dev.tar.gz)
 * mingw-utils (mingw-utils-0.3.tar.gz)
 * mingw32-make (mingw32-make-3.81-20080326-3.tar.gz)
 * gdb (gdb-6.8-mingw-3.tar.bz2)
I thought that I had selected the default Dwarf2 unwinding exception method (more conservative) for compiling wxWidgets, but upon inspection, that may not be true.

Please let me know if this information provides any clues for further action (recompiling wxWidgets, etc).

Regards,
Steve

[attachment deleted by admin]

zaleksf:
I verified that I had NOT built the wxWidgets with Dwarf2 unwinding.

Steve

seb_seb0:
Hello,

I had exactly the same problem earlier. For me it occured only when building from SVN repository.
The problem comes from TinyXML library: when saving the wxs file (XML format), the plugin wxSmith calls TinyXMLDoc->Accept (or something like that). TinyXML is statically linked to wxSmithLib and to the codeblocks dll. It seems that the function to call can be either called in wxSmithlib, or in codeblocks.dll - and mixing the two results in crash.

The solution:
 1 - download SVN snapshot from codeblocks + plugins
 2 - compile codeblocks using these directions: http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows
 3- before doing the step called "Compile contributed (or your own) plugins", do the following:
     a - open the Contrib plugin workspace "ContribPlugins.workspace" (in dir "src")
     b - activate "wxSmith" project (double-click on it in the tree)
     c - go in menu "project" -> "build options", click on tab "linkers settings"
     d - remove the line "txml" from the left pane. Make sure it does not appear in other sub-projects as well (wxPropertyGrid, wxSmithLib
, wxSmith) - see the screenshot (after removing the culprit line)
     e - save the project (file - save project)
     f - select menu "build - build workspace" and follow the instructions from the wiki

 It worked like a charm for me (although it was not easy to find).
 Maybe the Devs (which have done a great work by the way) will update the project options in SVN.

Good luck !

Sebastien

[attachment deleted by admin]

Navigation

[0] Message Index

[#] Next page

Go to full version