Bug #16069 2009-07-28 17:20

heinzisoft

Crashes when I try to open a wxs file created with wxSmith

I created a wxSmith - Panel with wxSmith and it crashed while changing some layout settings (the whole codeblocks application quitted).
After that I restarted codeblocks to work on, but every time I try to open this panel, it crashes again.
Such errors happen from time to time when I work with wxSmith. Then I always have to recreate the whole panel/frame, because I have no chance to open it again.
Here the console output from codeblocks when crashing:
[Code]
*** glibc detected *** codeblocks: malloc(): memory corruption: 0x00000000024bc750 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f9c7aba7fef]
/lib/libc.so.6(__libc_malloc+0x98)[0x7f9c7aba9828]
/usr/lib/libstdc++.so.6(_Znwm+0x1d)[0x7f9c7b4039bd]
/usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN8wxColour8InitRGBAEhhhh+0x3d)[0x7f9c7c3d23cd]
/usr/lib/libwxsmithlib.so.0(_ZN17wxsColourProperty7XmlReadEP20wxsPropertyContainerP12TiXmlElement+0x396)[0x7f9c6a256886]
/usr/lib/libwxsmithlib.so.0(_ZN20wxsPropertyContainer8PropertyER11wxsProperty+0x276)[0x7f9c6a1e2d16]
/usr/lib/libwxsmithlib.so.0(_ZN17wxsBaseProperties16OnEnumPropertiesEl+0x16b)[0x7f9c6a21326b]
/usr/lib/libwxsmithlib.so.0(_ZN20wxsPropertyContainer12SubContainerEPS_l+0x44)[0x7f9c6a1e2364]
/usr/lib/libwxsmithlib.so.0(_ZN20wxsPropertyContainer7XmlReadEP12TiXmlElement+0x84)[0x7f9c6a1e2814]
/usr/lib/libwxsmithlib.so.0(_ZN7wxsItem9OnXmlReadEP12TiXmlElementbb+0xa5)[0x7f9c6a215eb5]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent14OnXmlReadChildEP12TiXmlElementbb+0x27b)[0x7f9c6a222bfb]
/usr/lib/libwxsmithlib.so.0(_ZN8wxsSizer14OnXmlReadChildEP12TiXmlElementbb+0x10b)[0x7f9c6a1e3ddb]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent9OnXmlReadEP12TiXmlElementbb+0xc9)[0x7f9c6a221ec9]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent14OnXmlReadChildEP12TiXmlElementbb+0x27b)[0x7f9c6a222bfb]
/usr/lib/libwxsmithlib.so.0(_ZN8wxsSizer14OnXmlReadChildEP12TiXmlElementbb+0x10b)[0x7f9c6a1e3ddb]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent9OnXmlReadEP12TiXmlElementbb+0xc9)[0x7f9c6a221ec9]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent14OnXmlReadChildEP12TiXmlElementbb+0x27b)[0x7f9c6a222bfb]
/usr/lib/libwxsmithlib.so.0(_ZN8wxsSizer14OnXmlReadChildEP12TiXmlElementbb+0x10b)[0x7f9c6a1e3ddb]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent9OnXmlReadEP12TiXmlElementbb+0xc9)[0x7f9c6a221ec9]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent14OnXmlReadChildEP12TiXmlElementbb+0x27b)[0x7f9c6a222bfb]
/usr/lib/libwxsmithlib.so.0(_ZN8wxsSizer14OnXmlReadChildEP12TiXmlElementbb+0x10b)[0x7f9c6a1e3ddb]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent9OnXmlReadEP12TiXmlElementbb+0xc9)[0x7f9c6a221ec9]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent14OnXmlReadChildEP12TiXmlElementbb+0x27b)[0x7f9c6a222bfb]
/usr/lib/libwxsmithlib.so.0(_ZN8wxsSizer14OnXmlReadChildEP12TiXmlElementbb+0x10b)[0x7f9c6a1e3ddb]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent9OnXmlReadEP12TiXmlElementbb+0xc9)[0x7f9c6a221ec9]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent14OnXmlReadChildEP12TiXmlElementbb+0x27b)[0x7f9c6a222bfb]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent9OnXmlReadEP12TiXmlElementbb+0xc9)[0x7f9c6a221ec9]
/usr/lib/libwxsmithlib.so.0(_ZN14wxsItemResData16LoadInSourceModeEv+0x1f9)[0x7f9c6a226e09]
/usr/lib/libwxsmithlib.so.0(_ZN14wxsItemResData10SilentLoadEv+0x75)[0x7f9c6a22a085]
/usr/lib/libwxsmithlib.so.0(_ZN14wxsItemResData4LoadEv+0x10)[0x7f9c6a22a0b0]
/usr/lib/libwxsmithlib.so.0(_ZN14wxsItemResDataC1ERK8wxStringS2_S2_S2_S2_S2_13wxsCodingLangb12wxTreeItemIdP13wxsItemEditorP19wxsItemResFunctions+0x212)[0x7f9c6a22a3d2]
/usr/lib/libwxsmithlib.so.0(_ZN10wxsItemRes12BuildResDataEP13wxsItemEditor+0x11d)[0x7f9c6a1ffc0d]
/usr/lib/libwxsmithlib.so.0(_ZN13wxsItemEditor22InitializeResourceDataEv+0x13)[0x7f9c6a22da43]
/usr/lib/libwxsmithlib.so.0(_ZN13wxsItemEditorC1EP8wxWindowP10wxsItemRes+0x15d)[0x7f9c6a23206d]
/usr/lib/libwxsmithlib.so.0(_ZN10wxsItemRes14OnCreateEditorEP8wxWindow+0x34)[0x7f9c6a1ffac4]
/usr/lib/libwxsmithlib.so.0(_ZN11wxsResource8EditOpenEv+0x6e)[0x7f9c6a1c6bbe]
/usr/lib/libwxsmithlib.so.0(_ZN15wxsResourceTree8OnSelectER11wxTreeEvent+0x43)[0x7f9c6a1c8f73]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x89)[0x7f9c7bb54ae9]
/usr/lib/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0xa4)[0x7f9c7bb55cc4]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xc7)[0x7f9c7bb55db7]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x7f9c7bb55d40]
/usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN24wxScrollHelperEvtHandler12ProcessEventER7wxEvent+0x25)[0x7f9c7c5193e5]
/usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN17wxGenericTreeCtrl12DoSelectItemERK12wxTreeItemIdbb+0x1c8)[0x7f9c7c52c728]
/usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN17wxGenericTreeCtrl7OnMouseER12wxMouseEvent+0x92a)[0x7f9c7c52e0ca]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x89)[0x7f9c7bb54ae9]
/usr/lib/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0xa4)[0x7f9c7bb55cc4]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xc7)[0x7f9c7bb55db7]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x50)[0x7f9c7bb55d40]
/usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN24wxScrollHelperEvtHandler12ProcessEventER7wxEvent+0x25)[0x7f9c7c5193e5]
/usr/lib/libwx_gtk2u_core-2.8.so.0[0x7f9c7c3f61b8]
/usr/lib/libgtk-x11-2.0.so.0[0x7f9c7ff98df8]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16d)[0x7f9c7e2f327d]
/usr/lib/libgobject-2.0.so.0[0x7f9c7e308e3b]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x66d)[0x7f9c7e30a2bd]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7f9c7e30a953]
/usr/lib/libgtk-x11-2.0.so.0[0x7f9c800a109e]
/usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0xe3)[0x7f9c7ff91693]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x2e3)[0x7f9c7ff927b3]
/usr/lib/libgdk-x11-2.0.so.0[0x7f9c7fc0bf3c]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x24a)[0x7f9c7de5720a]
/usr/lib/libglib-2.0.so.0[0x7f9c7de5a8e0]
/usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1cd)[0x7f9c7de5adad]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x7f9c7ff92bc7]
======= Memory map: ========
00400000-0048c000 r-xp 00000000 fc:01 96224                              /usr/bin/codeblocks
0068c000-00694000 r--p 0008c000 fc:01 96224                              /usr/bin/codeblocks
00694000-00697000 rw-p 00094000 fc:01 96224                              /usr/bin/codeblocks
00697000-0069a000 rw-p 00697000 00:00 0 
00a12000-026e8000 rw-p 00a12000 00:00 0                                  [heap]
7f9c662ff000-7f9c66300000 ---p 7f9c662ff000 00:00 0 
7f9c66300000-7f9c66b00000 rw-p 7f9c66300000 00:00 0 
7f9c66b00000-7f9c66b01000 ---p 7f9c66b00000 00:00 0 
7f9c66b01000-7f9c67301000 rw-p 7f9c66b01000 00:00 0 
7f9c67301000-7f9c6734b000 r--p 00000000 fc:01 102601                     /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf
7f9c6734b000-7f9c6734f000 r-xp 00000000 fc:01 24876                      /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7f9c6734f000-7f9c6754f000 ---p 00004000 fc:01 24876                      /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7f9c6754f000-7f9c67550000 r--p 00004000 fc:01 24876                      /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7f9c67550000-7f9c67551000 rw-p 00005000 fc:01 24876                      /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7f9c67551000-7f9c675a0000 r--p 00000000 fc:01 102600                     /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
7f9c675a0000-7f9c675bb000 r-xp 00000000 fc:01 96245                      /usr/lib/codeblocks/plugins/libdefaultmimehandler.so
7f9c675bb000-7f9c677bb000 ---p 0001b000 fc:01 96245                      /usr/lib/codeblocks/plugins/libdefaultmimehandler.so
7f9c677bb000-7f9c677bd000 r--p 0001b000 fc:01 96245                      /usr/lib/codeblocks/plugins/libdefaultmimehandler.so
7f9c677bd000-7f9c677be000 rw-p 0001d000 fc:01 96245                      /usr/lib/codeblocks/plugins/libdefaultmimehandler.so
7f9c677be000-7f9c677ee000 r-xp 00000000 fc:01 96233                      /usr/lib/codeblocks/plugins/libastyle.so
7f9c677ee000-7f9c679ed000 ---p 00030000 fc:01 96233                      /usr/lib/codeblocks/plugins/libastyle.so
7f9c679ed000-7f9c679ef000 r--p 0002f000 fc:01 96233                      /usr/lib/codeblocks/plugins/libastyle.so
7f9c679ef000-7f9c679f0000 rw-p 00031000 fc:01 96233                      /usr/lib/codeblocks/plugins/libastyle.so
7f9c679f0000-7f9c67a40000 r-xp 00000000 fc:01 126695                     /usr/lib/codeblocks/plugins/libThreadSearch.so
7f9c67a40000-7f9c67c3f000 ---p 00050000 fc:01 126695                     /usr/lib/codeblocks/plugins/libThreadSearch.so
7f9c67c3f000-7f9c67c44000 r--p 0004f000 fc:01 126695                     /usr/lib/codeblocks/plugins/libThreadSearch.so
7f9c67c44000-7f9c67c45000 rw-p 00054000 fc:01 126695                     /usr/lib/codeblocks/plugins/libThreadSearch.so
7f9c67c45000-7f9c67c46000 rw-p 7f9c67c45000 00:00 0 
7f9c67c46000-7f9c67caf000 r-xp 00000000 fc:01 96251                      /usr/lib/codeblocks/plugins/libscriptedwizard.so
7f9c67caf000-7f9c67eae000 ---p 00069000 fc:01 96251                      /usr/lib/codeblocks/plugins/libscriptedwizard.so
7f9c67eae000-7f9c67eb6000 r--p 00068000 fc:01 96251                      /usr/lib/codeblocks/plugins/libscriptedwizard.so
7f9c67eb6000-7f9c67eb7000 rw-p 00070000 fc:01 96251                      /usr/lib/codeblocks/plugins/libscriptedwizard.so
7f9c67eb7000-7f9c67eb8000 rw-p 7f9c67eb7000 00:00 0 
7f9c67eb8000-7f9c67ee0000 r-xp 00000000 fc:01 96253                      /usr/lib/codeblocks/plugins/libtodo.so
7f9c67ee0000-7f9c680e0000 ---p 00028000 fc:01 96253                      /usr/lib/codeblocks/plugins/libtodo.so
7f9c680e0000-7f9c680e3000 r--p 00028000 fc:01 96253                      /usr/lib/codeblocks/plugins/libtodo.so
7f9c680e3000-7f9c680e4000 rw-p 0002b000 fc:01 96253                      /usr/lib/codeblocks/plugins/libtodo.so
7f9c680e4000-7f9c68102000 r-xp 00000000 fc:01 125736                     /usr/lib/codeblocks/plugins/libenvvars.so
7f9c68102000-7f9c68302000 ---p 0001e000 fc:01 125736                     /usr/lib/codeblocks/plugins/libenvvars.so
7f9c68302000-7f9c68304000 r--p 0001e000 fc:01 125736                     /usr/lib/codeblocks/plugins/libenvvars.so
7f9c68304000-7f9c68305000 rw-p 00020000 fc:01 125736                     /usr/lib/codeblocks/plugins/libenvvars.so
7f9c68305000-7f9c6830f000 r-xp 00000000 fc:01 96247                      /usr/lib/codeblocks/plugins/libopenfileslist.so
7f9c6830f000-7f9c6850f000 ---p 0000a000 fc:01 96247                      /usr/lib/codeblocks/plugins/libopenfileslist.so
7f9c6850f000-7f9c68510000 r--p 0000a000 fc:01 96247                      /usr/lib/codeblocks/plugins/libopenfileslist.so
7f9c68510000-7f9c68511000 rw-p 0000b000 fc:01 96247                      /usr/lib/codeblocks/plugins/libopenfileslist.so
7f9c68511000-7f9c68528000 r-xp 00000000 fc:01 96237                      /usr/lib/codeblocks/plugins/libclasswizard.so
7f9c68528000-7f9c68727000 ---p 00017000 fc:01 96237                      /usr/lib/codeblocks/plugins/libclasswizard.so
7f9c68727000-7f9c68729000 r--p 00016000 fc:01 96237                      /usr/lib/codeblocks/plugins/libclasswizard.so
7f9c68729000-7f9c6872a000 rw-p 00018000 fc:01 96237                      /usr/lib/codeblocks/plugins/libclasswizard.so
7f9c6872a000-7f9c68738000 r-xp 00000000 fc:01 126691                     /usr/lib/codeblocks/plugins/libRegExTestbed.so
7f9c68738000-7f9c68938000 ---p 0000e000 fc:01 126691                     /usr/lib/codeblocks/plugins/libRegExTestbed.so
7f9c68938000-7f9c68939000 r--p 0000e000 fc:01 126691                     /usr/lib/codeblocks/plugins/libRegExTestbed.so
7f9c68939000-7f9c6893a000 rw-p 0000f000 fc:01 126691                     /usr/lib/codeblocks/plugins/libRegExTestbed.so
7f9c6893a000-7f9c68a60000 r-xp 00000000 fc:01 125743                     /usr/lib/codeblocks/plugins/libhelp_plugin.so
7f9c68a60000-7f9c68c5f000 ---p 00126000 fc:01 125743                     /usr/lib/codeblocks/plugins/libhelp_plugin.so
7f9c68c5f000-7f9c68c67000 r--p 00125000 fc:01 125743                     /usr/lib/codeblocks/plugins/Aborted
[/Code]
Here the wxs file that cannot be opened:
[Code]
<?xml version="1.0" encoding="utf-8" ?>
<wxsmith>
	<object class="wxPanel" name="OfferPanel">
		<pos_arg>1</pos_arg>
		<size_arg>1</size_arg>
		<object class="wxBoxSizer" variable="BoxSizer1" member="no">
			<orient>wxVERTICAL</orient>
			<object class="sizeritem">
				<object class="wxBoxSizer" variable="BoxSizer2" member="no">
					<object class="sizeritem">
						<object class="wxStaticBoxSizer" variable="sbsDomain" member="no">
							<label>Domainangebote</label>
							<object class="sizeritem">
								<object class="Custom" name="ID_CUSTOM2" subclass="CustomClass" variable="Custom2" member="yes">
									<creating_code>$(THIS) = new $(CLASS)($(PARENT),$(ID),$(POS),$(SIZE),$(STYLE),wxDefaultValidator,$(NAME));</creating_code>
								</object>
								<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
								<option>1</option>
							</object>
							<object class="sizeritem">
								<object class="wxBoxSizer" variable="BoxSizer4" member="no">
									<orient>wxVERTICAL</orient>
									<object class="sizeritem">
										<object class="wxFlexGridSizer" variable="FlexGridSizer2" member="no">
											<cols>2</cols>
											<object class="sizeritem">
												<object class="wxStaticText" name="ID_STATICTEXT3" variable="lblDtld" member="yes">
													<label>TLD:</label>
												</object>
												<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
												<border>5</border>
												<option>1</option>
											</object>
											<object class="sizeritem">
												<object class="wxTextCtrl" name="ID_TEXTCTRL1" variable="txtDtld" member="yes">
													<maxlength>0</maxlength>
												</object>
												<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
												<border>5</border>
												<option>1</option>
											</object>
										</object>
										<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxButton" name="ID_BUTTON4" variable="btnDSave" member="yes">
											<label>Speichern</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
									</object>
									<object class="sizeritem">
										<object class="wxButton" name="ID_BUTTON5" variable="btnDDel" member="yes">
											<label>Löschen</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
									</object>
									<object class="sizeritem">
										<object class="wxButton" name="ID_BUTTON6" variable="btnDAdd" member="yes">
											<label>Hinzufügen</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
									</object>
								</object>
								<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
								<option>1</option>
							</object>
						</object>
						<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
						<border>5</border>
						<option>1</option>
					</object>
					<object class="sizeritem">
						<object class="wxStaticBoxSizer" variable="sbsHosting" member="no">
							<label>Hostingangebote</label>
							<object class="sizeritem">
								<object class="Custom" name="ID_CUSTOM3" subclass="CustomClass" variable="Custom3" member="yes">
									<creating_code>$(THIS) = new $(CLASS)($(PARENT),$(ID),$(POS),$(SIZE),$(STYLE),wxDefaultValidator,$(NAME));</creating_code>
								</object>
								<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
								<option>1</option>
							</object>
							<object class="sizeritem">
								<object class="wxBoxSizer" variable="BoxSizer5" member="no">
									<orient>wxVERTICAL</orient>
									<object class="sizeritem">
										<object class="wxFlexGridSizer" variable="FlexGridSizer3" member="no">
											<cols>2</cols>
											<object class="sizeritem">
												<object class="wxStaticText" name="ID_STATICTEXT4" variable="StaticText4" member="yes">
													<label>Label</label>
												</object>
												<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
												<border>5</border>
												<option>1</option>
											</object>
											<object class="sizeritem">
												<object class="wxSpinCtrl" name="ID_SPINCTRL1" variable="SpinCtrl1" member="yes">
													<value>0</value>
													<min>0</min>
													<max>100</max>
												</object>
												<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
												<border>5</border>
												<option>1</option>
											</object>
											<object class="sizeritem">
												<object class="wxStaticText" name="ID_STATICTEXT5" variable="StaticText5" member="yes">
													<label>Label</label>
												</object>
												<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
												<border>5</border>
												<option>1</option>
											</object>
											<object class="sizeritem">
												<object class="wxSpinCtrl" name="ID_SPINCTRL2" variable="SpinCtrl2" member="yes">
													<value>0</value>
													<min>0</min>
													<max>100</max>
												</object>
												<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
												<border>5</border>
												<option>1</option>
											</object>
										</object>
										<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxButton" name="ID_BUTTON7" variable="Button7" member="yes">
											<label>Label</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
									</object>
									<object class="sizeritem">
										<object class="wxButton" name="ID_BUTTON8" variable="Button8" member="yes">
											<label>Label</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
									</object>
									<object class="sizeritem">
										<object class="wxButton" name="ID_BUTTON9" variable="Button9" member="yes">
											<label>Label</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
									</object>
								</object>
								<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
								<border>5</border>
								<option>1</option>
							</object>
						</object>
						<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
						<border>5</border>
						<option>1</option>
					</object>
				</object>
				<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
				<option>1</option>
			</object>
			<object class="sizeritem">
				<object class="wxStaticBoxSizer" variable="sbsOffer" member="no">
					<label>Angebote</label>
					<object class="sizeritem">
						<object class="Custom" name="ID_CUSTOM1" subclass="CustomClass" variable="Custom1" member="yes">
							<creating_code>$(THIS) = new $(CLASS)($(PARENT),$(ID),$(POS),$(SIZE),$(STYLE),wxDefaultValidator,$(NAME));</creating_code>
						</object>
						<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
						<border>5</border>
						<option>1</option>
					</object>
					<object class="sizeritem">
						<object class="wxBoxSizer" variable="BoxSizer3" member="no">
							<orient>wxVERTICAL</orient>
							<object class="sizeritem">
								<object class="wxFlexGridSizer" variable="FlexGridSizer1" member="no">
									<cols>2</cols>
									<object class="sizeritem">
										<object class="wxStaticText" name="ID_STATICTEXT8" variable="StaticText8" member="yes">
											<label>Label</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxTextCtrl" name="ID_TEXTCTRL2" variable="TextCtrl2" member="yes">
											<value>Text</value>
											<maxlength>0</maxlength>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxStaticText" name="ID_STATICTEXT1" variable="StaticText1" member="yes">
											<label>Label</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxComboBox" name="ID_COMBOBOX1" variable="ComboBox1" member="yes">
											<selection>-1</selection>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxStaticText" name="ID_STATICTEXT2" variable="StaticText2" member="yes">
											<label>Label</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxComboBox" name="ID_COMBOBOX2" variable="ComboBox2" member="yes">
											<selection>-1</selection>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxStaticText" name="ID_STATICTEXT6" variable="StaticText6" member="yes">
											<label>Label</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxSpinCtrl" name="ID_SPINCTRL3" variable="SpinCtrl3" member="yes">
											<value>0</value>
											<min>0</min>
											<max>100</max>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxStaticText" name="ID_STATICTEXT7" variable="StaticText7" member="yes">
											<label>Label</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxSpinCtrl" name="ID_SPINCTRL4" variable="SpinCtrl4" member="yes">
											<value>0</value>
											<min>0</min>
											<max>100</max>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxStaticText" name="ID_STATICTEXT9" variable="StaticText9" member="yes">
											<label>Label</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxSpinCtrl" name="ID_SPINCTRL5" variable="SpinCtrl5" member="yes">
											<value>0</value>
											<min>0</min>
											<max>100</max>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxStaticText" name="ID_STATICTEXT10" variable="StaticText10" member="yes">
											<label>Label</label>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
									<object class="sizeritem">
										<object class="wxSpinCtrl" name="ID_SPINCTRL6" variable="SpinCtrl6" member="yes">
											<value>0</value>
											<min>0</min>
											<max>100</max>
										</object>
										<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
										<border>5</border>
										<option>1</option>
									</object>
								</object>
								<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
								<option>1</option>
							</object>
							<object class="sizeritem">
								<object class="wxButton" name="ID_BUTTON1" variable="Button1" member="yes">
									<label>Label</label>
								</object>
								<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
								<border>5</border>
							</object>
							<object class="sizeritem">
								<object class="wxButton" name="ID_BUTTON2" variable="Button2" member="yes">
									<label>Label</label>
								</object>
								<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
								<border>5</border>
							</object>
							<object class="sizeritem">
								<object class="wxButton" name="ID_BUTTON3" variable="Button3" member="yes">
									<label>Label</label>
								</object>
								<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
								<border>5</border>
							</object>
						</object>
						<flag>wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
						<border>5</border>
						<option>1</option>
					</object>
				</object>
				<flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
				<border>5</border>
				<option>1</option>
			</object>
		</object>
	</object>
</wxsmith>
[/Code]

Can you please fix this bug? It happens from time to time that I loose a already created layout and have to recreate it.
Category
Plugin::wxSmith
Group
 
Status
Open
Close date
 
Assigned to
 
heinzisoft 2009-07-28 17:23

Ah missing information...I have Code::Blocks 8.02 on Ubuntu Linux 9.04 but I also had this problem in Gentoo Linux before I switched to Ubuntu.

ID_53148 2009-09-08 05:55
I'm experiancing the same error, first time i hit it when i tried to undo a change after dropping a layout block in the wrong spot, application immediately crashed and crashes every time I attempt to load the .wxs file now.  Running Code::blocks 8.02 under gentoo, kernel 2.6.29-gentoo-r5

*** glibc detected *** codeblocks: malloc(): memory corruption: 0x00000000023a92f0 ***
======= Backtrace: =========
/lib/libc.so.6[0x7f7d39c9ab88]
/lib/libc.so.6[0x7f7d39c9d51c]
/lib/libc.so.6(__libc_malloc+0x98)[0x7f7d39c9f0e8]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxStringBase5AllocEm+0x5a)[0x7f7d3abf2cb4]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxStringBase10ConcatSelfEmPKwm+0x104)[0x7f7d3abf2e42]
/usr/lib/libwx_baseu-2.8.so.0(_ZN8wxStringC1EPKcRK8wxMBConvm+0x71)[0x7f7d3abf4c85]
/usr/lib/libcodeblocks.so.0(_Z5cbC2UPKc+0x1d)[0x7f7d3ca4605d]
/usr/lib/libwxsmithlib.so.0(_ZN23wxsPositionSizeProperty7XmlReadEP20wxsPropertyContainerP12TiXmlElement+0x81)[0x7f7d2f837701]
/usr/lib/libwxsmithlib.so.0(_ZN20wxsPropertyContainer8PropertyER11wxsProperty+0x21e)[0x7f7d2f7b600e]
/usr/lib/libwxsmithlib.so.0(_ZN17wxsBaseProperties16OnEnumPropertiesEl+0xde)[0x7f7d2f7e41b8]
/usr/lib/libwxsmithlib.so.0(_ZN20wxsPropertyContainer12SubContainerEPS_l+0x3d)[0x7f7d2f7b586d]
/usr/lib/libwxsmithlib.so.0(_ZN20wxsPropertyContainer7XmlReadEP12TiXmlElement+0x6f)[0x7f7d2f7b5be3]
/usr/lib/libwxsmithlib.so.0(_ZN7wxsItem9OnXmlReadEP12TiXmlElementbb+0x7c)[0x7f7d2f7e6cdc]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent14OnXmlReadChildEP12TiXmlElementbb+0x239)[0x7f7d2f7f2bb3]
/usr/lib/libwxsmithlib.so.0(_ZN8wxsSizer14OnXmlReadChildEP12TiXmlElementbb+0x105)[0x7f7d2f7b6f77]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent9OnXmlReadEP12TiXmlElementbb+0x98)[0x7f7d2f7f20a8]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent14OnXmlReadChildEP12TiXmlElementbb+0x239)[0x7f7d2f7f2bb3]
/usr/lib/libwxsmithlib.so.0(_ZN8wxsSizer14OnXmlReadChildEP12TiXmlElementbb+0x105)[0x7f7d2f7b6f77]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent9OnXmlReadEP12TiXmlElementbb+0x98)[0x7f7d2f7f20a8]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent14OnXmlReadChildEP12TiXmlElementbb+0x239)[0x7f7d2f7f2bb3]
/usr/lib/libwxsmithlib.so.0(_ZN8wxsSizer14OnXmlReadChildEP12TiXmlElementbb+0x105)[0x7f7d2f7b6f77]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent9OnXmlReadEP12TiXmlElementbb+0x98)[0x7f7d2f7f20a8]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent14OnXmlReadChildEP12TiXmlElementbb+0x239)[0x7f7d2f7f2bb3]
/usr/lib/libwxsmithlib.so.0(_ZN8wxsSizer14OnXmlReadChildEP12TiXmlElementbb+0x105)[0x7f7d2f7b6f77]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent9OnXmlReadEP12TiXmlElementbb+0x98)[0x7f7d2f7f20a8]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent14OnXmlReadChildEP12TiXmlElementbb+0x239)[0x7f7d2f7f2bb3]
/usr/lib/libwxsmithlib.so.0(_ZN9wxsParent9OnXmlReadEP12TiXmlElementbb+0x98)[0x7f7d2f7f20a8]
/usr/lib/libwxsmithlib.so.0(_ZN14wxsItemResData16LoadInSourceModeEv+0x1b1)[0x7f7d2f7f6713]
/usr/lib/libwxsmithlib.so.0(_ZN14wxsItemResData10SilentLoadEv+0x65)[0x7f7d2f7f97a3]
/usr/lib/libwxsmithlib.so.0(_ZN14wxsItemResData4LoadEv+0x10)[0x7f7d2f7f97c2]
/usr/lib/libwxsmithlib.so.0(_ZN14wxsItemResDataC1ERK8wxStringS2_S2_S2_S2_S2_13wxsCodingLangb12wxTreeItemIdP13wxsItemEditorP19wxsItemResFunctions+0x212)[0x7f7d2f7f9ace]
/usr/lib/libwxsmithlib.so.0(_ZN10wxsItemRes12BuildResDataEP13wxsItemEditor+0x11d)[0x7f7d2f7d1817]
/usr/lib/libwxsmithlib.so.0(_ZN13wxsItemEditor22InitializeResourceDataEv+0x13)[0x7f7d2f7fcd9f]
/usr/lib/libwxsmithlib.so.0(_ZN13wxsItemEditorC1EP8wxWindowP10wxsItemRes+0x15d)[0x7f7d2f8010a3]
/usr/lib/libwxsmithlib.so.0(_ZN10wxsItemRes14OnCreateEditorEP8wxWindow+0x25)[0x7f7d2f7d16df]
/usr/lib/libwxsmithlib.so.0(_ZN11wxsResource8EditOpenEv+0x4f)[0x7f7d2f79c431]
/usr/lib/libwxsmithlib.so.0(_ZN15wxsResourceTree8OnSelectER11wxTreeEvent+0x3e)[0x7f7d2f79e4f8]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x7d)[0x7f7d3ac27113]
/usr/lib/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0x6f)[0x7f7d3ac2802d]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xb0)[0x7f7d3ac280fa]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x4d)[0x7f7d3ac28097]
/usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN24wxScrollHelperEvtHandler12ProcessEventER7wxEvent+0x16)[0x7f7d3b5d560a]
/usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN17wxGenericTreeCtrl12DoSelectItemERK12wxTreeItemIdbb+0x1b7)[0x7f7d3b5e6aad]
/usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN17wxGenericTreeCtrl7OnMouseER12wxMouseEvent+0x8ba)[0x7f7d3b5e8368]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler21ProcessEventIfMatchesERK21wxEventTableEntryBasePS_R7wxEvent+0x7d)[0x7f7d3ac27113]
/usr/lib/libwx_baseu-2.8.so.0(_ZN16wxEventHashTable11HandleEventER7wxEventP12wxEvtHandler+0x6f)[0x7f7d3ac2802d]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0xb0)[0x7f7d3ac280fa]
/usr/lib/libwx_baseu-2.8.so.0(_ZN12wxEvtHandler12ProcessEventER7wxEvent+0x4d)[0x7f7d3ac28097]
/usr/lib/libwx_gtk2u_core-2.8.so.0(_ZN24wxScrollHelperEvtHandler12ProcessEventER7wxEvent+0x16)[0x7f7d3b5d560a]
/usr/lib/libwx_gtk2u_core-2.8.so.0[0x7f7d3b4d03d1]
/usr/lib/libgtk-x11-2.0.so.0[0x7f7d3ffeb5a8]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x16d)[0x7f7d3d3c416d]
/usr/lib/libgobject-2.0.so.0[0x7f7d3d3d7d4d]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x63a)[0x7f7d3d3d909a]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x83)[0x7f7d3d3d9713]
/usr/lib/libgtk-x11-2.0.so.0[0x7f7d400d22d2]
/usr/lib/libgtk-x11-2.0.so.0(gtk_propagate_event+0xc1)[0x7f7d3ffe5f22]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main_do_event+0x2e4)[0x7f7d3ffe6d71]
/usr/lib/libgdk-x11-2.0.so.0[0x7f7d3fc86b8a]
/usr/lib/libglib-2.0.so.0(g_main_context_dispatch+0x232)[0x7f7d3cf088c2]
/usr/lib/libglib-2.0.so.0[0x7f7d3cf0c03d]
/usr/lib/libglib-2.0.so.0(g_main_loop_run+0x1cd)[0x7f7d3cf0c56d]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xa3)[0x7f7d3ffe70f0]
======= Memory map: ========
00400000-0048a000 r-xp 00000000 08:03 6301968                            /usr/bin/codeblocks
00689000-00691000 r--p 00089000 08:03 6301968                            /usr/bin/codeblocks
00691000-00693000 rw-p 00091000 08:03 6301968                            /usr/bin/codeblocks
00693000-00697000 rw-p 00693000 00:00 0 
0094f000-024b8000 rw-p 0094f000 00:00 0                                  [heap]
40189000-4018a000 ---p 40189000 00:00 0 
4018a000-4098a000 rw-p 4018a000 00:00 0 
4098a000-4098b000 ---p 4098a000 00:00 0 
4098b000-4118b000 rw-p 4098b000 00:00 0 
4118b000-4118c000 ---p 4118b000 00:00 0 
4118c000-4198c000 rw-p 4118c000 00:00 0 
4198c000-4198d000 ---p 4198c000 00:00 0 
4198d000-4218d000 rw-p 4198d000 00:00 0 
4218d000-4218e000 ---p 4218d000 00:00 0 
4218e000-4298e000 rw-p 4218e000 00:00 0 
4298e000-4298f000 ---p 4298e000 00:00 0 
4298f000-4318f000 rw-p 4298f000 00:00 0 
7f7d2b55b000-7f7d2b569000 r-xp 00000000 08:03 6326595                    /usr/share/codeblocks/plugins/libRegExTestbed.so
7f7d2b569000-7f7d2b769000 ---p 0000e000 08:03 6326595                    /usr/share/codeblocks/plugins/libRegExTestbed.so
7f7d2b769000-7f7d2b76a000 r--p 0000e000 08:03 6326595                    /usr/share/codeblocks/plugins/libRegExTestbed.so
7f7d2b76a000-7f7d2b76b000 rw-p 0000f000 08:03 6326595                    /usr/share/codeblocks/plugins/libRegExTestbed.so
7f7d2b76b000-7f7d2b787000 r-xp 00000000 08:03 6325906                    /usr/share/codeblocks/plugins/libSymTab.so
7f7d2b787000-7f7d2b987000 ---p 0001c000 08:03 6325906                    /usr/share/codeblocks/plugins/libSymTab.so
7f7d2b987000-7f7d2b989000 r--p 0001c000 08:03 6325906                    /usr/share/codeblocks/plugins/libSymTab.so
7f7d2b989000-7f7d2b98a000 rw-p 0001e000 08:03 6325906                    /usr/share/codeblocks/plugins/libSymTab.so
7f7d2b98a000-7f7d2b999000 r-xp 00000000 08:03 6326571                    /usr/share/codeblocks/plugins/libautosave.so
7f7d2b999000-7f7d2bb98000 ---p 0000f000 08:03 6326571                    /usr/share/codeblocks/plugins/libautosave.so
7f7d2bb98000-7f7d2bb9a000 r--p 0000e000 08:03 6326571                    /usr/share/codeblocks/plugins/libautosave.so
7f7d2bb9a000-7f7d2bb9b000 rw-p 00010000 08:03 6326571                    /usr/share/codeblocks/plugins/libautosave.so
7f7d2bb9b000-7f7d2bbd5000 r-xp 00000000 08:03 6326569                    /usr/share/codeblocks/plugins/libBrowseTracker.so
7f7d2bbd5000-7f7d2bdd5000 ---p 0003a000 08:03 6326569                    /usr/share/cAborted