Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Code completion using LSP and clangd

<< < (32/85) > >>

BlueHazzard:
The crash is still happening with r70,
i can reproduce it now:
1) Open codeblocks
2) Open a project with some code (i used the clang_cc project)
3) Hit recompile as fast as you can after project load, and the cc parser is not finished. compiling will start and in the middle -> crash

backtrace and log content is the same as in my previous posts

Pecan:

--- Quote from: BlueHazzard on July 31, 2022, 01:04:14 am ---The crash is still happening with r70,
i can reproduce it now:
1) Open codeblocks
2) Open a project with some code (i used the clang_cc project)
3) Hit recompile as fast as you can after project load, and the cc parser is not finished. compiling will start and in the middle -> crash

backtrace and log content is the same as in my previous posts

--- End quote ---

I'm having a problem getting the crash.

Would you please copy your devel31_64 version of clangd_client.dll with the debug symbols over the top of your output31_64 version and post the crash .RPT file.

AndrewCot:
I was not able to re-create the crash, but I got a crash if I close C::B down while compiling which did not occur with the latest nightly.  I close by clicking on the [X] on the top right of the C::B window. This crash does not include any ClangD-cleint functions, but does have event functions  in the stack so there is a very small slim possibility it could be related and this is why I am posting it here just in case I am wrong.


--- Code: ----------------------

Error occurred on Sunday, July 31, 2022 at 11:00:29.

CodeBlocks.exe caused an Access Violation at location 00007FFFFAAAC2DC in module codeblocks.dll Reading from location FFFFFFFFFFFFFFFF.

AddrPC           Params
00007FFFFAAAC2DC 00000120EBD30BE0 0000001A76BFED50 00000000000005E9  codeblocks.dll!wxPostEvent+0x9c  [D:/Andrew_Development/Libraries/wxWidgets-3.2.0_win64/include/wx/event.h @ 4169]
  4167:     wxCHECK_RET( dest, "need an object to post event to" );
  4168:
> 4169:     dest->AddPendingEvent(event);
  4170: }
  4171:
00007FFFFA8BD86B 00000120F3EED750 00007FFF000049E8 0000000000000000  codeblocks.dll!PipedProcess::OnTerminate+0xd7  [D:/Andrew_Development/Work_Installers/CodeBLocks_Private_Experimental_GCC/src/sdk/pipedprocess.cpp @ 235]
   233:     event.SetInt(status);
   234:     event.SetX(m_Index);
>  235:     wxPostEvent(m_Parent, event);
   236:
   237:     if (m_pvThis)
00007FFFC2B555A6 00000000002309D0 0000000000002B10 0000000000000000  wxmsw32ud_gcc_cb.dll!wxExecuteWindowCbk+0xaf  [D:/Andrew_Development/Libraries/wxWidgets-3.2.0_win64/build/msw/../../src/msw/utilsexc.cpp @ 341]
   339:         if ( data->handler )
   340:         {
>  341:             data->handler->OnTerminate((int)data->dwProcessId,
   342:                                        (int)data->dwExitCode);
   343:         }
00007FF848E3E858 0000001A76BFF1E0 00007FFFC2B554F7 00000000002309D0  USER32.dll!UserCallWinProcCheckWow+0x2f8
00007FF848E3E3DC 0000000000000000 0000000000000000 0000000000000000  USER32.dll!DispatchClientMessage+0x9c
00007FF848E50BC3 0000000000000000 0000000000000000 00000000000083AE  USER32.dll!__fnDWORD+0x33
00007FF849CF0D74 00007FF848E3A5C3 0000000000000000 0000000000000000  ntdll.dll!KiUserCallbackDispatch+0x24
00007FF847641064 0000000000000000 0000000000000000 0000000000000000  win32u.dll!NtUserPeekMessage+0x14
00007FF848E3A5C3 0000000000000000 00000120E8FCC7E0 0000000000000000  USER32.dll!_PeekMessage+0x43
00007FF848E3A523 00000120EA4331A8 0000001A76BFF440 0000000000000038  USER32.dll!PeekMessageW+0x143
00007FFFC2B37CAF 00000120EF9E2370 00000120EF9E2370 0000001A76BFF490  wxmsw32ud_gcc_cb.dll!wxMSWEventLoopBase::Pending+0x35  [D:/Andrew_Development/Libraries/wxWidgets-3.2.0_win64/build/msw/../../src/msw/evtloopconsole.cpp @ 62]
    60: {
    61:     MSG msg;
>   62:     return ::PeekMessage(&msg, 0, 0, 0, PM_NOREMOVE) != 0;
    63: }
    64:
00007FFFC2AA6E6C 00000120EF9E2370 00000120EF9E2384 0000000000000000  wxmsw32ud_gcc_cb.dll!wxEventLoopManual::DoRun+0x52  [D:/Andrew_Development/Libraries/wxWidgets-3.2.0_win64/build/msw/../../src/common/evtloopcmn.cpp @ 276]
   274:                 // for them too
   275:                 while ( !m_shouldExit
>  276:                             && !Pending()
   277:                                 && !(wxTheApp && wxTheApp->HasPendingEvents())
   278:                                     && ProcessIdle() )
00007FFFC2AA6973 00000120EF9E2370 00000120EA47B650 00000120EF9E2370  wxmsw32ud_gcc_cb.dll!wxEventLoopBase::Run+0xf7  [D:/Andrew_Development/Libraries/wxWidgets-3.2.0_win64/build/msw/../../src/common/evtloopcmn.cpp @ 87]
    85:
    86:     // Finally really run the loop.
>   87:     return DoRun();
    88: }
    89:
00007FFFC2A82E85 00000120EA47B490 0000000000000038 0000000000000000  wxmsw32ud_gcc_cb.dll!wxAppConsoleBase::MainLoop+0x93  [D:/Andrew_Development/Libraries/wxWidgets-3.2.0_win64/build/msw/../../src/common/appbase.cpp @ 381]
   379:         wxTheApp->OnLaunched();
   380:
>  381:     return m_mainLoop ? m_mainLoop->Run() : -1;
   382: }
   383:
00007FFFC2A82BBD 00000120EA47B490 00007FF8490703E0 00007FF849050000  wxmsw32ud_gcc_cb.dll!wxAppConsoleBase::OnRun+0x25  [D:/Andrew_Development/Libraries/wxWidgets-3.2.0_win64/build/msw/../../src/common/appbase.cpp @ 303]
   301: int wxAppConsoleBase::OnRun()
   302: {
>  303:     return MainLoop();
   304: }
   305:
00007FFFC2CDDF7B 00000120EA47B490 00007FF849C75BA1 0000000000000000  wxmsw32ud_gcc_cb.dll!wxAppBase::OnRun+0x35  [D:/Andrew_Development/Libraries/wxWidgets-3.2.0_win64/build/msw/../../src/common/appcmn.cpp @ 334]
   332:     //else: it has been changed, assume the user knows what he is doing
   333:
>  334:     return wxAppConsole::OnRun();
   335: }
   336:
00007FF62FE68EBC 00000120EA47B490 00007FFFC3ADA7B0 00000120E8A1EAF0  CodeBlocks.exe!CodeBlocksApp::OnRun+0x30  [D:/Andrew_Development/Work_Installers/CodeBLocks_Private_Experimental_GCC/src/src/app.cpp @ 1070]
  1068:     try
  1069:     {
> 1070:         int retval = wxApp::OnRun();
  1071:         // wx 2.6.3 docs says that OnRun() function's return value is used as exit code
  1072:         return m_Batch ? m_BatchExitCode : retval;
00007FFFC2AD1B32 00007FFFC3ADA7B0 00000120E8A1EAF0 00000120EA4692F0  wxmsw32ud_gcc_cb.dll!wxEntryReal+0xaa  [D:/Andrew_Development/Libraries/wxWidgets-3.2.0_win64/build/msw/../../src/common/init.cpp @ 503]
   501:
   502:         // app execution
>  503:         return wxTheApp->OnRun();
   504:     }
   505:     wxCATCH_ALL( wxTheApp->OnUnhandledException(); return -1; )
00007FFFC2B69390 00007FFFC3ADA7B0 00000120E8A1EAF0 0000000000000000  wxmsw32ud_gcc_cb.dll!wxEntry+0x20  [D:/Andrew_Development/Libraries/wxWidgets-3.2.0_win64/build/msw/../../src/msw/main.cpp @ 184]
   182: int wxEntry(int& argc, wxChar **argv)
   183: {
>  184:     return wxEntryReal(argc, argv);
   185: }
   186:
00007FFFC2B6947A 00007FF62FE60000 0000000000000000 00000120E8A13C5A  wxmsw32ud_gcc_cb.dll!wxEntry+0x4e  [D:/Andrew_Development/Libraries/wxWidgets-3.2.0_win64/build/msw/../../src/msw/main.cpp @ 296]
   294:         return -1;
   295:
>  296:     return wxEntry(wxArgs.argc, wxArgs.argv);
   297: }
   298:
00007FF62FE6257D 00007FF62FE60000 0000000000000000 00000120E8A13C5A  CodeBlocks.exe!WinMain+0x3a  [D:/Andrew_Development/Work_Installers/CodeBLocks_Private_Experimental_GCC/src/src/app.cpp @ 339]
   337: } // namespace
   338:
>  339: IMPLEMENT_APP(CodeBlocksApp) // TODO: This gives a "redundant declaration" warning, though I think it's false. Dig through macro and check.
   340:
   341: BEGIN_EVENT_TABLE(CodeBlocksApp, wxApp)
00007FF62FE613AE 0000000000000000 0000000000000000 0000000000000000  CodeBlocks.exe!__tmainCRTStartup+0x22e  [C:/M/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c @ 329]
00007FF62FE614E6 0000000000000000 0000000000000000 0000000000000000  CodeBlocks.exe!mainCRTStartup+0x16  [C:/M/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crtexe.c @ 206]
00007FF849067034 0000000000000000 0000000000000000 0000000000000000  KERNEL32.DLL!BaseThreadInitThunk+0x14
00007FF849CA2651 0000000000000000 0000000000000000 0000000000000000  ntdll.dll!RtlUserThreadStart+0x21

Windows 10.0.19044
DrMingw 0.9.5


--- End code ---

ollydbg:
Hi, Pecan, if possible, can you have several more small svn commits instead of a big svn commit.

I mean I see your commit history(such as rev70), it mainly have several code changes from many places, and the expected way is for each logic code change, you should have a commit. This make the code a bit clean and easy to track.

Thanks.

BTW: The best way is using git, not svn.  :)

MaxGaspa:
Hi Pecan,

I' using the ClangdClientForCBNightly_20220813_rev12864_win64.zip with the latest CB nightly and I'm observing a minor issue and a crash. They are present on both Win7 Pro  and Windows 10 Enterprise

The minor issue is related to the option "Update parser when typing )on save otherwise". I de-select this option because I'd like to update just when I'm saving the file. In reality the updating happens both when typing and (instead of otherwise) when saving. May be this is the implemented feature but in some cases the parser updating when typing is a little bit annoying, I think that updating just on saving can be very useful especially when you are typing a new code and several errors appears when I'm correcting them

The crash happens when the window, shown in the attached picture , is present in the editor. CB just freeze and the a crash happen. I'm also attaching the .RPT file related to this crash.

Hope this helps

Max

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version