Author Topic: Code::Blocks crashes when opening project (solved but bug found after)  (Read 9275 times)

Offline MC

  • Multiple posting newcomer
  • *
  • Posts: 10
Does anybody have an idea whats wrong with this project? Code::Blocks crashes when opening it  :'(:
I use CodeBloxx Version 13.12 Rev 9501. I use german Win7 on a HP notebook with 2.5GHz and 6 G Ram.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
   <FileVersion major="1" minor="6" />
   <Project>
      <Option title="CCharToXDigit" />
      <Option pch_mode="2" />
      <Option compiler="gcc" />
      <Build>
         <Target title="Debug">
            <Option output="bin/Debug/CCharToXDigit" prefix_auto="1" extension_auto="1" />
            <Option object_output="obj/Debug/" />
            <Option type="1" />
            <Option compiler="gcc" />
            <Compiler>
               <Add option="-g" />
            </Compiler>
         </Target>
         <Target title="Release">
            <Option output="bin/Release/CCharToXDigit" prefix_auto="1" extension_auto="1" />
            <Option object_output="obj/Release/" />
            <Option type="1" />
            <Option compiler="gcc" />
            <Compiler>
               <Add option="-O2" />
            </Compiler>
            <Linker>
               <Add option="-s" />
            </Linker>
         </Target>
         <Target title="cc65_Debug">
            <Option output="cc65bin/debug/CCharToXDigit.prg" prefix_auto="0" extension_auto="0" />
            <Option working_dir="" />
            <Option object_output=".cc65objs" />
            <Option type="5" />
            <Option compiler="cc65_" />
         </Target>
         <Target title="cc65_Release">
            <Option output="cc65bin/release/CCharToXDigit.prg" prefix_auto="0" extension_auto="0" />
            <Option working_dir="" />
            <Option object_output=".cc65objs" />
            <Option type="5" />
            <Option compiler="cc65_" />
         </Target>
      </Build>
      <Compiler>
         <Add option="-Wall" />
      </Compiler>
      <Unit filename="CCharToXDigit.c">
         <Option compilerVar="CC" />
         <Option target="Debug" />
         <Option target="Release" />
      </Unit>
      <Unit filename="CCharToXDigit.h" />
      <Unit filename="CCharToXDigit.lst">
         <Option target="Debug" />
         <Option target="Release" />
      </Unit>
      <Unit filename="Test_CCharToXDigit.c">
         <Option compilerVar="CC" />
      </Unit>
      <Unit filename="Test_CCharToXDigit.lst">
         <Option target="Debug" />
         <Option target="Release" />
      </Unit>
      <Unit filename="cc65_CCharToXDigit.c">
         <Option compilerVar="CC" />
         <Option target="cc65_Debug" />
         <Option target="cc65_Release" />
      </Unit>
      <Extensions>
         <code_completion />
         <envvars />
         <debugger />
         <lib_finder disable_auto="1" />
      </Extensions>
   </Project>
</CodeBlocks_project_file>
« Last Edit: January 12, 2014, 10:02:37 pm by MC »

Offline MC

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Code::Blocks crashes when opening project
« Reply #1 on: January 12, 2014, 10:01:08 pm »
The error in the xml file was that it specified _cc65 as compiler instead of cc65 in line 35 and 42.
Fixing this, codebloxx could open that project file again.
As codebloxx should not crash if a wrong (or nonexisting) compiler is given in the project file i consider this
a BUG which should be fixed.
Imagine if for some reason the compiler is accidently given as _gcc instead of gcc (To use a known example instead of the
cc65 compiler i added by myself). Would be very diffucult to track down!
Please fix!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Code::Blocks crashes when opening project (solved but bug found after)
« Reply #2 on: January 12, 2014, 10:24:10 pm »
Doesn't crash here...

Probably you're using an executable coming from a wrong project, because you're mentioning codebloxx instead of the proper Code::Blocks, but who knows...  ::) :P
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline MC

  • Multiple posting newcomer
  • *
  • Posts: 10
Re: Code::Blocks crashes when opening project (solved but bug found after)
« Reply #3 on: January 12, 2014, 10:59:31 pm »
I use Code::Blocks. I was just lazy about typing.
It is not that Code::Blocks crashes when i start the compiled program, but when the project xml file is loaded into
the editor. Additionally it works again with the same Code::Blocks, when the underscore was removed.
So i still think it is a bug in Code::Blocks during the process of parsing of the XML file.


Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Code::Blocks crashes when opening project (solved but bug found after)
« Reply #4 on: January 12, 2014, 11:56:43 pm »
Please describe the exact steps to reproduce the problem.
As far as I know no one loads the file in the editor, but in the project manager.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]