Windows 11下PyCharm点击无响应问题求助(附CMD运行日志)
PyCharm启动崩溃(JNI内存访问违规)解决方案
问题背景
长期使用PyCharm Community Edition 2023.3.7,突然无法启动,点击后无任何反应。尝试重装、更新均无效,通过CMD运行程序时触发JVM致命错误,日志如下:
C:\Program Files\JetBrains\PyCharm Community Edition 2023.3.7\bin>pycharm CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true 2025-04-10 17:15:16,020 [ 385] WARN - #c.i.s.ComponentManagerImpl - `preload=true` must be used only for core services (service=com.jetbrains.rdserver.statistics.BackendStatisticsManager, plugin=com.jetbrains.codeWithMe) 2025-04-10 17:15:16,296 [ 661] WARN - #c.i.s.ComponentManagerImpl - com.intellij.sh.ShLanguage initializer requests com.intellij.notification.NotificationGroupManager instance # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000018000c274, pid=20244, tid=20756 # # JRE version: OpenJDK Runtime Environment JBR-17.0.12+1-1087.25-jcef (17.0.12+1) (build 17.0.12+1-b1087.25) # Java VM: OpenJDK 64-Bit Server VM JBR-17.0.12+1-1087.25-jcef (17.0.12+1-b1087.25, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64) # Problematic frame: # C [ASProxy64.dll+0xc274] # # No core dump will be written. Minidumps are not enabled by default on client versions of Windows # JNI global refs: JNI global refs: 100, weak refs: 211 JNI global refs memory usage: 1475, weak refs: 2737 OOME stack traces (most recent first): Classloader memory used: Loader com.intellij.util.lang.PathClassLoader : 4425K Loader bootstrap : 3027K Loader com.intellij.ide.plugins.cl.PluginClassLoader : 107K Loader jdk.internal.loader.ClassLoaders$AppClassLoader : 45840B Loader jdk.internal.loader.ClassLoaders$PlatformClassLoader : 23478B Loader jdk.internal.reflect.DelegatingClassLoader : 13360B # An error report file with more information is saved as: # C:\Users\dell\java_error_in_pycharm_20244.log # # If you would like to submit a bug report, please visit: # https://youtrack.jetbrains.com/issues/JBR # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # C:\Program Files\JetBrains\PyCharm Community Edition 2023.3.7\bin>
问题分析
日志显示JVM在调用ASProxy64.dll时触发EXCEPTION_ACCESS_VIOLATION(内存访问违规),该文件通常与系统代理、安全软件或网络组件相关,并非PyCharm本身代码问题。
解决步骤
- 关闭全局代理:打开系统设置→网络和Internet→代理,关闭“自动检测设置”和“使用代理服务器”,再尝试启动PyCharm
- 临时禁用安全软件:暂停杀毒软件、防火墙等防护工具,排查是否是它们拦截了
ASProxy64.dll的加载 - 替换自带JBR:
- 下载对应版本的JetBrains Runtime(JBR-17.0.12+1-jcef)
- 找到PyCharm安装目录下的
jbr文件夹,备份后删除原文件夹 - 将下载的JBR解压到该目录
- 清理配置缓存:
- 打开
C:\Users\<你的用户名>\.PyCharmCE2023.3目录 - 删除
cache和system两个文件夹
- 打开
- 修复系统文件:以管理员身份运行CMD,执行
sfc /scannow修复可能损坏的系统dll文件
内容的提问来源于stack exchange,提问作者Fatima_Ali




