IDEA报错然后pycharm闪退

pycharm闪退,在C盘的USER文件夹下有报错文件

打开一看,说内存不足


# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 14596177920 bytes for G1 virtual space
# Possible reasons:
#   The system is out of physical RAM or swap space
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (os_windows.cpp:3769), pid=14420, tid=10568
#
# JRE version: OpenJDK Runtime Environment JBR-17.0.6+1-653.34-jcef (17.0.6+1) (build 17.0.6+1-b653.34)
# Java VM: OpenJDK 64-Bit Server VM JBR-17.0.6+1-653.34-jcef (17.0.6+1-b653.34, mixed mode, tiered, compressed class ptrs, g1 gc, windows-amd64)
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows

其中有一句设置什么什么-XX:ReservedCodeCacheSize=

这个应该怎么操作

重装了anaconda还是不行

查看报错日志

Runtime exception during onWebsocketMessage

cn.hutool.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
    at cn.hutool.json.JSONTokener.syntaxError(JSONTokener.java:450)
    at cn.hutool.json.JSONParser.parseTo(JSONParser.java:48)
    at cn.hutool.json.ObjectMapper.mapFromTokener(ObjectMapper.java:243)
    at cn.hutool.json.ObjectMapper.mapFromStr(ObjectMapper.java:219)
    at cn.hutool.json.ObjectMapper.map(ObjectMapper.java:98)
    at cn.hutool.json.JSONObject.<init>(JSONObject.java:210)
    at cn.hutool.json.JSONObject.<init>(JSONObject.java:187)
    at cn.hutool.json.JSONObject.<init>(JSONObject.java:142)
    at cn.hutool.json.JSONObject.<init>(JSONObject.java:125)
    at cn.hutool.json.JSONUtil.parseObj(JSONUtil.java:88)
    at com.lovecaa.airscript.bean.AirScriptWebSocketClient.onMessage(AirScriptWebSocketClient.java:38)
    at org.java_websocket.client.WebSocketClient.onWebsocketMessage(WebSocketClient.java:644)
    at org.java_websocket.drafts.Draft_6455.processFrameText(Draft_6455.java:986)
    at org.java_websocket.drafts.Draft_6455.processFrame(Draft_6455.java:910)
    at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:402)
    at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:234)
    at org.java_websocket.client.WebSocketClient.run(WebSocketClient.java:527)
    at java.base/java.lang.Thread.run(Thread.java:833)

其实是开始报错的时候内存设置太大导致的

帮助-更改内存设置

帮助-删除残留的IDE目录

搞定了,

然后终端字体有问题

因为字体被删除了

JetBrains Mono: A free and open source typeface for developers | JetBrains: Developer Tools for Professionals and Teams


打开字体的网址,安装上字体

解压打开fonts

右键安装

搞定了

上一篇:微服务:Eureka原理实践:@EnableEurekaServer、@LoadBalanced


下一篇:懂技术不代表懂互联网