Author Topic: Assert at startup and crash  (Read 3131 times)

Offline manciuleas

  • Multiple posting newcomer
  • *
  • Posts: 20
Assert at startup and crash
« on: November 21, 2006, 12:50:02 pm »
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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Assert at startup and crash
« Reply #1 on: November 21, 2006, 01:03:37 pm »
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.
« Last Edit: November 21, 2006, 01:07:41 pm by thomas »
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."