Author Topic: Settings->Environment.... crash! the latest nightly !!!!!!!!!!  (Read 36585 times)

Dee

  • Guest
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #15 on: April 15, 2006, 05:59:32 pm »
So, it still crash....
Code
dee@dexus:~$ codeblocks
(codeblocks:25830): Gtk-CRITICAL **: gtk_window_realize_icon: assertion `info->icon_pixmap == NULL' failed
addr2line: 'codeblocks': No such file
addr2line: 'codeblocks': No such file
[... 62 lines with the same text ...]
addr2line: 'codeblocks': No such file
Abgebrochen

The Gtk-Critical appears when Code::Blocks starts and has nothing to do with the crash. Here's the output from gdb:
Code
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1229030624 (LWP 26107)]
0x08074463 in EnvironmentSettingsDlg::OnChooseColor ()

As Pecan said in the other thread (linked by Michael) I use "bt" after the crash:
Code
(gdb) bt
#0  0x08074463 in EnvironmentSettingsDlg::OnChooseColor ()
#1  0x08095c5a in MainFrame::OnSettingsEnvironment ()
#2  0xb763a2c1 in wxAppConsole::HandleEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#3  0xb76c2edf in wxEvtHandler::ProcessEventIfMatches ()
   from /usr/lib/libwx_baseu-2.6.so.0
#4  0xb76c30b0 in wxEventHashTable::HandleEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#5  0xb76c3261 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#6  0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#7  0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#8  0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#9  0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#10 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#11 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#12 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#13 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#14 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#15 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#16 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#17 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#18 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#19 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#20 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#21 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#22 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#23 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#24 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#25 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#26 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#27 0xb76c3207 in wxEvtHandler::ProcessEvent ()
   from /usr/lib/libwx_baseu-2.6.so.0
#28 0xb78bce45 in wxMenu::~wxMenu () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#29 0xb6d20ab3 in g_cclosure_marshal_VOID__VOID ()
   from /usr/lib/libgobject-2.0.so.0
#30 0xb6d153a8 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#31 0xb6d23b13 in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0
#32 0xb6d25150 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#33 0xb6d254c3 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#34 0xb7153f8d in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#35 0xb7080c69 in gtk_menu_shell_activate_item ()
   from /usr/lib/libgtk-x11-2.0.so.0
#36 0xb7080f3d in gtk_menu_shell_activate_item ()
   from /usr/lib/libgtk-x11-2.0.so.0
#37 0xb707766e in gtk_menu_reorder_child () from /usr/lib/libgtk-x11-2.0.so.0
#38 0xb707202c in _gtk_marshal_BOOLEAN__BOXED ()
   from /usr/lib/libgtk-x11-2.0.so.0
#39 0xb6d14d75 in g_cclosure_new_swap () from /usr/lib/libgobject-2.0.so.0
#40 0xb6d153a8 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#41 0xb6d23c9f in g_signal_stop_emission () from /usr/lib/libgobject-2.0.so.0
#42 0xb6d24ec3 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#43 0xb6d254c3 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#44 0xb715416f in gtk_widget_activate () from /usr/lib/libgtk-x11-2.0.so.0
#45 0xb7070767 in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#46 0xb7070ba0 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#47 0xb727ab2d in _gdk_events_queue () from /usr/lib/libgdk-x11-2.0.so.0
#48 0xb6ca74ee in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#49 0xb6caa4f6 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#50 0xb6caa7e3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#51 0xb706fe65 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#52 0xb78492a7 in wxEventLoop::Run () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#53 0xb78d8b6a in wxAppBase::MainLoop ()
   from /usr/lib/libwx_gtk2u_core-2.6.so.0
#54 0xb78d8c4f in wxAppBase::OnRun () from /usr/lib/libwx_gtk2u_core-2.6.so.0
#55 0x080648ae in CodeBlocksApp::OnBatchBuildDone ()
#56 0xb766dad4 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#57 0xb766db88 in wxEntry () from /usr/lib/libwx_baseu-2.6.so.0
#58 0x08062344 in ?? ()
#59 0xb73cfec2 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#60 0x08062261 in ?? ()

I hope the output helps finding the error. Before starting I deinstalled the old version of course and deleted the ~/.CodeBlocks directory.

Greetings, Dee

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2873
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #16 on: April 15, 2006, 10:53:02 pm »

Dee, thank you for that backtrace. I'll have a look at it
just after Easter.

thanks
pecan

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #17 on: April 19, 2006, 04:46:41 pm »
Hello,

I have asked my collegue to give a try to the rev2360 (.deb package) on kubuntu 5.10 and to check if it still crashes (Settings-->Environment). He has reported me the same problems as Dee (the backtrace is the same).

Best wishes,
Michael

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2873
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #18 on: April 22, 2006, 04:36:28 pm »

May be the problem with Settings-->Environment is similar as the Settings-->Editor one.

Michael,
What do I have to turn on to get this crash?
I don't seem to be able to reproduce it on Ubuntu 510?
Do you get it?

Edit: Ok, I see that you dont get the crash (on closer reading).
    It seems the crash occurs with the .deb package. Does the
    deb package distribute the resources along with the code?
    Does the .deb package *update* the resources?

Is the .deb accidently failing to update resources?

Maybe you could compare your resources (for Settings->Environment)
with your collegues resources?

Maybe you could delete every .zip file in his CB directory, re-install
the .deb and see if the bug goes away?

thanks
pecan
« Last Edit: April 22, 2006, 05:22:38 pm by Pecan »

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #19 on: April 22, 2006, 10:00:32 pm »

May be the problem with Settings-->Environment is similar as the Settings-->Editor one.

Michael,
What do I have to turn on to get this crash?
I don't seem to be able to reproduce it on Ubuntu 510?
Do you get it?

Edit: Ok, I see that you dont get the crash (on closer reading).
    It seems the crash occurs with the .deb package. Does the
    deb package distribute the resources along with the code?
    Does the .deb package *update* the resources?

Yes, I do not have it, just my collegue. But I do not use .deb package, but him yes. So, it could be the cause.

Is the .deb accidently failing to update resources?

Maybe you could compare your resources (for Settings->Environment)
with your collegues resources?

Maybe you could delete every .zip file in his CB directory, re-install
the .deb and see if the bug goes away?

Regarding the .deb package may be Yannis has some ideas about the update of resources (he kindly provide the debian direcotry :)). I am not sure if it does an update or not.

Next week I wll compare my resource with those of my colleague and then report my comments. I will also try as you suggest to delete the his .zip files and the re-install the .deb package. Thank you for the suggestion :).

Best wishes,
Michael

Offline squizzz

  • Almost regular
  • **
  • Posts: 132
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #20 on: April 22, 2006, 10:17:28 pm »
I use .deb package rev 2366 under Breezy and I confirm the crash when entering Settings->Enviroment. I uninstalled it (via Synaptic), and installed again, and it didn't help.
this space is for rent

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #21 on: April 22, 2006, 10:23:14 pm »
I use .deb package rev 2366 under Breezy and I confirm the crash when entering Settings->Enviroment. I uninstalled it (via Synaptic), and installed again, and it didn't help.

Thank you for trying :). Did you have installed a previous .deb package or this was your first?

If you build C::B by yourself too can you compare the resources of your build and of the .deb package? Thanks :).

Best wishes,
Michael

Dee

  • Guest
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #22 on: April 25, 2006, 01:43:28 pm »
Hello,

I also installed the deb and want to try to build the source by myself. But stupid question: Where can I get it? The nightly build threads only have the precompiled packages. On Sourceforge and on the Download Page I only find the sources for 1.0rc2... On BerliOS I only see the nightly binaries.

So where is the source to download as tar or whatever?

And after I build it what should I compare exactly?

Greetings, Dee
« Last Edit: April 25, 2006, 01:46:19 pm by Dee »

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #23 on: April 25, 2006, 01:54:40 pm »
Hello,

I also installed the deb and want to try to build the source by myself. But stupid question: Where can I get it? The nightly build threads only have the precompiled packages. On Sourceforge and on the Download Page I only find the sources for 1.0rc2... On BerliOS I only see the nightly binaries.

So where is the source to download as tar or whatever?

And after I build it what should I compare exactly?

Hello,

Have a look at here.

Best wishes,
Michael

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #24 on: April 25, 2006, 02:15:12 pm »
Unluckily, that WiKi Article has only been partially updated.
The important info on how to get the sources is here: http://www.codeblocks.org/source_code.shtml

Basically, you need Subversion installed on your system, and you do the same as you would do with cvs, only you type svn instead.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Dee

  • Guest
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #25 on: April 25, 2006, 02:58:42 pm »
Sorry, I give up or someone must really help me. I've never used csv or svn but get it to download the files. With this manual I see what to do, but bootstrap returns
Code
/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
aclocal:configure.in:61: warning: macro `AM_OPTIONS_WXCONFIG' not found in library
aclocal:configure.in:62: warning: macro `AM_PATH_WXCONFIG' not found in library
configure.in:61: error: possibly undefined macro: AM_OPTIONS_WXCONFIG
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.in:62: error: possibly undefined macro: AM_PATH_WXCONFIG
and I don't understand not even a single word...

Maybe someone else would be better for compiling it...

Greetings, Dee

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #26 on: April 25, 2006, 03:05:39 pm »
Hello,

Did you try the solution proposed in here?

Quote
export ACLOCAL_FLAGS="--acdir=`wx-config --prefix`/share/aclocal"

Best wishes,
Michael

If you use Ubuntu 5.10 did you install the package wx-common?

Dee

  • Guest
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #27 on: April 25, 2006, 03:24:24 pm »
Sorry, I tried it before with the export command, but nothing changes. After this I tried the other hint but no change at all. (btw: I had no /usr/share/aclocal/dirlist and created it).
Quote
If you use Ubuntu 5.10 did you install the package wx-common?
No, but I installed it now... The message is now:
Code
/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
Can I ignore these warnings?

Greetings, Dee

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #28 on: April 25, 2006, 06:34:50 pm »
The message is now:
Code
/usr/share/aclocal/gtk.m4:7: warning: underquoted definition of AM_PATH_GTK
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
/usr/share/aclocal/glib.m4:8: warning: underquoted definition of AM_PATH_GLIB
Can I ignore these warnings?

IMHO, a warning is not a good thing and would be better to solve it (if possible). IIRC, I did not have that warning. Anyway, I think that you can ignore it and continue with the installation, but before check the suggested link and try to find out more about the warning (for example here).

Best wishes,
Michael

Dee

  • Guest
Re: Settings->Environment.... crash! the latest nightly !!!!!!!!!!
« Reply #29 on: April 25, 2006, 06:52:18 pm »
So I ignore the warnings and can compile it... And it doesn't crash anymore! :)

So what can I do to help you find the difference between my deb and the deb you offer ?

Greetings, Dee