Author Topic: Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."  (Read 8969 times)

Offline nore

  • Multiple posting newcomer
  • *
  • Posts: 20
Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."
« 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.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."
« Reply #1 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?

Offline nore

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."
« Reply #2 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.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."
« Reply #3 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
« Last Edit: October 11, 2023, 07:32:18 pm by Pecan »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."
« Reply #4 on: October 13, 2023, 06:24:47 pm »
Fixed svn rev 13372
Thanks for reporting.

Offline nore

  • Multiple posting newcomer
  • *
  • Posts: 20
Re: Assert: "NULL pParser: IdleCallbackHandler* ClgdCompletion..."
« Reply #5 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.