Author Topic: crash when creating new class  (Read 4288 times)

Offline yoke

  • Single posting newcomer
  • *
  • Posts: 5
crash when creating new class
« on: September 04, 2022, 05:51:26 am »
platform:win10 x64  simplified Chinese
compiler:msys2 x86_64
cb version:svn 12757 64bit wx3.1.5 gcc 8.1.0
operation:
[File] [new] [Class] [input Class name]
 [Add paths to project]checked
 [User relative path]checked
 [Header and implementation file shall be in same folder] checked
[Add guard block in header file]checked
[Add "Getter" method] checked
[Add "Setter" method] checked
[Remove prefix:] checked
[Create]
[Add to project? ]yes
 [Multiple selection] OK
 codeblocsk has not response(the new file has been added the project),I had to kill it.restart the codeblocks,the new created file has not been added to the project,I  can add the files manually

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2809
Re: crash when creating new class
« Reply #1 on: September 04, 2022, 05:58:12 pm »
I could not re-create this situation with:

Windows 10
Name                    : Code::Blocks
Version                 : svn-r12856
SDK Version             : 2.19.0
Scintilla Version       : 3.7.5
Author                  : The Code::Blocks Team
E-mail                  : info@codeblocks.org
Website                 : https://www.codeblocks.org
OS                      : Windows 10 (build 19043), 64-bit edition
Scaling factor          : 1.250000
Detected scaling factor : 1.250000
Display PPI             : 120x120
Display count           : 1
Display 0 (\\.\DISPLAY1): XY=[0,0]; Size=[1920,1080]; Primary

wxWidgets Library (wxMSW port)
Version 3.1.5 (Unicode: wchar_t, debug level: 1),
compiled at Jun  5 2021 11:08:36
Compiler: gcc 8.1.0 (Windows,unicode) - 64 bit
Runtime version of toolkit used is 10.0.

Nor could I re-create the hang using the current Head or Nightly.
« Last Edit: September 04, 2022, 06:09:43 pm by Pecan »

Online Commaster

  • Almost regular
  • **
  • Posts: 171
Re: crash when creating new class
« Reply #2 on: September 04, 2022, 07:00:03 pm »
Does the project folder path contain simplified Chinese characters? That might cause problems in general...

Offline yoke

  • Single posting newcomer
  • *
  • Posts: 5
Re: crash when creating new class
« Reply #3 on: September 05, 2022, 03:20:45 am »
Does the project folder path contain simplified Chinese characters? That might cause problems in general...

There are no Chinese characters other than English characters in the project path.
My cb location is "H:\codeblocks\codeblocks.exe"
My project full path is "H:\000_git_rep\litchi"
Is there a way to an analyse this

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2809
Re: crash when creating new class
« Reply #4 on: September 05, 2022, 06:49:32 am »
@yoke

Can you create a small project that causes the problem?

Then attach it to a message here, or upload it somewhere so we can download it and test it.

Offline yoke

  • Single posting newcomer
  • *
  • Posts: 5
Re: crash when creating new class
« Reply #5 on: September 05, 2022, 10:19:55 am »
@yoke

Can you create a small project that causes the problem?

Then attach it to a message here, or upload it somewhere so we can download it and test it.
I can already reproduce the problem,No project files are required,You can create a project to test as you want.
Below is the key point to reproduce the problem.
After you click the OK button in the "multiple selection" interface, and then,double click anywhere in the editor as quickly as you can.
Maybe,you should perform it more than once


Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1635
Re: crash when creating new class
« Reply #6 on: September 05, 2022, 01:42:16 pm »
Try to reproduce using the last nightly.

Offline yoke

  • Single posting newcomer
  • *
  • Posts: 5
Re: crash when creating new class
« Reply #7 on: September 05, 2022, 02:29:11 pm »
Try to reproduce using the last nightly.

The same thing happened with the new version(SVN 12864)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2809
Re: crash when creating new class
« Reply #8 on: September 09, 2022, 06:59:13 pm »
Do you have a crash .RPT file in the executable folder?

Do you mean that CB disappears after clicking OK or that it just stalls with no response.

I'm wondering if this is a case of a message box hiding behind  the CodeBlocks windows, and waiting for an "Ok" response.

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2809
Re: crash when creating new class
« Reply #9 on: September 09, 2022, 07:24:15 pm »
@yoke

Please attach a screen shot of the new class dialog just before you click on OK. This will allow us try and re-create the situation your having.

Offline yoke

  • Single posting newcomer
  • *
  • Posts: 5
Re: crash when creating new class
« Reply #10 on: September 11, 2022, 08:58:21 am »
@yoke

Please attach a screen shot of the new class dialog just before you click on OK. This will allow us try and re-create the situation your having.

There is no .prt file.I re-create the  situation,and no message boxes are seen
Here is the full explanation http://118.24.235.179/cb_crash.pdf