Author Topic: CodeBlocks crash when apllying environment variable  (Read 4573 times)

Offline jsibarani

  • Multiple posting newcomer
  • *
  • Posts: 31
CodeBlocks crash when apllying environment variable
« 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.
 



Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CodeBlocks crash when apllying environment variable
« Reply #1 on: May 21, 2016, 01:47:28 am »
Can you reproduce this problem more than once?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jsibarani

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: CodeBlocks crash when apllying environment variable
« Reply #2 on: May 21, 2016, 02:39:28 am »
Yes.
i tried 3 times this morning

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: CodeBlocks crash when apllying environment variable
« Reply #3 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CodeBlocks crash when apllying environment variable
« Reply #4 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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jsibarani

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: CodeBlocks crash when apllying environment variable
« Reply #5 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


Thanks





Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CodeBlocks crash when apllying environment variable
« Reply #6 on: May 23, 2016, 11:53:44 am »
Doesn't happen on linux unfortunately :(
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: CodeBlocks crash when apllying environment variable
« Reply #7 on: May 23, 2016, 12:53:08 pm »
i can reproduce it now... will try to investigate

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: CodeBlocks crash when apllying environment variable
« Reply #8 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 ?? ?? () (??:??)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: CodeBlocks crash when apllying environment variable
« Reply #9 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?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jsibarani

  • Multiple posting newcomer
  • *
  • Posts: 31
Re: CodeBlocks crash when apllying environment variable
« Reply #10 on: May 23, 2016, 04:16:21 pm »

Reported.