User forums > Using Code::Blocks
CodeBlocks crash when apllying environment variable
jsibarani:
Ok, here are the steps.
1. Extract codeblocks-16.01mingw-nosetup.zip to c:\CodeBlocks1601\
2. Delete CodeBlocks folder in %APPDATA% if exists
3. Run c:\CodeBlocks1601\codeblocks.exe
CB pops up Compiler auto-detection and Fileassociations dialogs. (I click OK)
Close CB.
4. Run c:\CodeBlocks1601\codeblocks.exe again
5. Clik Settings - Environment - Environment Variables
Using default environment variables set, i added new variable
key : MYPROJECT
value : C:\MY_PROJECT
then click OK.
Then i click "Set Now", Confirmation dialog pop up, i click "OK" then CodeBlocks crash.
Starting CB with CbLauncher.exe (which creates default.conf c:\CodeBlocks1601\AppData\codeblocks\) and repeat step 5, same result.
I've tried with Administrator user, same result.
This is the recorded screen https://youtu.be/ScAXA7MeOtg
Thanks
oBFusCATed:
Doesn't happen on linux unfortunately :(
BlueHazzard:
i can reproduce it now... will try to investigate
BlueHazzard:
some backtrace:
--- Code: ---#0 0x321a6c9 wxStringBase::append(unsigned int, wchar_t) () (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#1 0x35de25d wxString::operator<<(wchar_t) () (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#2 0x31f3ee6 wxFileName::GetPathSeparators(wxPathFormat) () (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#3 0x3596ea8 wxFileName::GetPathSeparator(wxPathFormat) () (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#4 0x31f431e wxFileName::GetPath(int, wxPathFormat) const() (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#5 0x31f4826 wxFileName::GetFullPath(wxPathFormat) const() (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#6 0x61aeccaa cbWorkspace::GetFilename(this=0x56ae968) (/codeblocks_sf/src/include/cbworkspace.h:62)
#7 0x61882d91 MacrosManager::ClearProjectKeys(this=0xd28ce80) (\codeblocks_sf\src\sdk\macrosmanager.cpp:155)
#8 0x61883ec0 MacrosManager::RecalcVars(this=0xd28ce80, project=0x0, editor=0x1abe4450, target=0x0) (\codeblocks_sf\src\sdk\macrosmanager.cpp:253)
#9 0x61888c0f MacrosManager::ReplaceMacros(this=0xd28ce80, buffer=..., target=0x0, subrequest=false) (\codeblocks_sf\src\sdk\macrosmanager.cpp:459)
#10 0x6a708bb9 nsEnvVars::EnvvarApply(key=..., value=...) (\codeblocks_sf\src\plugins\contrib\envvars\envvars_common.cpp:409)
#11 0x6a706398 EnvVarsConfigDlg::OnSetEnvVarsClick(this=0x1abfeca0) (\codeblocks_sf\src\plugins\contrib\envvars\envvars_cfgdlg.cpp:637)
#12 0x31d1261 wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&) (wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#13 0x325436e wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#14 0x325443a wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#15 0x3254895 wxEvtHandler::ProcessEvent(wxEvent&) () (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#16 0x33638f2 wxWindowBase::TryParent(wxEvent&) () (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#17 0x32ad5ce wxButton::SendClickEvent() () (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#18 0x32ad661 wxButton::MSWCommand(unsigned int, unsigned short) () (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#19 0x361f930 print_state() (\wxWidgets-2.8.12\lib\gcc_dll\wxmsw28u_gcc_custom.dll:??)
#20 ?? ?? () (??:??)
--- End code ---
oBFusCATed:
Can someone report this issue in the tickets section in the project page on sf.net, so we don't forget about it?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version