Bug 65799 - qteditor source formatter crash
Summary: qteditor source formatter crash
Status: RESOLVED INTENTIONAL
Alias: None
Product: kdevelop
Classification: Applications
Component: QEditor (show other bugs)
Version: git master
Platform: Debian testing Linux
: NOR crash
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-10 11:37 UTC by Tom Deblauwe
Modified: 2006-03-16 21:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
source file which crashes the source formatter (12.16 KB, text/plain)
2003-10-10 11:40 UTC, Tom Deblauwe
Details
source code that causes freeze (2.39 KB, text/plain)
2006-02-26 15:04 UTC, maprie
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Deblauwe 2003-10-10 11:37:14 UTC
Version:           unknown (using KDE 3.1.4)
Installed from:     (testing/unstable)
Compiler:          gcc version 3.3.2 20030908 (Debian prerelease)
OS:          Linux (i686) release 2.4.22-1-k7

Using packages from people.debian.org/~njordan : kdevelop_2.999-0cvs20031006_i386.deb 

step 1: make sure you are using the qteditor embedded text editor.
step 2: open the file kdevelopcrashcode.cpp (can be found at http://users.pandora.be/sphinxmetal/kdevelopcrashcode.cpp)
step 3: set the cursor within the function openDocument
step 4: choose reformat source from the edit menu
step 5: crash, looks like an infinite loop

strange things: put the cursor at the beginning of the document and it works, as a matter of fact, put it outside the openDocument function and it works!
Comment 1 Tom Deblauwe 2003-10-10 11:40:24 UTC
Created attachment 2727 [details]
source file which crashes the source formatter
Comment 2 Sascha Cunz 2003-11-01 02:56:19 UTC
Works fine here (using qt3.2.2, KDEcvs and kdevelop-cvs)

Which qt Version do you use?

Can you provide a backtrace?
Comment 3 Tom Deblauwe 2003-11-02 12:05:16 UTC
Subject: Re:  qteditor source formatter crash

i now tried those packages

kdevelop3-data_3.0-00cvs20031021_all.deb
kdevelop3-plugins_3.0-00cvs20031021_i386.deb 
kdevelop3_3.0-00cvs20031021_i386.deb 

but the same happens!  My version information:

$ kdevelop3 --version
Qt: 3.2.1
KDE: 3.1.4
KDevelop: 3.0.0a7

A backtrace I don't know how to do this, I don't get the crash dialog, the app 
just hangs, it just doesn't respond anymore, I can't click on anything, which 
to me indicates it is in some infinite loop thing or so.

this is what "top" gives me:

3733 tom       20   4  104m  33m  20m R 95.4  6.6   4:22.78 kdevelop3

you see it is busy doing something, it uses 95% of cpu...

greetz
Tom,

Comment 4 Amilcar do Carmo Lucas 2003-11-02 14:16:03 UTC
Again you do not specify you QT version....
Please do!
Comment 5 Amilcar do Carmo Lucas 2003-11-02 14:17:18 UTC
Sorry... I read the last comment unbelively fast and I missed your qt version :)
Comment 6 H.H. 2005-01-22 21:37:28 UTC
I have this error, too, with another c++-Source-Code.There seems to be an infinite loop. The tip, to put the cursor to the beginning og the document works.

I use 
KDE-Develop Version 3.1.2 (KDE 3.3.2 Level "a" , unofficial build of SUSE )	
Application	Integrated Development Environment	
Operating System	Linux (i686) release 2.4.21-99-athlon	
Compiler gcc version 3.3.1 (SuSE Linux)
Comment 7 maprie 2006-02-26 15:04:51 UTC
Created attachment 14887 [details]
source code that causes freeze

I have this problem, too. The attached code freezes when the cursor is inside
the class and above the private part.

Suse 10.0
kdevelop 3.3.1
kde 3.5.1 Level "a"
qt 3.3.5-28
Comment 8 Matt Rogers 2006-03-16 21:35:38 UTC
QEditor has been removed for KDevelop 4 and none of these bugs will be fixed 
between now and then.