Author Topic: Crash with last nighlty build  (Read 9767 times)

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 45
Crash with last nighlty build
« on: April 04, 2021, 08:53:04 pm »
Hi,
I was editing a source. This never happened before. At some point the editor got unresponsive, the mouse wheel stopped working, I could still move the cursor, the editor had some hiccups and at the end CB froze. It took a while before the Windows crash requester opened though (1 minute or so). I've attached the output of the event logger.
Using latest nightly build, on Windows7 x64 ultimate.
Please let me know if I must provide more info.
Thanks.

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1110
Re: Crash with last nighlty build
« Reply #1 on: April 04, 2021, 09:30:45 pm »
A 0xc0000005 exception indicates an access violation, probably the program is dereferencing a null pointer.

If this happens often you can try executing C::B via GDB.

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: Crash with last nighlty build
« Reply #2 on: April 04, 2021, 09:36:29 pm »
Thanks, unfortunately this happened for the first time since I downloaded the nightly build about 10 days ago, it is therefore a too rare occurrence to motivate running cb from gdb on a stable basis...

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: Crash with last nighlty build
« Reply #3 on: April 07, 2021, 09:14:41 pm »
Hi, the same crash happened again! After having pasted a text block of about 10 lines within a same source in the editor, cb froze. I stress that the window crash dialog showed up even this time after about two minutes since the freeze. And now that I think well of it, even the last time it happened I had just pasted some code within the same source, with the keys combination, not with the menu Paste.
The crash log seems the same.
Exception code c0000005
Module: wxmsw313u_gcc_cb.dll
Exception offset: 0000000000224a22
Hope this can help... please investigate, thanks. There was no other programs running in background.

Offline Badekonzentrat

  • Single posting newcomer
  • *
  • Posts: 2
Re: Crash with last nighlty build
« Reply #4 on: December 22, 2021, 09:40:25 am »
Hi,
any news about that issue?
I still have the same crashes with the 14 December 2021 build (12579) .

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1110
Re: Crash with last nighlty build
« Reply #5 on: December 22, 2021, 10:06:49 am »
I copy/paste a lot and never got a crash, so it may be difficult to debug.

Can you attach the codeblocks.RPT file?. It should be in the same folder of codeblocks.exe
Even better, create a ticket and attach there the RPT file.

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: Crash with last nighlty build
« Reply #6 on: December 22, 2021, 11:27:23 am »
Hi, the same crash still happening with the latest nightly build. But it always happens very seldom. Last time I just clicked in the code editor, moved the mouse wheel and everything froze.
Next time I will attach the .rpt, thanks. Btw I think I had already created a ticket

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1110
Re: Crash with last nighlty build
« Reply #7 on: December 22, 2021, 11:37:36 am »
You have three open and three closed tickets, none of them refers to this issue.

The RPT file is accumulative, the crash log may be still there.

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: Crash with last nighlty build
« Reply #8 on: December 22, 2021, 02:13:00 pm »
There is no .rpt file inside codeblocks folder. Where is it located ? Thx

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1110
Re: Crash with last nighlty build
« Reply #9 on: December 22, 2021, 02:37:26 pm »
It should be in the same folder where codeblocks.exe is.

It is created on first crash, so it may be absent if there has been no crash since folder creation.

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: Crash with last nighlty build
« Reply #10 on: December 22, 2021, 03:10:14 pm »
Strange. I am 100% sure it crashed the other day and the folder with the .exe is still that of the nightly build which I installed 2 weeks ago or so but there is no .rpt.... When CB freezes that way, I can just ask Windows to close it forcibly (the hard way) so perhaps it is really unable to even just write out any crash report...

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1110
Re: Crash with last nighlty build
« Reply #11 on: December 22, 2021, 03:30:52 pm »
The report is generated when crashing, a freeze will not generate it.

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: Crash with last nighlty build
« Reply #12 on: December 22, 2021, 04:10:15 pm »
Well I don't know how to properly call it... when it happens, I am always clicking in the code editor, move the mouse wheel and I realize that CB is not responding. So I know what I am before. It remains frozen and unresponsive for several seconds, even perhaps 30 seconds, and only then the Windows crash requester shows up. Since I have already waited for it once (and reported the content here), now when CB freezes I suddently close it the hard way to avoid waiting. Next time I will wait to see if a .rpt can still generated or not (but I fear not)

Offline blauzahn

  • Almost regular
  • **
  • Posts: 129
Re: Crash with last nighlty build
« Reply #13 on: December 22, 2021, 05:28:00 pm »
Does it happen as well when you disable the code-completion plugin or even startup codeblocks with the command-line argument --safe-mode? Opening and editing a file works even in safe-mode.

If you can start cb from within gdb, then when it becomes unresponsive, please press Ctrl-C. If one function consumes the majority of time, chances are that it breaks in that function. Issuing within gdb the command backtrace might give you the corresponding backstrace to that function. Finding a solution is another story, of course.



Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 45
Re: Crash with last nighlty build
« Reply #14 on: December 22, 2021, 08:35:29 pm »
Fact is, since the problem happens very seldom (sometimes even once monthly), it would be very impractical for me to launch CB from the command line everytime instead of launching it from a project. Clearly if the bug was easily replicable I could surely do that...