Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.OutOfMemoryException #15

Open
mengwei321 opened this issue Feb 22, 2024 · 6 comments
Open

System.OutOfMemoryException #15

mengwei321 opened this issue Feb 22, 2024 · 6 comments

Comments

@mengwei321
Copy link

Hi,

While loading Opportunity products, the error below occurred.

System.ApplicationException: Error while fetching data for <custom_object_name>: Exception of type 'System.OutOfMemoryException' was thrown. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.

Please help.

Thanks for the great tool.

Jason

@codeulike
Copy link
Owner

Hi, I guess you're just out of memory. How much data are you copying?
Try closing down other apps on your PC, or try copying less data.
Sandboxberry isn't really meant for large amounts of data. During copying it holds it all in memory so that it can keep track of old vs new ids.

@mengwei321
Copy link
Author

I am just copying one opportunity and one line item. I think the existing process uses too much automation.
Is there a configuration to adjust max ram for Sandboxberry, like JVM? Or it is just using whatever physical memory the machine has. The machine I am using has 16G RAM.

Thanks, Jason

@codeulike
Copy link
Owner

Hi - Sandboxberry is just a .net app so it doesnt have a max ram setting.
Sounds like something strange is going on with your PC. Was something else taking up all the memory?
Is this happening consistently every time you try?

@mengwei321
Copy link
Author

mengwei321 commented Feb 29, 2024 via email

@mengwei321
Copy link
Author

I am using .net framework version 4.8, 64-bit windows. Not sure if it matters.

@codeulike
Copy link
Owner

Aha I think I know whats going on.
SandboxBerry is quite old and I guess you downloaded the latest Release which is from 2017
Its compiled as a 32-bit Windows exe so it will have a hard limit of 2GB memory. I think .NET itself uses about 0.5GB so you're probably hitting the 2GB limit.

If you've got Visual Studio handy you could re-build as a 64-bit exe to remove that limit.

But I still dont understand how you are using 1.6GB of memory ... you must be downloading/transferring much more data than you think you are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants