jcompagner:
is the memory dump generated when you get an out of mem with the HeapDumpOnOutOfMemoryError setting?
Can you 7zip it and give servoy an url where i can download it?
Thanks for looking into this issue.
Because this is interfering a lot with my work, I set up the max memory to over 1GB. Let me change it back to something smaller and get a dump with a reasonable for a download size for you.
Here are the details of the first error which pops up when we get the crash:
Unhandled event loop exception
Java heap space
Then the generic Eclipse thing:
Internal Error - an out of memory error has occurred...
At which point I select the option to exit the workbench. This generates the file java_pid2060.hprof in the Servoy Developer directory.
I will send you a private message where you can download the dump file from. I did reduce intentionally the max memory for Servoy Developer to get to the crash sooner, but the behavior was identical to what is happening when the setting is set to 1GB. Hopefully this helps.
rossent:
Hi all,
On several occasions, we experienced an issue where after modifying the existing JSDoc comments for functions in order to resolve warnings in Servoy 6a4 and saving the changes, the JSDoc content is wiped off and replaced by the generic:
/**
- // TODO generated, please specify type and doc for the params
- @param {Object} paramName
- …
*/
In those cases the Servoy Developer gets into some sort of an infinite loop where the @properties UUID constantly gets re-generated and the .js file is constantly being modified and saved (the toolbar “Save” buttons constantly “blink” from enabled to disabled state and the file “Undo” history is lost due to the numerous auto changes and saves). The Developer is not “frozen” and by manually making any change to the .js file “kills” the infinite loop but all changes made to the JSDoc comments are gone. In some cases, the auto-generated JSDoc overlaps with the edits which the programmers are doing in the moment resulting in invalid comment section altogether. We cannot reproduce this issue at will but multiple developers experience the same on different machines.
i have finally be able to reproduce this and fixed this for alpha 7
I have same kind of memory error in 5.2 as well.
Every 30 minutes my Servoy hangs and I have to quit the developer or I have to cancel it by the task manager.
I noticed that it is each time when Servoy prox. needs about 500MB of memory.
My servoy.ini file looks like this
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
--launcher.XXMaxPermSize
640m
-vmargs
-Xms40m
-Xmx1024m
-XX:MaxPermSize=512M
The moment I increase this -XX:MaxPermSize=512M setting to a higher value (for ex. 640M) then the following screen appears:
[attachment=0]Capture.JPG[/attachment]
So it looks like somewhere there is a limitation in Servoy, but where and why?
why are you touching maxpermsize?
setting that to that value (640m) is way to much
150 or so should be more then enough maybe 200 but thats already a lot in my eyes
And if it hangs then it is most likely not really memory related but something else, just do a stack dump then on the admin pages.