OutOfMemoryError

isg's Avatar

isg

09 Apr, 2019 09:03 PM

Hi I have a project coming up. I work with exporting PNG, and pretty big. Have 16GB ram and a 4ghz 6 core/ 6thread cpu on pc but got memory error. Any way to increase memory use in Nodebox? I can see in task manager it uses only half (or 9GB available 6GB in use atm).

Maybe I use nodebox for images that is not suposed to, but it's my favorite program. Now I struggle. Photoshop or illustrator had no problem at similar sizes. 1400mmx2000mm / 16571x 23658px

Wish there were an option for memory performance like in most other programs.

  1. Support Staff 1 Posted by john on 10 Apr, 2019 05:02 AM

    john's Avatar

    Hi again Isg,

    I'm not sure about your first question. Here is a thread about increasing memory from back in 2016:

    http://support.nodebox.net/discussions/support/310-out-of-memory-are-you-trying-to-process-and-infinite-list-with-a-csv-file

    I don't know if that advice still applies in 2019. There may still be a limit due to the aging Java virtual machine in the bowels of NodeBox. I am adding Frederick to this discussion, but he's been too busy to help out in the forum lately.

    16571 x 23658 is pretty big (for NodeBox). There seems to be 14400 x 14400 limit when exporting PDFs - I believe this is a PDF limit, not a NodeBox limit. I think the largest PNG export I've done was 14000 x 10500.

    When it comes to memory errors, though, it's the number of objects, not the dimensions that matters. I can draw millions of simple rectangles, but for more complex paths like text I hit the wall at around 30,000. If you are drawing a lot of text that could be a problem. (If so I have some workarounds to reduce the problem somewhat).

    As I said in my earlier note, it's much more common for memory errors to happen due to inefficiencies in your code. It's fairly easy in NodeBox to accidentally draw a million shapes on top of each other when you only meant to draw a thousand. You can try rendering one node a time and looking at things in Data view to spot that issue. But I think you are already aware of that.

    If you add a 50% scale node at the bottom of your network and cut document size in half does that solve the memory issue? (Shouldn't matter for vectors, but might matter when converting to pixels for display in or out of NodeBox). If not, and if you don't have any inadvertent inefficiencies, you may just have too many objects. If you ungroup beneath your final combine node, how many paths do you have?

    You can send me your NodeBox file if you want and I can see if I have any better luck on my Mac. Wish I could be more help.

    John

  2. Support Staff 2 Posted by john on 10 Apr, 2019 05:05 AM

    john's Avatar

    Oh - one other thing to try. The next time you get a memory error, save your NodeBox doc, reboot your PC, relaunch NodeBox, and try again.

    NodeBox does have some memory leaks which can crop up after you've been at it for awhile. Sometimes rebooting helps.

  3. Support Staff 3 Posted by Frederik De Ble... on 10 Apr, 2019 10:43 AM

    Frederik De Bleser's Avatar

    Are you on Mac or PC? On Mac it's pretty easy to increase the memory size. On PC, I think I need to make a specific build.

    NodeBox has been around for a while so we've been steadily increasing the memory limits of current PCs, but it's still quite conservative. So I can create a specific "high memory" build for you if it's required.

    But also, what John said :-) Make sure you don't have thousands of identical shapes overlapping when exporting a PDF.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

24 Apr, 2019 02:11 AM
24 Apr, 2019 02:04 AM
10 Apr, 2019 10:43 AM
31 Mar, 2019 10:32 AM
24 Mar, 2019 08:45 PM

 

24 Mar, 2019 12:07 AM
23 Mar, 2019 09:00 PM
22 Mar, 2019 06:37 AM
17 Mar, 2019 10:13 PM
11 Mar, 2019 12:35 AM
04 Mar, 2019 03:36 AM