Author Topic: crash when use wxsmith  (Read 924 times)

Offline icequan233

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: crash when use wxsmith
« Reply #15 on: April 21, 2017, 02:00:12 pm »
This is not the crash site as far as I can tell, isn't it?
Please remove all breakpoints and let it crash.
Then go to the call stack window, right click in the window and click on the copy to clipboard menu item.
Then paste the callstack in a code or quote tags.
The true crash site is the first post, and I attached the picture. I think @jens is right, the similar question of gcc
http://forums.codeblocks.org/index.php/topic,21773.0.html .
 

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 9871
Re: crash when use wxsmith
« Reply #16 on: April 21, 2017, 02:22:53 pm »
It might be an(other) optimization bug of gcc.
These are not bugs, but features :)
Lets see if I can reproduce this in wx2.8 and gcc 6.x.
<debugger plugin maintainer>
(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: 9871
Re: crash when use wxsmith
« Reply #17 on: April 21, 2017, 02:26:22 pm »
The true crash site is the first post, and I attached the picture. I think @jens is right, the similar question of gcc
http://forums.codeblocks.org/index.php/topic,21773.0.html .
Sorry, but do you think you can solve the problem with the information provided in the first posts?

GCC is very solid compiler and it is very hard to find bugs in it.
Most of the times the problems are caused by bugs in the program that are manifested by an aggressive optimization.
These are still bugs in the program and not in GCC!
<debugger plugin maintainer>
(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 stahta01

  • Lives here!
  • ****
  • Posts: 5710
    • My Best Post
Re: crash when use wxsmith
« Reply #18 on: April 21, 2017, 06:54:39 pm »
I am now going to apply the wxWidgets code change to IsKindOf method and verify it really fixes this problem.

Edit: It did NOT fix the problem.

Tim S.

Back trace below:
Code: [Select]
(gdb) bt
#0  0x02bf9c14 in wxPGProperty::IsExpanded (this=0xfeeefeee)
    at ../../include/wx/propgrid/property.h:1905
#1  0x0285b723 in wxPGProperty::GetY2 (this=0x18852688, lh=20)
    at ../../src/propgrid/property.cpp:2200
#2  0x028685a7 in wxPropertyGrid::GetEditorWidgetRect (this=0x18732220,
    p=0x18852688, column=1) at ../../src/propgrid/propgrid.cpp:3717
#3  0x0284d2ca in wxPropertyGrid::CorrectEditorWidgetPosY (this=0x18732220)
    at ../../src/propgrid/editors.cpp:1807
#4  0x0286a380 in wxPropertyGrid::RecalculateVirtualSize (this=0x18732220,
    forceXPos=-1) at ../../src/propgrid/propgrid.cpp:4508
#5  0x02862b9a in wxPropertyGrid::PrepareAfterItemsAdded (this=0x18732220)
    at ../../src/propgrid/propgrid.cpp:1571
#6  0x028659b9 in wxPropertyGrid::Refresh (this=0x18732220, rect=0x0)
    at ../../src/propgrid/propgrid.cpp:2640
#7  0x02871cb6 in wxPropertyGridInterface::RefreshGrid (this=0x18732100,
    state=0x18732c70) at ../../src/propgrid/propgridiface.cpp:93
#8  0x02871f1a in wxPropertyGridInterface::DeleteProperty (this=0x18732100,
    id=...) at ../../src/propgrid/propgridiface.cpp:150
#9  0x18dc732b in wxsPropertyGridManager::UnbindPropertyContainer (
    this=0x18731f90, PC=0x18839970, doFreeze=false)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\properties\wxspropertygridmanager.cpp:175
#10 0x18dc601d in wxsPropertyContainer::~wxsPropertyContainer (
    this=0x18839970, __in_chrg=<optimized out>)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\properties\wxspropertycontainer.cpp:52
#11 0x18f1c689 in wxsBaseProperties::~wxsBaseProperties (this=0x18839970,
    __in_chrg=<optimized out>)
    at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/wxsbaseproperties.h:37
#12 0x18ea2d0f in wxsItem::~wxsItem (this=0x18839930,
    __in_chrg=<optimized out>)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsitem.cpp:63
#13 0x18ec8517 in wxsParent::~wxsParent (this=0x18839930,
    __in_chrg=<optimized out>)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsparent.cpp:36
#14 0x18eefb98 in wxsContainer::~wxsContainer (this=0x18839930,
    __in_chrg=<optimized out>)
    at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/wxscontainer.h:38
#15 0x18f2b7a4 in wxsPanel::~wxsPanel (this=0x18839930,
    __in_chrg=<optimized out>)
    at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/defitems/wxspanel.h:28
#16 0x18f2b76f in wxsPanel::~wxsPanel (this=0x18839930,
    __in_chrg=<optimized out>)
    at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/defitems/wxspanel.h:28
#17 0x18eb69c2 in wxsItemResData::~wxsItemResData (this=0x18837c60,
    __in_chrg=<optimized out>)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsitemresdata.cpp:135
#18 0x18eb6b7b in wxsItemResData::~wxsItemResData (this=0x18837c60,
    __in_chrg=<optimized out>)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsitemresdata.cpp:151
#19 0x18ea779f in wxsItemEditor::~wxsItemEditor (this=0x12fa95e8,
    __in_chrg=<optimized out>)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsitemeditor.cpp:79
#20 0x18ea77d9 in wxsItemEditor::~wxsItemEditor (this=0x12fa95e8,
    __in_chrg=<optimized out>)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsitemeditor.cpp:81
#21 0x026cca46 in wxWindowBase::Destroy (this=0x12fa95e8)
    at ../../src/common/wincmn.cpp:576
#22 0x0e0beeee in EditorBase::Close (this=0x12fa95e8)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\sdk\editorbase.cpp:207
#23 0x18dd2d55 in wxsResource::~wxsResource (this=0x21a432d0,
    __in_chrg=<optimized out>)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxsresource.cpp:124
#24 0x18eef54d in wxWidgetsRes::~wxWidgetsRes (this=0x21a432d0,
    __in_chrg=<optimized out>)
    at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/wxwidgetsres.h:29
#25 0x18eb1737 in wxsItemRes::~wxsItemRes (this=0x21a432d0,
    __in_chrg=<optimized out>)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxwidgets\wxsitemres.cpp:141
#26 0x18eed5bc in wxsPanelRes::~wxsPanelRes (this=0x21a432d0,
    __in_chrg=<optimized out>)
    at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/wxspanelres.h:29
#27 0x18eed587 in wxsPanelRes::~wxsPanelRes (this=0x21a432d0,
    __in_chrg=<optimized out>)
    at C:/Devel/open_source_code/version_control/codeblocks_https_metadata-git/src/plugins/contrib/wxSmith/wxwidgets/wxspanelres.h:29
#28 0x18dd1505 in wxsProject::~wxsProject (this=0x21a41f40,
    __in_chrg=<optimized out>)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxsproject.cpp:64
#29 0x18dd03e5 in wxSmith::OnProjectClose (this=0x181fce78, event=...)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\plugins\contrib\wxSmith\wxsmith.cpp:351
#30 0x18ef22db in cbEventFunctor<wxSmith, CodeBlocksEvent>::Call (
    this=0x182ba198, event=...) at ../../../include/cbfunctor.h:49
#31 0x0e0feb07 in Manager::ProcessEvent (this=0x126d9cf8, event=...)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\sdk\manager.cpp:263
#32 0x0e111ffd in PluginManager::NotifyPlugins (this=0x12fa6d68, event=...)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\sdk\pluginmanager.cpp:1437
#33 0x0e12d670 in ProjectManager::CloseProject (this=0x12dbd048, project=
    0x188281e8, dontsave=true, refresh=false)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\sdk\projectmanager.cpp:449
#34 0x0e12d3ae in ProjectManager::CloseAllProjects (this=0x12dbd048,
    dontsave=true)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\sdk\projectmanager.cpp:392
#35 0x0e12de39 in ProjectManager::CloseWorkspace (this=0x12dbd048)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\sdk\projectmanager.cpp:588
#36 0x00457c7c in MainFrame::DoCloseCurrentWorkspace (this=0x12da7a98)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\src\main.cpp:1878
#37 0x0045dd33 in MainFrame::OnApplicationClose (this=0x12da7a98, event=...)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\src\main.cpp:2758
#38 0x02473706 in wxAppConsoleBase::HandleEvent (this=0x12687f10,
    handler=0x12da7a98, func=
    (void (wxEvtHandler::*)(wxEvtHandler * const, wxEvent &)) 0x45db94 <MainFrame::OnApplicationClose(wxCloseEvent&)>, event=...)
    at ../../src/common/appbase.cpp:611
#39 0x02473762 in wxAppConsoleBase::CallEventHandler (this=0x12687f10,
    handler=0x12da7a98, functor=..., event=...)
    at ../../src/common/appbase.cpp:623
#40 0x0253b569 in wxEvtHandler::ProcessEventIfMatchesId (entry=...,
    handler=0x12da7a98, event=...) at ../../src/common/event.cpp:1392
#41 0x0253a5ad in wxEventHashTable::HandleEvent (
    this=0x580324 <MainFrame::sm_eventHashTable>, event=..., self=0x12da7a98)
    at ../../src/common/event.cpp:998
#42 0x0253b9f3 in wxEvtHandler::TryHereOnly (this=0x12da7a98, event=...)
    at ../../src/common/event.cpp:1589
#43 0x02b3acd8 in wxEvtHandler::TryBeforeAndHere (this=0x12da7a98, event=...)
    at ../../include/wx/event.h:3671
#44 0x0253b7cb in wxEvtHandler::ProcessEvent (this=0x12da7a98, event=...)
    at ../../src/common/event.cpp:1491
#45 0x0253b8c1 in wxEvtHandler::DoTryChain (this=0x126e6bf4, event=...)
    at ../../src/common/event.cpp:1554
#46 0x0253b856 in wxEvtHandler::ProcessEventLocally (this=0x126e6bf4,
    event=...) at ../../src/common/event.cpp:1522
#47 0x0253b7e0 in wxEvtHandler::ProcessEvent (this=0x126e6bf4, event=...)
    at ../../src/common/event.cpp:1495
#48 0x0253ba7f in wxEvtHandler::SafelyProcessEvent (this=0x126e6bf4,
    event=...) at ../../src/common/event.cpp:1613
#49 0x026cf0da in wxWindowBase::HandleWindowEvent (this=0x12da7a98, event=...)
    at ../../src/common/wincmn.cpp:1525
#50 0x026ccaca in wxWindowBase::Close (this=0x12da7a98, force=true)
    at ../../src/common/wincmn.cpp:589
#51 0x0045da9c in MainFrame::OnFileQuit (this=0x12da7a98, event=...)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\src\main.cpp:2698
#52 0x02473706 in wxAppConsoleBase::HandleEvent (this=0x12687f10,
    handler=0x12da7a98, func=
    (void (wxEvtHandler::*)(wxEvtHandler * const, wxEvent &)) 0x45da82 <MainFrame::OnFileQuit(wxCommandEvent&)>, event=...)
    at ../../src/common/appbase.cpp:611
#53 0x02473762 in wxAppConsoleBase::CallEventHandler (this=0x12687f10,
    handler=0x12da7a98, functor=..., event=...)
    at ../../src/common/appbase.cpp:623
#54 0x0253b569 in wxEvtHandler::ProcessEventIfMatchesId (entry=...,
    handler=0x12da7a98, event=...) at ../../src/common/event.cpp:1392
#55 0x0253a5ad in wxEventHashTable::HandleEvent (
    this=0x580324 <MainFrame::sm_eventHashTable>, event=..., self=0x12da7a98)
    at ../../src/common/event.cpp:998
#56 0x0253b9f3 in wxEvtHandler::TryHereOnly (this=0x12da7a98, event=...)
    at ../../src/common/event.cpp:1589
#57 0x02b3acd8 in wxEvtHandler::TryBeforeAndHere (this=0x12da7a98, event=...)
    at ../../include/wx/event.h:3671
#58 0x0253b7cb in wxEvtHandler::ProcessEvent (this=0x12da7a98, event=...)
    at ../../src/common/event.cpp:1491
#59 0x0253b8c1 in wxEvtHandler::DoTryChain (this=0x126e6bf4, event=...)
    at ../../src/common/event.cpp:1554
#60 0x0253b856 in wxEvtHandler::ProcessEventLocally (this=0x126e6bf4,
    event=...) at ../../src/common/event.cpp:1522
#61 0x0253b7e0 in wxEvtHandler::ProcessEvent (this=0x126e6bf4, event=...)
    at ../../src/common/event.cpp:1495
#62 0x026d3f87 in wxWindowBase::TryAfter (this=0x12e421e8, event=...)
    at ../../src/common/wincmn.cpp:3427
#63 0x0253b80b in wxEvtHandler::ProcessEvent (this=0x12e421e8, event=...)
    at ../../src/common/event.cpp:1508
#64 0x0253ba7f in wxEvtHandler::SafelyProcessEvent (this=0x12e421e8,
    event=...) at ../../src/common/event.cpp:1613
#65 0x026cf0da in wxWindowBase::HandleWindowEvent (this=0x12e421e8, event=...)
    at ../../src/common/wincmn.cpp:1525
#66 0x02695d3e in wxMenuBase::SendEvent (this=0x12e26920, itemid=-31837,
    checked=-1) at ../../src/common/menucmn.cpp:666
#67 0x026599c3 in wxFrameBase::ProcessCommand (this=0x12da7a98, item=
    0x12e5aac0) at ../../src/common/framecmn.cpp:298
#68 0x025d31ba in wxFrame::HandleCommand (this=0x12da7a98, id=33699, cmd=0,
    control=0x0) at ../../src/msw/frame.cpp:826
#69 0x025d32d1 in wxFrame::MSWWindowProc (this=0x12da7a98, message=273,
    wParam=33699, lParam=0) at ../../src/msw/frame.cpp:862
#70 0x025a8cbd in wxWndProc(HWND__*, unsigned int, unsigned int, long)@16 (
    hWnd=0x270216, message=273, wParam=33699, lParam=0)
    at ../../src/msw/window.cpp:2711
#71 0x75d08233 in USER32!RecordShutdownReason ()
   from C:\WINDOWS\System32\user32.dll
#72 0x75cde638 in USER32!DispatchMessageW ()
   from C:\WINDOWS\System32\user32.dll
#73 0x75cde103 in USER32!DispatchMessageW ()
   from C:\WINDOWS\System32\user32.dll
#74 0x75cddf50 in USER32!DispatchMessageW ()
   from C:\WINDOWS\System32\user32.dll
#75 0x025cf526 in wxGUIEventLoop::ProcessMessage (this=0x18763068,
    msg=0x1d9fb48) at ../../src/msw/evtloop.cpp:170
#76 0x025cf79a in wxGUIEventLoop::Dispatch (this=0x18763068)
    at ../../src/msw/evtloop.cpp:230
#77 0x02498981 in wxEventLoopManual::ProcessEvents (this=0x18763068)
    at ../../src/common/evtloopcmn.cpp:172
#78 0x02498a03 in wxEventLoopManual::DoRun (this=0x18763068)
    at ../../src/common/evtloopcmn.cpp:206
#79 0x024986f6 in wxEventLoopBase::Run (this=0x18763068)
    at ../../src/common/evtloopcmn.cpp:78
#80 0x02472cf1 in wxAppConsoleBase::MainLoop (this=0x12687f10)
    at ../../src/common/appbase.cpp:334
#81 0x02472a80 in wxAppConsoleBase::OnRun (this=0x12687f10)
    at ../../src/common/appbase.cpp:259
#82 0x0262212c in wxAppBase::OnRun (this=0x12687f10)
    at ../../src/common/appcmn.cpp:304
#83 0x00404c30 in CodeBlocksApp::OnRun (this=0x12687f10)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\src\app.cpp:850
#84 0x024becad in wxEntryReal (argc=@0x30293c8: 1, argv=0x12687ef0)
    at ../../src/common/init.cpp:495
#85 0x025424d0 in wxEntry (argc=@0x30293c8: 1, argv=0x12687ef0)
    at ../../src/msw/main.cpp:197
#86 0x025427a8 in wxEntry (hInstance=0x400000, nCmdShow=10)
    at ../../src/msw/main.cpp:415
#87 0x0040217f in WinMain@16 (hInstance=0x400000,
    hPrevInstance=hPrevInstance@entry=0x0, nCmdShow=10)
    at C:\Devel\open_source_code\version_control\codeblocks_https_metadata-git\src\src\app.cpp:322
#88 0x004f3ded in main (flags=1, cmdline=0x12676f10, inst=0xa1bb8)
    at C:/Devel/open_source_code/version_control/MINGW_packages-git/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c:18
« Last Edit: April 22, 2017, 02:58:21 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 9871
Re: crash when use wxsmith
« Reply #19 on: April 21, 2017, 08:16:18 pm »
Thanks you for the callstack.

I am now going to apply the wxWidgets code change to IsKindOf method and verify it really fixes this problem.
I doubt this will help.
<debugger plugin maintainer>
(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: 9871
Re: crash when use wxsmith
« Reply #20 on: April 21, 2017, 08:17:25 pm »
@Jens: Are you talking about windows or linux? Have you tried with wx-master?
<debugger plugin maintainer>
(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 jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7144
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: crash when use wxsmith
« Reply #21 on: April 21, 2017, 10:44:39 pm »
@Jens: Are you talking about windows or linux? Have you tried with wx-master?
I tried wx3.0.2 and 2.8.12 on windows and wx3.1 (not latest) and 2.8.12 on linux.
All crash, not always, but this might depend on the value of m_parent in propgrid.cpp .

I try to dig into it deeper.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 9871
Re: crash when use wxsmith
« Reply #22 on: April 21, 2017, 11:19:41 pm »
I cannot crash it, but I've seen the crash in wxsmith.
What are the steps to reproduce it?
<debugger plugin maintainer>
(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 icequan233

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: crash when use wxsmith
« Reply #23 on: April 22, 2017, 03:42:21 am »
I cannot crash it, but I've seen the crash in wxsmith.
What are the steps to reproduce it?
I forget the last steps, After checking or changing the style, you need delete the page of wxs editor, It should be
crash. On my virtual machine, Ubuntu16.04, I can reproduce this crash, but not always.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 5710
    • My Best Post
Re: crash when use wxsmith
« Reply #24 on: April 22, 2017, 06:43:52 am »
I just finished building wxWidgets git master (Updated in the past 24 hours) and did NOT see the crash.
Too tired to double check my work tonight. If I confirm this; then, it is likely a wxWidgets problem that has already been fixed to git master.

Edit1: A quick search resulted in this being the change most likely to have fixed the bug.
Edit2: This is based on the guess that compiler optimization is causing the bug.

Quote
SHA-1: 01ccff2e05128241827935646cbb275bab05223b

* Avoid comparing address of reference to NULL

As GCC 6 points out, the compiler is free to assume a reference is never
null, and remove such a check

Code: [Select]
src/propgrid/property.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/propgrid/property.cpp b/src/propgrid/property.cpp
index f8973cd1f6..0e992becc1 100644
--- a/src/propgrid/property.cpp
+++ b/src/propgrid/property.cpp
@@ -515,13 +515,13 @@ void wxPGProperty::Init()
 
 void wxPGProperty::Init( const wxString& label, const wxString& name )
 {
-    // We really need to check if &label and &name are NULL pointers
-    // (this can if we are called before property grid has been initialized)
+    // wxPG_LABEL reference can be NULL if we are called before property
+    // grid has been initialized
 
-    if ( (&label) != NULL && label != wxPG_LABEL )
+    if ( sm_wxPG_LABEL && label != wxPG_LABEL )
         m_label = label;
 
-    if ( (&name) != NULL && name != wxPG_LABEL )
+    if ( sm_wxPG_LABEL && name != wxPG_LABEL )
         DoSetName( name );
     else
         DoSetName( m_label );

Tim S.
« Last Edit: April 22, 2017, 07:20:24 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Testing, compiling CB Trunk against wxWidgets 3.0.2.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 9871
Re: crash when use wxsmith
« Reply #25 on: April 22, 2017, 10:19:50 am »
Edit2: This is based on the guess that compiler optimization is causing the bug.
This is already fixed in our version of wxpropgrid in master. This is not the cause for the bug.
<debugger plugin maintainer>
(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 icequan233

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: crash when use wxsmith
« Reply #26 on: April 22, 2017, 11:40:46 am »
I just finished building wxWidgets git master (Updated in the past 24 hours) and did NOT see the crash.
Too tired to double check my work tonight. If I confirm this; then, it is likely a wxWidgets problem that has already been fixed to git master.

Edit1: A quick search resulted in this being the change most likely to have fixed the bug.
Edit2: This is based on the guess that compiler optimization is causing the bug.



Tim S.
Thanks Tim, many thanks. Anyway, the problem has been fixed.
Now I think that even if compiler optimization cause this problem, we also need to change
our code to slove this problem. So, it is the key that how to slove but not who's bug.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7144
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: crash when use wxsmith
« Reply #27 on: April 22, 2017, 04:27:22 pm »
This should be fixed in latest trunk (svn r11053).
It's tested on linux with wx2.8.12, 3.022 and latest trunk and on windows with 2.8.12 and 3.0.2 .

Offline icequan233

  • Multiple posting newcomer
  • *
  • Posts: 29
Re: crash when use wxsmith
« Reply #28 on: April 23, 2017, 11:43:06 am »
This should be fixed in latest trunk (svn r11053).
It's tested on linux with wx2.8.12, 3.022 and latest trunk and on windows with 2.8.12 and 3.0.2 .
I just tested on windows, fixed indeed. Thanks jens, this is the best method to slove it.