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.
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.
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:
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.
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
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,
/** @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.
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.