User forums > Using Code::Blocks
Code::Blocks crashes often
alexchen:
Is the issue listed in https://sourceforge.net/p/codeblocks/tickets/738 resolved? I am pretty sure the problem only happens in command line mode.
My build script uses a basic script to run Code::Blocks in command line mode for several workspaces and combine them into the final RPM.
I do not see the problem if I run Code::Blocks in UI mode to build these workspaces.
The low level Code::Block build script itself is very simple:
/usr/bin/codeblocks --no-splash-screen --no-ipc --debug-log --build --target=Release64 ${WORKSPACE}.workspace, where $WORKSPACE is from the input.
oBFusCATed:
I have a local fix for #738. It needs more testing, so it hasn't entered trunk/night builds yet.diff --git a/src/src/main.cpp b/src/src/main.cpp
If you're interested in rebuilding C::B this is the patch:
--- Code: ---index 886eead0f..7d4b74cc6 100644
--- a/src/src/main.cpp
+++ b/src/src/main.cpp
@@ -2720,7 +2720,6 @@ void MainFrame::OnApplicationClose(wxCloseEvent& event)
CodeBlocksEvent evt(cbEVT_APP_START_SHUTDOWN);
Manager::Get()->ProcessEvent(evt);
- Manager::Yield();
m_InitiatedShutdown = true;
Manager::BlockYields(true);
--- End code ---
alexchen:
I think I will wait for the final RPM instead of building it myself since I do not have everything set up.
But I am willing to take the RPM if there is one I can try.
BTW, maybe we should consider building a RPM of the debug info in the future, too.
Thanks.
Navigation
[0] Message Index
[*] Previous page
Go to full version