- ALM used : GitHub
- CI system used: Github actions
- Scanner command used when applicable (private details masked)
sonar-scanner -X
–define project.settings=ncs/nrf/sonar-project-nativeposix.properties
–define sonar.coverageReportPaths=coverage.xml
–define sonar.cfamily.build-wrapper-output="${{ env.BUILD_WRAPPER_OUT_DIR }}
- Languages of the repository : C
- Only if the SonarCloud project is public, the URL : SonarCloud
- Error observed (wrap logs/code around with triple quotes ``` for proper formatting)
20:19:09.211 DEBUG: Found package.json: /__w/sdk-nrf/sdk-nrf/ncs/modules/lib/uoscore-uedhoc/package.json
Exception in thread "pool-1-thread-1" java.lang.OutOfMemoryError: Java heap space
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
20:31:54.781 DEBUG: The worker thread exited with code 1
20:32:05.194 DEBUG: The bridge server shut down
20:33:31.956 INFO: Hit the cache for 0 out of 0
20:33:31.957 INFO: Miss the cache for 0 out of 0
20:33:32.835 INFO: ------------------------------------------------------------------------
20:33:32.835 INFO: EXECUTION FAILURE
20:33:32.835 INFO: ------------------------------------------------------------------------
20:33:32.835 INFO: Total time: 15:51.026s
20:33:32.914 ERROR: Error during SonarScanner execution
java.lang.OutOfMemoryError: Java heap space
20:33:32.914 INFO: Final Memory: 122M/420M
20:33:32.914 INFO: ------------------------------------------------------------------------
- Steps to reproduce: Rerun this github actions :fix: native_posix workflow to work with the right properties · balaji-nordic/sdk-nrf@0eca9f6 · GitHub
- Potential workaround: None.
Hi,
I started getting OutOfMemoryError in the last few couple of days of run on my github workflow. The only thing I did was to start using a newer version of sonarsource/sonarcloud-github-c-cpp
action (v2.0.2). I read in the community that this can be fixed by increasing sonar.ce.javaopts
. But I cant find ouf the correct value to use when running on github actions (using github hosted runners). Can someone help?
Here are two examples of the failure.