Author Topic: Crash (serious) when removing a dependend lib from a workspace  (Read 3471 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Dear all,
I've tracked down a crash that caused me a headage over the past couple of weeks (month) into a reproducable way:
Find attached a ZIP file with a project that consists of 2 libs and an application that depends on those libs. Steps to reproduce:
1.) Open the workspace (make sure there are 3 projects open afterwards)
2.) Remove the first lib ("LibA") by right-clicking on the project and select "Close project"
3.) Issue a "Rebuild workspace" from the Build command

--> Crash!

I don't have time today to have a closer look into so I'm only reporting here currently for others to confirm this issue. The crash occurs in bool cbProject::SaveAllFiles(), in cbproject.cpp at line 1055. That's for sure for now.

Thomas: That's also the cause for the issue we were discussing here: http://forums.codeblocks.org/index.php?topic=3375.0.

With regards, Morten.

[attachment deleted by admin]
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Crash (serious) when removing a dependend lib from a workspace
« Reply #1 on: June 30, 2006, 08:59:53 pm »
Sounds like the dependency is not removed. I 'll check.
Be patient!
This bug will be fixed soon...

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Crash (serious) when removing a dependend lib from a workspace
« Reply #2 on: June 30, 2006, 10:14:08 pm »
As I suspected.
There were two (!) bugs in ProjectManager::RemoveProjectFromAllDependencies(). One caused this crash and the other caused a hang (some times) when closing a workspace.
Revision 2648.

Quote from: svn commit log
* Fixed crash when rebuilding after having closed a project which was a
dependency for other projects in the workspace. This also fixes a hang,
under certain circumstances, also when closing projects/workspace.
Be patient!
This bug will be fixed soon...

nfz

  • Guest
Re: Crash (serious) when removing a dependend lib from a workspace
« Reply #3 on: June 30, 2006, 11:05:35 pm »