Code::Blocks Forums

User forums => Help => Topic started by: nore on September 22, 2023, 08:14:56 pm

Title: Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."
Post by: nore on September 22, 2023, 08:14:56 pm
Hi there,

I am using code::blocks svn 13344 and have noticed that I occasionally get the following assertion/error upon program launch. Sometimes the error will appear multiple times in a row (with each launch, that is) before launching normally without error. This only occurs perhaps a number of times each week.

NULL pParser: IdleCallbackHandler* ClgdCompletion::GetIdleCallbackHandler(cbProject*)() 662

<press OK>

Fatal assertion error
Assertion failed in IdleCallbackHandler*
ClgdCompletion::GetIdleCallbackhandler(cbProject*) at
C:\Codeblocks\src\plugins\contrib\clangd_client\src\codecompletion\codecompletion.h:665.

pParser && pParser->GetIdleCallbackHandler()

I assume that this is an error regarding the use of the Clangd Client plugin rather than an issue with code::blocks.
The program crashes upon confirmation of the second dialog box regarding the error.
Title: Re: Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."
Post by: Pecan on September 22, 2023, 11:18:57 pm
Thanks for reporting.

I'll have a look at it.
Any special way to make it to happen?
Title: Re: Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."
Post by: nore on September 23, 2023, 12:53:04 am
Not that I know of. Perhaps only 1 out of 20 launches result in the assertion error showing up; and they persist even less than that--that being appearing after restarting code::blocks.
Title: Re: Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."
Post by: Pecan on October 11, 2023, 06:50:51 pm
Is this assert on Windows, Linux, or Mac ?

What is your setting for Settings>Environmental>OnApplication-startup
Title: Re: Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."
Post by: Pecan on October 13, 2023, 06:24:47 pm
Fixed svn rev 13372
Thanks for reporting.
Title: Re: Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."
Post by: nore on October 24, 2023, 03:45:09 pm
Is this assert on Windows, Linux, or Mac ?


Windows.

Fixed svn rev 13372
Thanks for reporting.

Thank you Pecan, I've just updated code::blocks to svn 13373 this morning.