News:

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

Main Menu

Assert at startup and crash

Started by manciuleas, November 21, 2006, 12:50:02 PM

Previous topic - Next topic

manciuleas

Hi,

I'm trying to use codeblocks on Linux, Slackware 11.0, wxGTK 2.6.3 Unicode.
When using C::B rev. 32xx an error window pops up at startup, and the debugger shows the following messages:

[Debug] 01:39:47 PM: ../src/gtk/toplevel.cpp(1325): assert "wxAssertFailure" failed: Shaped windows must be created with the wxFRAME_SHAPED style.

Call stack:
[05] wxStackWalker::Walk(unsigned int)
[06] 0xb7458def
[07] wxApp::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[08] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[09] wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)
[10] wxTopLevelWindowGTK::SetShape(wxRegion const&)
[11] cbSplashScreen::cbSplashScreen(wxBitmap&, long, wxWindow*, int, long)      /home/srcs/codeblocks/trunk/src/src/splashscreen.cpp:
[12] CodeBlocksApp::OnInit()                    /home/srcs/codeblocks/trunk/src/src/app.cpp:
[13] wxAppConsole::CallOnInit()                 /usr/include/wx-2.6/wx/app.h:
...................

Then, on opening a workspace with 5 projects C::B crashes and takes down gdb too.

.................
[New Thread -1293169744 (LWP 1956)]
[Thread -1293169744 (zombie) exited]
Segmentation fault
root@seba:/home/srcs/codeblocks/trunk# ../src/common/timercmn.cpp(70): assert "wxThread::IsMain()" failed: timer can only be started from the main thread

Call stack:
[05] wxStackWalker::Walk(unsigned int)
[06] 0xb754fdef
[07] wxApp::OnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[08] wxOnAssert(wchar_t const*, int, wchar_t const*, wchar_t const*)
[09] wxAssert(int, wchar_t const*, int, wchar_t const*, wchar_t const*)
[10] wxTimerBase::Start(int, bool)
[11] wxTimer::Start(int, bool)
[12] Parser::Parse(wxString const&, bool, ParserThreadOptions&)
[13] Parser::Parse(wxString const&, bool)
[14] Parser::OnParseFile(wxString const&, int)
[15] ParserThread::HandleIncludes()
[16] ParserThread::DoParse()
[17] ParserThread::Parse()
[18] ParserThread::Execute()
[in child thread]

Regards

thomas

#1
Neither of these are "crashes", but merely assertions, i.e. the code will nevertheless work fine in non-debug.

I can't tell much about the second one, but the first one tells that you're compiling from sources that are over a week old, because that flag was really missing for a few revisions then, but has long since been added.

Please update to the latest revision before reporting problems.


Edit: Sorry, you're right... it was certainly added, but it's overridden by the app... will add it there, too.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."