debug时候报错:ValueError: source code string cannot contain null bytes
或者一些其他问题,而在此之前是正常的,但修改了pycharm运行内存后导致的问题,将运行内存修改回原来状态问题解决,可能原因:修改后导致参数值不匹配,
菜单栏Help–>Edit Custom VM Options

custom PyCharm VM options

-Xms512m
-Xmx2048m(我是将此处修改为4096后报错,改回2048后正常)
-XX:ReservedCodeCacheSize=500m
-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:D:\tools\PyCharm 2020.1\lib\jetbrains-agent.jar

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐