ort icon indicating copy to clipboard operation
ort copied to clipboard

ORT hanging on analyze for multi-project Android app

Open pirvudoru opened this issue 2 years ago • 2 comments

Description

I am trying to extract the list of dependencies of a multi-project, multi-flavor Android application using ORT. What I am experiencing is that ort, once it reaches a certain project, it hangs.

Setup

Built ORT docker image at https://github.com/oss-review-toolkit/ort/commit/c2b17a999520808bb9d9dde3a51f28f66507999a Started the docker image with --cpus="3" to give it 3 cpus export JAVA_OPTS="-Xmx12288M" to give java room to grow up to 12 gb of memory

Example in the image: image

Reference to sample app to reproduce the same "hanging" behavior: https://github.com/pirvudoru/SampleArchApp

Is there anything that can be done so that we get the analyzer-result for this type of project?

pirvudoru avatar Jul 28 '22 12:07 pirvudoru

~Might be related to https://github.com/oss-review-toolkit/ort/issues/4694.~ Actually, it is something else.

sschuberth avatar Jul 28 '22 13:07 sschuberth

Thanks @sschuberth. Is there any way to work around this issue for the moment?

pirvudoru avatar Jul 29 '22 09:07 pirvudoru

Is there any way to work around this issue for the moment?

I don't have an idea for a work-around right now, sorry.

sschuberth avatar Oct 18 '22 12:10 sschuberth

@pirvudoru there's a chance that https://github.com/oss-review-toolkit/ort/pull/6276 also helps here, would you mind giving it a try?

sschuberth avatar Dec 24 '22 08:12 sschuberth

I've verified that with current ORT the analyzer is not hanging when scanning https://github.com/pirvudoru/SampleArchApp.

sschuberth avatar Jan 17 '23 22:01 sschuberth