Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Crash (serious) when removing a dependend lib from a workspace

(1/1)

MortenMacFly:
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]

mandrav:
Sounds like the dependency is not removed. I 'll check.

mandrav:
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.

--- End quote ---

nfz:
excellent: this fixes the bug I posted here: https://developer.berlios.de/bugs/?func=detailbug&bug_id=7742&group_id=5358

Navigation

[0] Message Index

Go to full version