Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: killerbot on October 25, 2010, 02:02:38 pm

Title: crash when switching back to merged trunk(SOLVED)
Post by: killerbot on October 25, 2010, 02:02:38 pm
I switched back (linux box) to the trunk version (did a "sudo make distclean" in my cc branch), and now always get this crash :

Code
  <stack>
    <frame level="0"/>
    <frame level="1" function="wxString::mb_str(wxMBConv const&amp;) const" offset="00000007"/>
    <frame level="2" function="ConfigManager::Write(wxString const&amp;, wxString const&amp;, bool)" offset="00000169"/>
    <frame level="3" function="Aligner::OnRelease(bool)" offset="0000027f"/>
    <frame level="4" function="cbPlugin::Attach()" offset="00000070"/>
    <frame level="5" function="PluginManager::AttachPlugin(cbPlugin*, bool)" offset="0000002e"/>
    <frame level="6" function="PluginManager::LoadAllPlugins()" offset="00000390"/>
    <frame level="7" function="wxStringBase::GetStringData() const" offset="00000000" file="/usr/include/wx-2.8/wx/string.h" line="265"/>
    <frame level="8" function="MainFrame" offset="00000000" file="/home/ldco/CodeBlocks/trunk/src/src/main.cpp" line="520"/>
    <frame level="9" function="wxUpdateUIEvent::SetUpdateInterval(long)" offset="00000000" file="/usr/include/wx-2.8/wx/event.h" line="1716"/>
  </stack>

any ideas ?
Title: Re: crash when switching back to merged trunk
Post by: cbexaminr on October 25, 2010, 02:23:20 pm
maybe unrelated, but...

after recent merge of trunk to wxpropgrid_debugger branch, I had (windows) crashes starting c::b after rebuilding just c::b project and not plugin project.

After I rebuilt plugin project (and updated) crashes ceased.

Does sudo make distclean take care of building both projects and the update?
Title: Re: crash when switching back to merged trunk
Post by: Loaden on October 25, 2010, 02:49:40 pm
Remove the cc_branch, and re-checkout trunk? :D
I am using Linux OS too. and CB works well.
Title: Re: crash when switching back to merged trunk
Post by: danselmi on October 25, 2010, 03:17:12 pm
Aligner was merged into EditorTweaks.
Title: Re: crash when switching back to merged trunk
Post by: killerbot on October 25, 2010, 05:36:16 pm
I even did a fresh checkout [actually rm -rf *  and then svn update  @ trunk level] , and I still have this problem ... This does not occur to me on the (old) cc branch.

EDIT : how can I get a nice cleanup of the through "sudo make install" installed files from the system (meaning kick CB out of linux, except for it sources ;-)  ).
Title: Re: crash when switching back to merged trunk
Post by: Loaden on October 25, 2010, 05:41:39 pm
I even did a fresh checkout [actually rm -rf *  and then svn update  @ trunk level] , and I still have this problem ... This does not occur to me on the (old) cc branch.

EDIT : how can I get a nice cleanup of the through "sudo make install" installed files from the system (meaning kick CB out of linux, except for it sources ;-)  ).
Trying: sudo make uninstall
Title: Re: crash when switching back to merged trunk
Post by: oBFusCATed on October 25, 2010, 06:33:33 pm
killerbot, what is your distro?
The preferred and safest way to install software is to use the package manager.
So if you're on debian base distro, just build debian packages and install them with dpkg.
If you're on rpm base, build rpms...
It is the same for the other distro types (Arch and gentoo)...

make install/uninstall is too error prone.
Title: Re: crash when switching back to merged trunk
Post by: killerbot on October 25, 2010, 07:54:47 pm
sudo make uninstall  --> no luck

Still the same crash.

But SOLVED IT : apparently there was still an Aligner.zip file left over in the share area ..., removing it solved the problem
Title: Re: crash when switching back to merged trunk(SOLVED)
Post by: oBFusCATed on October 25, 2010, 10:08:29 pm
make uninstall should be called before compiling the new version :)
Title: Re: crash when switching back to merged trunk(SOLVED)
Post by: Jenna on October 25, 2010, 10:25:04 pm
make uninstall should be called before compiling the new version :)
and even before running ./bootstrap and ./configure again, otherwise the new makefiles don't know the formerly installed stuff.