defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

help java.lang.OutOfMemoryError: Java heap space error #1637

Open gigano01 opened 6 years ago

gigano01 commented 6 years ago

Expected behaviour

Actual behaviour

Steps to reproduce


Build time2018-01-25T11:14:20.297681
Defold channeleditor-alpha
Defold editor sha31c069c6af9abaefa5135cc5a686a4d4b7cff474
Defold engine sha2406775912d235d2579cfe723ab4dbcea2ca77ca
Defold version1.2.119
Error8e5d363ef51f4a7ca184461f9816960a
GPUIntel(R) HD Graphics 520
GPU Driver4.4.0 - Build 20.19.15.4454
Java version1.8.0_102-b14
OS archx86
OS nameWindows 10
OS version10.0
erikangelin-king commented 6 years ago

Hi @gigano01! The sad fact is that the editor is pretty memory hungry and as you are running on a 32 bit windows system, there is not enough memory available :( We intend to slim our memory usage, but I can't give you any eta. In your case you run out of memory during texture compression. One thing you could try is use lower resolution images, or maybe horror use the old editor.

AGulev commented 6 years ago

I think I found stable reproduced issue with heap size: Open an project. Build the project Change branch in external git client Try to build project

  • heap size error.

Maybe it will be useful for you (I check this in Family Age project) @erikangelin-king

dapetcu21 commented 6 years ago

@erikangelin-king Hi! britzl asked me to contact you. After some editor updates, the heap size error went away for our project for the people that were experiencing it (computers with 8GB RAM), but:

This weekend I was trying to record some footage for a trailer and as part of that I replaced some 4k atlases with 8k ones (so that I can take higher res shots of the game) and I got the out of memory error again, right after replacing the first one. I think 8k atlases are bordering on unreasonable use, but britzl said it's something to consider, so I'm letting you know this happens.

I'm not sure if I should have opened a new issue or commented on this one.

My computer has 8GB of RAM:

Build time2018-05-03T10:29:15.219020
Defold channeleditor-alpha
Defold editor shae7472d566b3a0f0d492ab52ce6cbb279a47602be
Defold engine sha32ba5eaa128e4b54113fb36eb4b9eff33d8582b3
Defold version1.2.126
Error5ee864db58614e3bad37b294dec69298
GPUIntel(R) Iris(TM) Graphics 650
GPU Driver2.1 INTEL-10.32.48
Java version1.8.0_102-b14
OS archx86_64
OS nameMac OS X
OS version10.13.4
erikangelin-king commented 6 years ago

Thanks @dapetcu21! We're currently looking into improving memory usage and speed when building fonts. We'll probably target atlases next time we look at building, but we need to solve some long standing bugs first.