User forums > Help

Cannot open any file from project, Code Blocks crashes immediately? [solved]

(1/4) > >>

iviviviviv:
I have a problem, because CodeBlocks crashes when I open any file from saved project. I have Windows 10, and CodeBlocks 13.12. Before this, I tried to use CodeBlocks 17.12, it was the same result, it crashed also. This problem appears on my new computer, where I just installed CodeBlocks.

I disabled Windows Deffender, all parts, it means: Defender Threat Protection Service, Defender Antivirus Network Inspection, Defender Antivirus Service. I also disabled Defender Firewall, but in Windows Services next to its icon it is written status: Running.

I tried to disable plug ins in CodeBlocks, and when I disabled all plugins except Scripting wizard and Compile, it is the same, code blocks crashes.

In my project folder I had file with extensions: .layout and .dependent. At the beginnig I could not open neither project in Code Blocks, it crashed immediately. When I deleted files with extensions .layout and .dependent in my project folder, now I can open the project without crash, but I cannot open any *.c or *.h file without crash.What should I do?

oBFusCATed:
Can you share the project?
Can you show a backtrace?
Sometimes CB generates a crashlog xml file. Do you have such file?
What happens if you rename the codeblocks folder in your appdata folder?
Does it crash if you create a simple hello world project?

iviviviviv:
No, it does not crash when I create and execute simple project "hello world".

I attached project here
https://drive.google.com/file/d/1DlXBXB4D14qzM3oQJOj7sRpnFwCDjuyS/view?usp=sharing

I did not find crash xml file, where should I look at?

Do you mean to rename my installation folder of CodeBlocks or something else, what is in appdata? I tried to rename my project, but it is the same.

And what is backtrace, where to search for it?

oBFusCATed:

--- Quote from: iviviviviv on January 04, 2020, 02:06:11 pm ---No, it does not crash when I create and execute simple project "hello world".
Are you able to make it crash if you use the project in a clean folder where you unpack the files from the archive?

I attached project here
https://drive.google.com/file/d/1DlXBXB4D14qzM3oQJOj7sRpnFwCDjuyS/view?usp=sharing


--- End quote ---
Doesn't crash for me when using the latest version. (but I'm on linux at the moment)
Have you tried a night build?


--- Quote from: iviviviviv on January 04, 2020, 02:06:11 pm ---I did not find crash xml file, where should I look at?

--- End quote ---
Probably your temp folder, but there should a dialog showing the info. So if you don't see a dialog most probably the xml generation code haven't triggered.


--- Quote from: iviviviviv on January 04, 2020, 02:06:11 pm ---Do you mean to rename my installation folder of CodeBlocks or something else, what is in appdata? I tried to rename my project, but it is the same.

--- End quote ---
Nope. I mean the folder where the settings are.
Most of the time this is in your user's folder in some appdata sub-folder.


--- Quote from: iviviviviv on January 04, 2020, 02:06:11 pm ---And what is backtrace, where to search for it?

--- End quote ---
You need a tool (like a debugger or backtrace generator) and build with symbols. But even without symbols it would be useful to see where it crashes.

BlueHazzard:
Also no crash here on windows with the latest trunk...

If you have .layout files or .depend file try to delete them

else you can try a nightly build from the forum....

Navigation

[0] Message Index

[#] Next page

Go to full version