Author Topic: Crash on opening Codeblocks  (Read 6086 times)

Offline brgroe

  • Single posting newcomer
  • *
  • Posts: 2
Crash on opening Codeblocks
« on: March 26, 2014, 05:17:41 pm »
I'm trying to install Codeblocks on my work computer (Linux - a specialized distro which is Ubuntu-like) by installing it from source. Since IT here is particularly unhelpful and I don't have root access, I've had to install it in my user space by building it and all of its dependencies from source.

After a few days of work resolving the dependencies, I've got it to install, but it crashes immediately on startup, and I get the error report pasted below:

Code
<?xml version="1.0" encoding="UTF-8"?>
<report version="1.0" kind="exception">
  <system description="Linux 3.2.0-4-amd64 x86_64"/>
  <modules>
    <module path="/disk2/brg/bin/codeblocks" address="00400000" size="0016f000"/>
    <module path="[heap]" address="016c0000" size="0040f000"/>
    <module path="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0" address="7f56f92e5000" size="00005000" version="6.0.0"/>
    <module path="/usr/lib/x86_64-linux-gnu/libXdmcp.so.6.0.0" address="7f56f94e9000" size="00001000" version="6.0.0"/>
    <module path="/usr/lib/x86_64-linux-gnu/libXau.so.6.0.0" address="7f56f94ec000" size="00200000" version="6.0.0"/>
    <module path="/lib/x86_64-linux-gnu/libuuid.so.1.3.0" address="7f56f96ed000" size="00004000" version="1.3.0"/>
    <module path="/lib/x86_64-linux-gnu/libuuid.so.1.3.0" address="7f56f98f0000" size="00001000" version="1.3.0"/>
    <module path="/usr/lib/x86_64-linux-gnu/libICE.so.6.3.0" address="7f56f98f2000" size="00017000" version="6.3.0"/>
    <module path="/usr/lib/x86_64-linux-gnu/libICE.so.6.3.0" address="7f56f9b08000" size="00002000" version="6.3.0"/>
    <module path="/usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0" address="7f56f9b0d000" size="0001f000" version="1.1.0"/>
    <module path="/usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0" address="7f56f9d2b000" size="00001000" version="1.1.0"/>
    <module path="/disk2/brg/lib/libwx_baseu_xml-3.0.so.0.0.0" address="7f56f9d2d000" size="0000f000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_baseu_xml-3.0.so.0.0.0" address="7f56f9f3b000" size="00001000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_gtk2u_html-3.0.so.0.0.0" address="7f56fa001000" size="001ff000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_baseu-3.0.so.0.0.0" address="7f56fa213000" size="00260000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_baseu-3.0.so.0.0.0" address="7f56fa672000" size="00012000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_gtk2u_core-3.0.so.0.0.0" address="7f56fa68e000" size="005ba000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_gtk2u_core-3.0.so.0.0.0" address="7f56fae48000" size="00087000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_gtk2u_adv-3.0.so.0.0.0" address="7f56faedb000" size="001b9000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_gtk2u_adv-3.0.so.0.0.0" address="7f56fb294000" size="0002d000" version="0.0.0"/>
    <module path="/usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0" address="7f56fb2c4000" size="00023000" version="62.0.0"/>
    <module path="/usr/lib/x86_64-linux-gnu/libjpeg.so.62.0.0" address="7f56fb4e7000" size="00001000" version="62.0.0"/>
    <module path="/usr/lib/x86_64-linux-gnu/libSM.so.6.0.1" address="7f56fb4ef000" size="001ff000" version="6.0.1"/>
    <module path="/lib/x86_64-linux-gnu/libc-2.13.so" address="7f56fb6ef000" size="00182000" version="2.13"/>
    <module path="/lib/x86_64-linux-gnu/libc-2.13.so" address="7f56fba70000" size="00004000" version="2.13"/>
    <module path="/lib/x86_64-linux-gnu/libgcc_s.so.1" address="7f56fba7a000" size="00015000" version="1"/>
    <module path="/lib/x86_64-linux-gnu/libgcc_s.so.1" address="7f56fbc8f000" size="00001000" version="1"/>
    <module path="/lib/x86_64-linux-gnu/libm-2.13.so" address="7f56fbd11000" size="001ff000" version="2.13"/>
    <module path="/lib/x86_64-linux-gnu/libm-2.13.so" address="7f56fbf11000" size="00001000" version="2.13"/>
    <module path="/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17" address="7f56fbffa000" size="00200000" version="6.0.17"/>
    <module path="/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17" address="7f56fc202000" size="00002000" version="6.0.17"/>
    <module path="/lib/x86_64-linux-gnu/libdl-2.13.so" address="7f56fc219000" size="00002000" version="2.13"/>
    <module path="/lib/x86_64-linux-gnu/libdl-2.13.so" address="7f56fc41b000" size="00001000" version="2.13"/>
    <module path="/lib/x86_64-linux-gnu/libpthread-2.13.so" address="7f56fc41d000" size="00017000" version="2.13"/>
    <module path="/lib/x86_64-linux-gnu/libpthread-2.13.so" address="7f56fc633000" size="00001000" version="2.13"/>
    <module path="/lib/x86_64-linux-gnu/librt-2.13.so" address="7f56fc639000" size="00007000" version="2.13"/>
    <module path="/lib/x86_64-linux-gnu/librt-2.13.so" address="7f56fc83f000" size="00001000" version="2.13"/>
    <module path="/disk2/brg/lib/libglib-2.0.so.0.3800.2" address="7f56fc841000" size="00129000" version="0.3800.2"/>
    <module path="/disk2/brg/lib/libglib-2.0.so.0.3800.2" address="7f56fcb6a000" size="00002000" version="0.3800.2"/>
    <module path="/disk2/brg/lib/libharfbuzz.so.0.927.0" address="7f56fcbc5000" size="001ff000" version="0.927.0"/>
    <module path="/lib/x86_64-linux-gnu/libpng12.so.0.49.0" address="7f56fcdc6000" size="00026000" version="0.49.0"/>
    <module path="/lib/x86_64-linux-gnu/libpng12.so.0.49.0" address="7f56fcfeb000" size="00001000" version="0.49.0"/>
    <module path="/disk2/brg/lib/libz.so.1.2.8" address="7f56fcfed000" size="00017000" version="1.2.8"/>
    <module path="/disk2/brg/lib/libz.so.1.2.8" address="7f56fd203000" size="00001000" version="1.2.8"/>
    <module path="/disk2/brg/lib/libfreetype.so.6.11.2" address="7f56fd294000" size="00200000" version="6.11.2"/>
    <module path="/disk2/brg/lib/libffi.so.6.0.1" address="7f56fd49a000" size="00007000" version="6.0.1"/>
    <module path="/disk2/brg/lib/libffi.so.6.0.1" address="7f56fd6a1000" size="00001000" version="6.0.1"/>
    <module path="/disk2/brg/lib/libgobject-2.0.so.0.3800.2" address="7f56fd6f0000" size="00200000" version="0.3800.2"/>
    <module path="/disk2/brg/lib/libexpat.so.1.6.0" address="7f56fd8f2000" size="00027000" version="1.6.0"/>
    <module path="/disk2/brg/lib/libexpat.so.1.6.0" address="7f56fdb18000" size="00003000" version="1.6.0"/>
    <module path="/disk2/brg/lib/libfontconfig.so.1.8.0" address="7f56fdb55000" size="001ff000" version="1.8.0"/>
    <module path="/disk2/brg/lib/libgthread-2.0.so.0.3800.2" address="7f56fdd56000" size="00001000" version="0.3800.2"/>
    <module path="/disk2/brg/lib/libgthread-2.0.so.0.3800.2" address="7f56fdf56000" size="00001000" version="0.3800.2"/>
    <module path="/disk2/brg/lib/libgmodule-2.0.so.0.3800.2" address="7f56fdf5a000" size="001ff000" version="0.3800.2"/>
    <module path="/disk2/brg/lib/libpango-1.0.so.0.3600.3" address="7f56fe15a000" size="00049000" version="0.3600.3"/>
    <module path="/disk2/brg/lib/libpango-1.0.so.0.3600.3" address="7f56fe3a2000" size="00003000" version="0.3600.3"/>
    <module path="/usr/lib/x86_64-linux-gnu/libXext.so.6.4.0" address="7f56fe3b6000" size="00200000" version="6.4.0"/>
    <module path="/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0" address="7f56fe5b7000" size="00135000" version="6.3.0"/>
    <module path="/usr/lib/x86_64-linux-gnu/libX11.so.6.3.0" address="7f56fe8ec000" size="00006000" version="6.3.0"/>
    <module path="/disk2/brg/lib/libXrender.so.1.3.0" address="7f56fe8fb000" size="001ff000" version="1.3.0"/>
    <module path="/disk2/brg/lib/libpixman-1.so.0.32.4" address="7f56feafb000" size="000a5000" version="0.32.4"/>
    <module path="/disk2/brg/lib/libpixman-1.so.0.32.4" address="7f56fed9f000" size="00008000" version="0.32.4"/>
    <module path="/disk2/brg/lib/libcairo.so.2.11200.16" address="7f56fee95000" size="001ff000" version="2.11200.16"/>
    <module path="/lib/x86_64-linux-gnu/libresolv-2.13.so" address="7f56ff099000" size="00013000" version="2.13"/>
    <module path="/lib/x86_64-linux-gnu/libresolv-2.13.so" address="7f56ff2ab000" size="00001000" version="2.13"/>
    <module path="/disk2/brg/lib/libgio-2.0.so.0.3800.2" address="7f56ff2af000" size="0015d000" version="0.3800.2"/>
    <module path="/disk2/brg/lib/libgio-2.0.so.0.3800.2" address="7f56ff60c000" size="00006000" version="0.3800.2"/>
    <module path="/disk2/brg/lib/libgdk_pixbuf-2.0.so.0.3000.6" address="7f56ff613000" size="00020000" version="0.3000.6"/>
    <module path="/disk2/brg/lib/libgdk_pixbuf-2.0.so.0.3000.6" address="7f56ff832000" size="00001000" version="0.3000.6"/>
    <module path="/disk2/brg/lib/libpangoft2-1.0.so.0.3600.3" address="7f56ff846000" size="00200000" version="0.3600.3"/>
    <module path="/disk2/brg/lib/libpangocairo-1.0.so.0.3600.3" address="7f56ffa47000" size="0000c000" version="0.3600.3"/>
    <module path="/disk2/brg/lib/libpangocairo-1.0.so.0.3600.3" address="7f56ffc52000" size="00001000" version="0.3600.3"/>
    <module path="/disk2/brg/lib/libatk-1.0.so.0.21110.1" address="7f56ffc74000" size="00200000" version="0.21110.1"/>
    <module path="/disk2/brg/lib/libgdk-x11-2.0.so.0.2400.23" address="7f56ffe77000" size="000aa000" version="0.2400.23"/>
    <module path="/disk2/brg/lib/libgdk-x11-2.0.so.0.2400.23" address="7f5700121000" size="00005000" version="0.2400.23"/>
    <module path="/disk2/brg/lib/libgtk-x11-2.0.so.0.2400.23" address="7f5700554000" size="00200000" version="0.2400.23"/>
    <module path="/disk2/brg/lib/libwx_gtk2u-3.0.so.0.0.0" address="7f5700761000" size="00f67000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_gtk2u-3.0.so.0.0.0" address="7f57018c8000" size="000f6000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_gtk2u_richtext-3.0.so.0.0.0" address="7f57019e6000" size="0019e000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_gtk2u_richtext-3.0.so.0.0.0" address="7f5701d83000" size="00019000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_gtk2u_propgrid-3.0.so.0.0.0" address="7f5701da0000" size="000dd000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_gtk2u_propgrid-3.0.so.0.0.0" address="7f570207d000" size="00010000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_gtk2u_aui-3.0.so.0.0.0" address="7f570208e000" size="0008d000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libwx_gtk2u_aui-3.0.so.0.0.0" address="7f570231a000" size="0000a000" version="0.0.0"/>
    <module path="/disk2/brg/lib/libcodeblocks.so.0.0.1" address="7f5702325000" size="00607000" version="0.0.1"/>
    <module path="/disk2/brg/lib/libcodeblocks.so.0.0.1" address="7f5702b2c000" size="00036000" version="0.0.1"/>
    <module path="/lib/x86_64-linux-gnu/ld-2.13.so" address="7f5702b6d000" size="00020000" version="2.13"/>
    <module path="/var/cache/nscd/passwd" address="7f5702baa000" size="00035000"/>
    <module path="/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache" address="7f5702d7f000" size="00007000"/>
    <module path="/lib/x86_64-linux-gnu/ld-2.13.so" address="7f5702d8c000" size="00001000" version="2.13"/>
    <module path="[stack]" address="7fff3955f000" size="00022000"/>
  </modules>
  <stack>
    <frame level="0" function="CodeBlocksApp::OnFatalException()" offset="00000000"/>
    <frame level="1"/>
    <frame level="2"/>
    <frame level="3" function="_longjmp" offset="00000018"/>
    <frame level="4"/>
    <frame level="5" function="wxPNGHandler::SaveFile(wxImage*, wxOutputStream&amp;, bool)" offset="00000000"/>
    <frame level="6" function="png_error" offset="00000046"/>
    <frame level="7" function="png_create_read_struct_2" offset="000001de"/>
    <frame level="8" function="png_create_read_struct" offset="00000017"/>
    <frame level="9" function="wxPNGHandler::LoadFile(wxImage*, wxInputStream&amp;, bool, int)" offset="00000067"/>
    <frame level="10" function="wxImage::DoLoad(wxImageHandler&amp;, wxInputStream&amp;, int)" offset="000000fa"/>
    <frame level="11" function="wxImage::LoadFile(wxInputStream&amp;, wxBitmapType, int)" offset="00000062"/>
    <frame level="12" function="cbLoadBitmap(wxString const&amp;, wxBitmapType)" offset="0000009c"/>
    <frame level="13" function="CodeBlocksApp::OnInit()" offset="00000000"/>
    <frame level="14" function="wxEntry(int&amp;, wchar_t**)" offset="00000064"/>
    <frame level="15" function="main" offset="00000000"/>
    <frame level="16" function="__libc_start_main" offset="000000fd"/>
    <frame level="17" function="_start" offset="00000000"/>
  </stack>
</report>

I wouldn't be surprised at all if there's some issue in my installation that's causing this. One possibility is with the installation of wxWidgets (whose functions can be seen called in the error report) - the C::B documentation says to install wxWidgets as a monolithic dll, but if I do that (using the --enable-monolithic option), C::B won't actually build (it fails at the "make" step). C::B will build if wxWidgets is installed not-monolithically, but it still crashes on start-up. Perhaps there's some other way I should have installed it?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Crash on opening Codeblocks
« Reply #1 on: March 26, 2014, 08:17:57 pm »
Hm, probably a png file is missing.

Can you describe the steps you've used to build and install C::B?
(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 Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Crash on opening Codeblocks
« Reply #2 on: March 27, 2014, 12:44:30 am »
You use C::B together with wx3.0.
This is in general more unstable than C::B with wx2.8.
Did you install wxWidgets or do you use it from the build-folder ?

Just for the record, I post the configure-command I use to build my (test) wx-trunk:
Code
../../wxwidgets.dev/configure --with-zlib=sys --disable-reserved_virtual --enable-debug --enable-debug_info --enable-debug_gdb --enable-unicode --with-gtk=2 --enable-sound --with-sdl --enable-display --enable-geometry --enable-graphics_ctx --with-libjpeg=builtin --with-libpng=sys --with-libtiff=sys  --with-opengl

C::B works quite stable with this build.

Which sources do you use (svn or a special revision).

Did you try to start C::B without splash-screen ( -ns or --no-splash-screen ) ?

And of course as oBFusCATed wrote, which (exact) steps did you do to build C::B (and wx and probably other dependencies) ?

ToApolytoXaos

  • Guest
Re: Crash on opening Codeblocks
« Reply #3 on: March 27, 2014, 09:09:25 am »
@jens: Thank you for sharing this building command mate. I was feeling embarrassed to ask you this, since I knew you offer nightly builds on your repos :D I just like building source code myself; call it eccentricity...whatever anyway lol!

I have been having issues with C::B myself for ages now and had to quit trying as I could not figure out what was causing the crashing on my Debian testing 64-bit machine every time I would run it.

As soon as I get home, I will re-compile it with your suggested building command and hopefully will resolve this headache.

Thanks for once again.

Offline brgroe

  • Single posting newcomer
  • *
  • Posts: 2
Re: Crash on opening Codeblocks
« Reply #4 on: March 27, 2014, 02:42:40 pm »
Thanks for the replies. I tried loading without the splash screen, and I got the same error. While I test some of the other solutions (different installs for wxWidgets), here's the general procedure I used to install C::B and the various dependencies (unfortunately, due to the sheer number of dependencies I had to install, I forget all the specifics):

1. Download and extract the source code

    2a. If it's a standard package, use autogen.sh/bootstrap/aclocal, then ./configure --prefix=$HOME and check for errors. Adjust environment variables, command line options, and install dependencies as necessary until this step proceeds without error.
    3a. Run make and make install (and if errors do happen here, check configurations and dependencies. Usually problems were caught at the configuration step, but some didn't show up until here)
    4a. Test that it works.

    2-4b. For non-standard installs, follow the appropriate instructions, either within the package, or otherwise from a site such as Linux from Scratch.

5. If this is a dependency, go back up and continue trying to install the package that required it.

Here's a list of all the packages I ended up installing:

Code
atk-2.11.1
automake-1.14
cairo-1.12.16
codeblocks_13.12-1
docbook-xml-4.5
docbook-xsl-1.71.1
expat-2.1.0
fontconfig-2.11.0
freetype-2.5.3
gdk-pixbuf-2.30.6
gettext-0.18.3.1
glib-2.38.2
gtk+-2.24.23
harfbuzz-0.9.27
help2man-1.40.4-1-msys-1.0.17-src
hunspell-1.3.2
itstool-2.0.2
libogg-1.3.1
libpng-1.6.10
libtool-2.4
libvorbis-1.3.4
libxml2-2.9.1
libXrender-0.9.8
pango-1.36.3
pixman-0.32.4
pkg-config-0.22
ragel-6.8
renderproto-0.11.1
util-macros-1.18.0
wxWidgets-3.0.0
xextproto-7.3.0
xproto-7.0.25
zlib-1.2.8

...Seriously, sadly. The sunk-cost fallacy really dragged me in to seeing this through to completion. For any IT managers out there, the above list is why "Just install it in your user-space" is not a good reply to an installation request.

I'll post back once I've tried installing C::B with jens' configure options, and with wx2.8, which will take some time to build.

EDIT TO UPDATE:

Okay, installing wx2.8 helped. It now loads up, but I ran into an assert fail while trying to debug code:

Code
ASSERT INFO:
./src/propgrid.cpp(7627): assert "editor" failed in DoSelectProperty(): NULL editor class not allowed

BACKTRACE:
[1] wxPropertyGrid::DoSelectProperty(wxPGProperty*, unsigned int)
[2] wxPropertyGrid::AddToSelectionFromInputEvent(wxPGProperty*, unsigned int, wxMouseEvent*, int)
[3] wxPropertyGrid::HandleMouseClick(int, unsigned int, wxMouseEvent&)
[4] wxPropertyGrid::OnMouseClick(wxMouseEvent&)
[5] wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) cons)
[6] wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[7] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[8] wxEvtHandler::ProcessEvent(wxEvent&)
[9] wxWindow::GTKProcessEvent(wxEvent&) cons)
[10] g_closure_invoke()
[11] g_signal_emit_valist()
[12] g_signal_emit()
[13] gtk_propagate_event()
[14] gtk_main_do_event()
[15] g_main_context_dispatch()
[16] g_main_loop_run()
[17] gtk_main()
[18] wxEventLoop::Run()
[19] wxAppBase::MainLoop()
[20] wxAppBase::OnRun()

This happened after inspecting a vector-like class and clicking on some of the member names that appeared in the inspection window. The program didn't crash, so it's usable at least (and I can disable the display of that error). But I'm not sure if I should report this as a bug, or if it's more likely a result of something improper I did in installing it. Thoughts?
« Last Edit: March 27, 2014, 03:53:18 pm by brgroe »