Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jsibarani on May 20, 2016, 04:33:50 pm

Title: CodeBlocks crash when apllying environment variable
Post by: jsibarani on May 20, 2016, 04:33:50 pm
Hello, so after some time without CodeBlocks, i want to try version 16.01 (downloaded codeblocks-16.01mingw-nosetup.zip)

I click Settings - Environment - Environment Variables
Using default environment variables set, i added new variable , click OK
Then i click "Set Now", Confirmation dialog pop up, i click "OK" then CodeBlocks crash.

Same thing happen with  11 April 2016 nigtly build (10762).
I am using Windows 7 Profesional SP1, 64 bit.

I never had such a problem with version 12.11
Is it a bug?

Thanks.
 


Title: Re: CodeBlocks crash when apllying environment variable
Post by: oBFusCATed on May 21, 2016, 01:47:28 am
Can you reproduce this problem more than once?
Title: Re: CodeBlocks crash when apllying environment variable
Post by: jsibarani on May 21, 2016, 02:39:28 am
Yes.
i tried 3 times this morning
Title: Re: CodeBlocks crash when apllying environment variable
Post by: BlueHazzard on May 22, 2016, 11:31:30 pm
i can't reproduce this bug
Are you using some strange non aschii symbols in your name/ key?

Have you tried to remove the default.conf file? Probably it is corrupt...
the conf file is located:
C:\Users\USERNAME\AppData\Roaming\CodeBlocks

greetings
Title: Re: CodeBlocks crash when apllying environment variable
Post by: oBFusCATed on May 23, 2016, 12:44:11 am
If you go the default.conf path, don't delete it, but rename it. If the problem is solved then restore the original default.conf and try again. If the problem happens please give us the default.conf file!

Can you post the exact steps (with details) you're using to reproduce the problem?
Title: Re: CodeBlocks crash when apllying environment variable
Post by: jsibarani on May 23, 2016, 06:01:15 am
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 (https://youtu.be/ScAXA7MeOtg)


Thanks




Title: Re: CodeBlocks crash when apllying environment variable
Post by: oBFusCATed on May 23, 2016, 11:53:44 am
Doesn't happen on linux unfortunately :(
Title: Re: CodeBlocks crash when apllying environment variable
Post by: BlueHazzard on May 23, 2016, 12:53:08 pm
i can reproduce it now... will try to investigate
Title: Re: CodeBlocks crash when apllying environment variable
Post by: BlueHazzard on May 23, 2016, 02:27:06 pm
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 ?? ?? () (??:??)
Title: Re: CodeBlocks crash when apllying environment variable
Post by: oBFusCATed on May 23, 2016, 03:54:07 pm
Can someone report this issue in the tickets section in the project page on sf.net, so we don't forget about it?
Title: Re: CodeBlocks crash when apllying environment variable
Post by: jsibarani on May 23, 2016, 04:16:21 pm

Reported.