All off a sudden I started to get a JavaThread crash.
I created a class in my project and then I deleted it, the class was SoundPlayer.
Think thats the problem because at the end of the log it tries "java command com.qwerty.testapp.SoundPlayer".
I've tried to do clean project, remove debug.keystore and now im all out of ideas.
Any suggestions on how to fix this?
BR
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (javaClasses.cpp:136), pid=3420, tid=4012
# fatal error: Invalid layout of preloaded class
#
# JRE version: (7.0_51-b13) (build )
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.51-b03 mixed mode windows-amd64 compressed oops)
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.sun.com/bugreport/crash.jsp
#
--------------- T H R E A D ---------------
Current thread (0x0000000002de0800): JavaThread "Unknown thread" [_thread_in_vm, id=4012, stack(0x0000000002ce0000,0x0000000002de0000)]
Stack: [0x0000000002ce0000,0x0000000002de0000]
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
Other Threads:
=>0x0000000002de0800 (exited) JavaThread "Unknown thread" [_thread_in_vm, id=4012, stack(0x0000000002ce0000,0x0000000002de0000)]
VM state:not at safepoint (not fully initialized)
VM Mutex/Monitor currently owned by a thread: None
GC Heap History (0 events):
No events
Deoptimization events (0 events):
No events
Internal exceptions (0 events):
No events
Events (10 events):
Event: 0.010 loading class 0x0000000002e24600 done
Event: 0.011 loading class 0x0000000002e24020 done
Event: 0.011 loading class 0x0000000002e24000
Event: 0.011 loading class 0x0000000002e2c100
Event: 0.011 loading class 0x0000000002e2c100 done
Event: 0.011 loading class 0x0000000002e2c130
Event: 0.011 loading class 0x0000000002e2c130 done
Event: 0.011 loading class 0x0000000002e2c160
Event: 0.011 loading class 0x0000000002e2c160 done
Event: 0.011 loading class 0x0000000002e24000 done
Dynamic libraries:
0x00007ff7b4e60000 - 0x00007ff7b4e93000 C:\Program Files\Java\jre7\bin\javaw.exe
0x00007ffd77f60000 - 0x00007ffd78109000 C:\WINDOWS\SYSTEM32\ntdll.dll
0x00007ffd76d30000 - 0x00007ffd76e69000 C:\WINDOWS\system32\KERNEL32.DLL
0x00007ffd753b0000 - 0x00007ffd754bf000 C:\WINDOWS\system32\KERNELBASE.dll
0x00007ffd73d70000 - 0x00007ffd73dfb000 C:\WINDOWS\system32\apphelp.dll
0x00007ffd6f800000 - 0x00007ffd6f84f000 C:\WINDOWS\AppPatch\AppPatch64\AcGenral.DLL
0x00007ffd772d0000 - 0x00007ffd77377000 C:\WINDOWS\system32\msvcrt.dll
0x00007ffd75190000 - 0x00007ffd751bb000 C:\WINDOWS\SYSTEM32\SspiCli.dll
0x00007ffd773e0000 - 0x00007ffd77431000 C:\WINDOWS\system32\SHLWAPI.dll
0x00007ffd77de0000 - 0x00007ffd77f51000 C:\WINDOWS\system32\USER32.dll
0x00007ffd77c60000 - 0x00007ffd77dd6000 C:\WINDOWS\system32\ole32.dll
0x00007ffd758b0000 - 0x00007ffd76cbf000 C:\WINDOWS\system32\SHELL32.dll
0x00007ffd74970000 - 0x00007ffd7498f000 C:\WINDOWS\SYSTEM32\USERENV.dll
0x00007ffd75800000 - 0x00007ffd758a5000 C:\WINDOWS\system32\ADVAPI32.dll
0x00007ffd6d130000 - 0x00007ffd6d14b000 C:\WINDOWS\SYSTEM32\MPR.dll
0x00007ffd76e70000 - 0x00007ffd76fa6000 C:\WINDOWS\system32\RPCRT4.dll
0x00007ffd77380000 - 0x00007ffd773d7000 C:\WINDOWS\SYSTEM32\sechost.dll
0x00007ffd77640000 - 0x00007ffd77817000 C:\WINDOWS\SYSTEM32\combase.dll
0x00007ffd76fb0000 - 0x00007ffd770f5000 C:\WINDOWS\system32\GDI32.dll
0x00007ffd752e0000 - 0x00007ffd752f4000 C:\WINDOWS\SYSTEM32\profapi.dll
0x00007ffd73510000 - 0x00007ffd735b1000 C:\WINDOWS\SYSTEM32\SHCORE.dll
0x00007ffd77290000 - 0x00007ffd772c4000 C:\WINDOWS\system32\IMM32.DLL
0x00007ffd77b10000 - 0x00007ffd77c48000 C:\WINDOWS\system32\MSCTF.dll
0x00007ffd6cd00000 - 0x00007ffd6cd34000 C:\Windows\system32\nvinitx.dll
0x000000000f000000 - 0x000000000f006000 C:\Program Files\NVIDIA Corporation\CoProcManager\_etoured.dll
0x00007ffd6cc70000 - 0x00007ffd6cc9d000 C:\Program Files\NVIDIA Corporation\CoProcManager\nvd3d9wrapx.dll
0x00007ffd77880000 - 0x00007ffd77a56000 C:\WINDOWS\system32\SETUPAPI.dll
0x00007ffd756f0000 - 0x00007ffd7573a000 C:\WINDOWS\system32\CFGMGR32.dll
0x00007ffd6cc10000 - 0x00007ffd6cc32000 C:\Program Files\NVIDIA Corporation\CoProcManager\nvdxgiwrapx.dll
0x00007ffd72f70000 - 0x00007ffd731ca000 C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.16384_none_62475f7becb72503\COMCTL32.dll
0x0000000069d20000 - 0x0000000069df2000 C:\Program Files\Java\jre7\bin\msvcr100.dll
0x0000000069550000 - 0x0000000069d19000 C:\Program Files\Java\jre7\bin\server\jvm.dll
0x00007ffd62500000 - 0x00007ffd62509000 C:\WINDOWS\SYSTEM32\WSOCK32.dll
0x00007ffd6dc20000 - 0x00007ffd6dc3f000 C:\WINDOWS\SYSTEM32\WINMM.dll
0x00007ffd77c50000 - 0x00007ffd77c57000 C:\WINDOWS\system32\PSAPI.DLL
0x00007ffd77440000 - 0x00007ffd77498000 C:\WINDOWS\system32\WS2_32.dll
0x00007ffd6dbf0000 - 0x00007ffd6dc1a000 C:\WINDOWS\SYSTEM32\WINMMBASE.dll
0x00007ffd77280000 - 0x00007ffd77289000 C:\WINDOWS\system32\NSI.dll
0x00007ffd74190000 - 0x00007ffd741b6000 C:\WINDOWS\SYSTEM32\DEVOBJ.dll
0x000000006aba0000 - 0x000000006abaf000 C:\Program Files\Java\jre7\bin\verify.dll
0x0000000069520000 - 0x0000000069548000 C:\Program Files\Java\jre7\bin\java.dll
0x000000006ab80000 - 0x000000006ab95000 C:\Program Files\Java\jre7\bin\zip.dll
VM Arguments:
jvm_args: -Dfile.encoding=Cp1252 -Xbootclasspath:C:\Android\sdk\platforms\android-19\android.jar
java_command: com.qwerty.testapp.SoundPlayer
Launcher Type: SUN_STANDARD
Environment Variables:
PATH=C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Android\sdk\platform-tools
USERNAME=qwerty
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows 8 , 64 bit Build 9200
CPU:total 4 (2 cores per cpu, 2 threads per core) family 6 model 69 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3, sse4.1, sse4.2, popcnt, avx, avx2, aes, erms, ht, tsc, tscinvbit
Memory: 4k page, physical 8270188k(5215628k free), swap 9580908k(5853552k free)
vm_info: Java HotSpot(TM) 64-Bit Server VM (24.51-b03) for windows-amd64 JRE (1.7.0_51-b13), built on Dec 18 2013 18:40:56 by "java_re" with unknown MS VC++:1600
time: Wed Feb 19 21:16:26 2014
elapsed time: 0 seconds
I solved it thanks to #Chris Stratton.
Went under "run as configuration" and there the deleted class was selected under "java application".
Deleted the settings for that class and voilá, now the error went away.
Related
I just updated from Monterey 12.5 to 12.5.1.
However, after that Android Studio (android-studio-2021.2.1.16-mac_arm.dmg) no longer starts.
I get the following error message:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x0000000107d72e38, pid=92768, tid=259
#
# JRE version: OpenJDK Runtime Environment (11.0.12) (build 11.0.12+0-b1504.28-7817840)
# Java VM: OpenJDK 64-Bit Server VM (11.0.12+0-b1504.28-7817840, mixed mode, tiered, compressed oops, g1 gc, bsd-aarch64)
# Problematic frame:
# V [libjvm.dylib+0x6d2e38] AccessInternal::PostRuntimeDispatch<G1BarrierSet::AccessBarrier<1097844ull, G1BarrierSet>, (AccessInternal::BarrierType)2, 1097844ull>::oop_access_barrier(void*)+0x8
#
# 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:
# /Users/Tom/java_error_in_studio_92768.log
[thread 74759 also had an error]
[thread 91395 also had an error]
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
The content of /Users/Tom/java_error_in_studio_92768.log is a little long to post here, but does not give any deeper insights (at least for me).
Anybody having the same problem?
I updated to the release candidate of the next version called "Dolphin" which is the file "android-studio-2021.3.1.15-mac_arm.dmg".
Now it works again as it should.
I recently migrated my project to Gradle 7.4.1, Android Gradle Plugin 7.1.2 and therefore also JDK 11 (from JDK 8), and everything is working fine except that when I run the unit tests in debug mode in Android Studio, it shows me this popup:
that says:
Target JRE version (11.0.11) does not match project JDK version (version 1.8.0_242), will use sources from JDK: 11
To be clear, the popup is not shown in any other situation I tried so far, for example:
building the app
running the app in debug mode
running the unit tests without the debug mode.
As you can see below, in Gradle settings I use JDK 11 (obviously; otherwise the project wouldn't work at all):
I also used a "Choose Runtime" plugin to make sure the correct JDK is chosen:
My environment variables are also correct:
❯ echo $JAVA_HOME
/Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home
❯ which java
/Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home/bin/java
❯ java -version
openjdk version "11.0.11" 2021-04-20
OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
OpenJDK 64-Bit Server VM (build 11.0.11+0-b60-7590822, mixed mode)
❯ ./gradlew --version
------------------------------------------------------------
Gradle 7.4.1
------------------------------------------------------------
Build time: 2022-03-09 15:04:47 UTC
Revision: 36dc52588e09b4b72f2010bc07599e0ee0434e2e
Kotlin: 1.5.31
Groovy: 3.0.9
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 11.0.11 (JetBrains s.r.o. 11.0.11+0-b60-7590822)
OS: Mac OS X 12.3 x86_64
I'm using Android Studio Bumblebee. Full version info:
Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 17, 2022
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 16
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: com.intellij.marketplace (211.7628.36), com.jetbrains.ChooseRuntime (1.2), com.phrase.intellij (4.0.1), com.vladsch.idea.multimarkdown (3.0.202.112), org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)
I also reviewed some of the logs produced by Android Studio and they also seem correct:
2022-03-31 20:40:16,521 [ 0] INFO - #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------
2022-03-31 20:40:16,547 [ 26] INFO - .intellij.util.EnvironmentUtil - loading shell env is skipped: IDE has been launched from a terminal (SHLVL=2)
2022-03-31 20:40:16,574 [ 53] INFO - #com.intellij.idea.Main - IDE: Android Studio (build #AI-211.7628.21.2111.8193401, 17 Feb 2022 08:12)
2022-03-31 20:40:16,576 [ 55] INFO - #com.intellij.idea.Main - OS: Mac OS X (12.3, x86_64)
2022-03-31 20:40:16,582 [ 61] INFO - #com.intellij.idea.Main - JRE: 11.0.11+0-b60-7590822 (JetBrains s.r.o.)
2022-03-31 20:40:16,583 [ 62] INFO - #com.intellij.idea.Main - JVM: 11.0.11+0-b60-7590822 (OpenJDK 64-Bit Server VM)
2022-03-31 20:40:16,586 [ 65] INFO - #com.intellij.idea.Main - JVM Args: -Xms256m -Xmx1280m -XX:ReservedCodeCacheSize=512m -XX:+UseG1GC -XX:SoftRefLRUPolicyMSPerMB=50 -XX:CICompilerCount=2 -Dsun.io.useCanonCaches=false -Djdk.http.auth.tunneling.disabledSchemes="" -Djdk.attach.allowAttachSelf=true -Djdk.module.illegalAccess.silent=true -Dkotlinx.coroutines.debug=off -Djna.nosys=true -Djna.boot.library.path= -Didea.vendor.name=Google -XX:ErrorFile=/Users/azabost/java_error_in_studio_%p.log -XX:HeapDumpPath=/Users/azabost/java_error_in_studio.hprof -Xmx4096m -Djb.vmOptionsFile=/Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/bin/studio.vmoptions,/Users/azabost/Library/Application Support/Google/AndroidStudio2021.1/studio.vmoptions -Didea.paths.selector=AndroidStudio2021.1 -Didea.executable=studio -Didea.platform.prefix=AndroidStudio -Didea.vendor.name=Google -Didea.home.path=/Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents
2022-03-31 20:40:16,586 [ 65] INFO - #com.intellij.idea.Main - library path: /Users/azabost/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
2022-03-31 20:40:16,586 [ 65] INFO - #com.intellij.idea.Main - boot library path: /Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home/lib
2022-03-31 20:40:16,603 [ 82] INFO - #com.intellij.idea.Main - locale=en_GB JNU=UTF-8 file.encoding=UTF-8
idea.config.path=/Users/azabost/Library/Application Support/Google/AndroidStudio2021.1
idea.system.path=/Users/azabost/Library/Caches/Google/AndroidStudio2021.1
idea.plugins.path=/Users/azabost/Library/Application Support/Google/AndroidStudio2021.1/plugins
idea.log.path=/Users/azabost/Library/Logs/Google/AndroidStudio2021.1
...
2022-03-31 21:32:13,214 [3116693] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home
2022-03-31 21:32:13,590 [3117069] INFO - ild.invoker.GradleBuildInvoker - Gradle build cancelled in 26 s 350 ms
2022-03-31 21:32:17,748 [3121227] WARN - idea.lint.common.LintIdeClient - com.toastfix.toasthandler_lint.registry.ToastHandlerIssueRegistry in /Users/azabost/.gradle/caches/transforms-3/5cacc53feafc83908b80485cdde0ce02/transformed/jetified-ToastHandler-1.2.1/jars/lint.jar does not specify a vendor; see IssueRegistry#vendor
2022-03-31 21:32:17,770 [3121249] WARN - idea.lint.common.LintIdeClient - dagger.lint.DaggerIssueRegistry in /Users/azabost/.gradle/caches/transforms-3/1d8efdd70f0fe0cb2ac32270bc2ae5c2/transformed/jetified-dagger-lint-aar-2.37/jars/lint.jar does not specify a vendor; see IssueRegistry#vendor
2022-03-31 21:32:39,862 [3143341] INFO - t.javadoc.JavaDocInfoGenerator - Wrong navElement: FUN; original = KtUltraLightMethodForSourceDeclaration:fetchAndCacheProductsWithSearchData of class class org.jetbrains.kotlin.asJava.classes.KtUltraLightMethodForSourceDeclaration
2022-03-31 21:32:39,863 [3143342] INFO - t.javadoc.JavaDocInfoGenerator - Wrong navElement: FUN; original = KtUltraLightMethodForSourceDeclaration:fetchAndCacheProductsWithSearchData of class class org.jetbrains.kotlin.asJava.classes.KtUltraLightMethodForSourceDeclaration
2022-03-31 21:32:39,863 [3143342] INFO - t.javadoc.JavaDocInfoGenerator - Wrong navElement: FUN; original = KtUltraLightMethodForSourceDeclaration:fetchAndCacheProductsWithSearchData of class class org.jetbrains.kotlin.asJava.classes.KtUltraLightMethodForSourceDeclaration
2022-03-31 21:32:39,863 [3143342] INFO - t.javadoc.JavaDocInfoGenerator - Wrong navElement: FUN; original = KtUltraLightMethodForSourceDeclaration:fetchAndCacheProductsWithSearchData of class class org.jetbrains.kotlin.asJava.classes.KtUltraLightMethodForSourceDeclaration
2022-03-31 21:33:15,802 [3179281] INFO - STDERR - invalid Unicode Property \p: /(?<=^[\s\d\p])\bV\b/
2022-03-31 21:33:56,220 [3219699] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home
2022-03-31 21:33:56,220 [3219699] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home
2022-03-31 21:33:56,228 [3219707] INFO - ild.invoker.GradleBuildInvoker - About to execute Gradle tasks: [:exampleModule:testDebugUnitTest]
2022-03-31 21:33:56,231 [3219710] INFO - s.plugins.gradle.GradleManager - Instructing gradle to use java from /Users/azabost/JetBrainsToolbox/apps/AndroidStudio/ch-3/211.7628.21.2111.8193401/Android Studio.app/Contents/jre/Contents/Home
2022-03-31 21:33:56,232 [3219711] INFO - ild.invoker.GradleBuildInvoker - Build command line options: [--continue, -Pandroid.injected.invoked.from.ide=true, -Pandroid.injected.studio.version=2021.1.1 Patch 2, -Pandroid.injected.attribution.file.location=/Users/azabost/projects/app-android/.gradle, --init-script, /private/var/folders/87/kglctjzn0znd_3kx9m038jf80000gn/T/ijmapper.gradle, --tests, net.example.app.ExampleTest.Example test, --init-script, /private/var/folders/87/kglctjzn0znd_3kx9m038jf80000gn/T/ijresolvers1.gradle]
2022-03-31 21:33:56,233 [3219712] INFO - xecution.GradleExecutionHelper - Passing command-line args to Gradle Tooling API: --continue -Pandroid.injected.invoked.from.ide=true -Pandroid.injected.studio.version=2021.1.1 Patch 2 -Pandroid.injected.attribution.file.location=/Users/azabost/projects/app-android/.gradle --init-script /private/var/folders/87/kglctjzn0znd_3kx9m038jf80000gn/T/ijmapper.gradle --tests net.example.app.ExampleTest.Example test --init-script /private/var/folders/87/kglctjzn0znd_3kx9m038jf80000gn/T/ijresolvers1.gradle
Perhaps it's worth mentioning that since the project is quite big (over 200 Gradle modules) and it consists of both Android library projects (i.e. plugin com.android.library) and pure Kotlin modules (i.e. no Android plugin, just the kotlin plugin), I try to keep the Gradle configurations in a single place and I try to configure all the modules in the same way using my own utility functions or Gradle built-in functions such as allprojects.
For example, to make sure all the modules have Kotlin's jvmTarget set to the same version, I use:
allprojects {
tasks.withType(type = org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class) {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
}
}
and in each Android module I additionally do this:
android {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
Unfortunately, most of the answers to similar problems I found on the internet usually mention setting the correct JDK path in IDE's Gradle settings and sometimes the configuration such as jvmTarget etc., and none of these tips worked for me so far (unless I did something wrong).
Do you know what causes that problem and how I could fix that?
I am having problem when I try to open any file from the /res/drawable/ folder, it starts loading the ic_file.xml and android studio closes, this did not happen to me with previous versions of android studio.
The android studio version is:
Android Studio 4.0
Build # AI-193.6911.18.40.6514223, built on May 20, 2020
Runtime version: 11.0.7 + 8-LTS amd64
VM: Java HotSpot (TM) 64-Bit Server VM by Oracle Corporation
Linux 4.19.0-9-amd64
GC: ParNew, ConcurrentMarkSweep
Memory: 4062M
Cores: 4
Registry: ide.new.welcome.screen.force = true
Non-Bundled Plugins: com.jetbrains.ChooseRuntime, com.thoughtworks.gauge, org.intellij.plugins.markdown
Operating system:
Distributor ID: Debian
Description: Debian GNU / Linux 10 (buster)
Release: 10
Codename: buster
When I run from terminal with ./studio.sh I get this warning, after trying to open the file in mentioned folder /res/drawable/:
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
2020-06-10 12:51:25,437 [ 2318] WARN - llij.ide.plugins.PluginManager - Plugin "Firebase Services" is incompatible (until build 192.SNAPSHOT < AI-193.6911.18.40.6514223)
2020-06-10 12:51:25,805 [ 2686] WARN - llij.ide.plugins.PluginManager - Plugin "Kotlin" is incompatible (until build 192.SNAPSHOT < AI-193.6911.18.40.6514223)
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.intellij.util.ReflectionUtil to field sun.awt.X11.XToolkit.awtAppClassName
WARNING: Please consider reporting this to the maintainers of com.intellij.util.ReflectionUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2020-06-10 12:51:29,285 [ 6166] WARN - com.intellij.ide.ui.LafManager - List.rowHeight = 0 in Darcula; it may lead to performance degradation
2020-06-10 12:51:29,286 [ 6167] WARN - com.intellij.ide.ui.LafManager - Table.rowHeight = 0 in Darcula; it may lead to performance degradation
2020-06-10 12:51:29,286 [ 6167] WARN - com.intellij.ide.ui.LafManager - Tree.rowHeight = 0 in Darcula; it may lead to performance degradation
2020-06-10 12:51:30,231 [ 7112] WARN - nSystem.impl.ActionManagerImpl - keymap "ReSharper" not found [Plugin: com.android.tools.ndk]
2020-06-10 12:51:34,850 [ 11731] WARN - .diagnostic.PerformanceWatcher - UI freezed for 6735ms, details saved to /home/lui/.AndroidStudio4.0/system/log/threadDumps-freeze-20200610-125128-AI-193.6911.18.40.6514223-AnnotationInvocationHandler.cloneArray-6sec
2020-06-10 12:51:51,403 [ 28284] WARN - ugins.textmate.TextMateService - Missing builtin bundles, checked:
/home/lui/.AndroidStudio4.0/config/plugins/textmate/lib/bundles
/home/lui/android-studio/plugins/textmate/lib/bundles
2020-06-10 12:51:51,732 [ 28613] WARN - uilder.surface.NlDesignSurface - The mode BOTH is not recognized, use default mode NlScreenMode instead
2020-06-10 12:51:52,888 [ 29769] WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.highlighter.KotlinDefaultHighlightingSettingsProvider
2020-06-10 12:55:42,692 [ 259573] WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.scripting.gradle.GradleScriptInputsWatcher$Storage
2020-06-10 12:55:42,733 [ 259614] WARN - com.intellij.util.xmlb.Binding - no accessors for class org.jetbrains.kotlin.idea.core.script.configuration.utils.ScriptClassRootsStorage
2020-06-10 12:55:51,413 [ 268294] WARN - dering.imagepool.ImagePoolImpl - 0 maxSize for Bucket. This Bucket will not be used.
Unable to find class android/graphics/ColorSpace
2020-06-10 12:55:52,562 [ 269443] WARN - .uipreview.LayoutLibraryLoader - GraphicsJNI: Unable to find class android/graphics/ColorSpace
Aborted```
I want to analyze my Kotlin code with SonarQube except that I have a problem running the server.
During the installation everything worked, but since I stopped the server it is impossible for me to restart it.
When I run the StartSonar file I get this in the console:
C:\sonarqube-7.8\bin\windows-x86-64> .\StartSonar.bat
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
jvm 1 | Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
jvm 1 | Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
jvm 1 |
jvm 1 | 2019.07.01 09:05:34 WARN app[][o.s.application.App] SonarQube will require Java 11+ starting on next version
jvm 1 | 2019.07.01 09:05:34 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory C:\sonarqube-7.8\temp
jvm 1 | 2019.07.01 09:05:34 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
jvm 1 | 2019.07.01 09:05:34 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [C:\sonarqube-7.8\elasticsearch]: C:\Program Files\Java\jdk1.8.0_211\jre\bin\java -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true -XX:-OmitStackTraceInFastThrow -Dio.netty.noUnsafe=true -Dio.netty.noKeySetOptimization=true -Dio.netty.recycler.maxCapacityPerThread=0 -Dlog4j.shutdownHookEnabled=false -Dlog4j2.disable.jmx=true -Djava.io.tmpdir=C:\sonarqube-7.8\temp -XX:ErrorFile=../logs/es_hs_err_pid%p.log -Xms512m -Xmx512m -XX:+HeapDumpOnOutOfMemoryError -Delasticsearch -Des.path.home=C:\sonarqube-7.8\elasticsearch -Des.path.conf=C:\sonarqube-7.8\temp\conf\es -cp lib/* org.elasticsearch.bootstrap.Elasticsearch
jvm 1 | 2019.07.01 09:05:35 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
jvm 1 | 2019.07.01 09:05:35 INFO app[][o.e.p.PluginsService] no modules loaded
jvm 1 | 2019.07.01 09:05:35 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
jvm 1 | 2019.07.01 09:05:48 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
jvm 1 | 2019.07.01 09:05:48 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [C:\sonarqube-7.8]: C:\Program Files\Java\jdk1.8.0_211\jre\bin\java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=C:\sonarqube-7.8\temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -Dhttp.nonProxyHosts=localhost|127.*|[::1] -cp ./lib/common/*;C:\sonarqube-7.8\lib\jdbc\h2\h2-1.3.176.jar org.sonar.server.app.WebServer C:\sonarqube-7.8\temp\sq-process8492662459842448974properties
jvm 1 | 2019.07.01 09:05:53 INFO app[][o.s.a.SchedulerImpl] Process[web] is stopped
jvm 1 | 2019.07.01 09:05:53 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
jvm 1 | 2019.07.01 09:05:53 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
wrapper | <-- Wrapper Stopped
In the wrapper.conf file, I modified the line :
wrapper.java.command=java
to
wrapper.java.command=C:\Program Files\Java\jdk1.8.0_211\bin\java
But nothing changed
With the Git command line, I executed the command
netstat -ntlp | grep 9000
but no process appears
So apparently it was caused by a double version of the plugin, the official one and the non-official one
I just removed the old one and it works perfectly now !
Hope it will help
Here is the lines of the log files :
2019.07.01 08:59:28 ERROR web[][o.s.s.p.Platform] Web server startup failed: Found two versions of the plugin SonarKotlin [kotlin] in the directory extensions/plugins. Please remove one of sonar-kotlin-plugin-1.5.0.315.jar or sonar-kotlin-0.5.2.jar.
2019.07.01 08:59:28 INFO web[][o.s.s.p.d.EmbeddedDatabase] Embedded database stopped
2019.07.01 08:59:28 INFO web[][o.s.s.a.EmbeddedTomcat] HTTP connector enabled on port 9000
2019.07.01 08:59:28 INFO web[][o.s.p.ProcessEntryPoint] Hard stopping process
2019.07.01 09:00:48 INFO web[][o.s.p.ProcessEntryPoint] Starting web
2019.07.01 09:00:49 ERROR web[][o.s.s.a.EmbeddedTomcat] Fail to start web server
org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:427)
at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:65)
at org.sonar.server.app.WebServer.start(WebServer.java:52)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:97)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81)
at org.sonar.server.app.WebServer.main(WebServer.java:99)
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardService[Tomcat]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 7 common frames omitted
Caused by: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-8000]]
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 9 common frames omitted
2019.07.01 09:00:49 WARN web[][o.s.p.ProcessEntryPoint] Fail to start web
java.lang.RuntimeException: org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:69)
at org.sonar.server.app.WebServer.start(WebServer.java:52)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:97)
at org.sonar.process.ProcessEntryPoint.launch(ProcessEntryPoint.java:81)
at org.sonar.server.app.WebServer.main(WebServer.java:99)
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardServer[-1]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:140)
at org.apache.catalina.startup.Tomcat.start(Tomcat.java:427)
at org.sonar.server.app.EmbeddedTomcat.start(EmbeddedTomcat.java:65)
... 4 common frames omitted
Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [StandardService[Tomcat]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 7 common frames omitted
Caused by: org.apache.catalina.LifecycleException: Failed to initialize connector [Connector[HTTP/1.1-8000]]
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 9 common frames omitted
i'm using linux mint. now i'm facing this problem i can't even find solution.
hope someone help me here.
System configuration.
*Operating System : Linux Mint 19 Cinnamon
Cinnamon Version : 3.8.7
Linux Kernal : 4.15
Processor : AMD FX(tm)-8150
RAM : 8GB*
here is crash details.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f8550bde9ca, pid=20860, tid=0x00007f84cb8ce700
#
# JRE version: OpenJDK Runtime Environment (8.0_152-b01) (build 1.8.0_152-release-1024-b01)
# Java VM: OpenJDK 64-Bit Server VM (25.152-b01 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# J 46464 C1 com.intellij.openapi.editor.impl.view.LineLayout$SingleChunk.getChunksInLogicalOrder()Ljava/util/stream/Stream; (21 bytes) # 0x00007f8550bde9ca [0x00007f8550bde4c0+0x50a]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Hi i have faced the same problem,And finally i found the solution for it.Actually in my case while i am try to checkout the subversion in android studio fully crashed.I mean it was closed unexpectedly.I spend the lot of time of it.
Go to your home directory like home/vijay(your path) then Ctrl + H.It will show your all hidden files in there just delete the following files.
.android
.java
.subversion
.gradle
Note : Do these stuffs before open android studio.
Then open android studio it will work sure.
Don't worry if you delete also it will create automatically.