Code::Blocks Forums

User forums => Help => Topic started by: lechkozarski on November 25, 2011, 09:59:38 am

Title: AUI manager - error
Post by: lechkozarski on November 25, 2011, 09:59:38 am
Hello
My code block is work very good - except Aui manager ;(
I can't run this menu ;(

Error message:
/src/aui/framemanager.cpp(957): assert "wxAssertFailure" in AddPanel()

 Here you can see my capture video

http://dl.dropbox.com/u/28560522/CodeBlock/aui_error.avi

Thanks
Title: Re: AUI manager - error
Post by: ollydbg on November 25, 2011, 10:05:42 am
http://dl.dropbox.com/u/28560522/CodeBlock/aui_error.avi
God, the video is more than 70M, and I have no time to wait two hours to download it.......

Can you simply describe it the steps? or give us a screen shot image, thanks.
Title: Re: AUI manager - error
Post by: lechkozarski on November 25, 2011, 10:10:19 am
Ok I try it.
FIRST ...  I have a lot of projects with code block and this wxWidgets last stable version ( except AUI )
-> my error :
1. Run Code ( last version )
2. Add new AUI manager
3. Add AUI toolbat
4. Add some items
5. Add AUI notebook
6. Disable size and move
7. resize notebook
8. Add icons to my items
9. Add icons to my notebook
10. Compile Release
11. Its work.   
12. Close my project
13. Open project and try resize my notebook ....  adn crash ......... CLOSE Code block
14.  My message is :
../..src/aui/framemanager.cpp(957): assert"wxAssertFailuer" failed in AddPane(): A-pane with than name already exists in the manager!
Dou you want to stop the program?
You can also choolse [Cancel] to suppress further warnings

Thanks
Title: Re: AUI manager - error
Post by: oBFusCATed on November 25, 2011, 10:37:02 am
C::B version?
So if I understand correctly, your problem is that wxSmith is crashing, right?

p.s. Tthis sub forum is for embedded development with codeblocks, so your post is not meant to be here. Next time please use the correct sub-forum.
Title: Re: AUI manager - error
Post by: lechkozarski on November 25, 2011, 10:46:26 am
Yes , this problem is with wxSmith

Sorry
Title: Re: AUI manager - error
Post by: oBFusCATed on November 25, 2011, 11:51:54 am
Is it possible, to give as simple test project which can be used to reproduce the problem?
Title: Re: AUI manager - error
Post by: lechkozarski on November 25, 2011, 12:33:59 pm
Only you must replace icons

http://dl.dropbox.com/u/28560522/CodeBlock/auitest1.rar

Thanks
Title: Re: AUI manager - error
Post by: ollydbg on November 25, 2011, 01:46:18 pm
Only you must replace icons

http://dl.dropbox.com/u/28560522/CodeBlock/auitest1.rar

Thanks
I open your project, and resize the AUI notebook window,  it works here, not crash.
I'm using the latest debugger branch nightly build release.
Title: Re: AUI manager - error
Post by: lechkozarski on November 25, 2011, 06:27:46 pm
I try with other pc (new instalation)
I have Code Blocks last version SVN 7550 with wxWidgets 2.9.2
======
I have the same problem ... ;(
Title: Re: AUI manager - error
Post by: stahta01 on November 25, 2011, 07:18:41 pm
wxWidgets 2.9.x IS NOT a stable wxWidgets!!!

If your native language is not English ignore this comment; you need to work on your reading comprehension.

Tim S.
Title: Re: AUI manager - error
Post by: lechkozarski on November 25, 2011, 07:46:07 pm
First:
My english is not good ,  sorry about it.
I am new in this, but I works for some time on wxWidgets 2.8.11 and I had never this problem
Every time I used a normal notebook. So I decided to try something AUI

("I know it about versions")
1. In first pc i have Code Blocks SVN 7550 and wxWidgets 2.8.11
2. In second I tryed with new Windows XP (original) Code Blocks 10.5 and wxWidgets version 2.9.2  but I have the same problem.

I dont know why my C::B system crashed.
Loom my video please.
If you can't download it ...   so .. i will try put it to youtube.
Thanks
Title: Re: AUI manager - error
Post by: oBFusCATed on November 25, 2011, 08:03:51 pm
I was able to reproduce the crash.

Here is the stack trace. I'll see if I can find what is wrong.
Code
  <stack>
    <frame level="0"/>
    <frame level="1" function="wxRect::Contains(int, int) const" offset="00000000"/>
    <frame level="2" function="wxAuiTabContainer::TabHitTest(int, int, wxWindow**) const" offset="0000003b"/>
    <frame level="3" function="wxSmithAuiNotebook::HitTest(wxPoint const&amp;)" offset="00000027"/>
    <frame level="4" function="wxsAuiNotebook::OnMouseClick(wxWindow*, int, int)" offset="00000074"/>
    <frame level="5" function="wxsItemEditorContent::OnMouseIdle(wxMouseEvent&amp;)" offset="0000022d"/>
    <frame level="6" function="wxsItemEditorContent::OnMouse(wxMouseEvent&amp;)" offset="000000a5"/>
    <frame level="7" function="wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&amp;, wxEvtHandler*, wxEvent&amp;)" offset="00000056"/>
    <frame level="8" function="wxEventHashTable::HandleEvent(wxEvent&amp;, wxEvtHandler*)" offset="000000ab"/>
    <frame level="9" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="000000b4"/>
    <frame level="10" function="wxEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000050"/>
    <frame level="11" function="wxScrollHelperEvtHandler::ProcessEvent(wxEvent&amp;)" offset="00000025"/>
    <frame level="12"/>
    <frame level="13"/>
    <frame level="14" function="g_closure_invoke" offset="00000156"/>
    <frame level="15"/>
    <frame level="16" function="g_signal_emit_valist" offset="00000645"/>
    <frame level="17" function="g_signal_emit" offset="00000085"/>
    <frame level="18"/>
    <frame level="19" function="gtk_propagate_event" offset="000000c3"/>
    <frame level="20" function="gtk_main_do_event" offset="000002d3"/>
    <frame level="21"/>
    <frame level="22" function="g_main_context_dispatch" offset="000001f3"/>
    <frame level="23"/>
    <frame level="24" function="g_main_loop_run" offset="0000016a"/>
    <frame level="25" function="gtk_main" offset="000000a7"/>
    <frame level="26" function="wxEventLoop::Run()" offset="00000048"/>
    <frame level="27" function="wxAppBase::MainLoop()" offset="0000004b"/>
  </stack>
Title: Re: AUI manager - error
Post by: oBFusCATed on November 25, 2011, 08:13:25 pm
How do you make the notebook re-sizable?
Your video is not showing the whole C::B and I'm not sure what you do, exactly.
Can you reproduce the bug in fewer steps?

Because it is really hard to debug if I have to setup the project every time for 5 minutes.
Loading the saved project in fresh C::B doesn't cause C::B to crash.
Probably something is not cleaned correctly.
Title: Re: AUI manager - error
Post by: lechkozarski on November 25, 2011, 09:54:47 pm
ok tomorrow i will make new video with this bug

Thanks
Title: Re: AUI manager - error
Post by: MortenMacFly on November 26, 2011, 06:52:01 am
ok tomorrow i will make new video with this bug
Minimalistic step-by-step instructions to read are clearly preferred, btw...
Title: Re: AUI manager - error
Post by: Jenna on November 26, 2011, 09:26:32 am
The crash (the one that leads to oBFusCATed's backtrace) is easy to fix with a nullptr-check, but than it crashes at another place (and it crashes on linux also), so something more deeply seems to be wrong.

It only happens , if C::B was not closed in the meantime, so some initialization seems to be wrong.
Title: Re: AUI manager - error
Post by: oBFusCATed on November 26, 2011, 11:25:03 am
It only happens , if C::B was not closed in the meantime, so some initialization seems to be wrong.
Yes, loading the project for the second time in the same instances of C::B - makes it crash.
Title: Re: AUI manager - error
Post by: MortenMacFly on November 26, 2011, 12:01:05 pm
Yes, loading the project for the second time in the same instances of C::B - makes it crash.
I cannot watch the video I still don't know how to reproduce, however, I've added some missing NULL pointer checks to some relevant parts, where they are needed.
Title: Re: AUI manager - error
Post by: lechkozarski on November 26, 2011, 12:07:50 pm
Good morning all.
youtube video is here:
http://www.youtube.com/watch?v=ETBnPjtrP_I

Step by step:
1. New project ( wxWidgets  -> no dll )
2. Add AUI manager
3. Add AUI toolbar
4. Add 3 toolbar items
5. Add 1 separator
6. Add 1 more toolbar item
7. Add AUI notebook
8. Disable movable and resize
9. Resize AUInotebook with mouse for full manager
10. Add icons to all
11. Set background colors for pages
12. Set Release
13. Save ...  build and run
14. Close all project
15. Open last project
16. Go to AUI notebook  ( on the left menu page )
17. I try take the right site from notebook and move it to the left .... and CRASH......
............  new project ............... ;(
and look please in video ......  i have other application without AUI and this work very good
Thanks
Title: Re: AUI manager - error
Post by: woser on November 26, 2011, 12:30:51 pm
I have the same bug, as lechkozarski :(
Title: Re: AUI manager - error
Post by: MortenMacFly on November 26, 2011, 03:20:09 pm
I have the same bug, as lechkozarski :(
I digged into it meanwhile. This bug is caused by the underlying wxAUI framework of wxWidgts. So it seems to be a wxWidgets issue, rather than a C::B issue. I'm afraid there is nothing we can do ATM, only hope it's fixed in a future version of wxWidgets.
Title: Re: AUI manager - error
Post by: lechkozarski on November 26, 2011, 07:42:39 pm
Thanks for help.

I try it in http://forums.wxwidgets.org/