Bug 82629

Summary: undo redo problems with imported classess
Product: [Applications] umbrello Reporter: Jaime Torres <jtamate>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED NOT A BUG    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jaime Torres 2004-06-01 11:40:06 UTC
Version:           1.2.2 (using KDE 3.2.2, compiled sources)
Compiler:          gcc version 3.4.0
OS:                Linux (i686) release 2.6.5

I imported two classess from a .java file (it was ok, but I have to select the *all files* in the import file window).

After generating a dependency and playing with undo-redo, I got two crashes with the same "backtrace".

To test it just import a java class with some methods and comments. Then do an undo-redo and all the classs methods and documentation are gone. With two or more, the problem seems to create the crash. 


This backtrace appears to be useless.
This is probably because your packages are built in a way which prevents creating of proper backtraces, or the stack frame was seriously corrupted in the crash.

(no debugging symbols found)...Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 21800)]
0x41463527 in waitpid () from /lib/libpthread.so.0
#0  0x41463527 in waitpid () from /lib/libpthread.so.0
#1  0x40874b36 in KCrash::defaultCrashHandler ()
   from /usr/kde3/lib/libkdecore.so.4
#2  0x41461c76 in __pthread_sighandler () from /lib/libpthread.so.0
#3  <signal handler called>
#4  0x40c4c821 in QObject::disconnectInternal ()
   from /usr/lib/qt3.1/lib/libqt-mt.so.3
#5  0x40c4ccc6 in QObject::disconnect () from /usr/lib/qt3.1/lib/libqt-mt.so.3
#6  0x080e8f90 in OwnedCodeBlock::release ()
#7  0x080fcbc5 in OwnedHierarchicalCodeBlock::release ()
#8  0x0817b7c0 in CodeGenObjectWithTextBlocks::resetTextBlocks ()
#9  0x080f5136 in HierarchicalCodeBlock::release ()
#10 0x0817b7c0 in CodeGenObjectWithTextBlocks::resetTextBlocks ()
#11 0x0817b8b0 in CodeGenObjectWithTextBlocks::~CodeGenObjectWithTextBlocks ()
#12 0x0817c42b in CodeDocument::~CodeDocument ()
#13 0x0817c57a in ClassifierCodeDocument::~ClassifierCodeDocument ()
#14 0x0825eae8 in CPPHeaderCodeDocument::~CPPHeaderCodeDocument ()
#15 0x0827a588 in CPPCodeGenerator::~CPPCodeGenerator ()
#16 0x08183b44 in UMLDoc::removeCodeGenerator ()
#17 0x08183be2 in UMLDoc::deleteContents ()
#18 0x0840b020 in ?? ()
#19 0x0848d834 in ?? ()
#20 0x408efc71 in mALLOc () from /usr/kde3/lib/libkdecore.so.4
Comment 1 Oliver Kellogg 2004-06-03 13:42:33 UTC
Hm, I'm baffled - how did you import _Java_ code?
Umbrello only offers C++ import.
Comment 2 Jaime Torres 2004-06-03 15:19:31 UTC
May be because I'm so used to figth the extensions problem.
I just changed the selectable files to All, and then tried with a .java
file.
Apparently it worked as the resulting class diagram had the methods of the
class and
also the comments (class and method).

> -----Mensaje original-----
> De: Oliver Kellogg [mailto:okellogg@users.sourceforge.net]
> Enviado el: jueves, 03 de junio de 2004 13:43
> Para: jtorres@sia.es
> Asunto: [Bug 82629] undo redo problems with imported classess 
> 
> 
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
>       
> http://bugs.kde.org/show_bug.cgi?id=82629      
> 
> 
> 
> 
> ------- Additional Comments From okellogg users sourceforge 
> net  2004-06-03 13:42 -------
> Hm, I'm baffled - how did you import _Java_ code?
> Umbrello only offers C++ import.
> 

---
El correo enviado no contiene virus conocidos en la fecha de envío.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.698 / Virus Database: 455 - Release Date: 02/06/2004
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [Bug 82629] undo redo problems with imported classess </TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>May be because I'm so used to figth the extensions problem.</FONT>
<BR><FONT SIZE=2>I just changed the selectable files to All, and then tried with a .java file.</FONT>
<BR><FONT SIZE=2>Apparently it worked as the resulting class diagram had the methods of the class and</FONT>
<BR><FONT SIZE=2>also the comments (class and method).</FONT>
</P>

<P><FONT SIZE=2>&gt; -----Mensaje original-----</FONT>
<BR><FONT SIZE=2>&gt; De: Oliver Kellogg [<A HREF="mailto:okellogg@users.sourceforge.net">mailto:okellogg@users.sourceforge.net</A>]</FONT>
<BR><FONT SIZE=2>&gt; Enviado el: jueves, 03 de junio de 2004 13:43</FONT>
<BR><FONT SIZE=2>&gt; Para: jtorres@sia.es</FONT>
<BR><FONT SIZE=2>&gt; Asunto: [Bug 82629] undo redo problems with imported classess </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; ------- You are receiving this mail because: -------</FONT>
<BR><FONT SIZE=2>&gt; You reported the bug, or are watching the reporter.</FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://bugs.kde.org/show_bug.cgi?id=82629" TARGET="_blank">http://bugs.kde.org/show_bug.cgi?id=82629</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR><FONT SIZE=2>&gt; ------- Additional Comments From okellogg users sourceforge </FONT>
<BR><FONT SIZE=2>&gt; net&nbsp; 2004-06-03 13:42 -------</FONT>
<BR><FONT SIZE=2>&gt; Hm, I'm baffled - how did you import _Java_ code?</FONT>
<BR><FONT SIZE=2>&gt; Umbrello only offers C++ import.</FONT>
<BR><FONT SIZE=2>&gt; </FONT>
<BR>
<BR><FONT SIZE=2>---<BR>
El correo enviado no contiene virus conocidos en la fecha de envío.<BR>
Checked by AVG anti-virus system (<A HREF="http://www.grisoft.com" TARGET="_blank">http://www.grisoft.com</A>).<BR>
Version: 6.0.698 / Virus Database: 455 - Release Date: 02/06/2004<BR>
</FONT>&nbsp;
</P>

</BODY>
</HTML>
Comment 3 Jonathan Riddell 2004-06-12 18:58:53 UTC
Marked as invalid because Umbrello doesn't import Java.  I've changed the menu text to indicate that only C++ files can be imported.

Regardless though it shouldn't crash so if you attach the Java files which caused the crash someone may be able to take a look at the issue.