下面先給大家介紹下PhpStorm64不能啟動(dòng)問(wèn)題的解決思路,詳情如下所示:
用CSDN已經(jīng)幾年,卻從來(lái)沒(méi)有試過(guò)自己寫(xiě)內(nèi)容,正逢IDE出問(wèn)題無(wú)法解決,來(lái)寫(xiě)寫(xiě)博客😅積累一下我貧乏的寫(xiě)作經(jīng)驗(yàn)。
作為一個(gè)phper,PhpStorm這款I(lǐng)DE無(wú)疑是功能最強(qiáng)大的。原先使用sublime的時(shí)候覺(jué)得界面好看就夠了,而接觸到PhpStorm以后我就基本不把sublime作為主力了(可能是我沒(méi)裝什么插件)。
可以方便查看函數(shù)參數(shù)信息,檢錯(cuò)高亮等必備功能
遠(yuǎn)程同步服務(wù)器代碼
docker容器/鏡像直接可視化,并且支持docker-compose
自帶git的可視化,都不用安裝其他可視化工具了
。。。還有很多想不起來(lái)
在使用兩個(gè)月Phpstorm后,成為了重度依賴(lài)患者,為了能流暢打開(kāi)兩個(gè)項(xiàng)目CV😂,并且打開(kāi)多個(gè)chrome窗口看文檔,我還把筆記本的單通道8g內(nèi)存換成了16g。
但是昨天突然直接打不開(kāi),而且還不報(bào)錯(cuò)!😰
就是那種點(diǎn)了一點(diǎn)反應(yīng)都沒(méi)有,進(jìn)程建立直接結(jié)束
但是32位在安裝JDK32位以后是可以正常啟動(dòng)得,只有64位的無(wú)法啟動(dòng)
而且不僅是PhpStorm64.exe打不開(kāi),PyCharm64也打不開(kāi)了
在思考多次是什么導(dǎo)致打不開(kāi)以后以下是我試過(guò)的一些方法和排查思路:
1、刪除\AppData\Roaming\JetBrains\PhpStorm2020.1
首先Google一下看看出現(xiàn)相同問(wèn)的的人都是怎么解決的
大都是要?jiǎng)h除這個(gè)文件夾重啟\AppData\Roaming\JetBrains\PhpStorm{version}
想了想可能是我用服務(wù)器激活或者用過(guò)crack補(bǔ)丁的關(guān)系,涉及到這個(gè)文件。
所以刪除了好幾次,以至于重裝Phpstorm,但是最后都沒(méi)有效果。🤔
2、重裝JDK
打開(kāi)32位的版本會(huì)報(bào)錯(cuò),需要下載32位對(duì)應(yīng)的JDK
我的系統(tǒng)版本位為win10 64位專(zhuān)業(yè)版,自然要使用64位的啟動(dòng)方式,但是64位的啟動(dòng)直接不報(bào)錯(cuò)也沒(méi)有任何響應(yīng),于是選擇重裝JDK.
安裝卸載試了試8,9,11版本,沒(méi)一個(gè)可以運(yùn)行64位😫
3、卸載更新
思索了一下可能是最近windows更新造成的不兼容,畢竟以前也有過(guò),更新完我的數(shù)位板驅(qū)動(dòng)就不行了,最后還是卸載更新解決的。
要想win10穩(wěn)定果然還是不能頻繁更新🙄
垃圾windows🙃
4、 審查phpstorm.bat
這個(gè)bat文件應(yīng)該是監(jiān)控程序運(yùn)行,并輸出錯(cuò)誤日志用的,在末尾加上pause
查看完整的運(yùn)行周期
"%JAVA_EXE%" %ALL_JVM_ARGS% -cp "%CLASS_PATH%" com.intellij.idea.Main %*
SET PATH=%OLD_PATH%
pause
直接點(diǎn)擊運(yùn)行一下
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2020-06-20 12:34:52,590 [ 3800] WARN - Container.ComponentManagerImpl - Do not use constructor injection (requestorClass=org.jetbrains.plugins.phpstorm.PhpStormInitialConfigurator)
javassist.CannotCompileException: by java.lang.reflect.InvocationTargetException
at javassist.util.proxy.DefineClassHelper$JavaOther.defineClass(DefineClassHelper.java:220)
at javassist.util.proxy.DefineClassHelper$Java11.defineClass(DefineClassHelper.java:52)
at javassist.util.proxy.DefineClassHelper.toClass(DefineClassHelper.java:260)
at javassist.ClassPool.toClass(ClassPool.java:1240)
at javassist.ClassPool.toClass(ClassPool.java:1098)
at javassist.ClassPool.toClass(ClassPool.java:1056)
at javassist.CtClass.toClass(CtClass.java:1298)
at com.mallowigi.idea.MTHackComponent.hackScrollbars(MTHackComponent.java:147)
at com.mallowigi.idea.MTHackComponent.clinit>(MTHackComponent.java:58)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at com.intellij.serviceContainer.ComponentManagerImpl.createListener(ComponentManagerImpl.kt:713)
at com.intellij.util.messages.impl.MessageBusImpl.subscribeLazyListeners(MessageBusImpl.java:204)
at com.intellij.util.messages.impl.MessageBusImpl.calcSubscribers(MessageBusImpl.java:320)
at com.intellij.util.messages.impl.MessageBusImpl.getTopicSubscribers(MessageBusImpl.java:366)
at com.intellij.util.messages.impl.MessageBusImpl.postMessage(MessageBusImpl.java:344)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:396)
at com.intellij.util.messages.impl.MessageBusImpl.lambda$createTopicHandler$3(MessageBusImpl.java:237)
at com.sun.proxy.$Proxy33.appClosing(Unknown Source)
at com.intellij.openapi.application.impl.ApplicationImpl.doExit(ApplicationImpl.java:606)
at com.intellij.openapi.application.impl.ApplicationImpl.exit(ApplicationImpl.java:589)
at com.intellij.openapi.application.impl.ApplicationImpl.restart(ApplicationImpl.java:536)
at com.intellij.openapi.application.ex.ApplicationEx.restart(ApplicationEx.java:112)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at fuck_the_regulations_v321.ev.run(ev.java:42)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:416)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
at java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
at java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
at java.desktop/java.awt.Dialog.show(Dialog.java:1063)
at java.desktop/java.awt.Component.show(Component.java:1734)
at java.desktop/java.awt.Component.setVisible(Component.java:1681)
at java.desktop/java.awt.Window.setVisible(Window.java:1031)
at java.desktop/java.awt.Dialog.setVisible(Dialog.java:998)
at fuck_the_regulations_v321.eB.c(eB.java:127)
at fuck_the_regulations_v321.eK.a(eK.java:4)
at fuck_the_regulations_v321.eK.init>(eK.java:15)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:48)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:660)
at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:35)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:115)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:69)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:62)
at com.intellij.serviceContainer.ComponentManagerImpl.createComponents(ComponentManagerImpl.kt:261)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$loadComponents$5(ApplicationImpl.java:334)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:166)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:627)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:572)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:153)
at com.intellij.openapi.application.impl.ApplicationImpl.loadComponents(ApplicationImpl.java:334)
at com.intellij.idea.ApplicationLoader$startApp$6$loadComponentInEdtFuture$1.run(ApplicationLoader.kt:184)
at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:201)
at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
at com.intellij.openapi.application.impl.ApplicationImpl.lambda$invokeLater$4(ApplicationImpl.java:310)
at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:80)
at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:128)
at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:46)
at com.intellij.openapi.application.impl.FlushQueue$FlushNow.run(FlushQueue.java:184)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:776)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:746)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:416)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at javassist.util.proxy.DefineClassHelper$JavaOther.defineClass(DefineClassHelper.java:214)
... 92 more
Caused by: java.lang.LinkageError: loader com.intellij.util.lang.UrlClassLoader @754ba872 attempted duplicate class definition for com.intellij.ui.components.ScrollBarPainter$Thumb. (com.intellij.ui.components.ScrollBarPainter$Thumb is in unnamed module of loader com.intellij.util.lang.UrlClassLoader @754ba872, parent loader 'platform')
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016)
... 97 more
大致看了一下,不太懂Java,可能是環(huán)境依賴(lài)問(wèn)題。
調(diào)試了一下phpstorm.exe.vmoptions
文件最大最小運(yùn)行內(nèi)存等設(shè)置項(xiàng),問(wèn)題并沒(méi)有得到解決,看來(lái)并不是內(nèi)存溢出問(wèn)題造成的,畢竟我升級(jí)過(guò)內(nèi)存
-server
-Xms128m
-Xmx512m
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-XX:CICompilerCount=2
-Dsun.io.useCanonPrefixCache=false
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Djdk.attach.allowAttachSelf=true
-Dkotlinx.coroutines.debug=off
-Djdk.module.illegalAccess.silent=true
-javaagent:{path}\jetbrains-agent.jar
5、使用win10沙盒,重裝前試試是不是升級(jí)兼容帶來(lái)的問(wèn)題
于是正好使用以下windows 的新功能
在安裝好以后,搜索sandbox,并打開(kāi):
我還能說(shuō)啥呢🙄(在根據(jù)網(wǎng)上所說(shuō)方法開(kāi)啟VT、重裝等還是這個(gè)錯(cuò)誤)
6、更新win10 2004 最新版本
以毒攻毒,看看問(wèn)題在新版本有沒(méi)有解決,我的1903想直接用OTA更新還是不行的,可能是還沒(méi)有開(kāi)始推送
于是就去MSDN,i tell you 下載新的版本,iso加載后直接打開(kāi)setup.exe自動(dòng)安裝就好
安裝好2004版本后感覺(jué)沒(méi)啥太大變化,Phpstorm還是打不開(kāi)🙄,唯一區(qū)別就是sandbox可以用了,不會(huì)報(bào)錯(cuò),大概是更新支持了intel的VT不僅限于AMD了。
使用sandbox運(yùn)行Phpstorm64完全沒(méi)有問(wèn)題,說(shuō)明不是版本更新造成的,而可能是一些環(huán)境依賴(lài)出錯(cuò)了。
對(duì)于本機(jī)環(huán)境排查我完全沒(méi)有什么思路,能重裝的都重裝了,沒(méi)有辦法,只能重置一下系統(tǒng),刪除所有設(shè)置和文件,問(wèn)題才可以解決🙃。
而我重置系統(tǒng)才半年不到,又得重新安裝很多軟件。。
到此這篇關(guān)于解決PhpStorm64不能啟動(dòng)的問(wèn)題的文章就介紹到這了,更多相關(guān)PhpStorm64不能啟動(dòng)內(nèi)容請(qǐng)搜索腳本之家以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持腳本之家!
您可能感興趣的文章:- phpstorm最新激活碼分享親測(cè)phpstorm2020.2.3版可用
- PhpStorm 2020.3:新增開(kāi)箱即用的PHP 8屬性(推薦)
- 搭建PhpStorm+PhpStudy開(kāi)發(fā)環(huán)境的超詳細(xì)教程
- PhpStorm2020 + phpstudyV8 +XDebug的教程詳解
- phpstorm激活碼2020附使用詳細(xì)教程
- phpStorm2020 注冊(cè)碼
- PHPStorm2020.1永久激活及下載更新至2020(推薦)
- 詳解phpstorm2020最新破解方法
- PhpStorm連接服務(wù)器并實(shí)現(xiàn)自動(dòng)上傳功能