Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Debugging Ecore model loading] code execution hangs in debug mode
[Debugging Ecore model loading] code execution hangs in debug mode [message #662396] Wed, 30 March 2011 14:29 Go to next message
leonard.krpan is currently offline leonard.krpanFriend
Messages: 20
Registered: March 2011
Junior Member
Hello,

I have two Ecore models that I'm loading before further processing. These models are quite similar (they latter one is an evolved version of the former one, hence the structure is slightly different and it's possibly somewhat larger). When I execute the code they load just fine, however when I debug the code (actually I'm trying to debug the processing part but got stuck before it was even reached) the first model takes up to a minute to load, whereas the other one didn't load in over 10 minutes and just keeps hanging. I've come as far as parser.parse(inputSource, handler) call on line 181 in the XMLLoadImpl class.

Also, when I try to debug the previous version model of the former model from above and the former model from above, they both load promptly.

I have never encountered a problem like this before and I'm totally clueles...???

EDIT: seems to be working again. During one "hanging" session, I tried pausing and moving on by hand (by pressing step over) and that seems to have woken it up...

[Updated on: Wed, 30 March 2011 15:17]

Report message to a moderator

Re: [Debugging Ecore model loading] code execution hangs in debug mode [message #662449 is a reply to message #662396] Wed, 30 March 2011 17:05 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 26285
Registered: July 2009
Senior Member
Note that your EMF questions about the core framework should really be
directed to the eclipse.tools.emf newsgroup/forum. More comments below.

lk_muc wrote:
> Hello,
>
> I have two Ecore models that I'm loading before further processing.
> These models are quite similar (they latter one is an evolved version
> of the former one, hence the structure is slightly different and it's
> possibly somewhat larger). When I execute the code they load just
> fine, however when I debug the code (actually I'm trying to debug the
> processing part but got stuck before it was even reached) the first
> model takes up to a minute to load, whereas the other one didn't load
> in over 10 minutes and just keeps hanging. I've come as far as
> parser.parse(inputSource, handler) call on line 181 in the
> XMLLoadImpl class.
I've never seen an Ecore model that's so big it takes that long to
load. Perhaps you've set a bunch of breakpoints with complex conditions
that never end up being true...
>
> Also, when I try to debug the previous version model of the former
> model from above and the former model from above, they both load
> promptly.
>
> I have never encountered a problem like this before and I'm totally
> clueles...???
You know you can let the debugger run and then pause. At that point you
can see what all the different threads are doing to get a sense of where
it's spending all the time.
Previous Topic:[Ecore] fully qualified name for EObject type
Next Topic:[EMF Compare] Can't compile conditional breakpoint
Goto Forum:
  


Current Time: Sun Dec 21 04:16:00 GMT 2014

Powered by FUDForum. Page generated in 0.01962 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software