Bug 200721

Summary: import of java file failed, Umbrello crashed with signal 11
Product: [Applications] umbrello Reporter: juergen.jaeschke
Component: generalAssignee: Ralf Habacker <ralf.habacker>
Status: RESOLVED FIXED    
Severity: crash CC: a.boehlke, mparchet, okellogg, ralf.habacker
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.8.0
Attachments: umbrello stack trace
the java-file I want to import
patch fixing the runtime error
List view after import of attachment 35817

Description juergen.jaeschke 2009-07-19 01:11:18 UTC
Version:           2.2.2 (using 4.2.2 (KDE 4.2.2), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.28-13-generic

1) File->New
2)Save->...
3)Code->Import classes->
Select file with follo
Comment 1 Oliver Kellogg 2009-07-20 04:43:13 UTC
> Select file with follo

? Looks truncated to me; please complete.
Comment 2 juergen.jaeschke 2009-08-03 20:42:41 UTC
Created attachment 35816 [details]
umbrello stack trace
Comment 3 juergen.jaeschke 2009-08-03 20:43:53 UTC
Created attachment 35817 [details]
the java-file I want to import
Comment 4 Ralf Habacker 2011-11-30 09:28:27 UTC
the bug is reproducable on windows using recent svn msvc build
Comment 5 Ralf Habacker 2011-11-30 09:43:47 UTC
Created attachment 66219 [details]
patch fixing the runtime error

The problem here is that the java importer crashes when a java file is imported
from a location outside the regular java package hierachy. 
While finding unknown classes the parser tries to step up in the package
hierachy to find the package root, which fails with a runtime error when the
path do not fit into the package hierachy. 

Because java package hierachy is very important for the java import I suggest
to add a user warning if file pathes of imported files are outside the java
package hierachy.
Comment 6 Ralf Habacker 2011-11-30 15:27:13 UTC
fixed in svn
Comment 7 Ralf Habacker 2013-11-06 17:34:01 UTC
set version-fixed-in from 4.8.0 changelog
Comment 8 mparchet 2014-09-23 17:09:03 UTC
Hello,

Now I have a computer with ubuntu 14.04 LTS 64 bit and I have the same probleme with the umbrello 4.4.13-0 ubuntu0.1 package.

Could you help me please

Best regards

mparchet
Comment 9 Oliver Kellogg 2014-09-23 19:49:32 UTC
Created attachment 88821 [details]
List view after import of attachment 35817 [details]

(In reply to mparchet from comment #8)
> 
> Now I have a computer with ubuntu 14.04 LTS 64 bit and I have the same
> probleme with the umbrello 4.4.13-0 ubuntu0.1 package.

Cannot reproduce using umbrello-2.14.x:
* Download attachment 35817 [details]
* mkdir -p de/jjae/util/metaprogramming/set
* mv SetOperationForDouble.java de/jjae/util/metaprogramming/set/
* Start Umbrello
* In Code -> Activate Language select Java
* In Code -> Import Project... navigate to the "de" directory created above
* Press <OK>
* No crash, list view appears as in this screenshot.
Comment 10 Oliver Kellogg 2014-09-23 20:03:50 UTC
(In reply to juergen.jaeschke from comment #2)
> Created attachment 35816 [details]
> umbrello stack trace

Your stack trace begins as follows:
> This backtrace appears to be of no use.
> This is probably because your packages are built in a way which prevents creation of proper
> backtraces, or the stack frame was seriously corrupted in the crash.

It is impossible to tell what really happened here.
Comment 11 mparchet 2014-09-24 15:43:16 UTC
Hello,

To reporoduce this bug.

1.