Author Topic: CB crashes when opening Project/Build options  (Read 6256 times)

bnilsson

  • Guest
CB crashes when opening Project/Build options
« on: October 24, 2006, 07:22:28 am »
CB crashes when opening Project/Build options for an opened project.
I am using CB rev 3133, but it may have been introduced earlier.

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
Re: CB crashes when opening Project/Build options
« Reply #1 on: October 24, 2006, 10:25:27 am »
Backtrace, sample project, all projects?

bnilsson

  • Guest
Re: CB crashes when opening Project/Build options
« Reply #2 on: October 25, 2006, 12:47:21 am »
No backtrace yet, but I have a clue on how to get one thanks to afb.
Seems any project can crash.

bnilsson

  • Guest
Re: CB crashes when opening Project/Build options
« Reply #3 on: October 25, 2006, 07:43:18 pm »
Here is the backtrace for "Project/Build options" for a console project.

Reading symbols for shared libraries . done
Reading symbols for shared libraries ... done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x0654e704 in CompilerOptionsDlg::OnUpdateUI ()
(gdb) backtrace full
#0  0x0654e704 in CompilerOptionsDlg::OnUpdateUI ()
No symbol table info available.
#1  0x015cd4c8 in wxEvtHandler::ProcessEventIfMatches ()
No symbol table info available.
#2  0x015cd788 in wxEventHashTable::HandleEvent ()
No symbol table info available.
#3  0x015cdf14 in wxEvtHandler::ProcessEvent ()
No symbol table info available.
#4  0x016f61ec in wxWindowBase::TryParent ()
No symbol table info available.
#5  0x016f61ec in wxWindowBase::TryParent ()
No symbol table info available.
#6  0x016fa974 in wxWindowBase::UpdateWindowUI ()
No symbol table info available.
#7  0x016fa9dc in wxWindowBase::UpdateWindowUI ()
No symbol table info available.
#8  0x016fa9dc in wxWindowBase::UpdateWindowUI ()
No symbol table info available.
#9  0x016fa9dc in wxWindowBase::UpdateWindowUI ()
No symbol table info available.
#10 0x015cd4c8 in wxEvtHandler::ProcessEventIfMatches ()
No symbol table info available.
#11 0x015cd788 in wxEventHashTable::HandleEvent ()
No symbol table info available.
#12 0x015cdf14 in wxEvtHandler::ProcessEvent ()
No symbol table info available.
#13 0x016facb8 in wxWindowBase::InitDialog ()
No symbol table info available.
#14 0x01614a98 in wxDialog::Show ()
No symbol table info available.
#15 0x016148bc in wxDialog::ShowModal ()
No symbol table info available.
#16 0x065131b8 in CompilerGCC::Configure ()
No symbol table info available.
#17 0x0650e158 in CompilerGCC::OnProjectCompilerOptions ()
No symbol table info available.
#18 0x06523c3c in CompilerGCC::Dispatcher ()
No symbol table info available.
#19 0x015cd4c8 in wxEvtHandler::ProcessEventIfMatches ()
No symbol table info available.
#20 0x015cd788 in wxEventHashTable::HandleEvent ()
No symbol table info available.
#21 0x015cdf14 in wxEvtHandler::ProcessEvent ()
No symbol table info available.
#22 0x015cdf44 in wxEvtHandler::ProcessEvent ()
No symbol table info available.
#23 0x016d2e0c in wxMenuBase::SendEvent ()
No symbol table info available.
#24 0x015f38f4 in wxMacAppEventHandler ()
No symbol table info available.
#25 0x93207554 in DispatchEventToHandlers ()
No symbol table info available.
#26 0x93206cac in SendEventToEventTargetInternal ()
No symbol table info available.
#27 0x9320da60 in SendEventToEventTarget ()
No symbol table info available.
#28 0x932862cc in SendHICommandEvent ()
No symbol table info available.
#29 0x932b6158 in SendMenuItemSelectedEvent ()
No symbol table info available.
#30 0x932b6060 in FinishMenuSelection ()
No symbol table info available.
#31 0x9329d56c in MenuSelectCore ()
No symbol table info available.
#32 0x9329d054 in MenuSelect ()
No symbol table info available.
#33 0x0164d7f0 in wxMacTopLevelMouseEventHandler ()
No symbol table info available.
#34 0x015f3e5c in wxMacAppEventHandler ()
No symbol table info available.
#35 0x93207554 in DispatchEventToHandlers ()
No symbol table info available.
#36 0x93206cac in SendEventToEventTargetInternal ()
No symbol table info available.
#37 0x9320da60 in SendEventToEventTarget ()
No symbol table info available.
#38 0x932992d4 in HandleMouseEvent ()
No symbol table info available.
#39 0x9320ddcc in ToolboxEventDispatcherHandler ()
No symbol table info available.
#40 0x932077a4 in DispatchEventToHandlers ()
No symbol table info available.
#41 0x93206cac in SendEventToEventTargetInternal ()
No symbol table info available.
#42 0x9320da60 in SendEventToEventTarget ()
No symbol table info available.
#43 0x015f144c in wxApp::MacHandleOneEvent ()
No symbol table info available.
#44 0x015f1544 in wxApp::MacDoOneEvent ()
No symbol table info available.
#45 0x015f15d8 in wxApp::MainLoop ()
No symbol table info available.
#46 0x00005290 in CodeBlocksApp::OnRun ()
No symbol table info available.
#47 0x0157be44 in wxEntry ()
No symbol table info available.
#48 0x00003e48 in main ()
No symbol table info available.
(gdb)
 

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: CB crashes when opening Project/Build options
« Reply #4 on: October 25, 2006, 08:13:10 pm »
Try the following in your working copy:

Code
make clean-zipfiles // <- this is the important part
make
make install // (or whatever it is that you do on Mac)

(don't type the comments!)
Be patient!
This bug will be fixed soon...

bnilsson

  • Guest
Re: CB crashes when opening Project/Build options
« Reply #5 on: October 25, 2006, 08:25:56 pm »
Thank you very much.
That fixed both the "Settings/Compiler and debugger" and "Project/Build options" crashes.
I will make this standard from now on.

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: CB crashes when opening Project/Build options
« Reply #6 on: October 25, 2006, 10:00:25 pm »
Thank you very much.
That fixed both the "Settings/Compiler and debugger" and "Project/Build options" crashes.
I will make this standard from now on.

I 'm glad this fixed it.
The problem is that the resource files (zips) do not get recreated when one of their contained files changes. The above command will just delete all of them and recreate them.
In short, until I finally get to fix it in the makefiles, you should run "make clean-zipfiles" whenever a *.xrc is updated.
Be patient!
This bug will be fixed soon...