Discussion:
Crash on CMake project import
Jonas Widarsson
2009-08-26 14:31:57 UTC
Permalink
I don't know the status of the C++ project import facilities. Is it
supposed to work yet?
I have this C++ Qt4 CMake project template that I use to start a new
project. Kdevelop crashes upon finishing the wizard. If now is the
time to take a look at this, I can sumbit the complete project for
analysis.

It's basically a Hello World! program with generated class names and
such. It builds fine using cmake only, but KDevelop can't import it.

I compiled kdevplatform and kdevelop from source today.

***@jwdell kdevplatform $ LANG=C svn info
Path: .
URL: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdevplatform
Repository Root: svn://anonsvn.kde.org/home/kde
Repository UUID: 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Revision: 1015882
Node Kind: directory
Schedule: normal
Last Changed Author: vprus
Last Changed Rev: 1015866
Last Changed Date: 2009-08-26 15:21:14 +0200 (Wed, 26 Aug 2009)

***@jwdell kdevelop $ LANG=C svn info
Path: .
URL: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdevelop
Repository Root: svn://anonsvn.kde.org/home/kde
Repository UUID: 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Revision: 1015882
Node Kind: directory
Schedule: normal
Last Changed Author: vprus
Last Changed Rev: 1015873
Last Changed Date: 2009-08-26 15:38:31 +0200 (Wed, 26 Aug 2009)
Andreas Pakulat
2009-08-26 16:27:32 UTC
Permalink
Post by Jonas Widarsson
I don't know the status of the C++ project import facilities. Is it
supposed to work yet?
I have this C++ Qt4 CMake project template that I use to start a new
project. Kdevelop crashes upon finishing the wizard. If now is the
time to take a look at this, I can sumbit the complete project for
analysis.
It's basically a Hello World! program with generated class names and
such. It builds fine using cmake only, but KDevelop can't import it.
The project and the backtrace would be needed for any further debugging.

Andreas
--
You own a dog, but you can only feed a cat.
Jonas Widarsson
2009-08-26 20:08:31 UTC
Permalink
Post by Andreas Pakulat
Post by Jonas Widarsson
I don't know the status of the C++ project import facilities. Is it
supposed to work yet?
I have this C++ Qt4 CMake project template that I use to start a new
project. Kdevelop crashes upon finishing the wizard. If now is the
time to take a look at this, I can sumbit the complete project for
analysis.
It's basically a Hello World! program with generated class names and
such. It builds fine using cmake only, but KDevelop can't import it.
The project and the backtrace would be needed for any further debugging.
Andreas
This message is off list, to you only, since I am attaching a file.
I found that trying to create a new project also crashes kdevelop.
Find both test cases in the attached file, along with two backtraces.
Both projects import just fine here, looking at the crash reports
suggests that your build of kdevelop is not up-to-date with svn, so I'd
suggest to first try an update.
I updated immediately when I hit the problem. I usually wouldn't
report a problem without making sure it exists.
Maybe a clean build will make a difference, I don't know. I'll try
that, and update first again.
I also use the PHP plugin, would you think it might interfere in some
way? I haven't updated that today, but yesterday or the day before I
did.
I'll try some more then.

Thanks
Jonas Widarsson
2009-08-26 20:26:54 UTC
Permalink
Post by Jonas Widarsson
Both projects import just fine here, looking at the crash reports
suggests that your build of kdevelop is not up-to-date with svn, so I'd
suggest to first try an update.
I updated immediately when I hit the problem. I usually wouldn't
report a problem without making sure it exists.
Maybe a clean build will make a difference, I don't know. I'll try
that, and update first again.
I also use the PHP plugin, would you think it might interfere in some
way? I haven't updated that today, but yesterday or the day before I
did.
I'll try some more then.
I updated kdevplatform and kdevelop and compiled them again without
wiping out the build dir.
and now it works. I don't know what made the difference. This time I
tried generating a new project before importing my own.
Strange.

Well then, sorry for all the noise.

/Jonas
alonso schaich
2009-08-27 10:57:34 UTC
Permalink
Post by Jonas Widarsson
Post by Jonas Widarsson
Both projects import just fine here, looking at the crash reports
suggests that your build of kdevelop is not up-to-date with svn, so I'd
suggest to first try an update.
I updated immediately when I hit the problem. I usually wouldn't
report a problem without making sure it exists.
Maybe a clean build will make a difference, I don't know. I'll try
that, and update first again.
I also use the PHP plugin, would you think it might interfere in some
way? I haven't updated that today, but yesterday or the day before I
did.
I'll try some more then.
I updated kdevplatform and kdevelop and compiled them again without
wiping out the build dir.
and now it works. I don't know what made the difference. This time I
tried generating a new project before importing my own.
Strange.
Well then, sorry for all the noise.
I don't know whether it's usefull, but i also get "crashes" while opening
kdevelop with an cmake project being loaded at start. i'm putting crash into
quotations since it's not really a crash but rather kdevelop seems to receive
SIGABRT - the easiest way to reproduce it ( for me ) is to delete the
$HOME/.kdevduchain directory before starting kdevelop which will hang up
during the loading process - not the actual project loading but the symbol
parsing or whatever happens in the second loading step ( after the progress
bar gets reset for the first time ) .
restarting kdevelop then works fine.

alonso

Loading...