News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Windows Nighly Recent crash issue for Environment setting.

Started by stahta01, June 08, 2015, 07:18:02 PM

Previous topic - Next topic

stahta01

Quote from: stahta01 on June 10, 2015, 01:55:30 AM
Quote from: stahta01 on June 09, 2015, 11:57:29 PM
Quote from: oBFusCATed 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.

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

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: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

(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!]

stahta01

C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

oBFusCATed

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!]

oBFusCATed

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!]

stahta01

Quote from: oBFusCATed 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.

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

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

No crash and the plugin appears to be working using SVN r10333.

Quote from: stahta01 on June 13, 2015, 03:33:47 PM
Quote from: oBFusCATed 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.

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

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

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.

Quote from: stahta01 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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

scarphin

Quote from: stahta01 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   
---------------------------


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?

stahta01

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.


Quote from: scarphin on June 13, 2015, 10:27:02 PM
Quote from: stahta01 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   
---------------------------


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?
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

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.

Quote from: stahta01 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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

stahta01

Turns out if the zip file is missing needed xrc files that you can get this error below and the plugin can crash.

Quote from: stahta01 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.

Quote from: stahta01 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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]