News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

crash when creating new class

Started by yoke, September 04, 2022, 05:51:26 AM

Previous topic - Next topic

yoke

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

Pecan

#1
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.

Commaster

Does the project folder path contain simplified Chinese characters? That might cause problems in general...

yoke

Quote from: Commaster on September 04, 2022, 07:00:03 PM
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

Pecan

@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.

yoke

Quote from: Pecan 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.
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


Miguel Gimenez


yoke

Quote from: Miguel Gimenez on September 05, 2022, 01:42:16 PM
Try to reproduce using the last nightly.

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

Pecan

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.

Pecan

@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.

yoke

Quote from: Pecan 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.

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