Author Topic: Windows Nighly Recent crash issue for Environment setting.  (Read 9912 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Windows Nighly Recent crash issue for Environment setting.
« on: June 08, 2015, 07:18:02 pm »
Edit: The crash NO longer seems to be caused by EnvVars plugin.
Doing these steps cause a crash by themselves; but, only when the EnvVars plugin is enabled
Settings -> Environment
Click on OK

Attached new crash log from CodeBlocks_svn10320


Tim S.

In contrast to the nightly offered below, this also includes the crash handler, so its probably better suited for testing and reporting.

Crash handler works.

In the last 3 or 4 nightly a Windows crash has started. Edit: No Problem on svn10253; has problem on svn10314/svn10311
Using the EnvVars plugin, if you have 2 added configs.
Trying to change from one added config to something else causes a crash.

Settings -> Environment
Environmental Variables
Then try to change the selected configs; it sometimes crashes before I try to change the selected config. 
Tim S.

New crash report for a self built Code::Blocks svn10311

Tim S.
« Last Edit: June 08, 2015, 08:54:22 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #1 on: June 08, 2015, 09:54:06 pm »
Are you sure you have a clean build of CB?
(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 stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #2 on: June 08, 2015, 10:00:33 pm »
Are you sure you have a clean build of CB?

No, but, I do NOT think it matters since I am getting the problem on the nightly download.

Downloading  killerbot most recent build right now.

Tim S.
« Last Edit: June 08, 2015, 10:12:27 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #3 on: June 08, 2015, 10:13:44 pm »
killerbot most recent build (04 June 2015 build (10320)) has the same problem.

Tim S.


Are you sure you have a clean build of CB?

No, but, I do NOT think it matters since I am getting the problem on the nightly download.

Downloading  killerbot most recent build right now.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #4 on: June 08, 2015, 10:56:12 pm »
Doesn't happen on linux with rev10323, so I can't help much.
(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 scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #5 on: June 08, 2015, 11:48:32 pm »
I can confirm the crash with the latest nightly (rev10320). It doesn't occur on my custom x64 build (rev10305).

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #6 on: June 08, 2015, 11:57:39 pm »
I can confirm the crash with the latest nightly (rev10320). It doesn't occur on my custom x64 build (rev10305).

What compiler version is used with your custom  x64 build?

I am starting to think it might be a Compiler and/or wxWidgets bug.

I have failed to see the problem using TDM MinGW GCC 4.7.1 under Windows 7 64 bit Home Pro.
But, I do see it under  MinGW GCC 4.9.?2? under Windows 7 32 bit Ultimate.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #7 on: June 09, 2015, 12:39:43 am »
What compiler version is used with your custom  x64 build?
tdm 4.9.2

I don't think that's compiler or wxwidgets related, I believe it's because of a change somewhere between 10305 and head revision. I'll rebuild my local trunk to the latest head and try to see where it crashes with drmingw. It doesn't always catch the crashing function though.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #8 on: June 09, 2015, 12:53:29 am »
Why don't you use gdb to find where it crashes?
(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 scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #9 on: June 09, 2015, 01:25:09 am »
Well, I think it's because drmingw gives me a report whether the crashing program is under a debugging session or not. Anyway gdb spit the backtrace below:
Code: [Select]
#0 0000000062711545 wxBaseArrayPtrVoid::Index(void const*, bool) const() (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#1 0000000062847448 wxCheckListBoxItem::Check(bool) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#2 0000000070A87898 nsEnvVars::EnvvarArrayApply(envvar=3 count of wxArrayString = {...}, lstEnvVars=0x1664cfa0) (D:\coding\projects\sw\codeblocks\trunk\src\plugins\contrib\envvars\envvars_common.cpp:479)
#3 0000000070A82E1F EnvVarsConfigDlg::LoadSettings(this=0x165d1a90) (D:\coding\projects\sw\codeblocks\trunk\src\plugins\contrib\envvars\envvars_cfgdlg.cpp:167)
#4 0000000070A82836 EnvVarsConfigDlg::EnvVarsConfigDlg(this=0x165d1a90, parent=0x164ca250) (D:\coding\projects\sw\codeblocks\trunk\src\plugins\contrib\envvars\envvars_cfgdlg.cpp:68)
#5 0000000070A82448 EnvVars::GetConfigurationPanel(this=0x7311d10, parent=0x164ca250) (D:\coding\projects\sw\codeblocks\trunk\src\plugins\contrib\envvars\envvars.cpp:286)
#6 000000000151E0E2 PluginManager::GetConfigurationPanels(this=0x6ed0160, group=-4, parent=0x164ca250, arrayToFill=...) (D:\coding\projects\sw\codeblocks\trunk\src\sdk\pluginmanager.cpp:1290)
#7 0000000000438671 EnvironmentSettingsDlg::AddPluginPanels(this=0x22e690) (D:\coding\projects\sw\codeblocks\trunk\src\src\environmentsettingsdlg.cpp:330)
#8 0000000000437B35 EnvironmentSettingsDlg::EnvironmentSettingsDlg(this=0x22e690, parent=0x61cbe10, art=0x61e0c00) (D:\coding\projects\sw\codeblocks\trunk\src\src\environmentsettingsdlg.cpp:308)
#9 0000000000462EA2 MainFrame::OnSettingsEnvironment(this=0x61cbe10, event=...) (D:\coding\projects\sw\codeblocks\trunk\src\src\main.cpp:4620)
#10 0000000062786541 wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#11 0000000062786603 wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#12 00000000627869B7 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#13 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#14 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#15 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#16 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#17 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#18 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#19 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#20 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#21 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#22 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#23 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#24 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#25 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#26 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#27 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#28 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)
#29 0000000062786948 wxEvtHandler::ProcessEvent(wxEvent&) () (D:\coding\projects\sw\codeblocks\trunk\src\devel_64\wxmsw28u_gcc_custom.dll:??)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #10 on: June 09, 2015, 01:38:58 am »
Can you try to revert rev 10309 and see if the problem goes away?
(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 stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #11 on: June 09, 2015, 01:58:21 am »
Can you try to revert rev 10309 and see if the problem goes away?

Tried that on my Laptop and the problem was NOT there; then I added it back and the problem was still gone.
That why I guessed GCC 4.9.2 was the cause; but, using MinGW GCC 4.7.1 on my desktop and it still had the problem.
Now going to revert rev 10309 on my desktop to see what happens.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #12 on: June 09, 2015, 02:15:17 am »
Reverting the changes in rev10309 fixes the crash issue. So I think it's commit 10309 that results in the crash. I've come to believe that this is actually a wxwidgets problem considering it's the windows platform that's affected but I can't step into the 'check' function to see what's going on. Is there a way to do that or gdb just can't step into virtual functions?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #13 on: June 09, 2015, 02:34:39 am »
Can a C++ expert explain how sel can hold the result of new EnvVariableListClientData(key, value)?

Edit: Or does the sequence operator "," do something different in C++ than I think it does?

Tim S.

Code: [Select]
    int sel = -1;
    if (lstEnvVars)
    {
      sel = lstEnvVars->Append(key + _T(" = ") + value, new EnvVariableListClientData(key, value));
      lstEnvVars->Check(sel, bCheck);
    }
« Last Edit: June 09, 2015, 02:37:26 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #14 on: June 09, 2015, 02:43:41 am »
The crash stopped when I fixed the seq. operations.

Edit: But, I think the second line does nothing useful; but, maybe in the C++ world it does something.

Code: [Select]
diff --git a/src/plugins/contrib/envvars/envvars_cfgdlg.cpp b/src/plugins/contrib/envvars/envvars_cfgdlg.cpp
index 200e930..c47a3a6 100644
--- a/src/plugins/contrib/envvars/envvars_cfgdlg.cpp
+++ b/src/plugins/contrib/envvars/envvars_cfgdlg.cpp
@@ -450,7 +450,8 @@ void EnvVarsConfigDlg::OnAddEnvVarClick(wxCommandEvent& WXUNUSED(event))
     if (nsEnvVars::EnvvarVetoUI(key, NULL, -1))
       return;
 
-    int  sel     = lstEnvVars->Append(key + _T(" = ") + value, new nsEnvVars::EnvVariableListClientData(key, value));
+    int  sel     = lstEnvVars->Append(key + _T(" = ") + value);
+    new nsEnvVars::EnvVariableListClientData(key, value);
     bool success = nsEnvVars::EnvvarApply(key, value);
     if (sel>=0)
       lstEnvVars->Check(sel, success);

Code: [Select]
diff --git a/src/plugins/contrib/envvars/envvars_common.cpp b/src/plugins/contrib/envvars/envvars_common.cpp
index fa4ded0..d1de5f4 100644
--- a/src/plugins/contrib/envvars/envvars_common.cpp
+++ b/src/plugins/contrib/envvars/envvars_common.cpp
@@ -475,7 +475,8 @@ bool nsEnvVars::EnvvarArrayApply(const wxArrayString& envvar,
     int sel = -1;
     if (lstEnvVars)
     {
-      sel = lstEnvVars->Append(key + _T(" = ") + value, new EnvVariableListClientData(key, value));
+      sel = lstEnvVars->Append(key + _T(" = ") + value);
+      new EnvVariableListClientData(key, value);
       lstEnvVars->Check(sel, bCheck);
     }
 

Tim S.
« Last Edit: June 09, 2015, 02:47:11 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #15 on: June 09, 2015, 03:05:07 am »
Can a C++ expert explain how sel can hold the result of new EnvVariableListClientData(key, value)?

Edit: Or does the sequence operator "," do something different in C++ than I think it does?
I'm not a C++ expert but 'sel' has nothing to with 'new EnvVariableListClientData(key, value)':
Code: [Select]
int  sel     = lstEnvVars->Append(key + _T(" = ") + value, new nsEnvVars::EnvVariableListClientData(key, value));invokes the overloaded 'Append' function with 2 arguments, there is no sequencing here. Sorry if I misunderstood you and you were talking about something else.

CB crashes at line 479 in 'envvars_common.cpp', I don't think 'Append' is the problematic part.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #16 on: June 09, 2015, 03:19:44 am »
Can a C++ expert explain how sel can hold the result of new EnvVariableListClientData(key, value)?

Edit: Or does the sequence operator "," do something different in C++ than I think it does?
I'm not a C++ expert but 'sel' has nothing to with 'new EnvVariableListClientData(key, value)':
Code: [Select]
int  sel     = lstEnvVars->Append(key + _T(" = ") + value, new nsEnvVars::EnvVariableListClientData(key, value));invokes the overloaded 'Append' function with 2 arguments, there is no sequencing here. Sorry if I misunderstood you and you were talking about something else.

CB crashes at line 479 in 'envvars_common.cpp', I don't think 'Append' is the problematic part.

I disagree please look at the line I changed in the patch. Is it not line 479 or 478?

In C.

A = B, C;

Assigns the value of C to A.


OK, I see what you mean now.

Tim S.
« Last Edit: June 09, 2015, 03:26:49 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #17 on: June 09, 2015, 03:45:48 am »
So, I have decided to stop for this night maybe someone will figure it out.
I just am too tired to think of anything other than wxWidgets is NOT likely something in the code.

Edit: I have decided next time to see if the problem exists under wxWidgets 3.0 because it has better asserts in it.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #18 on: June 09, 2015, 09:29:31 am »
I'm calling the Append method that takes two parameters a string and a wxClientData object.
I have no idea why this fails.
To see the real cause of the problem you'll need to rebuild wxwidgets in debug mode.
(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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #19 on: June 09, 2015, 09:30:46 am »
Also what is the value of sel when it crashes?
(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 MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #20 on: June 09, 2015, 09:44:09 am »
BTW: I can reproduce the crash. I'd vote to revert the last changes applied in SVN because these render the plugin unusable.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #21 on: June 09, 2015, 09:48:26 am »
For me it crashes as soon as I try to open the environment settings.

The crash results in line 167 in EnvVarsConfigDlg::LoadSettings() of envvars_cfgdlr.cpp:
if (nsEnvVars::EnvvarArrayApply(var_array, lstEnvVars))
lstEnvVars seems to be valid... very weird.

So I cannot set any environment (not only envvar) settings... that is no good.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #22 on: June 09, 2015, 10:25:37 am »
Can someone extract his/her env settings from default.conf and share them?
(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 stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #23 on: June 09, 2015, 04:11:25 pm »
Can someone extract his/her env settings from default.conf and share them?

Code: [Select]
<envvars>
<sets>
<default>
<ENVVAR0>
<str>
<![CDATA[1|LC_ALL|en_US.utf8]]>
</str>
</ENVVAR0>
</default>
<wx28>
<ENVVAR0>
<str>
<![CDATA[1|wxcfg|gcc_dll\mswu]]>
</str>
</ENVVAR0>
<ENVVAR1>
<str>
<![CDATA[1|wxwin|C:\wxMSW\wxMSW-2.8\wxMSW-2.8.12]]>
</str>
</ENVVAR1>
</wx28>
<wx30>
<ENVVAR0>
<str>
<![CDATA[1|wxcfg|gcc_dll\mswu]]>
</str>
</ENVVAR0>
<ENVVAR1>
<str>
<![CDATA[1|wxwin|C:\wxMSW\wxMSW-3.0\wxWidgets-3.0.2]]>
</str>
</ENVVAR1>
</wx30>
</sets>
<ACTIVE_SET>
<str>
<![CDATA[wx30]]>
</str>
</ACTIVE_SET>
<DEBUG_LOG bool="1" />
</envvars>

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #24 on: June 09, 2015, 05:08:02 pm »
Windows CB 10311 edited to enable debug mode with wxWidgets 2.8.12 debug.

Code: [Select]
---------------------------
wxWidgets Debug Alert
---------------------------
../../src/msw/listbox.cpp(441): assert "wxAssertFailure" failed in DoSetItemClientData(): Can't use client data with owner-drawn listboxes
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.
---------------------------
Yes   No   Cancel   
---------------------------

---------------------------
wxWidgets Debug Alert
---------------------------
../../src/msw/listbox.cpp(441): assert "wxAssertFailure" failed in DoSetItemClientData(): Can't use client data with owner-drawn listboxes
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.
---------------------------
Yes   No   Cancel   
---------------------------
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #25 on: June 09, 2015, 08:27:45 pm »
Rather strange. How on earth does this control get the wxLB_OWNERDRAW style set?
There is no mentioning of wxLB_OWNERDRAW in the whole repo. :(

And the styles for it in the xrc file are wxLB_SINGLE|wxLB_HSCROLL|wxLB_NEEDED_SB...
(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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #26 on: June 09, 2015, 09:28:08 pm »
I see this happens because the control is wxCheckListBox... stupid.
(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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #27 on: June 09, 2015, 09:32:13 pm »
Can someone confirm that this issue is not present in wx30 builds?
Looking at the code I can guess that it should be working fine.
(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 stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #28 on: June 09, 2015, 11:57:29 pm »
Can someone confirm that this issue is not present in wx30 builds?
Looking at the code I can guess that it should be working fine.

Will check later today; building wx30 right now.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #29 on: June 10, 2015, 01:55:30 am »
Can someone confirm that this issue is not present in wx30 builds?
Looking at the code I can guess that it should be working fine.

Will check later today; building wx30 right now.

Tim S.

It worked with the debug build of wxWidgets 3.0.2.
Going to test the non-debug version next.
Edit: No problem with the non-debug version.

Tim S.
« Last Edit: June 10, 2015, 02:23:18 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #30 on: June 10, 2015, 02:24:01 am »
Can someone confirm that this issue is not present in wx30 builds?
Looking at the code I can guess that it should be working fine.

Will check later today; building wx30 right now.

Tim S.

It worked with the debug build of wxWidgets 3.0.2.
Going to test the non-debug version next.
Edit: No problem with the non-debug version.

Tim S.

I think adding wx30 conditionals would be a good option to take.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #31 on: June 10, 2015, 07:02:14 am »
Again I would like to mention that although it may work in wx30 it is a serious bug in wx28 and should either be reverted or at least bound to a "WX30" clause.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #32 on: June 10, 2015, 08:31:46 am »
Yes, I know, I'll do it tonight.
(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 stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #33 on: June 11, 2015, 03:07:29 pm »
Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9508
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #34 on: June 11, 2015, 10:00:47 pm »
Yes, something like that...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #35 on: June 12, 2015, 01:04:44 am »
I'm working on a bit more advanced version of the patch...
(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 oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12086
    • Travis build status
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #36 on: June 13, 2015, 12:34:32 pm »
Should be fixed in trunk. Hopefully it compiles and works correctly on windows with both 2.8 and 3.0.
(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 stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #37 on: June 13, 2015, 03:33:47 pm »
Should be fixed in trunk. Hopefully it compiles and works correctly on windows with both 2.8 and 3.0.

Compiling it now on Windows 7 32 bit using wxWidgets 2.8.12.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #38 on: June 13, 2015, 04:15:38 pm »
No crash and the plugin appears to be working using SVN r10333.

Should be fixed in trunk. Hopefully it compiles and works correctly on windows with both 2.8 and 3.0.

Compiling it now on Windows 7 32 bit using wxWidgets 2.8.12.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #39 on: June 13, 2015, 04:35:17 pm »
I was having crashing still when using wxWidgets 2.8.12 debug; but, it is NO longer EnvVars that causes it it is the ToDo Plugin.

ToDo List related Crash.
Quote
---------------------------
wxWidgets Debug Alert
---------------------------
C:\wxMSW\wxMSW-2.8\wxMSW-2.8.12\include/wx/object.h(314): assert "ptr" failed in wxCheckCast(): wxStaticCast() used incorrectly
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.
---------------------------
Yes   No   Cancel   
---------------------------

C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #40 on: June 13, 2015, 05:27:43 pm »
This error is way beyond me; so, I will wait till the next nightly binary and see if it crashes when the todo plugin is enabled before considering it a real problem.

I am using my own Git repo and custom CB project to build the binary that has the issue.

It could be a mistake in my CB Project or Git Repo that is causing it.
Or, it could be a mistake in my self-built wxWidgets.

I am leaning towards an wxWidgets caused error.

Tim S.

I was having crashing still when using wxWidgets 2.8.12 debug; but, it is NO longer EnvVars that causes it it is the ToDo Plugin.

ToDo List related Crash.
Quote
---------------------------
wxWidgets Debug Alert
---------------------------
C:\wxMSW\wxMSW-2.8\wxMSW-2.8.12\include/wx/object.h(314): assert "ptr" failed in wxCheckCast(): wxStaticCast() used incorrectly
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.
---------------------------
Yes   No   Cancel   
---------------------------
« Last Edit: June 13, 2015, 05:34:42 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #41 on: June 13, 2015, 10:27:02 pm »
I was having crashing still when using wxWidgets 2.8.12 debug; but, it is NO longer EnvVars that causes it it is the ToDo Plugin.

ToDo List related Crash.
Quote
---------------------------
wxWidgets Debug Alert
---------------------------
C:\wxMSW\wxMSW-2.8\wxMSW-2.8.12\include/wx/object.h(314): assert "ptr" failed in wxCheckCast(): wxStaticCast() used incorrectly
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.
---------------------------
Yes   No   Cancel   
---------------------------


ToDo plugin seems to be working fine with my custom x64 setup. I'm using wx2.8.12 release though. Can you please post the steps to reproduce so I can test further?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #42 on: June 14, 2015, 12:30:02 am »
Looks to be a problem in my Git Repo; I will do a fresh clone and see if it goes away.
The svn r10333 build I do does NOT have the problem.

Tim S.

Have the ToDo and Compiler plugins enabled.

Settings -> Environment

It only does it with my recent self builds; the last nightly does NOT do it.
That is one reason I think it might just be my self build of wxWidgets.

That is why I plan to wait till the next nightly and see if it happens with it.

Tim S.


I was having crashing still when using wxWidgets 2.8.12 debug; but, it is NO longer EnvVars that causes it it is the ToDo Plugin.

ToDo List related Crash.
Quote
---------------------------
wxWidgets Debug Alert
---------------------------
C:\wxMSW\wxMSW-2.8\wxMSW-2.8.12\include/wx/object.h(314): assert "ptr" failed in wxCheckCast(): wxStaticCast() used incorrectly
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.
---------------------------
Yes   No   Cancel   
---------------------------


ToDo plugin seems to be working fine with my custom x64 setup. I'm using wx2.8.12 release though. Can you please post the steps to reproduce so I can test further?
« Last Edit: June 14, 2015, 12:46:43 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #43 on: June 14, 2015, 03:48:30 am »
I am now 90% certain the problem (ToDo List related Crash) is being caused by edits I made to the CB Project files.

Tim S.

I was having crashing still when using wxWidgets 2.8.12 debug; but, it is NO longer EnvVars that causes it it is the ToDo Plugin.

ToDo List related Crash.
Quote
---------------------------
wxWidgets Debug Alert
---------------------------
C:\wxMSW\wxMSW-2.8\wxMSW-2.8.12\include/wx/object.h(314): assert "ptr" failed in wxCheckCast(): wxStaticCast() used incorrectly
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.
---------------------------
Yes   No   Cancel   
---------------------------
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline stahta01

  • Lives here!
  • ****
  • Posts: 6666
    • My Best Post
Re: Windows Nighly Recent crash issue for Environment setting.
« Reply #44 on: June 14, 2015, 04:54:20 am »
Turns out if the zip file is missing needed xrc files that you can get this error below and the plugin can crash.

I am now 90% certain the problem (ToDo List related Crash) is being caused by edits I made to the CB Project files.

Tim S.

I was having crashing still when using wxWidgets 2.8.12 debug; but, it is NO longer EnvVars that causes it it is the ToDo Plugin.

ToDo List related Crash.
Quote
---------------------------
wxWidgets Debug Alert
---------------------------
C:\wxMSW\wxMSW-2.8\wxMSW-2.8.12\include/wx/object.h(314): assert "ptr" failed in wxCheckCast(): wxStaticCast() used incorrectly
Do you want to stop the program?
You can also choose [Cancel] to suppress further warnings.
---------------------------
Yes   No   Cancel   
---------------------------
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org