Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Notation file blank after failed search
Notation file blank after failed search [message #1178078] Sat, 09 November 2013 11:16 Go to next message
Tomas Sandkvist is currently offline Tomas SandkvistFriend
Messages: 149
Registered: October 2013
Senior Member
I managed to make a search over the entire workbench, which failed so badly that now is my Notation file apparently blank.

What to do, other than load a backup?

[EDIT:] I got the crazed idea of just putting back the notation file from the backup when I realized that the notation file seems to contain all diagrams. Stupid or not, at least I now only have to recreate the diagram I've create this morning.

But am I doing something that would potentially fail later on?

Regards,
Tomas Sandkvist

[Updated on: Sat, 09 November 2013 11:31]

Report message to a moderator

Re: Notation file blank after failed search [message #1178462 is a reply to message #1178078] Sat, 09 November 2013 17:25 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Tomas,

Search shouldn't modify any files, unless you did a search-and-replace.
Does simply closing and re-opening the model not help? Or do you mean
that the contents of the *.notation file were actually wiped out?

Do you see exceptions in the log?

This is probably a bug. I'd suggest creating a bugzilla with a model
attached in which the problem is reproducible, with steps to reproduce
it and any exceptions that were logged during the search.

Cheers,

Christian


On 2013-11-09 11:16:09 +0000, Tomas Sandkvist said:

> I managed to make a search over the entire workbench, which failed so
> badly that now is my Notation file apparently blank.
>
> What to do, other than load a backup?
>
> Regards,
> Tomas Sandkvist
Re: Notation file blank after failed search [message #1179428 is a reply to message #1178462] Sun, 10 November 2013 09:05 Go to previous messageGo to next message
Tomas Sandkvist is currently offline Tomas SandkvistFriend
Messages: 149
Registered: October 2013
Senior Member
I don't really know what to look for here. Where are the log files stored? My workspace consists of a lot of tests, failures, broken models and so on, and also confidential stuff (the proper models) that I cannot show because of confidentiality agreements.

But at least the logs could perhaps be of use. This was one of these "O MY GOD WHAT IS HAPPENING I DON*T KNOW WHAT TO DO AND I HAVE LOST ALL OF TODAY'S WORK AND IT IS EVEN SATURDAY" moments that made me do stuff hastily.

I opened the notation file with notepad++, it was in fact empty.

I can add something in Bugzilla just as a reminder, but I will probably not have enough facts to back it up. My best guess is that is has to do with saving, I noticed the asterisk on the model tab. I probably had some diagram open in the editor, and I did get a lot of messages that to me looked like Java was out of memory, but I'm no programmer. There where messages about internal failures and one dialog at the end recommended to close the workspace. If any of these gives any pointers on where to look, I can write it into Bugzilla.

What do you recommend in such a case?

Regards,
Tomas
Re: Notation file blank after failed search [message #1180016 is a reply to message #1179428] Sun, 10 November 2013 18:23 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Tomas,

Wow. I'm sorry, this doesn't look like a good situation.

The workspace log file is the one I referred to: in the .metadata/
sub-folder of your workspace folder you'll find a file named simply
".log". (there will likely be a bunch of numbered roll-over log files,
too) This should have stack traces that can help diagnose problems.
There may also be names of confidential model elements or other
sensitive information in there; take care before posting any of it!

One of the features that I continually bless Eclipse for is the
Workspace History. By default, every save of a file in the workspace
keeps a delta from the previous. By default, seven days of such
history are maintained. This doesn't require any version control
system; it is always present and it just works.

You should be able to find some recent version of the notation file
that could restore at least most of its content. Perhaps other files
are similarly affected? In the Project Explorer, right-click on a file
and select the "Replace With -> Local History..." menu action to browse
recent versions and see what you can restore.

Obviously I wouldn't recommend trying to reproduce this kind of
disaster on your own data just to raise a bugzilla. If you are
motivated to look through the log and see whether any exceptions in
there seem related to the search operation and your data loss, then you
might post some excerpts from the log.

However, I do know (having worked on extending the search function into
CDO repositories in the Luna release) that the Kepler release appears
to have some significant memory leaks. Your mention of internal error
dialogs recommending to close the workspace supports this:
out-of-memory errors typically trigger that dialog. I suppose you
performed several searches, right? I suspect that your VM ran out of
memory while trying to save a file (EMF buffers the entire text in
memory before writing it out) and so the result was truncation to zero
bytes. But, this is just speculation on my part. Your log could
provide more insight.

HTH,

Christian

On 2013-11-10 09:05:33 +0000, Tomas Sandkvist said:

> I don't really know what to look for here. Where are the log files
> stored? My workspace consists of a lot of tests, failures, broken
> models and so on, and also confidential stuff (the proper models) that
> I cannot show because of confidentiality agreements.
>
> But at least the logs could perhaps be of use. This was one of these "O
> MY GOD WHAT IS HAPPENING I DON*T KNOW WHAT TO DO AND I HAVE LOST ALL OF
> TODAY'S WORK AND IT IS EVEN SATURDAY" moments that made me do stuff
> hastily.
>
> I opened the notation file with notepad++, it was in fact empty.
> I can add something in Bugzilla just as a reminder, but I will probably
> not have enough facts to back it up. My best guess is that is has to do
> with saving, I noticed the asterisk on the model tab. I probably had
> some diagram open in the editor, and I did get a lot of messages that
> to me looked like Java was out of memory, but I'm no programmer. There
> where messages about internal failures and one dialog at the end
> recommended to close the workspace. If any of these gives any pointers
> on where to look, I can write it into Bugzilla.
>
> What do you recommend in such a case?
>
> Regards,
> Tomas
Re: Notation file blank after failed search [message #1180801 is a reply to message #1180016] Mon, 11 November 2013 06:50 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Unfortunatelyhttps://bugs.eclipse.org/bugs/show_bug.cgi?id=398925 is
still open ("After prolonged usage Eclipse becomes unusable"). It can be
the source of all sorts of obscure problems once you have been working
for a long time, and consequently any bug that appears after a long
period of work may end up being a duplicate. Had you been working for a
long time?

Regards

Ed Willink
Re: Notation file blank after failed search [message #1181098 is a reply to message #1180801] Mon, 11 November 2013 11:18 Go to previous messageGo to next message
Tomas Sandkvist is currently offline Tomas SandkvistFriend
Messages: 149
Registered: October 2013
Senior Member
Hi Ed!

Yes, I had bee working for a number of hours. I have noticed the slowing of the editor, and most often it has became a bit more respondent when closing and reopening the model. But it also feels as if the time Eclipse has been up and running also matters (and since the workspace is managed by eclipse, but the diagram editor is Papyrus, perhaps both environments has some issues).

After this occasion I have:

A: Created a new workspace, free of unusable stuff and crashed models
B: Become to realize the importance of splitting the model into smaller pieces using the submodel function (but still a bit scared due to previous issues that perhaps is related to the bug you mention)

And after creating a clean workspace my model feels a lot more snappy and well functioning.

I had no clue there was a Workspace history, will try that on the old, now abandoned workspace just to test.

As a step C I now ponder over the possibility to also avoid using submodels at all (to not risk having a huge model that I at some point in time is forced to work in) by exporting these to a new workspace and work with each part/model fully separate after getting some really good advice in that related post.

Small units of work seems to be of importance here...

Regards,
Tomas
Re: Notation file blank after failed search [message #1181116 is a reply to message #1180016] Mon, 11 November 2013 11:34 Go to previous messageGo to next message
Tomas Sandkvist is currently offline Tomas SandkvistFriend
Messages: 149
Registered: October 2013
Senior Member
Hi Christian!

I have tried to search the log files, but using the term 'search' I only found some entries from a search I did on another date, I also tried terms like 'fail', 'heap', 'vm', 'memory', but didn't find anything.

So, either I am not searching for the right item or else did Eclipse fail so badly it never got to the occasion of writing the log until I terminated it.

Regards,
Tomas
Re: Notation file blank after failed search [message #1181723 is a reply to message #1180801] Mon, 11 November 2013 20:03 Go to previous messageGo to next message
Tomas Sandkvist is currently offline Tomas SandkvistFriend
Messages: 149
Registered: October 2013
Senior Member
It just happened again!

After like 3-4 hours I tried to do a search in my much more cleaner workspace. In my current project, I selected the folder containing all my submodels as well as the main model, and searched for a short term, and after some time I got 'An internal error occured during Papyrus search" GC overhead limit reached. I immediately checked the log files but could not see anything obvious related to the search.

The latest entry I could find in the log was about fifteen minutes earlier...
Re: Notation file blank after failed search [message #1182620 is a reply to message #1181723] Tue, 12 November 2013 09:52 Go to previous messageGo to next message
Camille Letavernier is currently offline Camille LetavernierFriend
Messages: 952
Registered: February 2011
Senior Member
Hi Tomas,


When you are using "Search", do you use the Papyrus Model Search, or the standard Eclipse Text File search?

Also, did you try to right click on a file > Replace with... > Local history, to get a backup version of this file?


Regards,
Camille


Camille Letavernier
Re: Notation file blank after failed search [message #1183105 is a reply to message #1182620] Tue, 12 November 2013 16:43 Go to previous message
Tomas Sandkvist is currently offline Tomas SandkvistFriend
Messages: 149
Registered: October 2013
Senior Member
Hi Camille!

First, I haven't had the time to try the restore function yet. Will see if there will be time tonight.

I did use the Papyrus search function. No model was open, and I had selected a folder in the project explorer, and in the search dialog I had chosen selected resource as the search span.

Regards,
Tomas
Previous Topic:Setting default value of enumeration
Next Topic:Best route for managing requirements
Goto Forum:
  


Current Time: Fri Apr 19 22:42:01 GMT 2024

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

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

Back to the top