User forums > Help
Open projects from Nautilus freezes C::B
Michael:
--- Quote from: Dee on April 27, 2006, 07:47:42 pm ---
--- Quote ---Are you sure that the problem is related to C::B?
--- End quote ---
Yes, I think so. It may be something like the Environment->Settings crash that only appear on a few computers...
--- End quote ---
May be. But there must be a reason anyway. May be a conflict or a bad install and so on. Try with other C::B projects and see if you still have troubles.
--- Quote from: Dee on April 27, 2006, 07:47:42 pm ---
--- Quote ---May be you can try to start C::B with gdb, get the backtrace and post it.
--- End quote ---
Unfortunately not... because the codeblocks process hangs I must kill it to go on. And then I can not get some backtrace... Or is there another way to use gdb when a process does not return normally? (I haven't used gdb not that much before.)
--- End quote ---
Ok, I see. Unfortunaly I am not an expert too. I use occasionally gdb and since not a lot of time.
--- Quote from: Dee on April 27, 2006, 07:47:42 pm ---
--- Quote ---the nightly builds subforum is not the most suitable place to put such a thread. I think that the Help subforum would be better.
--- End quote ---
I thought because I use a nightly build it belongs here... If not, some mod could be so nice and move it to the right place?
--- End quote ---
AFAIK, the nightly builds subforum should be used to annonce nightly builds. Users who have problems with a nightly build usually post their problems directly under the nightly build annoncement (but I do not know if this is the right way :roll:). I usually use the Help subforum when I have problems with SVN C::B.
Best wishes,
Michael
Dee:
--- Quote ---May be a conflict or a bad install and so on.
--- End quote ---
Hm, I know the guy who give me the link to this deb... ;) (I mean it's your built I downloaded this morning.)
--- Quote ---Try with other C::B projects and see if you still have troubles.
--- End quote ---
How many? I have created the simplest program I could ( or better I let create by C::B.)
--- Code: ---#include <iostream>
int main()
{
std::cout << "Hello world!" << std::endl;
return 0;
}
--- End code ---
and save it... It still hangs!
And it may be that some projects may work and some not. I haven't found any project that could be opened per double-click or from terminal with "codeblocks project.cbp". (Just tested three types...)
Greetings, Dee
Michael:
--- Quote from: Dee on April 27, 2006, 08:35:40 pm ---
--- Quote ---May be a conflict or a bad install and so on.
--- End quote ---
Hm, I know the guy who give me the link to this deb... ;) (I mean it's your built I downloaded this morning.)
--- End quote ---
ehmm....I did not mean specifically the .deb package :), but the packages you have installed in your system. May be your problem is local more then C::B related.
--- Quote from: Dee on April 27, 2006, 08:35:40 pm ---
--- Quote ---Try with other C::B projects and see if you still have troubles.
--- End quote ---
How many? I have created the simplest program I could ( or better I let create by C::B.)
--- Code: ---#include <iostream>
int main()
{
std::cout << "Hello world!" << std::endl;
return 0;
}
--- End code ---
and save it... It still hangs!
And it may be that some projects may work and some not. I haven't found any project that could be opened per double-click or from terminal with "codeblocks project.cbp". (Just tested three types...)
--- End quote ---
I attach here the small project I have used (is more or less useless code :)). Once you will get it, an admin should delete it for save bandwidth.
Best wishes,
Michael
[attachment deleted by admin]
artoj:
I can see this bug also. I cannot open a Console project made from File - New Project on Ubuntu Breezy.
I've tried opening the project from terminal and from Nautilus, in both cases C::B's UI hangs (no backtrace, no messages to console) and I've to issue "killall codeblocks" or Ctrl+C to close C::B.
The first revision where the test does not fail is 2263. All revisions from today to 2272 fail.
The test is following:
1. Remove all other C::B from Ubuntu, "sudo apt-get remove codeblocks". Remove old Console project.
2. Download .deb
3. Install .deb, "sudo dpkg -i ****.deb"
4. Launch C::B.
5. Create new Console project from File - New.
6. I created the project to the root of my home directory, "/home/arto". I named the project "console".
7. Check that the project was successfully created and close C::B.
8. Try to launch the project from terminal, "cd console;codeblocks console.cbp". It fails.
9. Try to launch the project from Nautilus. Right click the project file - select "Open with Code::Blocks IDE" (the .cbp is registered to C::B in my setup).
In step 8 and 9 revision 2263 succeedes, revision 2272 fails.
I'm using C::B through VMWare Player with Ubuntu virtualization file but this shouldn't cause any issues. Ubuntu Breezy has the latest patches installed and "wx-config --version" outputs "2.6.1".
I haven't touched the plugins, so they're all enabled.
@Dee, could you check revisions 2263 and 2272 and report your results.
There could be something that I'm doing wrong though because I'm just starting to use Ubuntu.
Dee:
@artoj: Very detailed description :) and yes, it's exactly the same here. 2263 can open the project files from Nautilus or as argument, 2272 not. So there must be a change somewhere... But please test Michaels file because:
@Michael: I have tested your project. If I open it I get some warning, that "Project file format is older (1.3) than the current format (1.4) ... [more text]". But the project opens (!) without hanging.
If I close C::B and let the project save to the new 1.4. format and try to open it now, C::B hangs again. So it has some problems with the new format there I think.
Edit: Hi hi... this is funny. I took a look into the project files of Michael. The only difference: <FileVersion major="1" minor="3"/> in the original version instead of <FileVersion major="1" minor="4"/> after saving the project file.
So I have open my project file and found the line <FileVersion major="1" minor="1"/> and changed it to <FileVersion major="1" minor="3"/>. And what should I say? I get the warning above because the file format is too old (Why don't I get this message with file format 1.1 ?) but the project opens without hanging....
The same happens if I change the minor version to a number greater than 4, maybe 5. It says that the project file is too new and may not be loaded correctly, but it opens without hanging.
artoj, could you test this?
I think this should help to find the bug... :)
Greetings, Dee
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version