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

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