Welcome Guest Search | Active Topics | Sign In | Register

Memory issue ChildProcessOutOfMemoryException Options
AiSatan
Posted: Wednesday, September 14, 2016 8:30:28 AM
Rank: Advanced Member
Groups: Member

Joined: 2/11/2016
Posts: 35
Hi, I have a problem with opening some page.

I got the exception:
Quote:

EO.Base.ChildProcessOutOfMemoryException: One of the child processes used by EO components reported an out of memory error.If your system has sufficient memory, please consider setting EO.Base.Runtime.EnableLargeAddressSpace to true.


I tried set EO.Base.Runtime.EnableLargeAddressSpace to true, but it didn't help.

I can reproduce it with the URL http://testmy.net/upload in Tabbled Browser.

In my application, I see empty console after loading a page, and something like memory leak(Tabbled Browser does not use the eowp*.exe, it seems use rundll)



I attach the crash data file here: http://rgho.st/64XHHkfSN

The second issue with tabbled browser "Copy to Clipboard" button, it creates the exception:

Quote:
System.Threading.ThreadStateException: Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it.



eo_support
Posted: Wednesday, September 14, 2016 9:06:34 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

We tried to load the Url with our TabbedBrowser example and it works fine. Is there any specific step to follow in order to reproduce the problem?

As to the clipboard issue, can you explain how it is related to our product?

Thanks!
AiSatan
Posted: Wednesday, September 14, 2016 9:22:50 AM
Rank: Advanced Member
Groups: Member

Joined: 2/11/2016
Posts: 35
eo_support wrote:
Hi,

We tried to load the Url with our TabbedBrowser example and it works fine. Is there any specific step to follow in order to reproduce the problem?

As to the clipboard issue, can you explain how it is related to our product?

Thanks!


You can select "manual test size" and select first 100 Mb then wait for the crash.

The crash file http://rgho.st/64XHHkfSN can't help? I created it like the link https://www.essentialobjects.com/doc/common/crash_report.aspx

About clipboard issue:
As I understand, the error window, I mean "Runtime Exception", it is your own window, and it's your "Copy to clipboard" button. It's happened in Tabbled browser too.

eo_support
Posted: Wednesday, September 14, 2016 10:16:36 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Thanks for the additional information. We didn't realize the "Copy to clipboard" was the button in the exception dialog. Now we are able to reproduce the problem and it will be fixed in our next build.

As to the memory consumption, the TabbedBrowser as is crashes as you described. However if we set EO.Base.Runtime.EnableLargeAddressSpace to true for TabbedBrowser, then it does not crash. The child process peeks at about 500MB and the upload test finishes successfully. This is similar to Chrome's memory consumption. We do not see the over 2G memory consumption in your screenshot. So you may want to find out what triggered that memory consumption (usually due to large buffers in your JavaScript code) and see if you can avoid it.
serializer
Posted: Friday, September 16, 2016 9:43:00 AM
Rank: Advanced Member
Groups: Member

Joined: 5/9/2016
Posts: 84
A related question, if EnableLargeAddressSpace is set to true (https://www.essentialobjects.com/doc/common/large_address_space.aspx) - what happens if the eowp.exe file is not distributed along with the application?
eo_support
Posted: Friday, September 16, 2016 10:18:37 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

In that case our library will try to automatically create one in your temp folder. However that may cause user to be suspicious that something might be wrong. It is recommended that you use this method to create your own:

https://www.essentialobjects.com/doc/eo.base.runtime.initworkerprocessexecutable.aspx

This allows you to customize both the location and file name of the exe file so that the end user will understand that it is used by your application.

Thanks!



You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.