mbeddr / mbeddr.core

The mbeddr core. An extensible C
Eclipse Public License 2.0
225 stars 77 forks source link

Java heap space error occurs when parsing huge header files #157

Closed matzat closed 11 years ago

matzat commented 12 years ago

tested with

mpi.h, stddef.h and openmpi/*

from

/usr/include/mpi.h /usr/include/stddef.h /usr/include/openmpi/*

markusvoelter commented 12 years ago

what is "head space"?

matzat commented 12 years ago

head = heap, fixed the summary

markusvoelter commented 12 years ago

what is the Xmx setting?

matzat commented 12 years ago

-client -Xss1024k -ea -Xmx1200m -XX:MaxPermSize=256m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

matzat commented 12 years ago

i will profile the importer...

markusvoelter commented 12 years ago

ok

matzat commented 12 years ago

add some header to reproduce the bug:

tests -> cstub -> test.cstub.testheader -> testBug157

if you set Xmx to 2200m, the import is successful.

matzat commented 12 years ago

add externa module p24HJ64GP204 to testBug157 this model can't delete with the default Xmx size looks like an memory issue in MPS2.5

markusvoelter commented 12 years ago

dann mach da bitte einen MPS Bug draus.

matzat commented 12 years ago

ok!

bkolb commented 12 years ago

Kannst du bitte den MPS bug hier posten?

matzat commented 12 years ago

see: http://youtrack.jetbrains.com/issue/MPS-16318

matzat commented 12 years ago

update:

changed the importer in that way, that the parsed module is added to the model when the header file is fully parsed. the import is 10 times faster, but the memory issue is not solved

DomenikP commented 11 years ago

Not reproducable anymore.