JetBrains / gradle-qodana-plugin

⚠️ This repository is deprecated (but the plugin is moved to JetBrains/qodana-action). Go to the official docs 👇

Home Page:https://www.jetbrains.com/help/qodana/qodana-gradle-plugin.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

runInspection resulted in SIGSEGV memory error (maybe caused by the Mac M1 chip?)

xetra11 opened this issue · comments

I often came along this issue when using docker containers on my new MacBook Air (M1). When running gradle runInspection unfortunately the the memory issue I had more often appeared in the report file.

> Task :runInspections
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Using this image you agree to JetBrains EAP user agreement (https://www.jetbrains.com/legal/docs/toolbox/user_eap/) and JetBrains privacy policy (https://www.jetbrains.com/legal/docs/privacy/privacy/). The docker image includes an evaluation license which will expire in 30-day. Please ensure you pull a new image on time.
Oct 21, 2021 11:29:37 AM org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)

Oct 21, 2021 11:29:37 AM org.jline.utils.Log logr
WARNING: Unable to create a system terminal, creating a dumb terminal (enable debug logging for more information)
                                        
     QQQQQQQ      DDDDDDDDDDD           
   QQ:::::::QQ    D::::::::::DDD        Qodana 2021.2.3 EAP
 QQ:::::::::::QQ  D:::::::::::::DD      Documentation:
Q::::::QQQ::::::Q DDD::::DDDDD::::D     https://jb.gg/qodana-docs
Q:::::O   Q:::::Q   D::::D    D::::D    Contact us at
Q::::O     Q::::Q   D::::D     D::::D   qodana-support@jetbrains.com
Q::::O     Q::::Q   D::::D     D::::D   Or via our issue tracker:
Q::::O   QQQ::::Q   D::::D     D::::D   https://jb.gg/qodana-issue
Q:::::O  Q::::::Q   D::::D    D:::DD    Or share your feedback in our Slack:
 QQ::::QQ::::::Q  DDD::::DDDDD::DD      https://jb.gg/qodana-slack!
   QQ:::::::::Q   D::::::::::DDD        
     QQQQQQQ:::QQ DDDDDDDDDDD           
            QQQQQQ                      

Starting up IntelliJ IDEA 2021.2.3 EAP (build IJCA-212.5608.16) ...done.
Preparing for the Project opening stage ...
Opening project...Waiting on event queue... 50%
Keep running Project opening ... so far 30 s 201 ms
Indexing 'PHP Runtime' 46%
Keep running Project opening ... so far 1 m 0 s 243 ms
 100%
Keep running Project opening ... so far 1 m 30 s 253 ms
done.
The Project opening stage completed in 1 m 46 s 908 ms
Initializing project...Inspecting with the 'qodana.recommended' profile
Loaded the 'qodana.sanity' shared project profile
The 'qodana.sanity' profile is configured for sanity checks
The 'qodana.recommended' profile is configured for promo checks
Preparing for the Project configuration stage ...
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x000000401e5145ca, pid=17, tid=87
#
# JRE version: OpenJDK Runtime Environment JBR-11.0.12.7-1715.4-nomod (11.0.12+7) (build 11.0.12+7-b1715.4)
# Java VM: OpenJDK 64-Bit Server VM JBR-11.0.12.7-1715.4-nomod (11.0.12+7-b1715.4, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# J 6462 c2 com.intellij.util.io.PagedFileStorage.getBufferWrapper(JZ)Lcom/intellij/util/io/DirectBufferWrapper; (202 bytes) @ 0x000000401e5145ca [0x000000401e514580+0x000000000000004a]
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /data/project/hs_err_pid17.log
Compiled method (c1)  151998 6814       2       com.intellij.util.indexing.IndexingStamp$Timestamps::set (88 bytes)
 total in heap  [0x0000004014311510,0x0000004014311b38] = 1576
 relocation     [0x0000004014311688,0x00000040143116f0] = 104
 constants      [0x0000004014311700,0x0000004014311720] = 32
 main code      [0x0000004014311720,0x00000040143119e0] = 704
 stub code      [0x00000040143119e0,0x0000004014311a50] = 112
 oops           [0x0000004014311a50,0x0000004014311a58] = 8
 metadata       [0x0000004014311a58,0x0000004014311a60] = 8
 scopes data    [0x0000004014311a60,0x0000004014311ab0] = 80
 scopes pcs     [0x0000004014311ab0,0x0000004014311b30] = 128
 dependencies   [0x0000004014311b30,0x0000004014311b38] = 8
Compiled method (c1)  152034 6814       2       com.intellij.util.indexing.IndexingStamp$Timestamps::set (88 bytes)
 total in heap  [0x0000004014311510,0x0000004014311b38] = 1576
 relocation     [0x0000004014311688,0x00000040143116f0] = 104
 constants      [0x0000004014311700,0x0000004014311720] = 32
 main code      [0x0000004014311720,0x00000040143119e0] = 704
 stub code      [0x00000040143119e0,0x0000004014311a50] = 112
 oops           [0x0000004014311a50,0x0000004014311a58] = 8
 metadata       [0x0000004014311a58,0x0000004014311a60] = 8
 scopes data    [0x0000004014311a60,0x0000004014311ab0] = 80
 scopes pcs     [0x0000004014311ab0,0x0000004014311b30] = 128
 dependencies   [0x0000004014311b30,0x0000004014311b38] = 8
Compiled method (c1)  152916 6388   !   2       com.intellij.openapi.vfs.impl.ArchiveHandler::getEntriesMap (156 bytes)
 total in heap  [0x0000004014236410,0x0000004014237aa8] = 5784
 relocation     [0x0000004014236588,0x00000040142366c0] = 312
 main code      [0x00000040142366c0,0x0000004014237280] = 3008
 stub code      [0x0000004014237280,0x00000040142373a0] = 288
 oops           [0x00000040142373a0,0x00000040142373b0] = 16
 metadata       [0x00000040142373b0,0x0000004014237448] = 152
 scopes data    [0x0000004014237448,0x00000040142376a8] = 608
 scopes pcs     [0x00000040142376a8,0x0000004014237878] = 464
 dependencies   [0x0000004014237878,0x00000040142378a0] = 40
 handler table  [0x00000040142378a0,0x0000004014237a90] = 496
 nul chk table  [0x0000004014237a90,0x0000004014237aa8] = 24
Could not load hsdis-amd64.so; library not loadable; PrintAssembly is disabled
#
# If you would like to submit a bug report, please visit:
#   https://bugreport.java.com/bugreport/crash.jsp
#
qemu: uncaught target signal 6 (Aborted) - core dumped
2021/10/21 11:32:02 Process killed (OOM?)
2021/10/21 11:32:02 IDEA process exit code: 137
2021/10/21 11:32:02 Sync IDEA cache from: /data/project/.idea to: /data/cache/.idea
Statistics upload took 1.099084ms
> Task :runInspections FAILED

Execution failed for task ':runInspections'.
> Qodana inspection finished with failure. Check logs and Qodana report for more details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Report File: https://pastebin.com/ZcqmtVjq

I really hope it's not an issue with the M1 again... cause I am getting pretty frustrated with it

@xetra11 Unfortunately, that's the M1 case. However, we're working on tuning images to work correctly with M1 – that should be available shortly.
Sorry for the inconvenience. Please stay tuned!

@hsz
That's fine! Thanks for the effort <3

Hey, @xetra11 – I'm closing Issues section in this GitHub repository. I moved your ticket to YouTrack:

QD-1878 runInspection resulted in SIGSEGV memory error (maybe caused by the Mac M1 chip?)
https://youtrack.jetbrains.com/issue/QD-1878