Author Topic: AUI manager - error  (Read 14717 times)

Offline lechkozarski

  • Multiple posting newcomer
  • *
  • Posts: 10
AUI manager - error
« 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

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: AUI manager - error
« Reply #1 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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline lechkozarski

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: AUI manager - error
« Reply #2 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
« Last Edit: November 25, 2011, 10:20:32 am by lechkozarski »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: AUI manager - error
« Reply #3 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.
(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 lechkozarski

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: AUI manager - error
« Reply #4 on: November 25, 2011, 10:46:26 am »
Yes , this problem is with wxSmith

Sorry

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: AUI manager - error
« Reply #5 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?
(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 lechkozarski

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: AUI manager - error
« Reply #6 on: November 25, 2011, 12:33:59 pm »

Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5913
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: AUI manager - error
« Reply #7 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.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline lechkozarski

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: AUI manager - error
« Reply #8 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 ... ;(

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: AUI manager - error
« Reply #9 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.
« Last Edit: November 25, 2011, 07:20:14 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline lechkozarski

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: AUI manager - error
« Reply #10 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: AUI manager - error
« Reply #11 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>
(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: 13413
    • Travis build status
Re: AUI manager - error
« Reply #12 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.
« Last Edit: November 26, 2011, 11:23:35 am by 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!]

Offline lechkozarski

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: AUI manager - error
« Reply #13 on: November 25, 2011, 09:54:47 pm »
ok tomorrow i will make new video with this bug

Thanks

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: AUI manager - error
« Reply #14 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...
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ