DesigniteJava icon indicating copy to clipboard operation
DesigniteJava copied to clipboard

Recursive inheritance depth analysis causes StackOverflows in large projects

Open AntonisGkortzis opened this issue 7 years ago • 4 comments

AntonisGkortzis avatar Jun 26 '18 10:06 AntonisGkortzis

Temporarily patched with Exception handling.

AntonisGkortzis avatar Jun 26 '18 10:06 AntonisGkortzis

I think this is related:

When I run Designite over the Android project SteamGifts I get weird overflow messages:

  • "Inheritance depth analysis step skipped due to memory overflow"
  • "Ancestors analysis skipped due to memory overflow"

This sentenced get repeated several times in the output.

Notes:

  • The version I am using was downloaded today from the official website
  • README minor fix: Designite.jar --> DesigniteJava.jar

luiscruz avatar Jan 24 '19 18:01 luiscruz

Hi, I'm facing the same problem when analyzing large projects such as Elasticsearch (v1.2.2). Is there any workaround for this problem?

wnoizumi avatar Apr 05 '19 18:04 wnoizumi

Hi,

The work around of course is to exchange recursion with a more itterative approach. As far as I remember I used recursion in graph class where a DFS is used. The workaround is to use a stack (data structure) to keep track on what the algorithm has explored.

I don't think it is too troublesome to tweek the code, once the DFS functionality is found.


T.Stassinopoulos

On Fri, Apr 5, 2019 at 9:04 PM Willian Nalepa Oizumi < [email protected]> wrote:

Hi, I'm facing the same problem when analyzing large projects such as Elasticsearch (v1.2.2). Is there any workaround for this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tushartushar/DesigniteJava/issues/52#issuecomment-480369846, or mute the thread https://github.com/notifications/unsubscribe-auth/AKvKoNf5Ej0GxsyYtlaXApYxV7z_BlAEks5vd5AogaJpZM4U3qCk .

Thodoras avatar Apr 09 '19 09:04 Thodoras