Page 1 of 1

7.4.x Corrupted Workspace

PostPosted: Tue Jun 03, 2014 3:30 pm
by CFDaddy
Since we upgraded to 7.4 about 3 weeks ago we have had 6 occasions where our workspace gets "corrupted". What I mean by that is Servoy Developer locks up and when we try to restart it it hangs and will not restart. We have tried rebooting the PCs to no avail. The only thing we can do is to C:\Servoy\developer\configuration\.settings\org.eclipse.ui.ide.prefs and modify the RECENT_WORKSPACES line to be empty. Restarting Servoy, we can then create a new workspace. I've tried to then connect back to the old workspace but it just hangs when restarting.

We have tried to identify a pattern when this happens but it is random in that we are doing very different things when the issue occurs. This is happening on Windows 7 x64 and Window 8 x64 machines equally and the most recent occurrence was yesterday when I tried to update to 7.4.1. I had my solution open, but no forms or scripts open in the editor. I ran the Check for updates and selected the 7.4.1 update. It ran fine, restarted and prompted me to update the Server version. I did but upon restart after the install was finished the workspace was once again corrupted.

Has anyone else seen this happen? Like I said, it has only ever happened since the 7.4.0 update we did. 7.3.x never had this problem.


Keith

Re: 7.4.x Corrupted Workspace

PostPosted: Tue Jun 03, 2014 6:38 pm
by patrick
Do you have mylyn installed? One flavor of mylyn comes with the full package of subversion for example. You can check that by opening "About Servoy developer" and then "Installation details". If you see some mylyn package and don't use it, uninstall it. (At least) the version that comes with subversion doesn't migrate well to the new eclipse version that ships with 7.4. I have seen that problem only with mylyn installed. You can uninstall it, restart and install it again. Fixed all my issues.

Re: 7.4.x Corrupted Workspace

PostPosted: Tue Jun 03, 2014 10:27 pm
by CFDaddy
Thanks for the response Patrick. No, I do not have Mylyn installed. We have Subclipse installed but as seen below, we do not install the Mylyn component rather only the items you see checked:

Image
Image

Any other suggestions?

Re: 7.4.x Corrupted Workspace

PostPosted: Wed Jun 04, 2014 12:56 am
by kwpsd
Version: 7.4.1 - build 2028

I, too, have a similar problem since 7.4.0, but Servoy Developer does not lock up for me.

servoy_error_1.png
servoy_error_1.png (16.71 KiB) Viewed 12867 times


servoy_error_2.png
servoy_error_2.png (23.58 KiB) Viewed 12867 times


@Patrick: If you would like me to send you my .log file, please let me know (the .log extension is not allowed for attachments).

Re: 7.4.x Corrupted Workspace

PostPosted: Tue Jun 10, 2014 4:16 pm
by Mccourt.cordingley1372837951
+1 To this. We are also seeing this error frequently.

Re: 7.4.x Corrupted Workspace

PostPosted: Wed Jun 11, 2014 5:31 pm
by mstokoe0990
+1 also.

I too am constantly seeing this error.

Re: 7.4.x Corrupted Workspace

PostPosted: Wed Jun 11, 2014 7:03 pm
by kwpsd
Created Support Issue: SVY-6691 (Fixed 07/04/2104)

Related item: viewtopic.php?f=22&t=20460 ?

Re: 7.4.x Corrupted Workspace

PostPosted: Thu Oct 09, 2014 12:39 pm
by sovanm
Hello,

I am still seeing this pop up in my developer regularly. I have installed servoy 7.4.2rc afresh today and checkout the solution from SVN. It started showing the pop up again while building the solution.

Can someone having this problem in 7.4.1 confirm if I am the only one still having the issue after updating?

I am attaching the metadata.log from the workspace. There is nothing registered in servoy.log.

Thanks
Sovan

Re: 7.4.x Corrupted Workspace

PostPosted: Thu Oct 23, 2014 11:02 am
by jcompagner
the only way to fix this is that we have your full workspace (so 7zip it and send it over or make a download options)
so that we can run and test it on your workspace

You have some code construct in a certain javascript file where the parser just bombs out on (it somehow recursive 1 object pointing to another and that points back to the first)

By the way others persons will not just be able to reproduce this, this is very specific to a certain piece of javascript code

Re: 7.4.x Corrupted Workspace

PostPosted: Thu Oct 23, 2014 11:13 am
by sovanm
Hi Johan,

Sorry, I missed it to post back here.

You are correct Johan, there was actually a code which somehow creating a recursion and using up all the stack space.
Interesting thing is that piece of code was never executed. I mean it was in a If-Else block and always the else block was executed. I know this code should not be there, but it was there from before.

I am sharing the code that was causing the stackoverflow. Hope you can explain,

Code: Select all
/** @type {file} */
var file;
var newFile = plugins.file.convertToJSFile(file.getParentFile().getAbsolutePath()+ "/" + globals['replaceChars'](fileName, " ", "_"));


Either by commenting these line or changing the JSDoc from file to JSFile solves the issue in my developer.

Thanks

Re: 7.4.x Corrupted Workspace

PostPosted: Thu Oct 23, 2014 11:20 am
by jcompagner
this has nothing to do with the execution of the code. The error happens in the developer itself (in the code editor) not in a client.

for me that code snippet doesn't cause me any problems if i just past then in in a code editor

Re: 7.4.x Corrupted Workspace

PostPosted: Thu Oct 23, 2014 12:26 pm
by sovanm
Hi Johan,

Thank you very much for spending time on testing the code.

I am able to reproduce it in 7.4.2rc and 7.4.1 as well. I am attaching a test workspace from my environment where I was able to reproduce it. Please help me understand this. Commenting out the code will do it for me but I want to understand why it had happened.

Here is a link to video showing how to reproduce it.

Thanks
Sovan

Re: 7.4.x Corrupted Workspace

PostPosted: Thu Oct 23, 2014 12:44 pm
by jcompagner
please make a case with that workspace

Re: 7.4.x Corrupted Workspace

PostPosted: Thu Oct 23, 2014 2:22 pm
by sovanm
Case created : SVY-7395

Thanks