Menu

#1268 Crash when exiting C::B

Undefined
invalid
nobody
None
Bug_Report
2022-05-24
2022-05-14
Elena
No

I was working at project A. Then I opened another instance of CB to open project B by clicking on ProjectB.cbp. A CB window opened showing the source opened in project A. Then I got a crash. Win7 64 ultimate, i7. Nightly build 12802. Rpt attached.

1 Attachments

Discussion

  • Elena

    Elena - 2022-05-15

    It happened twice in a night. This time there was just one project opened. I closed CB without saving (I forgot to save, a requester would have popped up normally to remind me to save the works) and I got a wxWidgets Debug Alert "A debugging check in this application has failed: idx != (-1) failed in SetSelectionToWindow(): invalid notebook page". Then it crashed. RPT attached.

     
  • Elena

    Elena - 2022-05-15

    It keeps happening with one project but not with others, dunno why. Everytime you close CB, it crashes. I installed the last NB (15 May), same problem. Updated RPT attached

     
  • bluehazzard

    bluehazzard - 2022-05-15

    It is so annoying that cb has no debug symbols...

    00000000690F1F68 0000000000C7DAF8 0000000000000001 0000000000000001  wxmsw315u_gcc_cb.dll!wxHTTP::~wxHTTP
    0000000069B0698F 0000000000000000 00000000691E4ECA 000000000310C980  wxmsw315u_gcc_cb.dll!wxTabFrame::DoSizing
    0000000069684C31 0000000002FA57C0 0000000002FA57C0 0000000002FA0630  wxmsw315u_gcc_cb.dll!wxAuiNotebook::DoSizing
    0000000069684C5D 000000000735F880 0000000002F84198 0000000002F84238  wxmsw315u_gcc_cb.dll!wxAuiNotebook::DoThaw
    000000006941B919 00000000072F3AB0 0000000002F84198 0000000000000096  wxmsw315u_gcc_cb.dll!wxWindowBase::Thaw
    00000000696716AF 0000000002F84228 000000000000001C 000000000022D5A0  wxmsw315u_gcc_cb.dll!wxAuiManager::Update
    000000000046C8D1 0000000002F83DF0 0000000000000000 000000000022D5D0  codeblocks.exe!0x6c8d1
    000000000046C16A 0000000002F83DF0 0000000000800000 0000000000000002  codeblocks.exe!0x6c16a
    000000000046A3D3 0000000002F83DF0 000000000022E230 0000000000000000  codeblocks.exe!0x6a3d3
    0000000000473E1E 0000000002F83DF0 000000000022E9B0 000000000022E7B0  codeblocks.exe!0x73e1e
    0000000068F83164 0000000000000001 000000000022EA30 00000000030FEC00  wxmsw315u_gcc_cb.dll!wxAppConsoleBase::CallEventHandler
    00000000690D8F72 0000000069C63564 00000000690D978D 0000000000000000  wxmsw315u_gcc_cb.dll!wxEvtHandler::ProcessEventIfMatchesId
    00000000690D9137 0000000002F83DF0 00000000690D98E1 000000000310C980  wxmsw315u_gcc_cb.dll!wxEventHashTable::HandleEvent
    00000000690D978D 0000000069C63564 000000000022EA30 000000000022EA30  wxmsw315u_gcc_cb.dll!wxEvtHandler::TryHereOnly
    00000000690D9213 0000000000000000 000000006941ADA4 00000000075D8D00  wxmsw315u_gcc_cb.dll!wxEvtHandler::DoTryChain
    00000000690D98E1 000000000022EA90 000000006941ADA4 000000000022E9A0  wxmsw315u_gcc_cb.dll!wxEvtHandler::ProcessEvent
    

    But this leads to me that this can be some documentation popup problem:

    wxHTTP::~wxHTTP
    
     
  • Elena

    Elena - 2022-05-21

    The crash is perfectly reproduceable now here. I have attached an archive containing both the indicted project, the RPT and my settings folder. I hope this helps. Here it crashes ALWAYS when closing that project. Unfortunately I am not allowed to rename the ticket to a more relevant title like "crash when exiting CB". Please let me know if it helps or if you need more info, thx.

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-05-22
    • summary: Crash opening a second project --> Crash when exiting C::B
     
  • Miguel Gimenez

    Miguel Gimenez - 2022-05-23

    I can not reproduce (W7 & W10, wx3.1.6).

    Can you post the list of enabled plugins? It is available in Help -> About -> Plugins.

     
  • Elena

    Elena - 2022-05-23

    A list of the enabled plugins follows. However that is common to all my projects, and as I said only that project crashes on exiting.
    For the record, I think I fixed it accidentally. To me it looks like it was the .cbp file which got corrupted for some reason. Now I opened it to do some tests and it showed main.cpp opened twice (two tabs). I closed one tab and in crashed. So evidentily it went nuts. Then I opened the project again and it showed no tabs opened. I could open main.cpp in the editor again, I saved the project and now it exits without crashes. Surely it was the .cbp which became corrupted. I lost it now but you still have it in the BugReport.7z archive I sent, if you want to inspect it carefully. Thanks

    Abbreviations : 0.1
    Autosave : 0.1
    AutoVersioning : 1.3
    BrowseTracker : 1.2.113 2022/04/15
    BYO Games : 1.0
    Cccc : 1.1
    Class wizard : 0.3
    Code completion : 1.0
    Code profiler : 1.0RC2
    Code snippets : 1.4.3 2018/03/24
    Code statistics : 0.5
    Compiler : 0.99
    Copy Strings to clipboard : 1.00
    CppCheck : 1.1
    Cscope : 0.3
    Debugger : 0.3
    DevPak updater/installer : 0.2
    DoxyBlocks : 1.7.663
    DragScroll : 1.3.30 2021/06/25
    EditorConfig plugin for Code::Blocks: 0.2
    EditorTweaks : 0.1
    Environment variables : 0.97
    FileManager : 0.5.0
    Files extension handler : 1.0
    Foreign projects importer : 1.1
    FortranProject : 1.8
    Header Fixup : 0.80
    Help plugin : 1.1
    HexEditor : 0.5
    IncrementalSearch : 0.9
    Keyboard shortcuts : 2.0.16 2020/07/14
    Koders query : 0.1
    Library finder : 2.0
    LogHacker : 0
    ModPoller : 0.1
    MouseSap : 1.1.10 2020/06/9
    NassiShneidermanPlugin : 0.1
    OccurrencesHighlighting : 0.1
    Open files list : 1.0
    Project options manipulator : 1.0
    Regular expressions testbed : 0.3
    ReopenEditor : 0.5
    rndgen : 217.11.0.22
    Scripted wizard : 0.9
    SmartIndentCpp : 0.1
    SmartIndentFortran : 0.1
    SmartIndentHDL : 0.1
    SmartIndentLua : 0.1
    SmartIndentPascal : 0.1
    SmartIndentPython : 0.1
    SmartIndentXML : 0.1
    Source code formatter (AStyle) : 3.1.0
    Source Exporter : 1.0
    SpellChecker : 0.1
    Symbol Table Plugin : 1.0
    ThreadSearch : 1.13
    tidycmt : 1.0.0
    Todo List : 0.3
    ToolsPlus : 0.6.0
    Windows XP Look'n'Feel : 1.0
    wxSmith : 1.0
    wxSmith - Aui : 0.8.1
    wxSmith - Contrib Items : 0.2
    wxSmith - MIME plugin : 1.0

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-05-23

    I think the problem was in the Workbench.layout file, where main.cpp appears twice:

        <EditorTabsLayout layout="073f5550628930570000063e00000002=*0;Workbench:main.cpp,*0;Workbench:main.cpp@layout2|name=dummy;caption=;state=2098174;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=560;besth=259;minw=560;minh=259;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=073f5550628930570000063e00000002;caption=;state=2098172;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=200;besth=200;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|dock_size(5,0,0)=202|" />
    

    I will close the ticket if you have no objection.

     
  • Miguel Gimenez

    Miguel Gimenez - 2022-05-24
    • status: open --> invalid
     

Log in to post a comment.